How To Control WS2812B Individually Addressable LEDs using Arduino

  Рет қаралды 1,174,927

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

Пікірлер: 299
@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"
@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!!
@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..!
@Ultrasilverr
@Ultrasilverr 5 жыл бұрын
very good introduction to the RGB addressable LEDS. Thank you
@BGLENN-dp4tx
@BGLENN-dp4tx 6 жыл бұрын
Outstanding work. Thanks for your time and expertise.
@HowToMechatronics
@HowToMechatronics 6 жыл бұрын
Thank you!
@ChrisHiblerPinball
@ChrisHiblerPinball 2 жыл бұрын
Thank you. This was enough to jump start me with simple Arduino programming.
@wellofbeersheba
@wellofbeersheba 6 жыл бұрын
I love these collaborations - really gives each of you more scope.
@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.
@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!
@jonothankaplan
@jonothankaplan Жыл бұрын
I had to program 4 of them with an FPGA for college ELEC, so difficult but quite the digital logic exercise.
@MariaCurry
@MariaCurry 5 жыл бұрын
oh my god THE TABLE!!!! I WANT ONE
@davidbristoll195
@davidbristoll195 8 ай бұрын
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 8 ай бұрын
Glad it was helpful! Cheers
@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 ;)
@EasyHomeMadeProjects
@EasyHomeMadeProjects 6 жыл бұрын
Great as always!
@pacowang283
@pacowang283 6 жыл бұрын
You make it look so easy. Brilliant sir!
@buraaqtech8188
@buraaqtech8188 2 жыл бұрын
Sir Please Make "Wifi RGB Controller + Music Sync With Mic"
@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
@edslab5383
@edslab5383 6 жыл бұрын
You are a master! As always pretty elegant and clear videos. Thanks for share your knowledge.
@olivier9523
@olivier9523 5 жыл бұрын
Can you put the arduino program in the description
@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.
@cw4608
@cw4608 4 жыл бұрын
I believe I could use the Blynk app on my iPhone to achieve the color adjustment capability. Thanks for this tutorial!
@amorporpassaros686
@amorporpassaros686 6 жыл бұрын
Hello, ask for subtitles to help you understand the great project. Thank you and congratulations
@MistaKnifeguy
@MistaKnifeguy 5 жыл бұрын
WOW, PERFECTLY illustrated!
@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!!!!!!!
@davey2k12
@davey2k12 4 жыл бұрын
Good guide fastled works a treat but I using 12v strip
@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.
@spsnow7128
@spsnow7128 4 жыл бұрын
Very informative. This is exactly what I was looking for! Thanks!
@rushabhnagda9267
@rushabhnagda9267 2 жыл бұрын
Thankyou for this detailed explaination
@ghamelvis3555
@ghamelvis3555 6 жыл бұрын
good work and collaboration. wish you the best of your tomorrow works.
@shvideo1
@shvideo1 4 жыл бұрын
Excellent tutorial. Very well explained. Thank you for the circuit details and LED pins and operation.
@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.
@heinz-peterwolfgangmarcelg1891
@heinz-peterwolfgangmarcelg1891 Жыл бұрын
Is it possible to controll several, lets say 6 led strips, simultaniously with one arduino and a single sketch?
@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
@norulrosu
@norulrosu 5 жыл бұрын
very nice explanation. thanks
@miq4326
@miq4326 6 жыл бұрын
Finally I found this video. Thank you!
@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?
@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...)
@eiketutdinge
@eiketutdinge 4 жыл бұрын
Also die Bilder sind echt sehr gut verständlich.
@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
@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.
@woogieboogie9803
@woogieboogie9803 4 жыл бұрын
how can i control brightness of leds using this library, please help.
@alisonfernendes3295
@alisonfernendes3295 3 жыл бұрын
Plz make one smd led heart keychain video know
@diezam
@diezam 5 жыл бұрын
Great video, thank you!
@HowToMechatronics
@HowToMechatronics 5 жыл бұрын
Thanks!
@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
@nanoSorter
@nanoSorter 5 жыл бұрын
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 !!
@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 !
@kostadinnedev8521
@kostadinnedev8521 5 жыл бұрын
Nice! Can you control the brightness of the LED?
@mak.1ps
@mak.1ps 5 жыл бұрын
Yes you can
@JawannL
@JawannL 3 жыл бұрын
I learned a lot . Thank you
@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?
@3dtexan890
@3dtexan890 5 жыл бұрын
Can you show where you connected the Cap on the circuit?
@nimishkhot
@nimishkhot 4 жыл бұрын
Is neopixel strip and this same?
@TechieBaksh
@TechieBaksh 4 жыл бұрын
Yes
@fernsgilbert
@fernsgilbert 4 жыл бұрын
hatsoff to you for the brilliant idea
@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?
@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 🇮🇳❤️
@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.
@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
@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?
@beastold1320
@beastold1320 2 жыл бұрын
Is there a way to connect 2 different stripes to 1 Arduino and control them parallel but with different patterns?!
@swinksstuff
@swinksstuff 5 жыл бұрын
thankyou, very helpful
@sikirusalau9460
@sikirusalau9460 3 жыл бұрын
Thanks for the tutorial. Which software do you use for animation?
@elciano6599
@elciano6599 Жыл бұрын
Good job. I ask you, is it also possible to fade the light of the LEDs? thank you
@alisonfernendes3295
@alisonfernendes3295 3 жыл бұрын
Nice project
@darkgift3127
@darkgift3127 4 жыл бұрын
Görsel olarak güzel olmuş elinize sağlık
@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
@danny-ww6xn
@danny-ww6xn 4 ай бұрын
i want to make this project withn flexible WS2812B LEDs and with bluetooth and with mobile application please help without proximity sensor
@RifaiAL
@RifaiAL 5 жыл бұрын
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.
@electrotole849
@electrotole849 4 жыл бұрын
Excellent project, a question, how to control the 4-pin WS2813 led strips with arduino, which (+ 5v - Gnd - Di - Bi)
@yusufylmaz6417
@yusufylmaz6417 6 ай бұрын
Hello, i have a question. After connecting the Arduino to the LEDs, is it possible to remove the Arduino and make the LEDs work still? I am trying to make a product with a remote to change the lights when clicked, but having an arduino in every product would be really expensive.
@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?
@TechnoSAP
@TechnoSAP 4 жыл бұрын
Nice video
@mahirpokar1528
@mahirpokar1528 2 жыл бұрын
Hi is there any way to do this without using the fast led library just for educational purposes?
@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
@fredmaury7804
@fredmaury7804 5 жыл бұрын
huge thank you!
@zakariamimouni9394
@zakariamimouni9394 6 жыл бұрын
WoW it's Great work
@OmkarJadhav999
@OmkarJadhav999 5 жыл бұрын
Thanks a lot man :)
@PantherJagger
@PantherJagger 4 жыл бұрын
What if you you have the 12V WS2815, can you show how you would wire that using an Arduino
@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?
@sub-arts128
@sub-arts128 3 жыл бұрын
it seems, that 1 led is not powerfull enough to light up 1 complete raster. what is the measurement of 1 raster?
@djkadakamc1889
@djkadakamc1889 4 жыл бұрын
I have a long ledstripe 5 meters. Every 50cm there is something that I don't know if it's a resistor.
@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
@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.
@gaminggalore3921
@gaminggalore3921 4 жыл бұрын
so what should i get for the power
@SRsatron
@SRsatron 3 жыл бұрын
Very nice 👌🆗
@wasimakhtar3942
@wasimakhtar3942 5 жыл бұрын
Sir pin 7 is not the pwm pin then how you diming the led and for dimming I think we have to choos pwm pin am I right?
@TaufikAngga-xk6ej
@TaufikAngga-xk6ej 5 жыл бұрын
Yeah but PWM pin just generate the square wave using timer, So u can do it without pwm pins, just programing like PWM pin.
@mudassiriqbal3191
@mudassiriqbal3191 4 жыл бұрын
With an external 5V adapter for strip how many leds can we power at full power?
@vichope6408
@vichope6408 Жыл бұрын
Hi how many led can uno support?
@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?
@In33dc0ff33
@In33dc0ff33 Жыл бұрын
Why do you need the resistor?
@BillyGates1721
@BillyGates1721 Жыл бұрын
you should NOT connect Plus of the external power to the arduino +5V pin. If it happends that the external power-supply has a lower voltage than the arduino +5V-pin this situation acts as a shortcut which will overload the onboard-voltage-regulator of the arduino. Did you do test this situation thouroghly? As a "how to mechatronics channel you should do so.
@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?
@jarno2427
@jarno2427 3 жыл бұрын
Wat is the maxime leds you can connect
@wierdgamesfromme1595
@wierdgamesfromme1595 2 жыл бұрын
Would an arduino uno work the same as the arduino mega?
@noibi23
@noibi23 3 жыл бұрын
Is it possible to do that with stripes connected up to 40meters?
@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.
@alltechnorepairingcreative5486
@alltechnorepairingcreative5486 5 жыл бұрын
Nice brother🤝
@kanchisundhar
@kanchisundhar 4 жыл бұрын
Sir Namaste , WS2812b 5V . Led strip. 5v ok but which ams adapter match sir.
@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?
@HemanthKumar-cz6ly
@HemanthKumar-cz6ly Жыл бұрын
Can I give more than 5 V to the led
Как подписать? 😂 #shorts
00:10
Денис Кукояка
Рет қаралды 7 МЛН
How To Get Married:   #short
00:22
Jin and Hattie
Рет қаралды 20 МЛН
What’s Behind the Light? - How WS2812B LED Strips Work
20:45
Intermation
Рет қаралды 51 М.
Arduino CNC Foam Cutting Machine (Complete Guide)
26:53
How To Mechatronics
Рет қаралды 1,4 МЛН
RGB LEDs with Arduino - Standard & NeoPixel
43:35
DroneBot Workshop
Рет қаралды 129 М.
HOW TO USE WS2812B NEOPIXELS WITH FASTLED ON ARDUINO
24:32
Gadget Reboot
Рет қаралды 181 М.
You can learn Arduino in 15 minutes.
16:34
Afrotechmods
Рет қаралды 10 МЛН
I’m Never Buying LEDs Again! EASY DIY WLED!
13:11
TechFlow
Рет қаралды 1,3 МЛН
How to make your own LED Display 🚥 [WS2812B Neopixel]
8:39
FastLED Basics Episode 1 - Getting started
17:59
Scott Marley
Рет қаралды 277 М.
Arduino To ESP32: How to Get Started!
9:26
Robonyx
Рет қаралды 341 М.