![]() The 3 other legs correspond to red, blue, and green colors. ![]() If it’s an anode, plug it to 5V on the Arduino. So, if it’s a cathode, plug this to the ground (GND). If no instructions, you can first try the “cathode mode” and see if it works. How to find out? Simply check the manual or description of what you’ve bought. Depending on your RGB LED, this can be a cathode or an anode. Make a common ground by connecting a GND pin of the Arduino, to the “minus” line of the breadboard.You are learning how to use Arduino to build your own projects?Ĭheck out Arduino For Beginners and learn step by step. Arduino board – I use Arduino Uno, but any board where you have at least 3 PWM compatible digital pins, and one analog pin, is fine.Going further with the potentiometer and RGB LEDĪrduino circuit with RGB LED and potentiometer.Select a different color for each value.Control the RGB LED with potentiometer – analogWrite() – 1536 colors.Power on the RGB LED depending on the potentiometer’s value.Control the RGB LED with the potentiometer – digitalWrite() – 7 colors.Arduino circuit with RGB LED and potentiometer.Anyway, assuming you have a proper controller for the RGB LED, it looks like this device was designed for architectural/landscape lighting and so the colors would only mix properly if projected 4'-6' out or even further. Just the difference between the forward voltages and driving currents mixed in with different sensitivity of human eye to different colors can drive you crazy. Don't know if your project allows for a 6"-8" rod attached vertically to the LED but it it does, it may actually help.Īlso, a quick note about "simple 3W, RGB LED" - there's nothing really simple about any 3W LED, let alone RGB. But I would say that a rather considerable length may be required to properly mix the colors. You may try to "condition" the light as it were by passing the output of all three emitters through a light guide such as a transparent acrylic rod (sold online very cheaply). Here is one example of an optic designed for a specific RGB LED: There isn't really any "standard 3W RGB LED" when it comes to optics. For the best result, you need a lens that is designed specifically for the LED you are using. There are a number of color-mixing LED lenses available from various manufacturers. You are bound to lose some lumens when you diffuse the light. The other is to diffuse the light, thereby mixing the colors. You can't get them any closer together than that. It sounds like you have a multi-die emitter with all 3 LEDs on the same chip. One is to place the emitters as close together as possible. There are two ways to minimize this effect. In effect, the lens will take the 3 colors and project "an image of them" up on the wall. In an RGB LED, all 3 colors can't be dead center at the same time. Normal paper could be used, but of course that will dim the lights way too much.Ī clear LED TIR lens will preserve the angular properties of the emitter through the optical system. I got good results with covering them with a little butter paper. Maybe a pic showing your setup would give us a clearer idea. I know you used lenses but those worked for me, and I don't know why they didn't work for you. If you are really careful you can just use sandpaper to make the outer surface diffused, but I would not advise that, since I damaged some LEDs by doing that, before I got good results.Īnother way is to use something to diffuse the light. I really don't know why someone would want a clear lens one. (But take all of this advice with a grain of salt since I worked on simple 5mm low power LEDs, as the size and power goes up things change.)Ĭhange the LEDs and get diffused lens ones. ![]() Now there are two options which worked for me. More precisely, the cause is that there are 3 physically different LEDs inside the package. We bought some clear lens leds but we were getting this same problem. I had this problem when I was making a propeller display. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |