LilyPad Basics: Powering Your Project

Pages
Contributors: Gella
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
  • the capacity of your 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 components such as 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

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.