Battery Power for LED Pixels and Strips. Created by Phillip Burgess



Similar documents
Radio Control System

RGB LED Strips. Created by lady ada. Last updated on :00:18 PM EST

Odyssey of the Mind Technology Fair. Simple Electronics

Cell Phone Charging Purse

RS232/DB9 An RS232 to TTL Level Converter

ECEN 1400, Introduction to Analog and Digital Electronics

Electronics and Soldering Notes

Joule Thief 3.0 Kit. June 2012, Rev Joule Thief 3.0

Lab 3 - DC Circuits and Ohm s Law

Your Multimeter. The Arduino Uno 10/1/2012. Using Your Arduino, Breadboard and Multimeter. EAS 199A Fall Work in teams of two!

Bill Conkling July 2012

LED Wiring and Connections

Radio Control System

Capacitive Touch Sensor Project:

Hand Crank Generator (9 May 05) Converting a Portable Cordless Drill to a Hand Crank DC Generator

Torfino Enterprises, Inc.

WIRE, TERMINAL AND CONNECTOR REPAIR CONDUCTORS

TEECES DOME LIGHTING SYSTEMS

Tiny Arduino Music Visualizer

Basic soldering is a skill that's easy to learn and not too hard to master. It just takes practice.

Using and Wiring Light Emitting Diodes (LEDs) for Model Railroads

Arduino Lesson 13. DC Motors. Created by Simon Monk

The definite Guide to Power connectors, Charging, and other Power related questions for the #11 Keychain Camera

Arduino Lesson 9. Sensing Light

Getting started with the Super Brain Palm computer interface.

Battery Charger For Nickel Cadmium and Nickel-Metal Hydride Rechargeable Batteries Model PSN Series

GLOLAB Universal Telephone Hold

Total solder points: 205 Difficulty level: beginner advanced UNIVERSAL BATTERY CHARGER / DISCHARGER K7300 ILLUSTRATED ASSEMBLY MANUAL

Bluetooth + USB 16 Servo Controller [RKI-1005 & RKI-1205]

I Click on a link tab to jump to that page. Cover Page

DET Practical Electronics (Intermediate 1)

H ello, I ll be demonstrating

Practical Low Resistance Measurements

TSL2561 Luminosity Sensor

Nucleus Freedom BTE Rechargeable Battery (A25) and Nucleus Freedom BTE Recharger

2.2" TFT Display. Created by Ladyada. Last updated on :15:09 PM EDT

Arduino Lesson 0. Getting Started

Character LCDs. Created by Ladyada. Last updated on :45:29 PM EDT

Wireless Security Camera

I Click on a link tab to jump to that page. Cover Page

Sample. What Electricity Can Do LESSON 2. Overview and Objectives. Background

INSTRUCTION MANUAL PLEASE READ ALL THE INSTRUCTIONS COMPLETELY BEFORE USE AND SAVE THIS MANUAL FOR FUTURE REFERENCE

73 Chevy C10 Ammeter to Volt Gauge Conversion Mark and Michael Olson 2013 Rev 1.0

Assembly and User Guide

Robot Board Sub-System Testing. Abstract. Introduction and Theory. Equipment. Procedures. EE 101 Spring 2006 Date: Lab Section # Lab #6

0.9V Boost Driver PR4403 for White LEDs in Solar Lamps

i ChatterBox! Motorcycle Security

The Traxxas TQ-3 Radio System

MidiStream. UHF Wireless MIDI System Operating Manual

Martin County Amateur Radio Association. Nightfire Kits 1 LED Torch Kit Contents. Description

FAQs. Conserve package. Gateway... 2 Range Extender... 3 Smart Plug... 3 Thermostat... 4 Website... 7 App and Mobile Devices... 7

Building an Electrolysis Copper Cleaner Roy Seifert

Portable Cell Phone Charger: Design and Manufacturing

How To Power A 12 Volt Relay On A Car Or Truck

