mortenfyhn / coffee-scales

⚖️ Scales for brewing coffee ☕
GNU General Public License v3.0
22 stars 2 forks source link

Minimize power consumption #74

Open mortenfyhn opened 8 months ago

mortenfyhn commented 8 months ago

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.

mortenfyhn commented 8 months ago
mortenfyhn commented 8 months ago

The TM1637 driver has a parameter bool on. I wonder if the power consumption is changed by this, when all segments are off:

https://github.com/avishorp/TM1637/blob/82214be06742bf187fab4f29aaabb64c289eaae0/TM1637Display.h#L49-L51