Тёмный

How to use WS2812B RGB LEDs with Arduino 

Core Electronics
Подписаться 121 тыс.
Просмотров 335 тыс.
50% 1

This tutorial is aimed at getting some instant gratification from your WS2812 LEDs (trade name: NeoPixels). I'll briefly cover a bare-bones setup for Arduino.
The full tutorial for this video (with images and step-by-step tips) core-electronics.com.au/tutor...
Core Electronics is your home in Australia for:
Arduino core-electronics.com.au/ardui...
WS2812 RGB LEDs core-electronics.com.au/compo...

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

 

12 сен 2017

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 176   
@marcel3463
@marcel3463 3 года назад
The first who manages to explain everything so simple and easy!
@MLFranklin
@MLFranklin 3 года назад
I've seen quite a few and this is the best one I've seen. Very clear and to the point. Short, but not too short (and that's a good thing because it doesn't waste any time). Plenty of helpful information and tips. Well done!
@andychyjek263
@andychyjek263 6 лет назад
Fantastic, clear and understandable tutorial. Thank you very much. Got my LED running the first time. CHEERS.
@jacksvlogs9924
@jacksvlogs9924 4 года назад
This was so helpful and incredibly clear! Thank you!
@greengallop123
@greengallop123 3 года назад
Very simple and neatly done. Covering everything! Thank you!
@AmoghSrivastava
@AmoghSrivastava 3 года назад
Just wired mine up yesterday successfully! Thanks I used the following setup: - BTF-LIGHTING 5m 300 LEDs W2812B RGB strip - Switching Power Supply: 5V 20A 100W - Arduino Uno - Adafruit NeoPixels Library (strandtest)
@MohsinAliWaheed
@MohsinAliWaheed 6 лет назад
Really simple and easy to understand tutorial. Good job mate.
@sergioarizpe9407
@sergioarizpe9407 Год назад
Most examples I have seen use a capacitor and resistor in the circuit, I guess there are reasons why but thanks fore keeping this one simple.
@stellaanderson5481
@stellaanderson5481 4 года назад
Thank you so much for this! Such a great resource for teaching
@u9Nails
@u9Nails 10 месяцев назад
Thanks for the help! I wanted to make a fun fancy LED light show. This help still is good for 2023.
@TerenceClark
@TerenceClark 6 лет назад
Excellent! I was battling syntax on an adafruit trinket. I didn't realize a lot of libraries have example sets. I'm a programmer for a living, but those first baby steps in any new language take the right kind of tutorial to resolve some of the syntax gotchas. A few examples for me to steal *ahem* borrow from and I should be all set. Thanks!
@jase4772
@jase4772 3 года назад
Top banana!!! Downloaded the software. Followed your steps and yes indeedy instant satisfaction! And currently all running from a USB3 port (144 WS2812B strip). Many thanks! Now on with the light show :)
@MerrillMadsen
@MerrillMadsen 3 года назад
Thank you so much! That was super easy to follow and worked for me like a charm!
@Core-Electronics
@Core-Electronics 3 года назад
Glad it helped!
@PedroAraoz
@PedroAraoz 6 лет назад
Thanks a lot, this video helped me set up my lights!
@onezavalar
@onezavalar 4 года назад
whew! Thank you my friend. Finally, to the point. I know I know I'm new to the arduino stuff and I need to learn more. But yes, instant gratification straight and to the point without making me sleepy with unnecessary explanation.
@Scorpiotide
@Scorpiotide Год назад
I just made my strip lit up with this tutorial through Arduino! My first time ever thank you! :D
@sarba85528
@sarba85528 4 года назад
Hey, 4 days ago, I asked if I could use ADAL2000 using the same code... Now I do its awesome! You can see the VDC set and measured, the sine waveforms with different frequencies, etc... So good :)!!
@thinkingjohn2099
@thinkingjohn2099 3 года назад
Good stuff Brilliant thanks so much got it working yay ! Your step by step made it easy, thanks again
@sauliusagintas
@sauliusagintas 6 лет назад
Brill video with very clear explanation. I did set up neopixel the way you showed but pixels won't lit up. So now i know what to check. Thanks
@electrodiy6493
@electrodiy6493 3 года назад
You made my life simple. Thumbs up. Great job bro!
@dangoren9606
@dangoren9606 5 лет назад
Good video, helped me a lot. Thanks mate!
@0549257524
@0549257524 3 года назад
Amazing and practical tutorial.
@ramy2970
@ramy2970 6 лет назад
Thanks man got it finally working!
@ImExtasis
@ImExtasis 4 года назад
Nice video mate! I just bought a Mega 2560 board to start working on it
@LauLauHip
@LauLauHip 2 года назад
Thank you, I am new to doing stuff with Arduino and had an led strip just like yours, but other tutorials only show the 3 wires. I was confused what I was supposed to do with 5 😂😂👍🏻
@FoxyOfJungle
@FoxyOfJungle 2 года назад
Thank you so much! It worked perfectly!
@questwalkerko
@questwalkerko 3 года назад
I fried my strip because i gave it 12v instead of 5v. Still a great tutorial!
@buzzroadguy
@buzzroadguy 3 года назад
I may have done same. Only a couple LEDs light in strip when given power and no response to a data. Am I blown up?
@keep2swag89
@keep2swag89 3 года назад
Same im buying a new one😂
@neevkhanal132
@neevkhanal132 3 года назад
🤣😂
@mirkosimic8898
@mirkosimic8898 3 года назад
hahahah
@KWHCoaster
@KWHCoaster 2 года назад
Great How To! I just bought 3 strips of 144 LEDs for future projects and I was wondering how to test quickly them before putting on the shelf for later. All good. Thx!
@mirkosimic8898
@mirkosimic8898 3 года назад
great tutorial, thanks man
@3dtexan890
@3dtexan890 5 лет назад
Very good video. Thanks
@Mechulus
@Mechulus 7 месяцев назад
It worked, but of course I was disappointed to see only 64 leds light up instead of my full 50' roll. I obviously need more power for that as the Arduino can only supply so much. I have a 5v external power source on the way. Can't wait to see this thing light up all the way!
@TheTaiji
@TheTaiji 6 лет назад
thank a lot man i have put this in a cool box with input holes for mini usb and power with either 9v battery or 5v wall charger :) thanks a lot man looks realy cool and drives of just 1 power source :)
@CalebHoernschemeyer
@CalebHoernschemeyer 4 года назад
Thanks for a simple answer!!!!!!!!!!!!!!!!!!!!
@TBL_stevennelson
@TBL_stevennelson 3 года назад
Great video
@rasikaalwis7345
@rasikaalwis7345 4 года назад
Cheer Bro..Good job!
@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?
@sarba85528
@sarba85528 4 года назад
Thanks a lot for your tutorial video!! I've a question, I don't have the lab power supply like yours. So do you think I can ADLM2000 (with Scopy) as a power supply?
@wolfieno5471
@wolfieno5471 4 года назад
This helped alot. Do you need a resistor?
@RoberT-oj3yx
@RoberT-oj3yx 4 года назад
ty help me alot got it finali to work :)
@Core-Electronics
@Core-Electronics 4 года назад
Fantastic - we hope it helps you make cool projects
@FluffyM0nster
@FluffyM0nster 5 лет назад
Hi, I must say that you are a gem as I was getting apprehensive on how to use these as I am not a programmer and just learnt it from your video. However, I am facing a situation which is kind of odd. I have run the code and it shows "done uploading" however it does not light up the LEDs. Strangely when I touch my laptop somehow the lights start. I know its kind of strange however I have tried everything I can think of. Could you guide me with what could be the problem?
@hiku7
@hiku7 6 лет назад
@core electronics What is the adapter called that you call a 'fly lead' the one that you use to connect power and ground to the bread board
@tapanmohantysantoor
@tapanmohantysantoor 4 года назад
Explained very clearly. I just purchased a Arduino nano. I have a led strip already. I will make it. Pl tell me about scrolling text
@soulfire0909
@soulfire0909 5 лет назад
Can you modified or tell me what I need to remove or change in the sketch in order to remove any flashing or any led lights turning on while waking or turning on computer. Ideally I want leds to turn on only when i start ambibox screen grabbing
@hoboman303
@hoboman303 6 лет назад
Anyone know how I can add a piezo trigger to the circuit as a switch to turn on and off the leds?
@packyji70
@packyji70 6 лет назад
hi! hope that you going well. have a big problem with my ws2811, I have a pannel 69*25 pixels and I connect the entries to the out and not working when I put the sd card to T8000 A. I realy need your help, please.
@danangpamungkas1317
@danangpamungkas1317 6 лет назад
Very informatif.Can you show me the code for putting digital clock on tha ws2812B strip panel? Thank you.
@way2fast4u
@way2fast4u 6 лет назад
Were would one find a program to run just red white blue. Do they have pre made programs to copy and paste. If there is were do or how do I locate it. Thanks
@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.
@pankajbajaj289
@pankajbajaj289 6 лет назад
brother i hv one led blinker in that 3 wires one red one black nd one is yellow where i put yellow one pls tell
@richierich.1982
@richierich.1982 2 года назад
Hi great video, Will this work the same for RGBW
@RalphWLundvall
@RalphWLundvall 3 года назад
Covered the wiring which is missed in the first videos I looked at. White, Green meaning something different, at least Red is VCC 5v.
@aldinmarchetti
@aldinmarchetti 2 года назад
Gracias loco!!!
@wixurechina6794
@wixurechina6794 6 лет назад
mokungit ws2812b strip www.amazon.com/WS2812B-Addressable-Non-waterproof-IP20-Programmable/dp/B01H04YAIQ/ref=sr_1_1?ie=UTF8&qid=1530708385&sr=8-1&keywords=mokungit+ws2812b
@FindLiberty
@FindLiberty 3 года назад
Nice!
@dontworryaboutit17
@dontworryaboutit17 4 года назад
I hooked up my lights to the power supply, plugged it in. they flashed a bit, then went dark. The strand test doesn't do anything. Did I kill the lights?
@arnprasad
@arnprasad 4 года назад
Hi.;.can you do a video on the 7 digit clock using only these components? there are plenty of videos but no one is explaining clearly like you do. In these times of lockdowns - a clock will be a fun project to do with kids. No 3D printing...just a strip..some thermocol or cardboard..nano or node mcu and make a clock. thanks in advance!!
@sabotack
@sabotack 5 лет назад
I just wanted to take some time and thank you for this wonderful tutorial. I got myself one of these LED strips and used an old PSU to power it. Everything works perfectly! The only thing that I'm confused about is, why you have to connect the ground to the arduino as well. Does it have to run to the arduino?
@benjyking500
@benjyking500 5 лет назад
Ali everything needs a common ground. Otherwise the voltage applied to the power pin on the Led will not be the same as applied to the signal, since they are not referenced (grounded) from the same point.
@godwinyuson600
@godwinyuson600 3 года назад
@@benjyking500 sup bro. May i ask is it okay to plug this rgb lights and arduino to my PC usb plug ? The same power source.
@hyuckhoon9217
@hyuckhoon9217 6 лет назад
Awesome!!!!!!!!! :)
@skat3n3ss
@skat3n3ss 4 года назад
Hello sir, first of all i want to say good video very easy to understand. I was working on a project pretty much creating a dance dance revolution type of game and the part im having difficulty is how to get LEDs to light up in synchronicity to pins when my arduino registers the pull_up resistor and commands the specified pin to register a keyboard stroke. It will be 5 separate pins that need to register individual keystrokes, and im thinking of putting something like 4 to 8 LEDs per button. My questions are what kinda of code will i be using ? Do i need a separate power supply to power the leds?
@Core-Electronics
@Core-Electronics 4 года назад
Sounds like an interesting project - if your having trouble then we strongly recommend you post details to our forum. We have a fantastic support team who are keen to assist makers with their projects. coreelec.io/forum
@rev.kenshostad2888
@rev.kenshostad2888 3 года назад
Can you change it to make every odd or even work and nothing else or perhaps every tenth LED to work?
@iracingiflag
@iracingiflag 3 года назад
Would a 5v 3amp power supply work that plugs in to the board be ok to run 12 leds?
@herdysetyawan3990
@herdysetyawan3990 6 лет назад
Can i powering LED Strip using 9V Battery ?
@RayaRSS
@RayaRSS 4 года назад
Mine are running on byte shifting, I can't get one soild color at a time, what's the problem? :(
@mason-ny2jc
@mason-ny2jc 5 лет назад
where do i find the neopixel library to download
@hamzab6046
@hamzab6046 3 года назад
Just a simple question. If you're powering via the USB port, wouldn't that limit the length of the RGB LED Strip that you can safely power?
@ClarkDroneFilms
@ClarkDroneFilms 2 года назад
I have never used an arduino but I am thinking of using one to control some LEDs on my FPV drone. Could I use multiple pins on the srduino to control different strips of Leds?
@jeric_synergy8581
@jeric_synergy8581 5 лет назад
BOOM! I got to add the 1Kth "Like". Good stuff, briskly presented, thank you. Also, l learned about the "Comment (Out)" feature of the IDE, very useful. THANKS. FWIW, I'll be using the WS2813, but I imagine it's exactly similar.
@LUISYANES1215
@LUISYANES1215 6 лет назад
I need code for arduino mega can you help me or tell me where to find it thank you
@ruanduplessis6375
@ruanduplessis6375 6 лет назад
why do need to run the GND (white) into the arduino also. would it not work with just with data line connected to the arduino?
@Sarioah
@Sarioah 6 лет назад
The data line needs a reference to apply a voltage against. Connecting GND lines together gives the ICs in each LED and the Arduino a common point to measure voltages against and allow a return path for current to flow through. Think of it like the Arduino saying to the IC: "Here's a 5v signal on the data line with respect to GND".
@claytonstmartin8659
@claytonstmartin8659 Год назад
What wire size do you use? The ws2812b pins look to be roughly 22 AWG, but charts I see online show this size is not able to handle all 9 amps for a 150 light strip
@jezzc2535
@jezzc2535 4 года назад
is it possible to make it so that you can have the first 5 doing one thing whilst the next 5 are doing something different? great video as well
@aarongzmn
@aarongzmn 3 года назад
Yes. Basically the way it works is that if you have 10 LED’s, 10 instructions are sent. The first pixel grabs the first instruction and removes it, then it sends the 9 instructions that are left down the line (until there are no more instructions left). So, it’s totally up to you how you split up the instructions.
@JoshuaRilliet
@JoshuaRilliet 4 года назад
Hello, I know the video is old and I hope you still see the comments. I will soon start with Arduino and so I still don't know much about it and I was wondering if it is possible to do the same thing with an Arduino Nano rather than with a Uno?
@daleleighton
@daleleighton 6 лет назад
Stop it... you won me over at "G'Day"... :-)
@paleosoldier9932
@paleosoldier9932 2 года назад
Do double A batterys work asswell as power supply
@Agiztos
@Agiztos 4 года назад
Hey, im totally new to this stuff and wanted to give my tv watching experience a new feel with some ambilight. i could get the strandtest working, is there a way to expande this with a raspberry pi ?
@conceptualTriad
@conceptualTriad 4 года назад
It is tricky due to neopixels precise timing requirements, but Adafruit has a library that uses a workaround: learn.adafruit.com/neopixels-on-raspberry-pi
@naughtyadventuresofmcbrouh5410
G' day michael :)
@woodyouloveit-fe1sw
@woodyouloveit-fe1sw 10 месяцев назад
Can it be programmable for water level indicator
@ZacSpyrakis
@ZacSpyrakis 4 года назад
how would i be able to plug the led strips into regular 240v wall power ?? and is there a way to use the custom light sequencing, as well as using regular solid colours with the remote supplied with an led strip ? or will that need two strips, one for solid colours and one for the custom sequencing thanks !! :)
@Core-Electronics
@Core-Electronics 4 года назад
Intriguing question - why not try posting that on our forum? Our support staff, or members of our makers community might be able to point you in the right direction for whether its possible to do it with one LED strip. forum.core-electronics.com.au/
@kharl8880
@kharl8880 3 года назад
Hello I just receive my WS2812B and I need to test it but I don't currently own a proper power supply for this. Can I use my spare 600W Pc power supply for this ? the label on the power supply is DC output +5V has 48A
@martinhaugen9261
@martinhaugen9261 5 лет назад
Hello. I am going to use addressable led in a shelf powerd by an ardurino(5m with led) i was wondering if i need external power or is the power from the ardurino all i need? I found your video very interesting btw! Keep it up!
@jainebri
@jainebri 5 лет назад
Yes, you need an external power supply, because a 5m of led normally contains 300 leds, each led require 60mA of current, so 300x60mA = 18000mA => 18Amps. I have develop a project for my childrens with a led strip of 5m and I bought a Power supply with 5V and 20Amps for 12 Euros, and It works out very good. I use Arduino Nano and a Bluetooth module and a microphone GY-MAX4466. I hope this helps !!
@user-jt2et2rj3u
@user-jt2et2rj3u 5 лет назад
The Arduino only supports 4 leds
@Sandipmaurya001
@Sandipmaurya001 4 года назад
I want to produce two pulse output with 90 degree phase angle (to connect home therate on volume control replace of rotary encoder) with Arduino. can you help me. Please tell me how to produce pulse to increase or decrease volume for A and B pin of rotary pin.
@SkuppyVincenzo
@SkuppyVincenzo 6 лет назад
Hi, great tutorial, so running a 60 led strip would need a 5 v DC supply at how many Amps ?
@andymarkantonatos4849
@andymarkantonatos4849 6 лет назад
Around 700mA or above I'd imagine. Do yourself a favor and get one that has 2A. With current, it can be exponentially more than what you're drawing unlike voltage. You don't run the risk of damaging the LEDS with too much current, get all the current you can get!
@SkuppyVincenzo
@SkuppyVincenzo 6 лет назад
Andy Markantonatos thank you so much !
@trustgaming_shorts
@trustgaming_shorts 4 года назад
Around 2 amps should be fine man!
@Sandipmaurya001
@Sandipmaurya001 4 года назад
Hello Graham, Your tutorials are wonderfull. I also follow you on udemy. I have a question can you help me.
@Yannis_Nik.
@Yannis_Nik. 6 лет назад
Hello Core and everyone. Just one question : before you upload or install anything, after you connected the wires and made the hardware setup. the strip was lighten , right? Since you powered on, regardless anything else, the lights were on, right? A cold white I'd say light. And only after you uploaded the sketch and everything it went lighting on programmed. Is that so?? I watched again. You have the power lines connected, though, before you upload the sketch, no light is on. You have the + and gnd cable connected! How can it not light on?? I have the exact same scheme made. Why my strip is on??
@jeric_synergy8581
@jeric_synergy8581 5 лет назад
TMK, WS2812b strips will NOT light up with just the application of power: specific signals MUST be sent down the data line.
@philipculver4821
@philipculver4821 3 года назад
What model Arduino are you using here? Thanks!
@xz86
@xz86 4 года назад
I see many RU-vid videos use 330ohm resistor for the data pin and cap for the power source. Is it necessary?
@Leftfield2k7
@Leftfield2k7 4 года назад
It's worth doing as it will protect the first Neopixel from getting damaged. Also worth chucking an electrolytic capacitor across the supply, just make sure you use one with a high enough voltage rating and anything around 1000-3000uF is fine.
@sefisredtv8991
@sefisredtv8991 6 лет назад
Can i have these run automatically every time the arduino powers on? I plan to install it on my motorcycle as a drl.
@armelodie
@armelodie 5 лет назад
the arduino plays the last program that was inputted on it (DONT PRESS THE RESET BUTTON :) )
@imaansattar5135
@imaansattar5135 6 лет назад
what power supply (V and A) do I use to power a few LEDs
@soulure
@soulure 6 лет назад
5V for this kind of strip. A maximum of 3.6 Amp requirement per meter. So for a 5 meter strip, you need an 18amp 5v power-supply. I use a 5v 15amp power supply and it works just fine.
@yahavalon1278
@yahavalon1278 5 лет назад
HI Could you tell me which is the cheapest but right arduino model (or other) for driving ALITOVE WS2812B Addressable LED Strip Light? Thanks Yahav
@jonelio03
@jonelio03 5 лет назад
For me the arduino nano works ok but you can use pretty much every popular arduino.
@yourguardianangel4714
@yourguardianangel4714 3 года назад
Hi l just need ur help l done same as u but nothing happens l don't know if l miss something out
@YoshiYahu007
@YoshiYahu007 6 лет назад
Ok. Awesome. Ok so where do we find cool sequences to upload??
@that_one_who_knows4311
@that_one_who_knows4311 2 года назад
work well! but my ledmatrix is 16x16 so i change the code from: Adafruit_NeoPixel strip = Adafruit_NeoPixel(60, PIN, NEO_GRB + NEO_KHZ800); to:Adafruit_NeoPixel strip = Adafruit_NeoPixel(256, PIN, NEO_GRB + NEO_KHZ800);
@rafhanahraco4935
@rafhanahraco4935 2 года назад
My led strip doesnt turn on, my codes n program are uploaded succesfully. I commected my VCC wire to 5V of my arduino, could it be i dont have enough voltage to power it? But it stated on the packaging its voltage is DC5V
@ashishrai9260
@ashishrai9260 6 лет назад
Sir why don't you connected resistance and capacitor to the led strip
@starmc26
@starmc26 3 года назад
The resistor is to protect the data signal. The capacitor is for the led strip power.
@dudewheresmycar3618
@dudewheresmycar3618 6 лет назад
i am planning to buy a BASIC ARDUINO UNO STARTER KIT that has a Arduino Uno - R3 Model. can i control a WS2812B RGB LED STRIP 60/M 5VDC IP65 with this arduino?????
@DR01D5
@DR01D5 6 лет назад
Sure just follow the video and make sure you have a 5V power supply
@jainebri
@jainebri 5 лет назад
Why you do not put a resistor between the pin 6 and the signal of led strip?? Most of the people suggest this...
@djperformance4748
@djperformance4748 3 года назад
Will the program still run if you have uploaded the arduino code but disconnected it from the computer?
@_BangDroid_
@_BangDroid_ 3 года назад
One the arduino is programmed it will run when it has power
@Mr007Bruce
@Mr007Bruce 6 лет назад
Hi. My LED strip is not working. 1m/60 LED`s (ws2812b). This is my 13th code what I tried. Something wrong with the LED strip? Code is good. I use DC5v 10A adapter. When I plug in to the power source the LED`s lit up for a sec. I can measure 5v on the other and. (That`s mean the LED`s are working?) Data pin line beeping if I check on both end. What do you think? What`s the problem?
@yusux
@yusux 6 лет назад
I have the same issue
@Mr007Bruce
@Mr007Bruce 6 лет назад
Tdawglives I got it work. Was the first LED on the strip. Cut off. Re soldering the wires. That's it.
@yusux
@yusux 6 лет назад
Mr007Bruce I was connecting it on the wrong side of the strip lol
@samueladitya1729
@samueladitya1729 5 лет назад
if you don't connect +5v to arduino it will still work right?
@jeric_synergy8581
@jeric_synergy8581 5 лет назад
It was powered thru the USB connection.
@vizzZ-
@vizzZ- 6 лет назад
how to add audio visualizer?
@colbyglivar9223
@colbyglivar9223 5 лет назад
You need to connect audio input to an amplifier, and then run the signal into one of your ANALOG IN ports. Then you can use that analog reading do to whatever you want to the colors/brightness
Далее
Ne jamais regarder une fille à la plage 😂
00:10
Просмотров 1,5 млн
HOW TO USE WS2812B NEOPIXELS WITH FASTLED ON ARDUINO
24:32
Controlling WS2812B RGB LEDs
6:34
Просмотров 44 тыс.
I’m Never Buying LEDs Again! EASY DIY WLED!
13:11
Просмотров 1,2 млн
Getting Started with RGB NeoPixels| WS2812B
9:26
Просмотров 63 тыс.
Watch this before buying LEDs
19:47
Просмотров 2,3 млн
FastLED Basics Episode 1 - Getting started
17:59
Просмотров 272 тыс.