Beginner's Guide to Using LED Strips with Arduino

Beginner's Guide to Using LED Strips with Arduino

In today’s tutorial, we’ll show how to hook up the two most common types of LED strips to an Arduino, and control them. That’s the 5050 single color RGB type, and the WS2812B (“Neopixel”) individually addressable LED strips.

This is a video guide to accompany the article at , where you’ll find full code, links, and more.


  1. John M on May 25, 2023 at 12:17 pm

    Does the Arduino need to stay connected to the LED strip in order for the programming to work, or does the strip have memory built in?

  2. Straw Hat X on May 25, 2023 at 12:18 pm

    what are the extra two wires on the neopixel type strips? I’m assuming there are just an extra way to do the power without the pin connector but I’m not sure. For example in the video there’s an extra red and white wire to the side.

  3. Aurora Frestadius on May 25, 2023 at 12:19 pm

    Thank you!!! Very informative and clear video, just the one I needed šŸ™‚

  4. r3d on May 25, 2023 at 12:19 pm

    What would change with WS2811 12V strip? Capacitor should be 12V? How to choose the right resistor?

  5. Paul Utley on May 25, 2023 at 12:20 pm

    Can you run two ws2812B strips on separate output pins?

  6. Long Nguyen on May 25, 2023 at 12:23 pm

    8:20 saving this for later

  7. lewis on May 25, 2023 at 12:25 pm

    i found a spare power supply that has 4.5v output. would this be too weak to power the LEDs and arduino?

  8. newportmeister on May 25, 2023 at 12:28 pm

    This is an incredibly useful video, thanks a lot.

  9. King of games on May 25, 2023 at 12:30 pm

    1 word, thanks

  10. Sandeep Warrier on May 25, 2023 at 12:31 pm

    5:15 WS2812B strip demo

  11. Johannes Sagen Andresen on May 25, 2023 at 12:32 pm

    can you do led strips with 12v??

  12. CAC2244 on May 25, 2023 at 12:32 pm

    I actually watch this video with my own WS2812B set-up running. As an electronics and gaming pc enthusiast, I had ARGB, arduino (elegoo uno r3), resistors / cap at home, just waiting for me to put it all together thanks to your guidance. Like always, my favorite part is soldering the JST SM 3 pin connectors to the RGB strip.

  13. MILANO on May 25, 2023 at 12:33 pm

    but how to interface R G B 12v type LED strip with arduino how to connect them?

  14. Crecker on May 25, 2023 at 12:33 pm

    Expected primary-expression before ‘=’ token how do I get it to work

  15. Andrew T. on May 25, 2023 at 12:34 pm

    Thank you so much, I’ve watched countless videos on this an this made it so much easier to understand.

  16. The Wandering Guru on May 25, 2023 at 12:35 pm

    Hi, I’m new to Arduino. This tutorial is great for a project I’m considering. I am making a dice tower where I’d like to run an IR sensor, small speaker, and a small amount of LEDs from an Arduino. My goal is so that when you put your dice in the top of the tower for a roll, the IR sensor gets tripped and a few sounds play and the LEDs flash in. some pattern. I’m pretty sure this is doable but I’m wondering how I would fit the Arduino, a ring of led lights, and a breadboard in the base of the tower. Should I get the breadboard printed so its smaller? I only need 5 or so if that’s the case. Suggestions for saving space?

  17. Shashi Kiran on May 25, 2023 at 12:36 pm

    Ian, What’s the difference between the transistor TIP122 and this Mosfet IRF44N used in the RGB 5050 circuit.
    I have mine using TIP122, and I came across yours using the MOSFET ?
    Appreciate a reply.

  18. LegoMotion111 on May 25, 2023 at 12:39 pm

    Thanks a bunch! Works excellent!

  19. VideoGamesNYC on May 25, 2023 at 12:39 pm

    I cannot figure out how to program my Kaimana mini. i wish there was a software of a GUI webkit available. Jensen Khameleon webkit site is down. Iā€™m looking for an alternative

  20. Sam_ on May 25, 2023 at 12:41 pm

    do you know if this could work with 24v led strips?

  21. Hamna Kashif on May 25, 2023 at 12:42 pm

    Hi! This is a great video to make me understand easily. I have a question if they have included the servo motor??

  22. knurremurre on May 25, 2023 at 12:44 pm

    Hey! Maybe a stupid question but, will i burn something up if i skip the mosfets? i have a 5v strip, and i just want it to turn on a color, no need for controlling brightness and such.

  23. sonic4life on May 25, 2023 at 12:46 pm

    What did you use for your power supply? Is it just a 12v power supply plug that you cut and fit in? And would I need to make any other adjustments for LEDs that need 24v besides the power supply?

  24. Christian Cristofori on May 25, 2023 at 12:49 pm

    Regarding your advise at 1:16, how many could be powered via the Arduino UNO itself? And how many can Arduino manage when connected to and external power supply? Thank you, great video.

  25. Mujtaba on May 25, 2023 at 12:49 pm

    That’s a really great video.

  26. Vishal Rajput on May 25, 2023 at 12:51 pm

    How many control led by Arduino can 900 led control by Arduino

  27. VALO & Aras on May 25, 2023 at 12:52 pm

    Where can I find the LED strips? I couldn’t find a site that sells only the strips for a reasonable price

  28. Dues_Bellator on May 25, 2023 at 12:52 pm


  29. Aghnajit Pal on May 25, 2023 at 12:55 pm

    If i have 5v led strip is it necessary to put mosfet and external power supply or i can directly power it via my arduino ?

  30. sheraz Butt on May 25, 2023 at 12:56 pm

    wait but mines are exactly the same like the 12v ones except they use 24v and also is written where it says "12v+" 24v whatttt II searched the whole internet which leds are mine??

  31. XD JOAW on May 25, 2023 at 12:58 pm

    Does it work with nedis rgb strips?

  32. robert__ on May 25, 2023 at 12:59 pm

    Thank you so much, this was very informative and to-the-point. instant sub

  33. Swedish Gamer Viking on May 25, 2023 at 12:59 pm

    Is it possible to program a led list so I can change the color on the ledlist at a specific place? I want to have a ledlist around my table top tv case and be able to change the color at a players position to indicate its that players turn to act.

  34. Mathew 69er on May 25, 2023 at 1:00 pm

    very nice video … Can I also control two separate RGB LED stripes? In my case 2 times 1 meter. I want to build it into my Virtual Pinball.

  35. chris1232123 on May 25, 2023 at 1:00 pm

    Where can you get the WS2812B for ~$4/m? Best I’ve seen is ~$10/m for 30 LEDs/m

  36. Rodrigo Duarte on May 25, 2023 at 1:02 pm

    What is this big capacitor used together with the WS2812B LED strip for? Is it really necessary?

  37. Mirrorgamerz on May 25, 2023 at 1:03 pm

    dang i wanted to do the stuff with neo pixels but i dont

  38. mishan akhter on May 25, 2023 at 1:04 pm

    would this work with an IRFz44N Mosfet?

  39. Jon B on May 25, 2023 at 1:04 pm

    Could anyone get the 5v working? I did everything right and nothing

  40. Ryan George on May 25, 2023 at 1:06 pm

    Can you do this in Matlab

  41. Glenn Brown on May 25, 2023 at 1:08 pm

    Do you think i could light up a certain length of the strip based on a distance reading from a sensor? Like the carnival hammer game, an object flies up and the LEDs light up as it goes up.

  42. Atik Rahman on May 25, 2023 at 1:09 pm

    Chips model ?

  43. Em Wintle on May 25, 2023 at 1:09 pm

    What are you using to make a callout label that follows the item you’re rotating? That’s a great effect!

  44. Sofar Harishon on May 25, 2023 at 1:11 pm

    will the IRFZ44N mosfet work in place of the IRLZ44N? I’m confused as to what the difference is…, if it may not dim properly, or if the resistors need to be modified, etc….? I’m working on a (hopefully) badass project, so any info youse can give me is greatly apprieciated! šŸ™‚

  45. timma7 on May 25, 2023 at 1:11 pm

    I set this up with a Nano, using Digital ws2811 WS2812B Addressable smd5050 5v led bar light and using a 360.00 ohm resistor with a 100uf cap and i am getting flickering and signal loss quickly. it can only run the first 5 of my 64 leds with a 2A power supply, and it really is only effectively working 3 of them. Any ideas what i am doing wrong?

  46. Shashi Kiran on May 25, 2023 at 1:12 pm

    I connected the Drain of IRFZ44N to the LED strip (Red color ) and the Source to Ground (of the 12v DC power supply) and even before I connected the MOSFET Gate – the Red LED light lit up !

    Double checked it – so it looks like the Drain and source is OPEN ! and the Gate has no effect.

    The 12v DC adapter is connected as follows: The Positive is connected to the Power Line of the LED strip, and the GND is connected to the Gate. ( It’s a Barrel connector on a hobby pc board )

  47. Adarsh Suraj on May 25, 2023 at 1:13 pm

    thank you .. it was really helpful.. Is it possible to get 3000k warm light in WS2812B instead of rgb

  48. Seamus Import on May 25, 2023 at 1:13 pm

    I have a 12v strip with only 3 connections. Does this need a MOSFET onthe data line? Can’t find any data on this strip bought from eBay some time ago! It comes on white when no data is sent to it!

  49. Jakub Nosek on May 25, 2023 at 1:14 pm

    Thanks for this video, exactly what I needed to get started.