Powering LilyPad LED Projects

Pages
Contributors: Gella , MikeGrusin
Favorited Favorite 8

How Long Will My Project Run on Battery Power?

To figure out how long your project will run on battery power, you need to know two things: how much current your project uses and the capacity of your battery.

You can measure exactly how much current your project uses by measuring it with a multimeter, but we can also make a pretty accurate guess by looking at the LED datasheets and doing some math.

A typical LilyPad LED uses 20mA of current at full brightness. Multiply that by the number of LEDs you’re using, add 10mA for the LilyPad that’s running everything, and you’ll have an estimate of your average current draw.

Example:
A project with 10 LilyPad LEDs controlled by a LilyPad Arduino

20mA * 10 + 10mA = 210mA

A single LilyPad Pixel Board will use 40mA when it’s set to white (all three internal LEDs fully on). For a worst-case estimate, you could multiply that by the number of pixels in your project.

However, you’ll probably be displaying different colors on your LilyPad Pixel Boards and turning them off entirely at times. The resistance in the threads will also drop the voltage, meaning the LilyPixels will run slightly dimmer and use less current. Usually, it’s safe to halve the above estimate, which gives us 20mA.

For more detailed information on working with LilyPad Pixel Boards, take a look at our LilyPad Pixel Board Hookup Guide.

Battery Capacity

Now, let’s look at the battery. Battery capacity is given in milliamp-hours (mAh). This number tells you how many milli-amps (mA) a full battery can provide for one hour before it’s empty. The e-Textiles Battery that comes with most LilyPad Arduino kits has a 110mAh capacity. For many projects, especially ones with a large number of LEDs, you will probably want to use a higher capacity battery for a longer run time.

To find out how long a battery will last, use this formula:
Hours = Battery mAh / Project mA

Let's use the calculation above to see how long a 110mAh battery will power the project we used in the last example:

0.52 hrs = 110mAh / 210mA

Thus, an e-Textile battery will only power the project for approximately half an hour. Here's an instance where a larger capacity battery would make sense, if the project needs to operate for a long time, such as during an event or showcase. The trade-off is that a higher capacity battery is also physically larger -- make sure to plan accordingly for proper battery storage/attachment on your project to reduce strain on the wires and fabric.

Here are some typical runtimes for various SparkFun batteries and numbers of LilyPad LEDs/LilyPixels:

Number of LEDs1251020
Battery NameBattery mAhHours of Operation
Polymer Lithium Ion Battery - 40mAh 401.30.80.40.20.1
E-Textiles Battery - 110mAh (2C Discharge) 1103.72.21.00.50.3
Coin Cell Battery - 20mm (CR2032) * 2508.35.02.31.2.61
Polymer Lithium Ion Battery - 400mAh 40013.38.03.61.91.0
Polymer Lithium Ion Battery - 850mAh85028.317.07.74.02.1
Polymer Lithium Ion Battery - 1000mAh100033.320.09.14.82.4
Polymer Lithium Ion Battery - 2000mAh200066.740.018.29.54.9
Polymer Lithium Ion Battery - 6Ah6000200.0120.054.528.614.6

* Note: the Coin Cell Battery is non-rechargeable.