Compare commits

..

No commits in common. "0e6b1d03bc31665135bf11e47619f2ab20391e08" and "10c226cb8640d2021423600547c716395ae83814" have entirely different histories.

4 changed files with 4 additions and 8 deletions

View File

@ -69,8 +69,6 @@ Set **RADIO_NODE_ADDRESS** to change it's 5 byte address if you feel like it. **
Set **RADIO_PA_LEVEL** to adjust the transmit power level if needed (higher the power, higher the current consumption) Set **RADIO_PA_LEVEL** to adjust the transmit power level if needed (higher the power, higher the current consumption)
Set **ENABLE_LNA** to true or false to enable or disable the Low Noise Amplifier on the NRF modules if it has one.
## The hardware : ## The hardware :
Here is a list of the parts used to build the station with a link to where you can buy it : Here is a list of the parts used to build the station with a link to where you can buy it :
* [Solar panel : 72x72](https://fr.aliexpress.com/item/4001240640418.html?spm=a2g0s.9042311.0.0.27426c3741mIVH) * [Solar panel : 72x72](https://fr.aliexpress.com/item/4001240640418.html?spm=a2g0s.9042311.0.0.27426c3741mIVH)

View File

@ -113,9 +113,9 @@ void WSPeripherals::_3V3PowerRail(State state)
const RF24 &WSPeripherals::getRadio(){return _NRF;} const RF24 &WSPeripherals::getRadio(){return _NRF;}
void WSPeripherals::applyRadioConfig(uint8_t channel, uint8_t paLevel, bool enableLNA, rf24_datarate_e datarate) void WSPeripherals::applyRadioConfig(uint8_t channel, uint8_t paLevel, rf24_datarate_e datarate)
{ {
_NRF.setChannel(channel); _NRF.setChannel(channel);
_NRF.setPALevel(paLevel, enableLNA); _NRF.setPALevel(paLevel);
_NRF.setDataRate(datarate); _NRF.setDataRate(datarate);
} }

View File

@ -44,7 +44,7 @@ class WSPeripherals
/* /*
* Before calling this method, externalPeripherals(ON) and initExternalPeripherals() must be called respectively * Before calling this method, externalPeripherals(ON) and initExternalPeripherals() must be called respectively
*/ */
void applyRadioConfig(uint8_t channel = RADIO_CHANNEL, uint8_t paLevel = RADIO_PA_LEVEL, bool enableLNA = ENABLE_LNA, rf24_datarate_e datarate = RADIO_DATARATE); void applyRadioConfig(uint8_t channel = RADIO_CHANNEL, uint8_t paLevel = RADIO_PA_LEVEL, rf24_datarate_e datarate = RADIO_DATARATE);
const RF24 &getRadio(); const RF24 &getRadio();
protected: protected:

View File

@ -22,11 +22,9 @@
#define RADIO_CHANNEL 108 #define RADIO_CHANNEL 108
#define RADIO_NODE_ADDRESS "WEST1" //Weather Station 1 #define RADIO_NODE_ADDRESS "WEST1" //Weather Station 1
#define RADIO_PA_LEVEL RF24_PA_LOW //RF24_PA_MIN,RF24_PA_LOW,RF24_PA_HIGH,RF24_PA_MAX #define RADIO_PA_LEVEL RF24_PA_LOW //RF24_PA_MIN,RF24_PA_LOW,RF24_PA_HIGH,RF24_PA_MAX
#define ENABLE_LNA false //true or false
#define RADIO_DATARATE RF24_250KBPS #define RADIO_DATARATE RF24_250KBPS
//Sleep config part : in 4 second increments ie : 1 corresponds to 4s of sleep, and 15 correponds to 60 seconds of sleep. //Sleep config part : in 4 second increments ie : 1 corresponds to 4s of sleep, and 15 correponds to 60 seconds of sleep.
//Max is 255 * 4s.
#define SLEEP_4_SEC_INTERVAL 15 #define SLEEP_4_SEC_INTERVAL 15
//Pin config part //Pin config part