Intro to LED Strips

442K2.4K96

Intro: Intro to LED Strips

LED strips are a very fun and effective way to give lots of glow and color to a project. In this Instructable you will learn about the basic kinds of strips and how to hook them up to the Intel Edison with Arduino breakout board. These circuits include hardware needed for external power and how to set up a button and potentiometer to blink and fade using Intel's special flavor of Eclipse IDE and their LPD8806 library.

STEP 1: Analog

There are two basic kinds of LED strips, analog and digital. They are controlled differently, so it's good to know which one you need for your project.

Analog strips come in mono (one color) or RGB (full color spectrum). They are sold on reels and can be cut into small segments. The segments are marked by metal contact pads and sometimes have a scissors icon screen printed right on them (love those!). The strips shown here are segmented in 5cm and 10cm lengths, each segment containing 3 LEDs. Usually strips use 30, 32, 60 or 120 LEDs per meter, which will change price and power consumption.

For each segment the LEDs are wired in series, which means the operating voltages are added up, giving the higher voltage needed. All of the segments are wired in parallel, so they get all get the same amount of voltage all the way down the strip, but the current draw adds up depending on the length of the strip. For more information on how to power your strip, skip to step 3.


Behavior

The LEDs that fade and blink together, stay together. All the LEDs on the strip will act as one, they are non-addressable. One way to tell by sight is that they do not have any driver chips that you can see on the strip (that would be digital!).

STEP 2: Digital

Digital strips come with RGB LEDs and have a driver chip on the strip that control the LEDs individually. These are also called individually addressable or just addressable.

Shown here is a strip using the LPD8806 driver. Other popular ones you will see are using the WS2801 driver and strips using WS2812 RGB LEDs, which have the drivers build right in the LED package! They too come segmented, where they can be cut down to bite-size lengths.

These strips take 5 volts, so they can run straight off a microcontroller. They will power up when attached to 3.3 volts, just not as bright.

You will want to use a microcontroller with these to program cool patterns and make them reactive to sensors and switches. Most of the work is in the software, the hardware set up is simple and will be gone over in a later step. Digital strips get their information from one data-in pin or two data-in and clock-in pins, dependent of what strip is used. Make sure to check the datasheet for the pinout diagram, voltage ratings and other useful information.


Behavior

The neat thing about addressable strips is that each LED can do it's own thing. It can be any color it wants at any time. The makes blinking patterns and color swirls possible, and so much more.

STEP 3: Power

To keep your LED strip project glowing brightly with the appropriate power, you will need to know how much current your project draws and it's operating voltage. Once you know those two things, you can choose a power supply. Keep in mind that current draw can be a tricky thing to figure out. Here we will take information from the datasheet and plug it into some simple equations to get the max current needed, since the information from the datasheet are if the LED is on at full brightness.

To calculate the needed power supply, we will need the following info:

  • length of strip
  • number of LEDS per meter
  • current draw per LED OR power consumption per LED
  • operating voltage

LED strips are commonly powered on 5V, 12V and 24V. The number of LEDs per meter (lpm) factors in the power calculation as well. Strips can be 30, 32, 60, 144 or more per meter.

Using Current Draw Per LED

As an example let's look at the white strip's datasheet. We can see the operating voltage is 12V, which should also be screen printed on the strip itself at the cut line of each segment. What we are looking for is the current draw measured in milliamps (mA). It tells us that each segment made up of 3 LEDs draws 60 mA. To make the calculations easier, the current draw can be divided by 3 totaling 20mA per LED. If one meter is being used with 60 LEDs per meter we have this information:

  • length of strip = 1 meter
  • number of LEDS per meter = 60
  • current draw per LED = 20 mA

Equation:

(Length of LED Strip x LEDs per Metre x LED current draw)

Plug in info:

1 (meter) x 60 (lpm) x 20 mA = 1,200 mA

1,200 mA / 1,000 = 1.2 amps.

Using Power Consumption Per LED

Another way of calculating current draw is using the power consumption per LED. The power consumption can also be used to find current draw if the power consumption, measured in watts per LED is known instead. The datasheet tells us .72 watts for 3 LEDs. First divide .72/3 = .24 watts per led

  • length of strip = 1 meter
  • number of LEDS per meter = 60
  • power consumption per LED = .24 watts
  • operating voltage = 12V

Equation:

(Length of LED Strip x LEDs per Meter x LED Power) / 12

