Тёмный

How To Control WS2812B Individually Addressable LEDs using Arduino 

How To Mechatronics
Подписаться 684 тыс.
Просмотров 1,2 млн
50% 1

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

Опубликовано:

 

29 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 299   
@TheDrewker
@TheDrewker 5 лет назад
"2 for the powering and 1 for the data, 3 for the money 4 for the show"
@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
@davey2k12
@davey2k12 4 года назад
Good guide fastled works a treat but I using 12v strip
@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.
@jimweeks9359
@jimweeks9359 4 года назад
is there any way to program the LED number so that once you clip off an section for a project you can start the left over strip at 1? Sorry. total noob with this light strip and Arduino. I have 2 strips of 72. they don't act like a strip of 144 when connected
@mertcapkin7263
@mertcapkin7263 6 лет назад
Hello everyone, newbie here :) I want to build something using the WS2812B LED's. Which wire gauge should be used if you want to cut the LED's from a strip and connect them together again? Will 22 AWG suffice? I would like to use 300 LED's in total, so total power consumption is 60mAx300=18W at 5V, so I would at least need a 4A power supply. Thanks! :)
@jordanfes
@jordanfes 6 лет назад
60mA x 300led = 18A x 5V = 90W
@mertcapkin7263
@mertcapkin7263 6 лет назад
I know, I made some typos haha :)
@PowerMat81
@PowerMat81 5 лет назад
Itot=Iled*N°LED 0.06A x 300 LED = 18A !!! P=V*I 18A*5V=90W
@johnrobinson1140
@johnrobinson1140 2 года назад
a 60 led strip on full brightness wont exceed 1 amp so you'll need about 5 amp of power if all are on. 22 ga wire is fine
@ZaidShaik
@ZaidShaik 4 года назад
Can some one help me if i can power up Addressable led strip with June power and GND and leave data pin just to check if they are working or not?
@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!
@buraaqtech8188
@buraaqtech8188 2 года назад
Sir Please Make "Wifi RGB Controller + Music Sync With Mic"
@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! :)
@MariaCurry
@MariaCurry 5 лет назад
oh my god THE TABLE!!!! I WANT ONE
@olivier9523
@olivier9523 5 лет назад
Can you put the arduino program in the description
@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
@BGLENN-dp4tx
@BGLENN-dp4tx 6 лет назад
Outstanding work. Thanks for your time and expertise.
@HowToMechatronics
@HowToMechatronics 6 лет назад
Thank you!
@amorporpassaros686
@amorporpassaros686 6 лет назад
Hello, ask for subtitles to help you understand the great project. Thank you and congratulations
@woogieboogie9803
@woogieboogie9803 4 года назад
how can i control brightness of leds using this library, please help.
@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.
@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
@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?
@heinz-peterwolfgangmarcelg1891
Is it possible to controll several, lets say 6 led strips, simultaniously with one arduino and a single sketch?
@Ultrasilverr
@Ultrasilverr 5 лет назад
very good introduction to the RGB addressable LEDS. Thank you
@EasyHomeMadeProjects
@EasyHomeMadeProjects 6 лет назад
Great as always!
@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 !
@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.
@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
@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.
@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..!
@CBlargh
@CBlargh 9 месяцев назад
How important is the resistor? I'm trying to light a single LED without it and failing. I know I'm talking to the board because I can flash the onboard LED and I know the strip is powered because I'm getting 5V at the end of it. What am I missing?
@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.
@theputnamto3468
@theputnamto3468 2 года назад
copied your sketch exactly, accept only including the first led, everything worked perfectly....the first time, after changing the code and reuploading the led stayed the same, after unplugging and plugging back in i got nothing. why doesnt anything in life ever fucking work for me? seriously, all this universe allows me to do is fucking work and sleep, im better off eating a fucking bullet.
@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?
@valentin0000
@valentin0000 5 лет назад
The arduino cannot give an output of nearly one amp!!!!
@Dvid9331
@Dvid9331 4 года назад
This isn't about how to control them, but how to use its library. And arduino... Again. Big meh. I expect to hear about timings, data flow when we speak about how to control something.
@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?
@nimishkhot
@nimishkhot 4 года назад
Is neopixel strip and this same?
@TechieBaksh
@TechieBaksh 4 года назад
Yes
@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
@saikatd9037
@saikatd9037 4 месяца назад
yourr MIT project file is not downloadable. it is showing invalid download file
@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?
@gradmihaialexandru3445
@gradmihaialexandru3445 2 года назад
Hello cane someoane help my? I wanth to use led strip adressable and sensor on outside the home. I have 65 m of outside home and I need to made the adressable led strip to falow my în the night when I am outside. Cane someoane suggest my some sensor for outside and a short explination what i need to study / buy to cane do this project
@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
@theputnamto3468
@theputnamto3468 2 года назад
im losing my mind over here, where the hell do i get that sketch!! everybody says its in the examples of fast led, but its not. @3:37
@nihal19961
@nihal19961 2 года назад
must the VCC of the 5v supply be connected to the arduino? Would it would if i just shorted the grounds?
@beastold1320
@beastold1320 2 года назад
Is there a way to connect 2 different stripes to 1 Arduino and control them parallel but with different patterns?!
@attilahavasi5203
@attilahavasi5203 Год назад
3:15 Maybe a power supply connection issue. 5V+GND -> Vin + GND
@damocles5047
@damocles5047 2 года назад
Can ch340 address 124 leds at 1 ms? it says you need 950k baud rate is this possible?
@martinkuliza
@martinkuliza Год назад
LASTLY.... If anyone needs help with any of that code Let me know
@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.
@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.
@kostadinnedev8521
@kostadinnedev8521 5 лет назад
Nice! Can you control the brightness of the LED?
@mak.1ps
@mak.1ps 5 лет назад
Yes you can
@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.
@ChrisHiblerPinball
@ChrisHiblerPinball 2 года назад
Thank you. This was enough to jump start me with simple Arduino programming.
@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
@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 🇮🇳❤️
@cyberigloo8558
@cyberigloo8558 5 лет назад
Hi I'm French. Can you help me for my project WS2812B 3X5M 60Leds/M with Arduino and HC-05 Bluetooth. I do not know which food to choose and I do not understand the resistances and weldability MERCI
@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.
@NikhileshBhure
@NikhileshBhure 4 года назад
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
@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
@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?
@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
@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?
@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.
@tospori9652
@tospori9652 3 года назад
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?
@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?
@jasons5152
@jasons5152 3 года назад
[Solved] My lights do not appear to be functioning the same with your code. The red and blue is disrupted by flashes of other colors. I verified correct connection; however, I did not use a capacitor. Is that why?
@jasons5152
@jasons5152 3 года назад
Actually, I had the 5v PSU connected, but I didn't include the 5v/ground pins on the Uno. It fixed it. Leaving this here in case someone else has the same problem.
@70925007
@70925007 6 лет назад
For some reason, when i run the first script, instead of turning on LED#1,2... its creating a whole weird display of colors. Any advice? And when i turn it on the first 7 to 8 LEDs are always lit in white.
@jonothankaplan
@jonothankaplan Год назад
I had to program 4 of them with an FPGA for college ELEC, so difficult but quite the digital logic exercise.
@kanchisundhar
@kanchisundhar 4 года назад
Sir Namaste , WS2812b 5V . Led strip. 5v ok but which ams adapter match sir.
@woodyouloveit-fe1sw
@woodyouloveit-fe1sw Год назад
Can you modify this as water tank level indicator using WS2812s and Arduino
@TheXboxSux
@TheXboxSux 4 года назад
Ugh I know the coding is rather simple but god damn i'm just too lazy for that stuff. lots of work for little savings. The table is neat though.
@joshitoshi9835
@joshitoshi9835 Год назад
is there any way to convert pixel controller (available online or local ) programs to use in arduino? bcoz arduino has limited effects and with those controllers we can make unique and easy effects within no time.
@electrotole849
@electrotole849 4 года назад
Excellent project, a question, how to control the 4-pin WS2813 led strips with arduino, which (+ 5v - Gnd - Di - Bi)
@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.
@caleb4257
@caleb4257 3 года назад
okay this may sound stupid but lets say i have a large strip and i would like to split and reconnect would this change anything with the amount of LEDS within the code?
@wierdgamesfromme1595
@wierdgamesfromme1595 2 года назад
Would an arduino uno work the same as the arduino mega?
@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?
@elciano6599
@elciano6599 Год назад
Good job. I ask you, is it also possible to fade the light of the LEDs? thank you
@ProjectSPADE
@ProjectSPADE 4 года назад
This video didnt fucking help me at all🥺
@PantherJagger
@PantherJagger 4 года назад
What if you you have the 12V WS2815, can you show how you would wire that using an Arduino
@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!!!!!!!
@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!!
@IshaknIzhsbsb
@IshaknIzhsbsb 18 дней назад
Taylor Patricia Thomas Melissa Davis Lisa
@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 ?
@walkerjester2048
@walkerjester2048 4 года назад
Do y'all know if its possible for a 6 ft 120 LED light strip to be powered by an arduino nano?
@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.
@alisonfernendes3295
@alisonfernendes3295 3 года назад
Plz make one smd led heart keychain video know
@robbob601
@robbob601 5 лет назад
Can the Addressable LED be wired in parallel? I have 6 runs that I want to do the same thing at the same time?
@SRsatron
@SRsatron 3 года назад
Very nice 👌🆗
@bronxer78
@bronxer78 4 года назад
Good video, but the vlogger’s accent is very difficult to understand.
@3dtexan890
@3dtexan890 5 лет назад
Can you show where you connected the Cap on the circuit?
@mahirpokar1528
@mahirpokar1528 2 года назад
Hi is there any way to do this without using the fast led library just for educational purposes?
@vichope6408
@vichope6408 Год назад
Hi how many led can uno support?
@ramkaranverma8862
@ramkaranverma8862 4 года назад
i actually do not understand how arduino recognize the 1st 2nd 3rd .... leds
@retrojimmyx
@retrojimmyx 3 года назад
How is an individual LED actually addressed? Is it I2C?
@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?
@meyrisaastini1040
@meyrisaastini1040 4 года назад
Hi is the WS2812B LED strips are the same as SK6812 LED strips?
@mudassiriqbal3191
@mudassiriqbal3191 4 года назад
With an external 5V adapter for strip how many leds can we power at full power?
@michealchoudhary9861
@michealchoudhary9861 6 лет назад
what if i am using ws1811 12v Leds with 12v power supply ?
@Klebyano
@Klebyano 6 лет назад
It works too, I just tested it now. Seems like the data pin is isolated from the 12V
@Grensom
@Grensom 6 лет назад
You will need to use an external 12V power plug and have common grounds between Arduino and (-) of power supply
@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...)
@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?
@samueladitya1729
@samueladitya1729 5 лет назад
do you need to connect +5v on arduino if you have external power?
@HowToMechatronics
@HowToMechatronics 5 лет назад
No, just connect the GND of the external power source and the Arduino GND.
@omerk6969
@omerk6969 4 года назад
yeap finally someone noticed :) you should connect Vin pin
@RamiR2
@RamiR2 3 года назад
@@omerk6969 it has nothing to do with VIN pin, the OP was asking about doing parellel connect with arduino 5v output to the external power supply... if it's a non rechargable battery youre gonna have some problems
Далее
Controlling WS2812B RGB LEDs
6:34
Просмотров 45 тыс.
Things you can make from old, dead laptops
19:03
Просмотров 12 млн
I’m Never Buying LEDs Again! EASY DIY WLED!
13:11
Просмотров 1,3 млн
8x8x8 LED CUBE WITH ARDUINO UNO
6:46
Просмотров 15 млн
How to use WS2812B RGB LEDs with Arduino
5:52
Просмотров 337 тыс.