rgb led - How to hook up an LED strip to an Arduino - Arduino Stack Exchange

LED Tutorials- RGB Controller and Amplifier Install

rgb led hook up

It doesn't take a lot of rep to get the commenting privilege. Just remember that you will also need to respect the Arduino's current and voltage limits on the digital pins. Wall Washers by Color.

Your Answer

Sign up using Email and Password. Once you've gotten as far as identifying the strip you have and reading some of the basic tutorials and trying out some of the examples you'll either know how to do it or have some much more specific questions to ask. Depends on what they are and how much you don't know: Can you post your code and a schematic? And that setup is mostly correct. As far as fritzing go, I still think it's a good tool, just like any, but just don't use it myself. Keep my login information.

Join them; it only takes a minute: Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top. Here's how my board looks right now: VAlexander 76 1 1 9. Individual Control or all with the same color All Red at the same brightness, or essentially 12 individual leds? For example I want to sync sound with light. So when Track 1 plays all 4 LEDs will glow red, and when Track 2 plays they will all glow purple, If Track 3 and they'll glow blue, etc.

I mentioned 12 resistors, because similar to the image I posted, I want a resistor for each led pin, because I don't want to sacrifice brightness. Just using npn transistors. Duplicate per color channel. CloudyDays In this case, yes, vcc is 5v. And that setup is mostly correct. And you have all four leds off one resistor per color. It might work, but that's not the best option. As far as fritzing go, I still think it's a good tool, just like any, but just don't use it myself.

Passerby thank you so just to clarify, is it best to use a total of 3 resistors overall for the 4 leds, or should I use 12 in this scenario. Also, do I only need 1 transistor or all 3? CloudyDays while 3 resistors work, it does not work well.

Otherwise, the red, blue, and green channels would all be the same, so you would be controlling them like a single led white-ish. As for the transistor, the flat part where the writing is, is normally the "front".

I don't think these are individually addressable LEDs. More likely the RGB lines are grounds. You could probably control brightness with PWM pulse width modulation, turning them on and off quickly. You'll need to do more research on this to get the details right, but I think you could use a transistor to do the switching to protect your Arduino for the 12 V and from the current necessary to drive the LEDs. You would connect an Arduino pin to the base of the transistor to control it.

You'd need to select a transistor that can handle the current of all of the LEDs of that color. I'd start off by cutting off a strip of the LEDs to experiment with. Use the 12V supply that came with them and see what happens when you connect 12 V to the 12V line and ground one of the color lines. It doesn't look like there is a resistor to limit current, so you should add one to hold the current down. I think the LEDs would be wired in parallel, so you'd be looking at needing to supply 6 times the individual LED current.

Once you know that the strip works the way you think it does, try adding a transistor to control each color. Then when you've got that working, hook up to the Arduino. Just remember that you will also need to respect the Arduino's current and voltage limits on the digital pins. By posting your answer, you agree to the privacy policy and terms of service. Questions Tags Users Badges Unanswered.

Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino.

Imsges: rgb led hook up

rgb led hook up

Where did you get that schematic image in your post? Post as a guest Name. Post as a guest Name.

rgb led hook up

As for the transistor, the flat part where the writing is, is normally the "front".

rgb led hook up

Also, do Rgb led hook up only need 1 transistor or all 3? The Developer Survey Results are Live. Sign up using Facebook. Incorrect wiring or over driving the controller can result in the product simply not working, flickering lights, and can ultimately damage the product. Possibly leed the arduino port. VAlexander 76 1 1 9.