klui-freiberg / PowerEver

Simply turn your power bank into a cool power supply
Other
12 stars 0 forks source link

Deep sleep #1

Open kadamski opened 4 years ago

kadamski commented 4 years ago

I don't know Bascom to much but looking at the code it seems like you don't use deep sleep and let the AVR core running all the time. With 5V supply, 1.2Mhz clock, this would mean power consumption ~1mA while waiting for an interrupt. If you use deep_sleep and let watchdog (or pin change interrupt) wake the CPU up, this can be reduce to 5uA. See the https://avrhelp.mcselec.com/index.html?config_powermode.htm

If you really want to minimize self drawn current, that's the way to go :)

klui-freiberg commented 4 years ago

Thank you for looking into the code and pointing out the way to improve it. I will experiment with it to see how it behaves and hope the added code still fit in this 1 KB MCU ;-). Thank you again for your comment!

klui-freiberg commented 4 years ago

@kadamski If you have free time and have any questions about PowerEver, please join the PowerEver Ask Me Anything Channel hosted by Crowd Supply AMA Channel on this Wednesday at 11:00 PDT time, thank you.

tomtastic commented 11 months ago

Thank you for looking into the code and pointing out the way to improve it. I will experiment with it to see how it behaves and hope the added code still fit in this 1 KB MCU ;-). Thank you again for your comment!

Did you ever manage to experiment with this ?