Note: Be sure to use PWM output pins from your board! Not all digital inputs/outputs support PWM output. } // color swirl! connect an RGB LED to the PWM pins as indicated #define FADESPEED 5 // make this higher to slow down
Adafruit trinket 5v wiring for lights code#
Still, you do need to have a fairly decent power supply to run this strip, all those LEDs add up!Ĭopy Code // color swirl! connect an RGB LED to the PWM pins as indicated If you're going to be PWM-fading between colors, maybe 1/2 of that is what you'll be drawing. Again, that's assuming you would have all the LEDs on at once and that you are powering it from 12V. To find the total maximum current draw per meter, we would multiply 60mA x 10 (ten segments per meter for the 30/LED per meter strip) = 0.6 Amps per meter OR 60mA x 20 (twenty segments per meter for the 60/LED per meter strip) = 1.2 Amps per meter.
Adafruit trinket 5v wiring for lights full#
If you have the LED strip on full white (all LEDs lit) that would be 60mA per segment. So for each segment, there is a maximum 20mA draw from the red LEDs, 20mA draw from the green and 20mA from the blue. We've found that if you're ok with them being a little dimmer, even 9VDC works very well.Įach segment of 3 LEDs draws approximately 20 milliAmperes from a 12V supply, per string of LEDs. The LED strips say "+12V" on them to mark the anode and that's the maximum voltage we suggest. You can buy waterproof analog-type RGB LED strips by the meter at the Adafruit shop!īecause there are three LEDs in series, you cannot drive these LEDs from a 5V supply. However, this means you can control each LED individually! Because of the extra complexity of the chip, they are more expensive. They have a chip for each LED, to use the strip you have to send digitally coded data to the chips. The Digital-type strips work in a different way. They are very very easy to use and fairly inexpensive. Analog-type strips have all the LEDs connected in parallel and so it acts like one huge tri-color LED you can set the entire strip to any color you want, but you can't control the individual LED's colors.
There are two basic kinds of LED strips, the "analog" kind and "digital" kind. The ones we carry are also waterproof (although not all are). They take a lot of LED-wiring-drudgery out of decorating a room, car, bicycle, costume, etc. Sure there are RGB LEDs and those are fun too but what comes after that? Well, we have the answer: LED Strips! These are flexible circuit boards with full color LEDs soldered on. We love some good LED blinking as much as the next person but after years of LED-soldering we need something cooler to get us excited.