-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minimize power consumption #74
Comments
|
The TM1637 driver has a parameter |
Maybe switch to an ATtiny1614 eventually |
Some profiling of the active state loop of today's version (235c0ac):
[1]: coffee-scales/firmware/src/main.cpp Line 183 in 235c0ac
|
However by using https://github.com/bremme/arduino-tm1637 instead of https://github.com/avishorp/TM1637 the write to segment duration is much shorter: (I've also added some exp decay smoothing with factor 0.1)
Here's the diff: dbe9ff6 |
So that means we for each 100 ms iteration (HX711 is configured for 10 Hz output), we work for 5-6 ms, and then do nothing (busy loop) for the remainder. Note that the above is all with Next:
|
Anyway come back to this after standalone MCU PCB without arduino board. |
The entire device (measured on battery input at 4.1 V):
The load cell + amplifier (measured on 3.3 V line):
The displays (measured on battery line at 4.1 V):
The push button uses a small amount of power when pressed and nothing when not pressed.
So where is the remaining 1.27 mW going?? An 328P in deep sleep shouldn't use nearly that much.
Standby: 0.5 mA gives around 100 days.
Usage: 50 mA gives around 24 hours.
So if I use it, say, twice a day, 5 min brew + 5 min timeout each time, that's 20 minutes usage per day + 1420 minutes standby. That's 16.7 mAh (usage) + 11.8 mAh (standby) = 28.5 mAh -> 42 days, assuming 1200 mAh battery.
Very back of the envelope.
The text was updated successfully, but these errors were encountered: