Usage | RGB LED Strips - Adafruit Learning System

Skip to main content RGB LED Strips Usage
  • Overview
  • Schematic
  • Current Draw
  • Wiring
  • Usage
  • Arduino Code
  • CircuitPython Code
  • Single page
  • Feedback? Corrections?
  • Text View
Featured Products view all
  • Your browser does not support the video tag. Two hands repeatedly bending and manipulating lit-up flexible silicone tubing. Flexible RGB Neon-like LED Strip 120 LEDs - 1 meter long $19.95 Add to Cart
  • Angled Shot of the RGB LED weatherproof flexi-strip - 30 LED/m - 5m on the reel. RGB LED weatherproof flexi-strip - 30 LED/m - 5m $80.00 Add to Cart
  • Spool of flexible LED strip lit up purple RGB LED Weatherproof flexi-strip 60 LED/m- 5m $125.00 Add to Cart
  • Your browser does not support the video tag. Coiled cool white LED strip with LEDs changing color throughout rainbow and also white Analog RGBW LED Strip - RGB plus Cool White - 60 LED/m $79.80 Add to Cart
  • Your browser does not support the video tag. Coiled warm white LED strip with LEDs changing color throughout rainbow and also white Analog RGBW LED Strip - RGB plus Warm White - 60 LED/m $79.80 Add to Cart
  • two cables and a connector Solderless DotStar and Analog RGB LED Strip Clip Sampler $2.95 Add to Cart
  • 3 pack TIP120 Power Darlington Transistors TIP120 Power Darlington Transistors - 3 pack $2.50 Add to Cart
  • Bundle of multi-colored multi-length wire jumpers Breadboarding wire bundle $4.95 Add to Cart
180 Beginner Project guide 😍 1 🔥 1

Usage

Because these LED strips are very simple, we can easily use them with any microcontroller. We suggest using PWM dimming techniques to control the strip. Since each 'LED' pin may end up requiring an Amp or more to sink to ground, power transistors are required! Don't try to connect the pins directly to your everyday microcontroller, they will burn out and/or not work.You can use any power NPN or N-Channel MOSFET, make sure the transistor is rated to be able to pass as much current as you need. For example, since we draw about 0.2Amps per channel per meter, if you have a 5 meter strip you will need to pass up to 1 Ampere per transistor. Get the beefy "TO-220" packages, not the dinky little guys. Make sure they look like this:

led_strips_7805_t.jpg

For basic, low-cost usage we suggest using N-channel MOSFETs such as the IRLB8721 - they are very popular and inexpensive and work with 3.3V or 5V logic. If you can't get those, TIP120 are also good but there is more voltage loss in a transistor than in a MOSFET which is why we suggest those first (less heat loss, more light!)This diagram shows connecting up with N-Channel MOSFETs where the Gate is pin 1, the Drain is pin 2 and the Source is pin 3The IRLB8721's can handle up to 16 Amps of continuous current - so that's at least 750 LEDs, and if you don't have them all on bright white, 1500 LEDs. You may need to heat sink depending on the continuous/overall power draw/dissipation

For longer strips requiring more than 1 Amp, wire the power directly to the strip, then run power and ground wires back to the Arduino. led_strips_ledstripfet.gif This diagram shows connecting up with power NPN transistors such as TIP120, where Base is pin 1, Collector is pin 2 and Emitter is pin 3. Its very similar except this time we have 100-220 ohm resistors between the PWM output pin and the base. For longer strips requiring more than 1A, wire power directly to the strip, then run power and ground wires back to the Arduino. led_strips_ledstripbjt.gif Connect a 9-12V power supply to the Arduino so that Vin supplies the high voltage to the LED strip. If you want, you can also just use a separate wire that connects to a power supply that provides about +12V. Make sure to connect the ground of that supply to the ground of the Arduino/MOSFETs!TIP120's can handle up to 5 Amps of continuous current - so that's at least 250 LEDs, and if you don't have them all on bright white, 500 LEDs.

Page last edited November 26, 2012

Text editor powered by tinymce.

Wiring Arduino Code Related Guides Your browser does not support the video tag. This links to the guide Light-Up Reactive Ukulele. Light-Up Reactive Ukulele By Erin St Blaine intermediate Your browser does not support the video tag. This links to the guide Floor Lamp with NeoPixels and WLED Custom Animations. Floor Lamp with NeoPixels and WLED Custom Animations By Erin St Blaine intermediate Your browser does not support the video tag. This links to the guide Gemma-Powered NeoPixel LED Sound Reactive Drums. Gemma-Powered NeoPixel LED Sound Reactive Drums By Ruiz Brothers intermediate Mailbox Notification Service By Adam Kohring advanced Your browser does not support the video tag. This links to the guide NeoPixel Cyber Falls Wig. NeoPixel Cyber Falls Wig By Phillip Burgess beginner Your browser does not support the video tag. This links to the guide Halo Energy Sword. Halo Energy Sword By Ruiz Brothers beginner Your browser does not support the video tag. This links to the guide 1,500 NeoPixel LED Curtain with Raspberry Pi and Fadecandy. 1,500 NeoPixel LED Curtain with Raspberry Pi and... By Phillip Burgess intermediate NeoPIO: Drive lots of LEDs with Raspberry Pi Pico By Jeff Epler beginner HalloWing Light Paintstick By John Park beginner Your browser does not support the video tag. This links to the guide LED Trampoline. LED Trampoline By Ruiz Brothers beginner Your browser does not support the video tag. This links to the guide LED Bullwhip with Motion & Sound Reactivity. LED Bullwhip with Motion & Sound Reactivity By Erin St Blaine advanced Alohamora Bottle By Erin St Blaine beginner Your browser does not support the video tag. This links to the guide Morning Star POV Double Staffs. Morning Star POV Double Staffs By Erin St Blaine beginner Dotstar LED and Glass Pebble Floor By Erin St Blaine intermediate Your browser does not support the video tag. This links to the guide Halloween Neon LED Signs. Halloween Neon LED Signs By Ruiz Brothers intermediate
Create Wishlist
× Title Description Close Search Search
Categories

Tag » Arduino Led Strip Voltage Drop