Ice Tube Clock Extended Battery Hack

Tick Tock Clock Kits

Moderators: adafruit_support_bill, adafruit

Ice Tube Clock Extended Battery Hack

Postby jarchie » Thu Jan 31, 2013 6:12 pm

I replaced a dead battery in my Ice Tube Clock earlier this week and thought it might be nice to increase battery life. On my multimeter, the current draw of an unmodified Ice Tube Clock while sleeping was 47 uA with 3.3 volt power supply. That is reasonably efficient, but with the picoPower features of Atmel processors, I was able to make the clock a bit more efficient. With this hack, one battery should last for the lifetime of the clock. :-)

(1) From the schematic, R1 can be attached directly to the +5v regulator output, moving the attachment before D2. In that configuration, D2 prevents the divider from drawing current while the clock is sleeping. To make that change, I cut the trace between R1 and Vcc and soldered the red wire between the voltage regulator and R1. (The yellow wire was added later.) Sleep current fell to 33 uA.

Image
Image


(2) After replacing the ATmega168 with an ATmega328p flashed with my xmas-icetube firmware, sleep current fell to 29 uA.

(3) Without external power, the output of the voltage regulator should fall to ground level; with external power, the output of the regulator should rise to Vcc. Thus, restoration of power may be monitored digitally by connecting the output of the voltage regulator to PC1 on the ATmega (the yellow wire pictured above). A complimentary software modification allowed the firmware to disable the analog comparator when PC1 is low. Sleep current fell to 25 uA.

(4) Brown-out detection (BOD) is definitely a nice feature, but a user should know to replace the battery if the clock behaves strangely after sleeping or if the clock fails to keep time while sleeping. So BOD can be disabled. After disabling BOD, sleep current fell to 6 uA. (Disabling both the analog comparator and BOD allows the internal voltage reference to power down.)

(5) During sleep, the clock does little more than wake once per second to increment the current time. Since a software lockup is unlikely, the watchdog timer is unnecessary. After disabling the watchdog during sleep, sleep current fell to 1.7 uA.

A typical CR1220 cell contains about 40 mAh worth of power, and at 1.7 uA, a single coin cell can power the clock for around two and a half years!

The software portion of this hack is available from http://www.github.com/johngarchie/xmas-icetube/ , and may be enabled by uncommenting the PICO_POWER macro definition in config.h .
jarchie
 
Posts: 79
Joined: Sun Jun 24, 2012 1:16 pm
Location: Santa Cruz, California, United States

Re: Ice Tube Clock Extended Battery Hack

Postby adafruit_support_rick » Fri Feb 01, 2013 9:43 am

Nice work! Did you discover all these tricks just by doing this, or did you learn them elsewhere?
User avatar
adafruit_support_rick
 
Posts: 2906
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY

Re: Ice Tube Clock Extended Battery Hack

Postby jarchie » Fri Feb 01, 2013 4:29 pm

Steps (1), (2), and (3) seem specific to this project, and I have not seen them elsewhere. Steps (4) and (5) turn off unneeded features, and I've seen that strategy used several places.

Some time ago, I read an excellent tutorial at sparkfun as well as a Atmel picoPower tutorial.

"Adventures in Low Power Land"
http://www.sparkfun.com/tutorials/309

"AVR4013: picoPower Basics"
http://www.atmel.com/devices/atmega328p ... =documents
jarchie
 
Posts: 79
Joined: Sun Jun 24, 2012 1:16 pm
Location: Santa Cruz, California, United States


Return to Clocks

Who is online

Users browsing this forum: No registered users and 2 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [108]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[31]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[34]
LCDs & Displays[48]
Components & Parts[70]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[111]
 
Wireless[14]
Cables[62]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]