SPECIFICATIONS. Recommended Battery sizes (Maintenance) AUTOMOTIVE CCA CCA MARINE MCA MCA DEEP CYCLE 17 55Ah 17 80Ah

Phoenixtech Brushless Motor Speed Controller Programming Guide

Model 201 Wiegand Touchpad Reader Installation Guide

You motor now is ready to run. Wires Connection: Installing the Controller: Normal start up:

I Click on a link tab to jump to that page

Cover Page. Factory Radio Other Documents Available For This Vehicle:

Assembly Guide FOR LED NEON FLEX

Using Ohm s Law to Build a Voltage Divider

How long will the energy storage cell last in my watch?

7" Portable HDMI Monitor

Controlling a Dot Matrix LED Display with a Microcontroller

12 Volt 30 Amp Digital Solar Charge Controller

Basic Setup Guide. browndoggadgets.com. 12V Solar Charge Controller with Dual USB. Dull Introduction

How Batteries Work by Marshall Brain

I Click on a link tab to jump to that page. Cover Page

PUSH BUTTON START INSTALLATION MANUAL

12 Volt 30 Amp Digital Solar Charge Controller Installation & Operation Manual

It is strongly recommended to completely read this manual before use! Damage resulting from misuse or modification will void your warranty.

Making a DB to RJ45 adapter.

SANYO ENELOOP, The Ultimate NiMH Rechargeable AA & AAA Batteries.

ILISC515-A Shift Interlock (Manual Lift Door) 2015 Ford Transit, 3.7L and 3.5L

A fridge that takes only 0.1 kwh a day?

Build Your Own Solar Car Teach build learn renewable Energy! Page 1 of 1

INSTALLATION INSTRUCTIONS

Table Of Contents

WHO ANSWERED FIRST? FIND OUT WITH THIS QUIZ BUZZER KIT

TRANSMITTER RECEIVER THESE INSTRUCTIONS APPLY IN THE UK ONLY THESE INSTRUCTIONS ARE TO BE LEFT WITH THE USER OR AT THE APPLIANCE. Digistat Optimiser

Eric Mitchell April 2, 2012 Application Note: Control of a 180 Servo Motor with Arduino UNO Development Board

RADIANT PLASMA 4700 Plasma Spark Generator

Windshield Wiper Motors

GLOLAB Two Wire Stepper Motor Positioner

Installation tutorial for Console Customs Xbox 360 MaxFire FUSION V2 rapid fire Mod Chip.

Handbook. We aim to bequeath a beautiful Earth for our future generations.

Lab E1: Introduction to Circuits

DS1307 Real Time Clock Breakout Board Kit

Handheld portable appliance testers

GT3B Hack Kit Install Instructions Written By Austin Hutchison

HYDRA HV OPERATION MANUAL. 2.0 Making Connections on your HYDRA speed control. Rosin core electrical solder

Lithium Ion Battery Specifications

Soldering is easy. here's how to do it. Andie Nordgren (Comics adaptation) Jeff Keyzer. by: Mitch Altman (soldering wisdom) (Layout and editing)

Power Supplies. Overview. Measuring Electricity. Understanding Electricity. Two Types of Current. Powering the PC

SOLAR POWER - THE NEW WAY TO RV!

Projector90 Xenon Headlight Installation Guide

Objectives 200 CHAPTER 4 RESISTANCE

Transcription:

Battery Power for LED Pixels and Strips Created by Phillip Burgess

Guide Contents Guide Contents Overview About Batteries Diode Fix for Alkaline Batteries Powering the Microcontroller Estimating Running Time Tips for Larger Projects 2 3 5 8 14 15 18 Adafruit Industries http://learn.adafruit.com/battery-power-for-led-pixels-and-strips Page 2 of 18

