How To Control WS2812B Individually Addressable LEDs using Arduino

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 ม.ค. 2018
  • In this tutorial we will learn how to control individually addressable RGB LEDs or a WS2812B LED strip using Arduino.
    Find more details, circuit schematics and source codes ► howtomechatronics.com/tutoria...
    If you enjoy and find the content that I make useful, please consider supporting me on Patreon: / howtomechatronics
    Parts list (check website article for full list, affiliate links):
    Amazon.com:
    WS2812B LED Strip: amzn.to/38QNJp9
    Arduino Board: amzn.to/2Ccd5kC
    5V 6A DC Power Supply: amzn.to/2Ku2Jgq
    Banggood.com:
    WS2812B LED Strip: bit.ly/3bXDjJw
    Arduino Board: bit.ly/2YioMjH
    5V 6A DC Power Supply: bit.ly/2LNTfDC
    DIY Interactive LED Coffee Table: www.creativityhero.com/diy-pro...
    Creativity Hero TH-cam channel: / creativityhero
    Visit HowToMechatronics.com for more Tutorials, Tips, Projects and How It Works videos:
    ► howtomechatronics.com/
    Like my page on Facebook:
    ► / howtomechatronics
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 294

  • @JimFranklin63
    @JimFranklin63 6 ปีที่แล้ว +90

    A very good introduction to the RGB addressable LEDS.
    I would say very useful for beginners and old hats like me.
    Well done. and well presented.

    • @HowToMechatronics
      @HowToMechatronics  6 ปีที่แล้ว +7

      Thanks, I'm glad you found it useful!

    • @JimFranklin63
      @JimFranklin63 6 ปีที่แล้ว +10

      How To Mechatronics Every day is a school day!

  • @TheDrewker
    @TheDrewker 4 ปีที่แล้ว +96

    "2 for the powering and 1 for the data, 3 for the money 4 for the show"

  • @aaron4820
    @aaron4820 4 ปีที่แล้ว +3

    Thanks for this! Got myself a pack of LED diodes which I thought was just a simple 4 pin RGB LED, which turned out to be a WS2811 8mm diode, was extremely confusing why it wasn't working when I followed other simple RGB led tutorials, and got to this which makes so much more sense! (and so much easier given I can control multiple of those diodes just by plugging them into a breadboard..!

  • @wellofbeersheba
    @wellofbeersheba 6 ปีที่แล้ว

    I love these collaborations - really gives each of you more scope.

  • @ultrasilver9738
    @ultrasilver9738 5 ปีที่แล้ว +17

    very good introduction to the RGB addressable LEDS. Thank you

  • @edslab5383
    @edslab5383 6 ปีที่แล้ว

    You are a master! As always pretty elegant and clear videos. Thanks for share your knowledge.

  • @pacowang283
    @pacowang283 6 ปีที่แล้ว +7

    You make it look so easy. Brilliant sir!

  • @MariaCurry
    @MariaCurry 4 ปีที่แล้ว +23

    oh my god THE TABLE!!!! I WANT ONE

  • @BGLENN-dp4tx
    @BGLENN-dp4tx 6 ปีที่แล้ว +28

    Outstanding work. Thanks for your time and expertise.

  • @EasyHomeMadeProjects
    @EasyHomeMadeProjects 6 ปีที่แล้ว +13

    Great as always!

  • @jacquesmertens3369
    @jacquesmertens3369 3 ปีที่แล้ว +1

    Wonderful project. Thanks for sharing! Is there any type of proximity sensor that you can recommend?
    Since you uploaded this video a lot of new sensors have hit the market, including cheap microwave based movement sensors, to name just 1 category.
    Any experience with these sensors? Any advantages over the IR based sensors?

  • @isettech
    @isettech 5 ปีที่แล้ว

    If you wish to integrate the pixels into a DMX512 environment, there are many DMX to WS2811 converters as well as streaming ACN to WS2811. WS2812 uses the same protocol as WS2811, but simply has the chip built into the pixel.
    A DMX to WS2811 converter is limited to the 512 channel DMX limit, but with a multi universe E1.31 to WS2811 interface (sometimes called a controller) it is possible to send more than 512 DMX channels to one string of pixels by combining multi universes of 510 channels. With 3 channels used per pixel, this is 170 pixels per DMX universe of 510 channels.

  • @PaulChabot
    @PaulChabot 4 ปีที่แล้ว

    Awesome! What would you need if you wanted to have the power source and Arduino outside of the spinning ring?

  • @AzzYung
    @AzzYung 3 ปีที่แล้ว

    This is the LED Ive been looking for! I plan to switch out my LED as my old ones died out on my keyboard. Awesome video!

  • @daviddanieli7238
    @daviddanieli7238 3 ปีที่แล้ว

    Hi, great video. Do you think it will work for a 15 meters strip (60leds/meter)? Or I am going to encounter delay between the command given by arduino and the further led switching color?

  • @TheRealSavageMaestro
    @TheRealSavageMaestro 4 ปีที่แล้ว

    WOW, PERFECTLY illustrated!

  • @DD-jj2tc
    @DD-jj2tc 3 ปีที่แล้ว

    Whoa!! This was the first arduino dyi video I saw 2yrs ago and now I'm ready for code

  • @ishaankelkar7521
    @ishaankelkar7521 2 ปีที่แล้ว

    Amazing amazing amazing video and unbelievably helpful. You are the best! Gained a like and a subscriber. Exactly what I was looking for and explained in absolutely PERFECT FASHION. THANK YOU SO MUCH!!!!!!!

  • @spsnow7128
    @spsnow7128 4 ปีที่แล้ว

    Very informative. This is exactly what I was looking for! Thanks!

  • @jimbarrett2152
    @jimbarrett2152 ปีที่แล้ว +6

    Hi Dejan , your LED projects are fascinating. It would be great if you could do an in-depth tutorial specifically on the hardware and then the coding needed for first an LED cube 8 x 8 x 8 and then the holy grail of all electronic hobbyist- The RGB LED CUBE , I think that tens of thousands of electronic enthusiast like myself would benefit from such an educational video- actually the subject matter is so complex in my opinion you would need several videos- maybe :-)
    Thank You So Much Jim

    • @HowToMechatronics
      @HowToMechatronics  ปีที่แล้ว +1

      Thank you!
      Yeah, LED cubes are pretty cool, but I couldn't say if or when I would make one.
      Cheers! :)

  • @sikirusalau9460
    @sikirusalau9460 3 ปีที่แล้ว

    Thanks for the tutorial. Which software do you use for animation?

  • @mikereyes6778
    @mikereyes6778 5 ปีที่แล้ว

    Great video could this kind of application be done for a car and do you need a computer at all time for it to work?

  • @ghamelvis3555
    @ghamelvis3555 6 ปีที่แล้ว

    good work and collaboration. wish you the best of your tomorrow works.

  • @xXMUurTXx
    @xXMUurTXx 3 ปีที่แล้ว

    Hi great informative video.. I want to ask a question tho... For the place that im planing to place the addressable rgb led strip i have purchased i actually need less the length i purchased.. If i cut from any cutting sections marked, will it affect the argb functioning or cause it not to work properly or even not to work at all in any ways?

  • @JLveryToxic666
    @JLveryToxic666 4 ปีที่แล้ว +2

    Hi, can I ask what kits should we buy to make this and what component we need to buy to make full of these, I wanted to make one of these

  • @RifaiAL
    @RifaiAL 5 ปีที่แล้ว +1

    Can you help me build an RGB LED strip strobe light for use with my levitating water effect project?
    The color combination of RGB strobe LED's must be selectable.

  • @woodyouloveit-fe1sw
    @woodyouloveit-fe1sw 8 หลายเดือนก่อน

    Can you modify this as water tank level indicator using WS2812s and Arduino

  • @ChrisHiblerPinball
    @ChrisHiblerPinball ปีที่แล้ว

    Thank you. This was enough to jump start me with simple Arduino programming.

  • @joku5150
    @joku5150 2 ปีที่แล้ว

    I watched until 5:05, then wrote this comment and grabbed the LED strip so I can do cool visuals on wall art...
    Thank You!!

  • @tom-c1394
    @tom-c1394 4 ปีที่แล้ว

    Hello. Please please tell me we're you buy or order top of this coffee table (that glass??)

  • @yahavalon1278
    @yahavalon1278 5 ปีที่แล้ว +1

    HI
    THanks alot for the video! Could you tell me which is the cheapest but right arduino model (or other) for driving ALITOVE WS2812B Addressable LED Strip Light - I want to make marshmellow head mask?
    Thanks
    uri

  • @cw4608
    @cw4608 3 ปีที่แล้ว

    I believe I could use the Blynk app on my iPhone to achieve the color adjustment capability. Thanks for this tutorial!

  • @FrancescoCositore
    @FrancescoCositore 6 ปีที่แล้ว +4

    Great tutorial! Very useful!😉😉 just a note, in the project you should add some shift register in order to minimise the number of Arduino analog input so you will be able to use Arduino UNO board instead Arduino MEGA in the project.

    • @johnrobinson1140
      @johnrobinson1140 ปีที่แล้ว

      or even a Nano, one 8 bit shift register would work

    • @fringeanomaly9284
      @fringeanomaly9284 ปีที่แล้ว

      How to do that ? Any guide for that?

  • @Centauriel
    @Centauriel 8 หลายเดือนก่อน

    Isn't the Data-In resistor supposed to be 33ohm (from the WS2811 datasheet) and not 330ohm (from the video) ? Does it make a big difference?

  • @amorporpassaros686
    @amorporpassaros686 5 ปีที่แล้ว +7

    Hello, ask for subtitles to help you understand the great project.
    Thank you and congratulations

  • @PatrickHemmes
    @PatrickHemmes 4 ปีที่แล้ว

    thanks for such good instruction, i'm planing to buy a aRGB for outside my pc so my whole setup can fit in the color scheme right now i have 1 static color.

  • @shvideo1
    @shvideo1 3 ปีที่แล้ว +1

    Excellent tutorial. Very well explained. Thank you for the circuit details and LED pins and operation.

  • @azpiazu
    @azpiazu 3 ปีที่แล้ว +1

    I am checking how to set up an argb strip on my desktop and this is really useful (now I only have to know how to work with arduino). Would it be possible to link this using BT with a computer controlled by Aura software from Asus?

  • @mccc4559
    @mccc4559 5 ปีที่แล้ว +1

    Your effort is appreciated. Your English and presentation is perfect. Your voice is sincere. Your video is truly awesome. Thank you very much for your time and consideration.

  • @miq4326
    @miq4326 5 ปีที่แล้ว

    Finally I found this video. Thank you!

  • @aayushsapra3982
    @aayushsapra3982 5 ปีที่แล้ว +1

    Can you make a tutorial on making of nano leaf with similar parts which is changed by sound and can be easily be applied designes

  • @harveyjones4002
    @harveyjones4002 4 ปีที่แล้ว

    Thanks so much for such a great tutorial! Are you able to tell me. Is it possible to create different settings and quickly flick through them with this? For example one setting might be one solid colour of LED, then the other might be flashing through a specific colour cycle that i've decided.
    Would it be easy to quickly change from one setting to the other? If so, what would be the best way to do this?
    Thanks

  • @olivier9523
    @olivier9523 5 ปีที่แล้ว +5

    Can you put the arduino program in the description

  • @electrotole849
    @electrotole849 3 ปีที่แล้ว

    Excellent project, a question, how to control the 4-pin WS2813 led strips with arduino, which (+ 5v - Gnd - Di - Bi)

  • @heinz-peterwolfgangmarcelg1891
    @heinz-peterwolfgangmarcelg1891 8 หลายเดือนก่อน +1

    Is it possible to controll several, lets say 6 led strips, simultaniously with one arduino and a single sketch?

  • @elciano6599
    @elciano6599 ปีที่แล้ว

    Good job. I ask you, is it also possible to fade the light of the LEDs?
    thank you

  • @3dtexan890
    @3dtexan890 4 ปีที่แล้ว +1

    Can you show where you connected the Cap on the circuit?

  • @kostadinnedev8521
    @kostadinnedev8521 5 ปีที่แล้ว +3

    Nice! Can you control the brightness of the LED?

    • @mak.1ps
      @mak.1ps 4 ปีที่แล้ว +1

      Yes you can

  • @williambrewer7879
    @williambrewer7879 2 ปีที่แล้ว +1

    Thank you for the awesome tutorial, I found it extremely informative. I am trying to find a mini (less than 2"x2" area) power supply to power a 60 LED strip (same type as shown in your video). So my power supply needs to provide at least 3 Amps. Do you have any recommendations? Thank you again

    • @matthewjago
      @matthewjago 2 ปีที่แล้ว +1

      Did you find one?

  • @woogieboogie9803
    @woogieboogie9803 3 ปีที่แล้ว +2

    how can i control brightness of leds using this library, please help.

  • @fernsgilbert
    @fernsgilbert 4 ปีที่แล้ว

    hatsoff to you for the brilliant idea

  • @tritonmole
    @tritonmole 5 ปีที่แล้ว

    Very good video. One day i went to some friends house and he showed me an adressable led strip. I looked at the strip closer but did not see any shift registers or driver ic. Only now i realised to investigate if the driver is inside the led chip :D

  • @gud_rich.bakoua.official
    @gud_rich.bakoua.official ปีที่แล้ว

    Thanks for this video. I what to know what type of power supply should I use ? Is it continous ? can I use batteries ?

  • @makeitathome1327
    @makeitathome1327 11 หลายเดือนก่อน

    Nice video! I'm actually trying to build an arduino project that can control an individually addreseble led strip that has 24 leds using an ir remote. I've got the code and components ready, but I'm worried about the current being an issue. Do you know how much power would approximately be needed, and if so, what gauge/ AWG wire would I need to handle that much current. Also, do you know how to connect a separate power supply to the circuit because I don't think the arduino can handle plugging a power supply into the Power Jack connector.

  • @jakubprovaznik3
    @jakubprovaznik3 3 ปีที่แล้ว

    Really well explained!

  • @taranagnew436
    @taranagnew436 4 ปีที่แล้ว

    let's say I have an RGB led strip, how would I make the pins on the led strip compatible with Dupont wires?

  • @davidbristoll195
    @davidbristoll195 4 หลายเดือนก่อน

    A truly awesome video, thank you for sharing. I came to learn about LEDs and got a bonus introduction into the art of Bluetooth and creating an android app. Thank you!

  • @rushabhnagda9267
    @rushabhnagda9267 ปีที่แล้ว

    Thankyou for this detailed explaination

  • @zk_6312
    @zk_6312 3 ปีที่แล้ว

    So are neopixels the same as the individually addressable led strips found on Amazon and elsewhete? Though they do have 12v as well as 5v led strips.

  • @viktr0643
    @viktr0643 2 ปีที่แล้ว

    Old video but I hope I get an answer:
    To what extent is this strip bendable? I need the LEDs to be closer to each other so I was thinking if the parts between each LEDs can be "wrinkled up" so that the LEDs would be closer. Or is there a specific cuttable programmable strip where the LEDs are closer to each other? Because I couldn't find one.

  • @norulrosu
    @norulrosu 5 ปีที่แล้ว +1

    very nice explanation. thanks

  • @AbueloHuerta
    @AbueloHuerta 3 ปีที่แล้ว

    what software or tool do you use to make the simulation and code ?

  • @JawannL
    @JawannL 3 ปีที่แล้ว

    I learned a lot . Thank you

  • @vehelix
    @vehelix ปีที่แล้ว +1

    Hi, love the tutorial, can you please share the code for the app please? a full run through for all of the components? Thanks.

  • @simeonmuller6667
    @simeonmuller6667 4 ปีที่แล้ว +1

    Nice Video.
    What resistor do i have to use?

    • @johnrobinson1140
      @johnrobinson1140 ปีที่แล้ว

      I run a 60 led strip straight off my nano with no resistor, no problem. you can use a 100 to 300 ohm I think

  • @jakemiller8323
    @jakemiller8323 2 ปีที่แล้ว

    How does the strip specifically work? How is each diode individual addressable? Aka, what is the wizard behind the curtain of the “Fast Led”library?

  • @hulahoopvevo8537
    @hulahoopvevo8537 6 ปีที่แล้ว

    hey i want to ask you if you can save the patterns on the arduino or dosen´t the the light strip reapeat the pattern that you make while the arduino isn´t conectet to the PC?

    • @dominik-stpp
      @dominik-stpp 5 ปีที่แล้ว +1

      Hula HoopVEVO when it's not connected to pc it does what you have programmed to your arduino

  • @meyrisaastini1040
    @meyrisaastini1040 3 ปีที่แล้ว

    Hi is the WS2812B LED strips are the same as SK6812 LED strips?

  • @lucianopazona9976
    @lucianopazona9976 5 ปีที่แล้ว

    Hey! Thanks for the video, I have a question, is there a limit number of leds that arduino can support? THANKS!

    • @jiebaef
      @jiebaef 4 ปีที่แล้ว

      yes there is a limitation. the amount of leds is limited by the available mA (take a look at 2:00 and following, just do some maths)

    • @lucianopazona9976
      @lucianopazona9976 4 ปีที่แล้ว

      @@jiebaef Yes, I understand that, but I mean when I work with a 60A power supply, with this it´s supposed that I can work more or less with 1200 leds but, arduino can manage this number? Thanks!

    • @wasimakhtar3942
      @wasimakhtar3942 4 ปีที่แล้ว

      Yes there is limitations of led its depends on your IC bit(memory) you can glow 400 led at a time

  • @Haru-rf5cf
    @Haru-rf5cf 5 ปีที่แล้ว

    what hole on the pad do I connect the data to?

  • @KyleXY1975
    @KyleXY1975 3 หลายเดือนก่อน

    Thank you for the description you made about the ARGB principle. Before any work, is there a way to easily control if the LEDs are OK or not ?
    In my personal case, I bought an aRGB led strip to be connected to my motherboard (3 pins header with 5V). However it does not work. I checked with a multimeter the header, I have 5V on it. The MB seems OK. Is there a way to check individuallly a LED, while I don't have a lot of material on the table, a multimeter, few 1.5V cells.
    Thanks for your support !

  • @nokel2
    @nokel2 4 ปีที่แล้ว

    If anyone is having issues like I was where you just keep getting "exit error 1" or something similar, you might need to update the board library, it took me too long to realise that you can still update the version 1.8.2 library without actually updating to a later one (which will also cause issues apparently...)

  • @nihal19961
    @nihal19961 2 ปีที่แล้ว

    must the VCC of the 5v supply be connected to the arduino? Would it would if i just shorted the grounds?

  • @juanbolivar35
    @juanbolivar35 4 ปีที่แล้ว +3

    if you need to control 2 or more strips, how do you specify "Channel X, Leds[y]"?

  • @jonothankaplan
    @jonothankaplan 10 หลายเดือนก่อน

    I had to program 4 of them with an FPGA for college ELEC, so difficult but quite the digital logic exercise.

  • @dizzleparnizzle
    @dizzleparnizzle 4 หลายเดือนก่อน

    Could you run parallel led strips from the same signal line from the arduino if you have all powered by power supply. Will that require a different resistor for noise reduction?

  • @ermakamre
    @ermakamre 6 ปีที่แล้ว

    But how is this LED strip working really? What is the protocol implemented inside FastLED library?

  • @RodriTeix
    @RodriTeix 4 ปีที่แล้ว

    Hi, how many LEDs can I use? Thanks

  • @FOSALGO
    @FOSALGO 3 ปีที่แล้ว

    Nice Video, thanks for the tutorial...

  • @tospori9652
    @tospori9652 2 ปีที่แล้ว

    Helloo, I am using the same led strip(20 leds total on the strip) with a 5V 1,5A Power Supply. I see that you used a 330 Ohm resistor but I only have 220 Ohm resistor, will I end up destroy my led strip with the 220Ohms or is it still ok?

  • @johnorminski
    @johnorminski 4 ปีที่แล้ว

    Hi. I entered the code for the 'chasing' lights at 4:41 of your video, however received an error message when compiling. Is there different code to use for this function?

    • @johnrobinson1140
      @johnrobinson1140 ปีที่แล้ว

      check your board, port and boot loader, my nano has to use old boot loader version

  • @MrJermbob
    @MrJermbob 3 ปีที่แล้ว

    Hi there, What is the maximum of the led chain please ?

  • @mudassiriqbal3191
    @mudassiriqbal3191 3 ปีที่แล้ว

    With an external 5V adapter for strip how many leds can we power at full power?

  • @swinksstuff
    @swinksstuff 4 ปีที่แล้ว +1

    thankyou, very helpful

  • @vlatkostankoski1397
    @vlatkostankoski1397 6 ปีที่แล้ว

    where you find led strip

  • @uvinduranga2896
    @uvinduranga2896 2 ปีที่แล้ว

    can we use this to control a 15m long led strip?

  • @alestbest
    @alestbest 4 ปีที่แล้ว

    This is a perfest tutorial. Thank you.

  • @diezam
    @diezam 5 ปีที่แล้ว +1

    Great video, thank you!

  • @darkgift3127
    @darkgift3127 4 ปีที่แล้ว

    Görsel olarak güzel olmuş elinize sağlık

  • @noibi23
    @noibi23 2 ปีที่แล้ว

    Is it possible to do that with stripes connected up to 40meters?

  • @eugenioputtner
    @eugenioputtner 3 ปีที่แล้ว +1

    Hi. i just finished the coffee table. First of all: awesome project!
    I wanted to comment that when i turned on all worked except controling with the app. I don't know much about this stuff but after doing some searching i found that the hc05 module´s default baud rate was 9600. So i changed that in the arduino code and voilà. It works perfect. In case someone is having the same issue ;)

  • @mahirpokar1528
    @mahirpokar1528 ปีที่แล้ว

    Hi is there any way to do this without using the fast led library just for educational purposes?

  • @robbob601
    @robbob601 4 ปีที่แล้ว

    Can the Addressable LED be wired in parallel? I have 6 runs that I want to do the same thing at the same time?

  • @engrziashirazi
    @engrziashirazi 4 ปีที่แล้ว

    Hi: Thanks for this awesome video. Can we control these strips without using fast.h library, Thanks in Advance

    • @hevimetallimias
      @hevimetallimias 4 ปีที่แล้ว +1

      If you're using arduino, then no. But if youre using some other type of controller, then yes. =)

    • @engrziashirazi
      @engrziashirazi 4 ปีที่แล้ว +1

      @@hevimetallimias Thankyou. But i found a way in which there is no need to use fast.h library.

  • @NikhileshBhure
    @NikhileshBhure 3 ปีที่แล้ว

    I have 2 strip of ws2812b 5meter. Total 10meter 60/m 5volt.
    Can you tell me which adapter will be better 5v 20amp? Or 5v 10amp? I m using arduino to program. Thanks

  • @vivekzagade382
    @vivekzagade382 4 ปีที่แล้ว

    Would you recommend arduino as a reliable controller for home automation

    • @carmp3fan
      @carmp3fan 4 ปีที่แล้ว

      vivek zagade Depends on what you’re using them for. I’ve had and I’ve seen others have issues with them locking up randomly and requiring resets. If you’re just using them to monitor something and can have them reboot periodically then you’d be fine to use them.

  • @yellowmoss271
    @yellowmoss271 4 ปีที่แล้ว

    how do you connect the library to the arduino ?

  • @nikosarghyriou6453
    @nikosarghyriou6453 5 ปีที่แล้ว

    Does the lenght of the ledstrip affects the resistor we have to use ?

  • @PantherJagger
    @PantherJagger 4 ปีที่แล้ว

    What if you you have the 12V WS2815, can you show how you would wire that using an Arduino

  • @Yannis_Nik.
    @Yannis_Nik. 6 ปีที่แล้ว

    Dear Dejan, good evening.
    Just one question. Taking in mind that I have 168 leds I need an external power supply. After I connect it EXACTLY as you instructed, since the power supply is on, the result is the strip to light on, right???
    Or is it that the Data cable will prevent from lighting up until the sketch is uploaded in the Arduino ...????
    Please enlighten me....thank you in advance...!!

    • @Yannis_Nik.
      @Yannis_Nik. 6 ปีที่แล้ว

      Dear Dejan, I greatly appreciate your concern to reply.
      But....now I'm confused.
      You see....even without Arduino device connected...when I power on the strip...the strip lights on...!
      + cable to 5V line, GRD to GRD, and D without connection , and the strip goes on...!! How can this happen....?
      The same of course and with the Arduino Nano on the breadboard, and Dline connected to D5 pin. Without sketch uploaded.....! The strip goes on.
      It is for sure a WS2812b............5V.

    • @JACKRAIDEN97
      @JACKRAIDEN97 4 ปีที่แล้ว +1

      @@Yannis_Nik. u cant connect 168 led with single wire, connect power supply at both ends of led