travisgoodspeed / goodwatch

Replacement board for Casio Calculator Watches using the CC430F6147

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EnergyTrace Records

travisgoodspeed opened this issue · comments

The fine folks behind the Pluto Watch wrote a nice little EnergyTrace tool for Linux, that would allow us to record the power usage of the GoodWatch while running various applications, to measure and compare their current consumption. Close this issue when nice tooling exists for running energy traces, as well as documentation of expected current consumption in various situations.

https://github.com/carrotIndustries/energytrace-util

Self assigning. Hardware has been ordered.

After my order being lost by the my.ti website, it finally arrived today.

energytrace

Minimal tracing of power consumption now works. The initial commit requires my fork of energytrace-util until carrotIndustries/energytrace-util#3 is merged.

Documentation is in the Wiki, and it looks like we get just under two years of battery life on a clean board if you have the self restraint not to use the radio.

https://github.com/travisgoodspeed/goodwatch/wiki/EnergyTrace

et 60 > energytrace.txt #This will take a minute.
gnuplot energytrace.gnuplot
gnuplot energytrace-txt.gnuplot

                                                                               
                               GoodWatch Current Consumption                   
                                                                               
         1e-05 +-----------------------------------------------------------+   
               |           +           +           +           +           |   
               |                                 "energytrace.txt" ******* |   
         8e-06 |-+                                                       +-|   
               |      **********                                           |   
               |      *        *                                           |   
               |*******        *                         **********       *|   
         6e-06 |-+             *                **********        *      +*|   
               |               *        *********                 *       *|   
               |               **********                         *       *|   
         4e-06 |-+                                                *********|   
               |                                                           |   
               |                                                           |   
               |                                                           |   
         2e-06 |-+                                                       +-|   
               |                                                           |   
               |           +           +           +           +           |   
             0 +-----------------------------------------------------------+   
               20          21          22          23          24          25  
                                          Seconds                              
                                                                               
../bin/batterylife.py <energytrace.txt
5.825243 µA average consumption
23.500366 months of CR2016 battery life.
nuc16%