Power save (pulse counter) - Light sleep?

honda4life
Posts: 1
Joined: Thu Jan 07, 2016 3:39 am

Power save (pulse counter) - Light sleep?

Postby honda4life » Thu Jan 07, 2016 4:07 am

Hello,

I want to count pulses from a water meter (rain water usage meter, next step is also ultrasonic level meter).
I have working code, completely interrupt driven.
This means, pulses are detected by interrupt, after one second timer consider pulses done > connect, upload data, disconnect.
Again, completely interrupt based so no loops or things that keeps the cpu busy while waiting for an event.

Now, the current consumption is still too high (about 60 mA).
I can't use deep sleep for obvious reasons (too slow wake up and will miss pulses, pin can be either low or high when idle).
So next sleep mode is light sleep.

Can someone provide me a working example or some good advise, because i'm almost there but very stuck.


Kind regards

Who is online

Users browsing this forum: No registered users and 136 guests