ESP8266 Developer Zone The Official ESP8266 Forum 2016-01-07T04:07:38+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=1596 2016-01-07T04:07:38+08:00 2016-01-07T04:07:38+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1596&p=5284#p5284 <![CDATA[Power save (pulse counter) - Light sleep?]]>
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

Statistics: Posted by honda4life — Thu Jan 07, 2016 4:07 am


]]>