Plug in info:

(1 x 60 x .24) / 12 = 1.2

We now know that we want to use a a power supply that can provide 1.2 amps and 12 volts. Keep in mind that the current draw per LED is at full brightness. If the strips are dimmed through a PWM pin on the Edison, it will take less current. Going by the max amount is still a good guide to know if you have enough to begin with.


Battery Life

Battery life is based on current draw of, again it will fluctuate, especially with the digital RGB strips when patterns and colors are dancing along it. Current draw will fluctuate dependent on the color and brightness the LED is outputting. The way to accurately get the current draw is to hook it up to a multimeter and watch the amps change per pattern cycle, take note and do some calculations.

Another way to find out battery life with a dynamic project, hook up a battery at full strength and see how long it takes to drain.

This aside a general calculation can be made by looking at a batteries mAh rating. Let's stick with the white strip, 6 AA batteries are being used to power the example circuit. AAs roughly have 1500mAh, the 8 batteries are in series so the current stays the same at 1.5 amps. Divide this with the current draw of our project, which is 1.2.

1500 mah/1.2 amps = 1.25 hours of full brightness

STEP 4: Cutting

When a specific length is needed LED strips can be easily shorted or joined using wire. Cut where marked with a line with contact pads on both side of it.

Waterproofed Strips

If the strip is waterproof, it will be coated in clear silicon. Before wires can be soldered to the pads, the coating needs to removed. Using a sharp blade carefully cut through the coating, go slowly so the blade does not cut the circuit board. Once it's cut the coating can be peeled off easily.

Tin the pads with some solder and do the same to a stripped piece of wire. Cut a piece a heat shrink tubing and slip it over the strip before attaching the wires. Lay the wire on top of the pad, come in with the soldering iron and heat the wire and pad up until the solder flow joining the two.

LPD8806

On the LPD8806 the pins are labeled DI and CI for Data and Clock In, this the side wire should be soldered to. Data Out (DO) and Clock Out (CO) can be used to daisy chain strips togeth

STEP 5: Wiring - 12 Volt Analog Strip

Requiring 12V, these strips need more than what the Intel Edison pins output, which is 1.8V.

This can be dealt with by using a high power NPN or N-Channel MOSFET, such as an IRF510 used here. This MOSFET is rated for 5.6 Amps which is enough to power about 9 meters with 30 LEDs per meter. The MOSFET acts as a switch which that is opened to all the higher voltage flow to the strip. For more details on how a MOSFET works check out bildr's tutorial. It allows control signals to be sent from the PWM pins on the Edison and for it to be turned on or fade when the Edison tell's it to.

Let's build the basic circuit needed to control it with a microcontroller. An RGB strip will be used which needs one MOSFET for each color channel, making three total. For mono strips only one MOSFET in needed, so just remove two. An external power source is needed, 8 AAs work well. If using another kind of transistor check out the datasheet for the pin out diagram. Findchips.com is a great source for looking up components and datasheets.


List of Materials

(3) MOSFETs IRF510

(3) 10K Ohm resistor

(1) 12V power source

(1) Meter RGB LED strip OR Mono LED strip

(1) Edison with mini or Arduino breakout board

(1) Breadboard

(some) Jumper wires

STEP 6: Wiring - 5 Volt Digital Strip

No need for a transistor since this strip is powered with 5 volts. The Arduino shield has a 5V output pin that you can connect straight to the strip. If using the mini breakout board you can power it from the 3.3V at J18-3 for slightly dimmer LEDs or use an external power source like a 5V wall adapter power supply.


List of Materials

(1) meter LPD8806 strip

(1) Edison with mini or Arduino breakout board

(1) Breadboard

(some) Jumper wires

Make these connections:

strip 5V --> Edison 5v

CI --> Pin 13 on Arduino BB / J17-11 on mini

DI --> Pin 11 on Arduino BB / J17-12 on mini

strip GND --> Edison ground

STEP 7: Add Inputs

Now that you know how to connect the strips to the microcontroller, let's add some inputs!

In order to get analog input using the Edison, the Arduino shield needs to be used since it supports ADC (analog to digital conversion). The mini breakout board needs external hardware in order to support analog in pins.

Below are the material lists with demo code based on what strip you want to work with. Feel free to hook up two or all three strips!