Overview Here s how to use our addressable LED strips and pixels for portable projects bicycles, costumes and fashion accessories using readily-available AA cells. This is much easier and less expensive to start with than using fancy lithium-polymer batteries and voltage converters. Our 12mm LED pixels and digital RGB flex strips all operate on 5 Volts. When working at one s desk or workbench, this is easily supplied with a 5 volt wall adapter, or you might have a bench power supply. So how do we get our project off the workbench and out into the world? 36mm LED pixels and analog LED flex strips require 12 Volts and are not covered here this tutorial is strictly for 5V LED products. The recommended 5 Volts is a nominal rating we actually have a little bit of wiggle room here. About 10% above or below this figure works fine. You can see this by measuring the output of a wall adapter with a voltmeter: due to manufacturing variance, the actual output could be anywhere in this range. So anything from about 4.5 to 5.5 Volts is safe for these LEDs and 6V is the 'rated absolute maximum'. Any higher and they ll burn Adafruit Industries http://learn.adafruit.com/battery-power-for-led-pixels-and-strips Page 3 of 18

out quickly. Any less and the colors will appear muddy and brown. Adafruit Industries http://learn.adafruit.com/battery-power-for-led-pixels-and-strips Page 4 of 18

About Batteries Different battery types have different output voltages a function of their internal chemistry. Among common household batteries the kinds you might find at the grocery store there are two major types: Rechargeable nickel metal hydride (NiMH) cells output 1.2 Vo lts, as do nickel cadmium (NiCd) cells. The latter have fallen out of favor for a number of reasons, but maybe you still have a few around the house. These cells are more expensive up front, and require a charger. But for frequent use, they can be more economical in the long run. Single-use, disposable alkaline cells output 1.5 Volts. Though not reusable, for occasional use they may be more economical. But the main benefit is their ubiquity replacements can be bought almost anywhere, important when you re away from home and a charger. (We re using approximate numbers here. Actual output will vary by some fraction of a volt depending on the cell s age, state of discharge, temperature and other factors. For most casual projects, these small factors can be ignored for simplicity s sake.) Adafruit Industries http://learn.adafruit.com/battery-power-for-led-pixels-and-strips Page 5 of 18

