Measuring AA Battery Life for LED Pixel Halloween Costume

November 12, 2012
rhb

As I mentioned in the LED Ring construction post, I wanted to make sure 4 AA batteries would power my 25 RGB LEDs through a good 3+ hours of trick-or-treating. The Adafruit doc provides a good battery life estimate, but I figured I might as well measure it.

Fortunately, I had a myDAQ handy, and hooked it up to measure battery current and voltage as shown in the schematic.

Note: the power consumed by the 1N4001 diode is not measured with this setup.

I then wrote a quick LabVIEW VI to measure & log the battery voltage and current every second.  This way I could see the voltage and current drop as the batteries discharged.

With some fresh AA’s, I powered up the LEDs and ran the ‘RainbowCycle’ pattern from the Adafruit WS2801 library, shown below (all 25 LEDs are on driving different colors, this should be a good worst-case current draw mode).

The myDAQ logged data to a CSV file for about 8 hours, you can see the resulting current, voltage and power vs time (click for a larger version).

The graph shows about 5 hours of LED power before the current drops off, plenty for my application.  In total the LEDs consumed about 1900 mAh during the test, which is in line with the original estimate.

Creative Commons License
This work, unless otherwise expressly stated, is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. Terms and conditions beyond the scope of this license may be available at rhb.me.


  1. […] out how Ryan Brown tests his power draw for his Halloween costume to make sure he has the battery life required: As I […]

  2. Dustyn says:

    Nice! Can you post your LabVIEW code? Thanks!!

  3. rhb says:

    Sure, it’s a couple of example VIs hacked together. I’ll cleanup and post.

Leave a Reply

Measuring AA Battery Life for LED Pixel Halloween Costume Measuring AA Battery Life for LED Pixel Halloween Costume Measuring AA Battery Life for LED Pixel Halloween Costume Measuring AA Battery Life for LED Pixel Halloween Costume
loading..