LPD8806 Digital - Push button 1 for a color chasing effect, push button 2 to populate the strip with 3 different colors. Use the materials needed to hook up this 5V strip plus:

(2) switches

(2) 10K Ohm resistors


Analog Mono - Fade on and off with a push of a button. Use the materials needed to hook a 12V strip plus:

(1) switch

(1) 10K ohm resistors


Analog RGB - Use 3 potentiometers to control the brightness of each color channel. This makes a simple color mixer, allowing you to control what color the strip is by tuning the channels.

(1) meter analog RGB strip

(3) MOSFETs

(3) 10K Ohm resistors

(3) potentiometers

(1) 8 AA battery holder

(8) AA batteries

If running both 12V mono and analog strips they can both be powered off of one supply.


STEP 8: Uploading to Edison

The Edison can be programmed via the Eclipse and Arduino IDE. Languages that can be used are C/C++, Arduino language and Javascript.
Intel has extensive documentation on their website for the Edison and Galileo. Below are listed some of the main steps to be aware of when preparing to upload a program to the Edison board with links to relevant pages. For more details and documentation, begin at Intel’s Get Started page. There you will learn how to assemble hardware, download software and find demos and links providing example code.


Arduino

Get your Edison flashed with the latest firmware and learn how to connect to it through the USB serial port. To upload Eclipse you will also need to connect it to a WiFi network, with Arduino it’s not necessary.

Download Intel’s Arduino IDE , when you open it you will see the Intel Edison and Galileo boards under the Tools menu. An understanding of Arduino is recommended before getting started with Intel’s version. Recommended reading:

Getting Started with Arduino

Follow the steps to upload your first blink sketch.


Eclipse

To upload a program via Eclipse, the Edison board needs to be connected to a network and your computer needs to be connected to the same network. After flashing the latest firmware and connecting to the USB serial port, visit Intel's Get Started page and choose how you want to get your board online.

If programming in C/C++, Intel provides example code on their Github MRAA and UPM library pages.

Follow the steps on Intel’s website for how to install the Eclipse IDE and how to create a new project, which shows how to upload the blink program via Eclipse.

If you get stuck, the best place for help with troubleshooting is Intel’s forum.

STEP 9: Going Further

73 Comments

I have those cheap hexagon wall tiles that can be connect up to ten tiles on one usb power supply and they have cheap app Wi-Fi or Bluetooth no Alexa or google I’m wondering can they be controlled by other Wi-Fi controller I have 40 of these panels I would like to use a Govee controller or something that could be synced with Govee any ideas thanks
Blasted~!
Okay, I thought I purchased 2-wire 12f LED strips and instead it looks like I might have digital with FIVE WIRES (and no directions because I bought them off of aliexpress).
Can you tell me if there is a way to just use the white light and wired 12v directly?
This is for an off-grid application and all we want is light (not a science of colors and gizmos).

Thanks for any assistance you might avail.
My email is kennyhendrick@protonmail.com
Hi i own a photo booth but the remote that controls the lights is malfunctioned. I would like to either get a different remote with the frequency on my led strip or replace the strip entirely with a new different one. The controller says its 1500 watts and they are pretty bright. What do you suggest?
May I know DC12v how to change into 110V or 120V? Does it must with a power supply?
MISLEADING INFORMATION ABOVE!

under "Using Current Draw Per LED"

It tells us that each segment made up of 3 LEDs draws 60 mA.To make the calculations easier, the current draw is divided by 3 totaling 20mA per LED, which is false because the leds are wired in series so the current draw is 60mA at each LED. the equation will give you the wrong current draw information.

I have pasted the topic I'm talking below.

I have attached a link so people can see how a LED is wired internally in a strip.
https://www.waveformlighting.com/pcb-designs/led-strip-light-schematic-and-voltage-information
I hope this helps,
Elan

TOPIC:
Using Current Draw Per LED
As an example let's look at the white strip's datasheet. We can see the operating voltage is 12V, which should also be screen printed on the strip itself at the cut line of each segment. What we are looking for is the current draw measured in milliamps (mA). It tells us that each segment made up of 3 LEDs draws 60 mA. To make the calculations easier, the current draw can be divided by 3 totaling 20mA per LED. If one meter is being used with 60 LEDs per meter we have this information:
  • length of strip = 1 meter
  • number of LEDS per meter = 60
  • current draw per LED = 20 mA
