How To Control WS2812B Individually Addressable LEDs using Arduino

  Рет қаралды 1,177,345

How To Mechatronics

How To Mechatronics

Күн бұрын

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 ► howtomechatron...
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.creativityh...
Creativity Hero KZbin channel: / creativityhero
Visit HowToMechatronics.com for more Tutorials, Tips, Projects and How It Works videos:
► howtomechatron...
Like my page on Facebook:
► / howtomechatronics

Пікірлер: 298
@JimFranklin63
@JimFranklin63 6 жыл бұрын
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 жыл бұрын
Thanks, I'm glad you found it useful!
@JimFranklin63
@JimFranklin63 6 жыл бұрын
How To Mechatronics Every day is a school day!
@TheDrewker
@TheDrewker 5 жыл бұрын
"2 for the powering and 1 for the data, 3 for the money 4 for the show"
@jimbarrett2152
@jimbarrett2152 2 жыл бұрын
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 2 жыл бұрын
Thank you! Yeah, LED cubes are pretty cool, but I couldn't say if or when I would make one. Cheers! :)
@aaron4820
@aaron4820 5 жыл бұрын
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..!
@HowToMechatronics
@HowToMechatronics 3 жыл бұрын
I hope you enjoyed this video and learned something new! If you'd like to support me making more content like this, please consider supporting me on Patreon: www.patreon.com/howtomechatronics
@joku5150
@joku5150 3 жыл бұрын
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!!
@jonothankaplan
@jonothankaplan Жыл бұрын
I had to program 4 of them with an FPGA for college ELEC, so difficult but quite the digital logic exercise.
@Ultrasilverr
@Ultrasilverr 5 жыл бұрын
very good introduction to the RGB addressable LEDS. Thank you
@SuperRossparker
@SuperRossparker 4 жыл бұрын
with those libraries the CHSV params are way easier to use for anyone wondering. it uses hue, saturation and value. plus with the fastled lib it auto loops so you can run a single loop for easy colour cycling.
@eugenioputtner
@eugenioputtner 3 жыл бұрын
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 ;)
@ChrisHiblerPinball
@ChrisHiblerPinball 2 жыл бұрын
Thank you. This was enough to jump start me with simple Arduino programming.
@MariaCurry
@MariaCurry 5 жыл бұрын
oh my god THE TABLE!!!! I WANT ONE
@davidbristoll195
@davidbristoll195 9 ай бұрын
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!
@HowToMechatronics
@HowToMechatronics 9 ай бұрын
Glad it was helpful! Cheers
@mccc4559
@mccc4559 6 жыл бұрын
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.
@HowToMechatronics
@HowToMechatronics 6 жыл бұрын
Thank you!
@mccc4559
@mccc4559 6 жыл бұрын
@@HowToMechatronics My pleasure.
@BGLENN-dp4tx
@BGLENN-dp4tx 6 жыл бұрын
Outstanding work. Thanks for your time and expertise.
@HowToMechatronics
@HowToMechatronics 6 жыл бұрын
Thank you!
@wellofbeersheba
@wellofbeersheba 6 жыл бұрын
I love these collaborations - really gives each of you more scope.
@DD-jj2tc
@DD-jj2tc 4 жыл бұрын
Whoa!! This was the first arduino dyi video I saw 2yrs ago and now I'm ready for code
@EasyHomeMadeProjects
@EasyHomeMadeProjects 6 жыл бұрын
Great as always!
@FrancescoCositore
@FrancescoCositore 6 жыл бұрын
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 2 жыл бұрын
or even a Nano, one 8 bit shift register would work
@fringeanomaly9284
@fringeanomaly9284 Жыл бұрын
How to do that ? Any guide for that?
@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!
@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
@johnrobinson1140
@johnrobinson1140 2 жыл бұрын
I think they ear under them
@johnrobinson1140
@johnrobinson1140 2 жыл бұрын
are
@pacowang283
@pacowang283 6 жыл бұрын
You make it look so easy. Brilliant sir!
@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.
@buraaqtech8188
@buraaqtech8188 2 жыл бұрын
Sir Please Make "Wifi RGB Controller + Music Sync With Mic"
@davey2k12
@davey2k12 4 жыл бұрын
Good guide fastled works a treat but I using 12v strip
@cw4608
@cw4608 4 жыл бұрын
I believe I could use the Blynk app on my iPhone to achieve the color adjustment capability. Thanks for this tutorial!
@vehelix
@vehelix 2 жыл бұрын
Hi, love the tutorial, can you please share the code for the app please? a full run through for all of the components? Thanks.
@amorporpassaros686
@amorporpassaros686 6 жыл бұрын
Hello, ask for subtitles to help you understand the great project. Thank you and congratulations
@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 ?
@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.
@eiketutdinge
@eiketutdinge 4 жыл бұрын
Also die Bilder sind echt sehr gut verständlich.
@edslab5383
@edslab5383 6 жыл бұрын
You are a master! As always pretty elegant and clear videos. Thanks for share your knowledge.
@ishaankelkar7521
@ishaankelkar7521 3 жыл бұрын
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!!!!!!!
@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...)
@rushabhnagda9267
@rushabhnagda9267 2 жыл бұрын
Thankyou for this detailed explaination
@olivier9523
@olivier9523 5 жыл бұрын
Can you put the arduino program in the description
@jacquesmertens3369
@jacquesmertens3369 4 жыл бұрын
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?
@aayushsapra3982
@aayushsapra3982 5 жыл бұрын
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
@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?
@samratsantra8876
@samratsantra8876 Жыл бұрын
Hi sir I am big fan of you. which development board are using for 600 pcs(10mtr) ws2812b led strip. please suggest. Love you from India 🇮🇳❤️
@MistaKnifeguy
@MistaKnifeguy 5 жыл бұрын
WOW, PERFECTLY illustrated!
@KyleXY1975
@KyleXY1975 8 ай бұрын
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 !
@PaulChabot
@PaulChabot 4 жыл бұрын
Awesome! What would you need if you wanted to have the power source and Arduino outside of the spinning ring?
@shvideo1
@shvideo1 4 жыл бұрын
Excellent tutorial. Very well explained. Thank you for the circuit details and LED pins and operation.
@attilahavasi5203
@attilahavasi5203 2 жыл бұрын
3:15 Maybe a power supply connection issue. 5V+GND -> Vin + GND
@JLveryToxic666
@JLveryToxic666 4 жыл бұрын
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
@kostadinnedev8521
@kostadinnedev8521 5 жыл бұрын
Nice! Can you control the brightness of the LED?
@mak.1ps
@mak.1ps 5 жыл бұрын
Yes you can
@sikirusalau9460
@sikirusalau9460 3 жыл бұрын
Thanks for the tutorial. Which software do you use for animation?
@paramtalwalkar7197
@paramtalwalkar7197 3 жыл бұрын
If you use an external supply it needs to be connected to the Vin port on the arduino not the 5V.
@HowToMechatronics
@HowToMechatronics 3 жыл бұрын
Well it depends what voltage is the external supply. If it's 5V you can connect it to the 5V pin of the Arduino. If it's from 9 to 12V then you need to connect it to the Vin pin.
@ghamelvis3555
@ghamelvis3555 6 жыл бұрын
good work and collaboration. wish you the best of your tomorrow works.
@spsnow7128
@spsnow7128 4 жыл бұрын
Very informative. This is exactly what I was looking for! Thanks!
@azpiazu
@azpiazu 4 жыл бұрын
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?
@jakubprovaznik3
@jakubprovaznik3 3 жыл бұрын
Really well explained!
@miq4326
@miq4326 6 жыл бұрын
Finally I found this video. Thank you!
@elciano6599
@elciano6599 Жыл бұрын
Good job. I ask you, is it also possible to fade the light of the LEDs? thank you
@simeonmuller6667
@simeonmuller6667 4 жыл бұрын
Nice Video. What resistor do i have to use?
@johnrobinson1140
@johnrobinson1140 2 жыл бұрын
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
@norulrosu
@norulrosu 5 жыл бұрын
very nice explanation. thanks
@heinz-peterwolfgangmarcelg1891
@heinz-peterwolfgangmarcelg1891 Жыл бұрын
Is it possible to controll several, lets say 6 led strips, simultaniously with one arduino and a single sketch?
@nanoSorter
@nanoSorter 6 жыл бұрын
Really simple and good application development video, like the way things are explained in a simple and clear form like in a 3rd grade home project !!
@FOSALGO
@FOSALGO 4 жыл бұрын
Nice Video, thanks for the tutorial...
@christopherpond3770
@christopherpond3770 8 ай бұрын
Just FYI, the first thing you should do if your project doesn't work is switch the pin. My pin 7 wasn't working, but I switched it to 3 and the strip lit instantly. I'm using the Linux Arduino IDE, so maybe that's the problem, or maybe I burned out the pin, I dunno. Hopefully, it saves someone else some trouble.
@electrotole849
@electrotole849 4 жыл бұрын
Excellent project, a question, how to control the 4-pin WS2813 led strips with arduino, which (+ 5v - Gnd - Di - Bi)
@williambrewer7879
@williambrewer7879 3 жыл бұрын
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
@Jagokingkong
@Jagokingkong 2 жыл бұрын
Did you find one?
@yahavalon1278
@yahavalon1278 5 жыл бұрын
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
@JawannL
@JawannL 3 жыл бұрын
I learned a lot . Thank you
@alisonfernendes3295
@alisonfernendes3295 3 жыл бұрын
Plz make one smd led heart keychain video know
@swinksstuff
@swinksstuff 5 жыл бұрын
thankyou, very helpful
@diezam
@diezam 5 жыл бұрын
Great video, thank you!
@HowToMechatronics
@HowToMechatronics 5 жыл бұрын
Thanks!
@fredmaury7804
@fredmaury7804 5 жыл бұрын
huge thank you!
@3dtexan890
@3dtexan890 5 жыл бұрын
Can you show where you connected the Cap on the circuit?
@chanchalsakarde2768
@chanchalsakarde2768 8 ай бұрын
Can you please guide on how this setup can be used as water tank level.. as water fills in tank led strip show as how much tank filled.. Thanks in advance
@fernsgilbert
@fernsgilbert 5 жыл бұрын
hatsoff to you for the brilliant idea
@HackingDutchman
@HackingDutchman 5 жыл бұрын
Some say you need a capacitor to protect from inrush current from the psu. However, they never specify how many amps the psu uses. But when you want to calculate what capacitor you need to use you do want to know your amps. A lot of them just say: use a 1000uF 6.3 at least. How do I choose the right uF to protect my LEDs?
@alisonfernendes3295
@alisonfernendes3295 3 жыл бұрын
Nice project
@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?
@mikereyes6778
@mikereyes6778 6 жыл бұрын
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?
@makeitathome1327
@makeitathome1327 Жыл бұрын
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.
@darkgift3127
@darkgift3127 4 жыл бұрын
Görsel olarak güzel olmuş elinize sağlık
@Centauriel
@Centauriel Жыл бұрын
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?
@dizzleparnizzle
@dizzleparnizzle 9 ай бұрын
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?
@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?
@TechnoSAP
@TechnoSAP 4 жыл бұрын
Nice video
@arigatou_lim
@arigatou_lim 4 жыл бұрын
Very good
@SRsatron
@SRsatron 3 жыл бұрын
Very nice 👌🆗
@OmkarJadhav999
@OmkarJadhav999 5 жыл бұрын
Thanks a lot man :)
@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.
@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
@no_life_without_science8343
@no_life_without_science8343 4 жыл бұрын
Write a function?!
@Mathew69er
@Mathew69er 2 жыл бұрын
sehr schönes Video ... Kann ich auch zwei seperate RGB LED Stripes ansteuern ?. In meinem Fall 2 mal 1meter. Möchte es in meinem Virtual Pinball verbauen.
@nimishkhot
@nimishkhot 4 жыл бұрын
Is neopixel strip and this same?
@TechieBaksh
@TechieBaksh 4 жыл бұрын
Yes
@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.
@woogieboogie9803
@woogieboogie9803 4 жыл бұрын
how can i control brightness of leds using this library, please help.
@juanbolivar35
@juanbolivar35 4 жыл бұрын
if you need to control 2 or more strips, how do you specify "Channel X, Leds[y]"?
@MustafaMertDemirci
@MustafaMertDemirci 4 жыл бұрын
to write program more easier i think
@darrenraymond119
@darrenraymond119 4 жыл бұрын
Hi. Great channel. I have just completed building the table as a gift for my parents and as they do not have android phones i am trying to use an LED remote control with the IR sensor connected to pin 53 with very little success. Is it possible to use remote in this way instead of android phone?
@HowToMechatronics
@HowToMechatronics 4 жыл бұрын
Hey, glad to hear that. Well you can't really control these ws2812b addressable LEDs with a remote. As an idea, instead of remote control, you could add like two potentiometers knobs in the table itself, and control the colors with them.
@puneethkumar703
@puneethkumar703 4 жыл бұрын
@@HowToMechatronics it is a good suggestion
@KiwiMaker
@KiwiMaker 4 жыл бұрын
wow i always wondered how they made individual leds turn on. I see my RGB strip lights dont have the tiny chips in them :(
@JNDlego57
@JNDlego57 4 жыл бұрын
Yes, the individually addressable LED’s each have the WS2812B chip, which makes the cost of these strips infinitely more expensive than the basic RGB ones you have. But they’re extremely useful, just be prepared to spend at least 2x as much for the same number of LED’s you could buy for the basic RGB strips. If part of your project involves just stationary uniform colors, I’d use the standard RGB strips for that
@alestbest
@alestbest 4 жыл бұрын
This is a perfest tutorial. Thank you.
@PantherJagger
@PantherJagger 4 жыл бұрын
What if you you have the 12V WS2815, can you show how you would wire that using an Arduino
@Tchefter
@Tchefter 6 жыл бұрын
Cool Job
@tom-c1394
@tom-c1394 4 жыл бұрын
Hello. Please please tell me we're you buy or order top of this coffee table (that glass??)
@retrojimmyx
@retrojimmyx 3 жыл бұрын
How is an individual LED actually addressed? Is it I2C?
@mahirpokar1528
@mahirpokar1528 2 жыл бұрын
Hi is there any way to do this without using the fast led library just for educational purposes?
Controlling WS2812B RGB LEDs
6:34
Anas Kuzechie
Рет қаралды 46 М.
Flipping Robot vs Heavier And Heavier Objects
00:34
Mark Rober
Рет қаралды 12 МЛН
🍉😋 #shorts
00:24
Денис Кукояка
Рет қаралды 4,1 МЛН
Good teacher wows kids with practical examples #shorts
00:32
I migliori trucchetti di Fabiosa
Рет қаралды 11 МЛН
8x8x8 LED CUBE WITH ARDUINO UNO
6:46
HARRY LE
Рет қаралды 15 МЛН
Watch this before buying LEDs
19:47
Fix This Build That
Рет қаралды 2,5 МЛН
HOW TO USE WS2812B NEOPIXELS WITH FASTLED ON ARDUINO
24:32
Gadget Reboot
Рет қаралды 182 М.
How to control LED Strips with Arduino - Cosplay Tutorial
12:42
KamuiCosplay
Рет қаралды 623 М.
I’m Never Buying LEDs Again! EASY DIY WLED!
13:11
TechFlow
Рет қаралды 1,3 МЛН
What’s Behind the Light? - How WS2812B LED Strips Work
20:45
Intermation
Рет қаралды 52 М.
Make a TINY Arduino Drone with FPV Camera - Will It Fly?
20:26
Max Imagination
Рет қаралды 1,1 МЛН
Use Addressable LED Strip with Arduino || Essential Engineering
7:37
Flipping Robot vs Heavier And Heavier Objects
00:34
Mark Rober
Рет қаралды 12 МЛН