I am running an autonomo with the LoRaBee. I can’t get it below 4mA.
Here’s what I do:
loop:
do something; measure; transmit
Send LoraBeeToSleep
RTC.standbyMode() (for about 10 minutes)
I am wondering whether there is another interrupt (system millis?) running that eats the power?
I am using these IOs : VCC_BEE (to enable the lora module), VCC_SW (to switch on the grove rail for measurements and two digital inputs for measuring power consumption via a coulomb counter. I know that IO takes power but 4mA seems a bit much.
I just ran it without the temperature sensor and all related code: 4mA.
I then measured just the Autonomo with an ampmeter alone: ~12mA during boot and 120 uA during sleep. After 20 seconds after sleep - it jumps to 3mA.
When reconnecting the Coulomb counter, interesting things happen:
When going to sleep, the system drops to 1,12 mA (so the Coulomb Counter adds 1mA, boo!). However after about 20 seconds, the system jumps to 4mA again (and stays there).
So the CC adds 1mA which sucks but is not my main problem.
I will now look towards the bee.
void Sodaq_RN2483::sleep(uint16_t msec) (which is my own code )
I calculate the sleep at 10 minutes, 10100060 -500 = 699.500.
unit16_t max = 64k, with overflow it yields 37356.
RN2483 sleep max is 4294967296 = unit32_t max.
will re-test and issue a pull request later the day.