Equation:
(Length of LED Strip x LEDs per Metre x LED current draw)
Plug in info:
1 (meter) x 60 (lpm) x 20 mA = 1,200 mA
1,200 mA / 1,000 = 1.2 amps.
Hi Elan, you're right. But eventually, the current required per metre would be the same.
If one meter is being used with 60 LEDs per meter we have this information:
  • length of strip = 1 meter
  • number of LEDS per meter = 60
  • number of LED triplet per meter: 60/3 = 20
  • current draw per LED triplet = 60 mA
Equation:
(Length of LED Strip x LED triplets per Metre x LED current draw per triplet)
Plug in info:
1 (meter) x 20 x 60 mA = 1,200 mA
1,200 mA / 1,000 = 1.2 amps.

Please correct me if I'm wrong.
Hi,
I am a developer of C # and C ++
Recently, I became interested in doing IoT projects.
I Want To Create Software Like LED Build.
I wrote the wiring section of the software But I couldn't make the effects and animations.
Now I have a few questions:
1- Why should values be binary arrays?
2- What are the differences between programming for different LEDs?
(Tm1803 (Pixel),Tm1812 (3 chip),32 Branch(32Pixel),TM1804-bct1812(Speed),Ws2813)
2- How can create animation Effect for Led Tiled Matrix (8*8) that according to the animation File such as AVI , GIF ,SWF , etc able to
create a full color RGB File To display For Led Board
and can get Export File?

Thanks.
Really great. Also one more question. 12v for a strip, that means 12v/3= 4v each?. So if I am using 10 LED, 10*4=40v is needed?

how i glow the 2 led lights using analog inputs.

for example if 0v-3v the red light will glow and after 4v the green light will glow

i need circuit diagram

thank you

10,000 Ohm resistor?

So I had a question regarding the led strips and how you connect it with the arduino's. So Im looking at using a IP-65 rated 3.5 Watt Led strip and to connect it to the arduino, I need a transistor. My main question regarding that was, what transistors do I use, or which is the best transistor to use for this project since it's going to be a long term thing.

Thank you

nice instructable,

1 thing i dont get; i got 20meters ws2811 led strip 12v 60lpm, and when i calculate i come up with a needed powersupply of 12v 72 amps!!!?

as far i understood; each 5050led consumes 60milli-amp; 20milli-amp per color, so full bright white 60 milli-amps.

so when i sum up: 60 lpm * 60 milli-amps = 3600 milli-amps is 3,6 amp per meter

so for 20 meter: 3,6 amp * 20 meter = 72 amps @ 12vdc = 864 watts

am i right or wrong?

linkt to bought led strip per 5 meters * 4:

https://nl.aliexpress.com/item/2M-5M-WS2811-DC12V-...

thanks in advance, chris

I guess you are right. 1,200 RGB LEDs do consume some serious power.

This is a good starting point for newbies like myself.

However, I have a particular requirement for which I need advice/ help on-

I'm trying to use these LED strips (mounted on a flat board) as a display output to a GoPro/ any video recording device. How does one do so, and where do you begin?

Any help is appreciated. Thanks.

Hi there! What do you mean exactly by display output? Are you building a screen that will output live feed that a GoPro is simultaneously recording?

Yes, that's exactly what I mean.

Ideally, I'd like to use a flexible LED board, to specifically suit my application, but I'd even start with a rigid board, just to get started.

Would you suggest using an LED display or an OLED type display?

Apologies for the million (and quite silly) questions, but I'm quite new in this area.

Cheers.

How do I just install a 5 m led strip. It is just the strip. I have got a 12V adaptor salvaged from some other device. What else do I need? I want to put the strip on a piece of wood and have wires and soldering. I do not want the strip to burn out and read about constant current and voltage drop and such things really scare me. Should I be concerned? What is needed for a long life ambient light in the living room? I do not want to put the strip on max light as I heard it will burn and use a lot of electricity. I want slightly lower light that uses less and lasts longtime. I need it cheap and am recoursefull but need an instructable.


Strip
LED Chip Model:SMD3528Certification:CCCVoltage: 12VPower Source: DCPower Consumption (W/m):4W/MStrip type:SMDLEDs Number/M: 60/m

You strip likely comes with resistors soldered directly onto the strip, they are rectangular parts with two terminals and a number on them. They regulate the current so you don't have to worry and can connect it safely to to the power supply!

Yes there is one black square thing after every three leds on the strip. Thanks.

More Comments