Hi all,
I am powering the Moteino Trace Antena product with the 7 farad cap much like the original post by Felix.
The application is for a remote irrigation unit which powers up with the sun (or grow light) and works with the light energy using a photo cell.
When the plants go to sleep, so does the controller, but I want to save enough power so I can send a couple of readings at night (future).
The logic I tried is to power down everything, including the brown-out circuitry until the voltage drops close to the brownout.
If it goes too low, then I just shut off everything except the brown-out to make sure the controller will boot when the lights come back on.
The problem is that if the capacitor actually discharges completely, the Moteino will not restart. But if the voltage never drops below the brownout, the power down seems to be working.
The code is something like this:
if(photoCell < LIGHTS_OFF){
if(lowPowerMode){
/* if the voltage is too low we need to keep BOD and let the circuitry do it's job */
if(ourVoltage<CPU_CUTOFF){
LowPower.powerDown(SLEEP_8S, ADC_OFF, BOD_ON);
}
else{
/* else try to save as much power by disabling the BOD */
LowPower.powerDown(SLEEP_8S, ADC_OFF, BOD_OFF);
}
/* FUTURE: send a few reports at night */
return;
}
}
What am I doing wrong? When the capacitor is empty, the V goes up slowly but I thought the brown-out circuitry can handle this and wait until the voltage is high enough to do a RESET. But apparently it's not working for me, not sure why :-(
TIA!
Alex