Thanks EVB;
- Yes; Last test with a bare pro-mini 3.3v
- I did that...
// Enable and select radio type attached
#define MY_RADIO_RF24
#include <MySensors.h>
uint32_t SLEEP_TIME = 900000; // sleep time between reads (in seconds * 1000 )
int oldBatteryPcnt = 0;
#define FULL_BATTERY 3 // 3V for 2xAA alkaline. Adjust if you use a different battery setup.
void setup()
{
}
void presentation()
{
// Send the sketch version information to the gateway and Controller
sendSketchInfo("Battery Meter", "1.0");
}
void loop()
{
// // get the battery Voltage
// long batteryMillivolts = hwCPUVoltage();
// int batteryPcnt = batteryMillivolts / FULL_BATTERY / 1000.0 * 100 + 0.5;
//
// if (oldBatteryPcnt != batteryPcnt) {
// sendBatteryLevel(batteryPcnt);
// oldBatteryPcnt = batteryPcnt;
// }
sleep(SLEEP_TIME);
}
Again : 4.2mA (no sleep )
So sad !