When cells are wired in series (joined end to end, as when installed in our 4X AA battery holder (http://adafru.it/830)), add up the voltages to determine the total output: 4 NiMH cells = 4.8 Volts total. That s right in our target voltage range, making it perfect for the LED strips! If yo u re using rechargeables, the 4 cell holder can be used directly to power your project. 4 alkaline cells = 6.0 Volts total. Uh oh that's to o much! If connected directly to an LED strip, this will burn it out. Fortunately, there s an easy workaround Adafruit Industries http://learn.adafruit.com/battery-power-for-led-pixels-and-strips Page 6 of 18

Adafruit Industries http://learn.adafruit.com/battery-power-for-led-pixels-and-strips Page 7 of 18

Diode Fix for Alkaline Batteries I don t know if you wanna trust the safety of our country to some, uh silicone diode! General Beringer, WarGames A single 1N4001 diode (http://adafru.it/755) has about a 0.7 Volt drop across its leads. Wired to our 6 Volt battery pack (when using alkaline cells), this yields 5.3 Volts output. That s within our 5V±10% target window, so this simple component addition is all that s needed to use the battery pack with the LED strips and pixels. This same solution can be seen in our Digital Programmable LED Belt Kit (http://adafru.it/332). Diodes have a specific polarity, passing current in only one direction the silver stripe is the + end. So we want to connect the + terminal from the battery pack to the dark end with no stripe. This sequence is only needed if you ll be using alkaline cells. If you know for a FACT that ONLY rechargeables will be used, this part can be skipped. If you re unsure, or will use different cells at different times, add the diode. Cut the red wire of the battery pack short by about an inch. Adafruit Industries http://learn.adafruit.com/battery-power-for-led-pixels-and-strips Page 8 of 18

Strip off about 3/8" insulation from the red wire. Then tin the end of the wire with a bit of solder to keep it from fraying. Clip the end of the diode (the dark end, without a silver stripe) to a similar length, then solder the red wire to this. Adafruit Industries http://learn.adafruit.com/battery-power-for-led-pixels-and-strips Page 9 of 18

Clip the other end of the diode (the side with a silver stripe). Cut off and slide a 2" piece of heat shrink tube onto the red wire. Keep sliding it all the way past the diode. Now solder the positive wire from your LED circuit to the stripe end of the diode. Or you can add a plug/receptacle pair between the two to make them easier to separate and service later on. Adafruit Industries http://learn.adafruit.com/battery-power-for-led-pixels-and-strips Page 10 of 18

Take the piece of heat shrink you slid over the wire before and slide it back over the diode and the solder joints. Shrink the tubing to grip the diode and wires. You can use a heat gun, lighter or the edge of your soldering iron. Adafruit Industries http://learn.adafruit.com/battery-power-for-led-pixels-and-strips Page 11 of 18

Taa-daah! The black wire from the battery holder then connects to the ground wire of the LED circuit (or plug/receptacle, if you ve installed one). This side is much simpler than the diode-equipped wire: Slide a small 1" piece of heat shrink onto the black wire (this image shows a much shorter piece oops go a little longer than this). Adafruit Industries http://learn.adafruit.com/battery-power-for-led-pixels-and-strips Page 12 of 18

Solder together the ends of the wires. The dreaded inline splice! Then slide and shrink as you did before. Done! Adafruit Industries http://learn.adafruit.com/battery-power-for-led-pixels-and-strips Page 13 of 18

Powering the Microcontroller The Arduino (or other 5 Volt microcontroller) can be powered off the same supply as the LED strip, by splitting the power leads (after the diode, if used) and connecting to the Arduino s 5V pin (not Vin) and GND. LED strips aren t picky about which side they receive power from, only data. In a pinch, if the situation really calls for it, you can connect the battery pack (with diode, if used) to the OUT end of the strip, then power the Arduino from the + and connections on the IN end (along with the serial data and clock signals). This isn t recommended though, because voltage drops slightly along the length of the strip, and the Arduino (which is supposed to be running everything) will give out sooner as the batteries approach depletion. Powering the Arduino close to the batteries ensures a healthy voltage, to stay in control for as long as possible. Adafruit Industries http://learn.adafruit.com/battery-power-for-led-pixels-and-strips Page 14 of 18

Estimating Running Time How long will one set of batteries last? This can be fiendishly difficult to predict! Sometimes the only way to be sure is to plug it in with a fresh set of batteries and check the circuit and a clock periodically, until the LEDs fade or start to act erratically. This can be fiendishly difficult to predict! Sometimes the only way to be sure is to plug it in with a fresh set of batteries and check the circuit and a clock periodically, until the LEDs fade or start to act erratically. Why is it so difficult to predict? Digital LEDs seldom run in one fixed state they re usually animated. We can estimate the power use for a steady configuration, but animation is constantly in flux. Also, battery manufacturers often overstate their cells capacity, or express it under extremely idealized circumstances. Digital LEDs seldom run in one fixed state they re usually animated. We can estimate the power use for a steady configuration, but animation is constantly in flux.<br><br>also, battery manufacturers often overstate their cells capacity, or express it under extremely idealized circumstances. Where do I start? Track down a datasheet for your batteries! You might find it on the manufacturer s web site, or a vendor site such as Digi-Key. Easiest is just to use a web search engine. In most battery datasheets you ll see one or more charts like this one: Track down a datasheet for your batteries! You might find it on the manufacturer s web site, or a vendor site such as Digi-Key. Easiest is just to use a web search engine. In most battery datasheets you ll see one or more charts like this one: This chart shows the cell s output voltage over time, at different discharge rates. You can see that the expected service life is not directly proportional to power drain halving the latter more than doubles the former. Again, with a fixed configuration, we could plan for this, but our Adafruit Industries http://learn.adafruit.com/battery-power-for-led-pixels-and-strips Page 15 of 18

LEDs are in motion, which doesn t make things any easier. You ll probably just have to come up with an informed average. Elsewhere in the datasheet (or often printed on the cell itself, in the case of rechargeables), you may find a capacity in mah (milliamp-hours). LED current use is measured in milliamps (ma). As a rule of thumb, we usually use 20 ma as a guideline for a single LED at full brightness, and each color pixel contains three LEDs (one each for red, green and blue), for a total of 60 ma per pixel when displaying white at full brightness. If we leave that pixel on in that state for one hour, we ve used 60 milliamp-hours (60 ma 1 hour = 60 mah). If the stated battery capacity is 2100 mah, we could expect to run that one pixel for about 35 hours continuously before the battery peters out (2100 mah 60 ma = 35 hours). But single pixels are seldom left on at full brightness for hours. Usually there s some combination of brightness levels being mixed, some number of pixels are off entirely, and these states may change many times per second. That s why we just use reaso nable estimates, as in On average, running this code, I think there s about ten pixels on at any given time, and the average color mix represents a brightness level of 75%. Starting with the 60 ma per pixel rule of thumb: 60 ma 0.75 = 45 ma average per pixel. 45 ma 10 pixels = 450 ma. Left to run continuously, with a 2100 mah battery pack, 2100 mah 450 ma = 4.66 hours. Complicating matters further, the LED driver chips themselves use a tiny bit of current, even when the LEDs themselves are off. Each chip needs about 2 ma extra for a strand of 25, it s using about 50 ma just in this idle state. You may want to factor this into your estimation. Oh, and we forgot to mention power use for the microcontroller that s driving all this about 25 ma or so for an Arduino. So we ll add about 75 ma to the above estimate: 2100 mah 525 ma = 4 Adafruit Industries http://learn.adafruit.com/battery-power-for-led-pixels-and-strips Page 16 of 18

hours. If you have a really nice multimeter with an average current recording mode, it will be your new best friend, because it s doing this based on actual readings. But this capability is usually present only in high-end meters. You may also want to add some engineering overhead to your estimate. Remember what was said about battery capacity often being idealized. So we ll de-rate the battery by a bit, let s assume reality is about 80% of the stated capacity: 2100 mah 0.8 = 1680 mah. 1680 mah 525 ma = 3.2 hours. As you can see, there s an awful lot of fudging and speculation in this process. This is why we say it s easiest sometimes just to plug in some batteries and keep an eye on it! Adafruit Industries http://learn.adafruit.com/battery-power-for-led-pixels-and-strips Page 17 of 18

Tips for Larger Projects AA batteries are surprisingly potent little things, and a set of four can comfortably run about a meter of LPD8806 LED strip or one strand of 25 12mm pixels for a couple hours or more. You can go beyond this to create larger projects, with some forethought A fully-lit 1 meter strip can demand close to 2 Amps, but the batteries and diode are only rated for a continuous output of about 1 Amp. You can push beyond this for brief intervals, but it can t be sustained. Design your software so that the LEDs seldom or never exceed this level, using the 60 ma rule of thumb. Voltage diminishes slightly along the length of a strand. And when voltage drops too far, the LEDs will show dim and muddy colors. When using long runs of LEDs, we recommend adding an extra power tap every meter or 25 pixels to reduce this voltage drop. Remember that off pixels still need a tiny bit of current for the driver chips about 50 ma per strand or meter and another 25 ma for the microcontroller. Factor this into your battery calculations and software design. Large setups may be using hundreds of milliamps that are never seen, but continuously pass through that diode with its 1 Amp ceiling. C or D cells have more capacity for extra run time (up to 12,000 mah with top-of-the-line NiMH D cells). We don't stock battery holders for these, but suitable ones can be found at Radio Shack and elsewhere. The 1N4001 diode is still rated for 1 Amp continuous output though so for a larger project with many LEDs simultaneously lit, you might need to swap this out for a beefier diode such as a 1N5400, good for up to 3 Amps. This may get hot, so don t leave it exposed to curious fingers. Adafruit Industries Last Updated: 2012-08-13 11:38:24 PM EDT Page 18 of 18