Solar panels –> diode –> NiMh cells –> Stepup –> Moteino
#ifdef AH5 // Solar -> diode -> NimH 2xAA 2000mAh -> 3.3v stepup -> moteino // Last flashed 27/1/15 char id[] = "AH5"; #define LOCATION_STRING "51.357,1.020" byte num_repeats = '3'; //The number of hops the message will make in the network #define BEACON_INTERVAL 30 // Beacon Interval in seconds uint8_t rfm_power = 20; // dBmW #define SENSITIVE_RX // Enables TESTLNA_SENSITIVE #define ENABLE_BATTV_SENSOR // Comment out to disable, you must also disable zombie mode #define BATTV_PIN A3 //ADC 0 - Battery Voltage, scaled to 1.1V #define BATTV_FUDGE 310 // Battery Voltage ADC Calibration Factor // Power Saving #define ENABLE_ZOMBIE_MODE // Comment this out to disable #define ZOMBIE_THRESHOLD 1.5 // Lower Voltage Threshold #define ENABLE_UART_OUTPUT // UART output of packets and rssi, used for gateways #define ENABLE_RSSI #ifdef ENABLE_BATTV_SENSOR float sampleBattv() { // External 4:1 Divider return ((float)analogRead(BATTV_PIN)/BATTV_FUDGE); //return ((float)analogRead(BATTV_PIN)); } #endif #endif