Compare commits
No commits in common. "0e6b1d03bc31665135bf11e47619f2ab20391e08" and "10c226cb8640d2021423600547c716395ae83814" have entirely different histories.
0e6b1d03bc
...
10c226cb86
@ -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 **ENABLE_LNA** to true or false to enable or disable the Low Noise Amplifier on the NRF modules if it has one.
|
||||
|
||||
## The hardware :
|
||||
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)
|
||||
|
@ -113,9 +113,9 @@ void WSPeripherals::_3V3PowerRail(State state)
|
||||
|
||||
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.setPALevel(paLevel, enableLNA);
|
||||
_NRF.setPALevel(paLevel);
|
||||
_NRF.setDataRate(datarate);
|
||||
}
|
||||
|
@ -44,7 +44,7 @@ class WSPeripherals
|
||||
/*
|
||||
* 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();
|
||||
|
||||
protected:
|
||||
|
@ -22,11 +22,9 @@
|
||||
#define RADIO_CHANNEL 108
|
||||
#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 ENABLE_LNA false //true or false
|
||||
#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.
|
||||
//Max is 255 * 4s.
|
||||
#define SLEEP_4_SEC_INTERVAL 15
|
||||
|
||||
//Pin config part
|
||||
|
Loading…
Reference in New Issue
Block a user