Arduino Forum

Using Arduino => Project Guidance => Topic started by: Crazycr1ss on May 26, 2012, 11:55 pm

Title: Controlling RGB Lights
Post by: Crazycr1ss on May 26, 2012, 11:55 pm
So last time i tried to do this i burnt my Arduino. I have a strip of LED RGB lights that i want to use. They take in 9v battery to light up, but i want my Arduino to control the color changes and i dont understand how to do this. Can anybody help please
Title: Re: Controlling RGB Lights
Post by: pYro_65 on May 27, 2012, 02:49 am
Before using the strip, see if you can get hold of a single RGB LED and try and get colours out of that. Search for PWM and LED
Title: Re: Controlling RGB Lights
Post by: Grumpy_Mike on May 27, 2012, 06:47 am
If you explain exactly what you did, we could explain exactly why you burnt your arduino and what to do to avoid it.
Basically you need to switch your strip with a transistor.
Title: Re: Controlling RGB Lights
Post by: Crazycr1ss on May 27, 2012, 08:46 am
I accidentally ran 9v into the Arduino. And it is a strip of RGB leds i can control all with a 9v battery but only the hole thing because it is all connected to each other
Title: Re: Controlling RGB Lights
Post by: Grumpy_Mike on May 27, 2012, 07:20 pm
A motor is rather the same as an LED strip in terms of what you have to do to drive it, so look at the first few circuits on this page:-
http://www.thebox.myzen.co.uk/Workshop/Motors_1.html (http://www.thebox.myzen.co.uk/Workshop/Motors_1.html)
Title: Re: Controlling RGB Lights
Post by: Crazycr1ss on May 28, 2012, 06:45 am
Thanks man, but i want to change the colors so that a variety of colors come up.
Title: Re: Controlling RGB Lights
Post by: Grumpy_Mike on May 28, 2012, 09:39 am
LED light strips come in all sorts of variates. So when you say:-
Quote
I have a strip of LED RGB lights that i want to use

You need to say what sort of strip do you have and provide a link to the data sheet of it, otherwise no one can give you solid advice.

You can get LED strips that need a complex control signal squirting in them allowing you to individually control each LED in the string. Or you can have strings where all the red LEDs are controlled with one signal, the same for green and blue.

If you have this sort of string then you need three of the circuits in that link and then you feed them with PWM signals from the arduino.