Getting Started With Arduino To Control An Addressable LED Strip In This Beginner Project Tutorial

  Рет қаралды 16,901

BMonster Laboratory

BMonster Laboratory

Күн бұрын

Are your getting started using Arduino Uno, or Mega, to control an addressable LED strip, check out this fun beginner project tutorial! If you're an Arduino beginner looking for an LED strip tutorial, I hope you find this tutorial helpful. Using an Arduino to control Addressable LEDs can be a lot of fun. This beginner tutorial will show you how to connect your WS2812B LED strip to the proper power source, how to cut and solder your LED strip, and how to come up with some of your very own addressable led patterns by controlling the strip from Arduino IDE.
I hope you enjoy this beginner project tutorial video and thank you for watching - ya'll are awesome! 👊👊
🔔🔔 SUBSCRIBE 🔔🔔 don't forget to subscribe and click the bell!
/ @bmonsterlaboratory
Facebook: / bmonster-laboratory-10...
*** get the code by downloading the FastLED library and run the Blink example
Twitter: / b_monsterlab
check out our Arduino play list! We try to make it easy 👍
• Easy Arduino projects ...
***operate your LED strip from the web!
• Control Your WS2812b L...
***six LED diode patterns for Arduino beginners
• Master LED Control Wit...
***tryin to multiplex LED diodes on a large breadboard!
• Multiplexing LEDS In a...
Chapter:
0:00 intro
0:49 The WS2812B LED strip
1:15 How to cut WS2812B LED strip
2:05 How to solder WS2812B LED strip
3:37 The best power source for the WS2812B LED strip
9:22 How to properly connect your RGB LED strip
11:22 Download the FastLED library in Arduino IDE
11:52 Addressable LED pattern examples
18:17 How to connect a medium size LED strip to Arduino
search Amazon ASIN for items in this video
LED strip - ASIN: B088BPGMXB
variable voltage regulator - ASIN: B07YDGSFPG

Пікірлер: 42
@mtnsofutah
@mtnsofutah 7 ай бұрын
WOW, very interesting and very very helpful, easy to understand. Thank you so much. I just subscribed, i am interested in chasing, I will check previous videos. Again, thanks a bunch
@BMonsterLaboratory
@BMonsterLaboratory 7 ай бұрын
Hey there! I appreciate and am thankful for your comment. LEDs are a lot of fun and I'll, no doubt, make more LED videos in the future. Good luck with your project! 👍💪
@SeanXavier-sl5kd
@SeanXavier-sl5kd 3 ай бұрын
Most straightforward video on Arduino LED usage that I've seen! Thanks so much.
@ronjones4069
@ronjones4069 5 ай бұрын
Well done. YOu saved me HOURS!! Thank you for taking time to show us the basics to get started.. I'm goint to check out some of your other videos.
@BMonsterLaboratory
@BMonsterLaboratory 5 ай бұрын
Hi Ron. I'm glad you found the video helpful. Thank you for leaving a message and good luck with your LED project! 💪👍
@dumbcreations
@dumbcreations Жыл бұрын
sir this is ultimate information to turn the led on, thank you so muuuchhhhh❤
@BMonsterLaboratory
@BMonsterLaboratory Жыл бұрын
Great! glad it was helpful. Thank you for leaving a message. 👍
@thestahar
@thestahar 11 ай бұрын
Great videos!
@BMonsterLaboratory
@BMonsterLaboratory 11 ай бұрын
Hey there! Thanks for the kind words. best of luck to you on your LED projects! 👍💪
@SeanXavier-sl5kd
@SeanXavier-sl5kd 3 ай бұрын
Thanks!
@BMonsterLaboratory
@BMonsterLaboratory 3 ай бұрын
Thank you, Sean! Very kind of you 👍
@thejunouyang
@thejunouyang 6 ай бұрын
Should add that resistor value depends on the driver of Arduino + data line (which is not really a transmission line). I highly doubt the wire is 50ohm Z0 (good conductor s.t. we
@BMonsterLaboratory
@BMonsterLaboratory 6 ай бұрын
Hey there! Thanks for the comment. Something to keep in mind 👍
@AW-Services
@AW-Services 8 ай бұрын
I'm about to deep dive into Arduino for the first time and attempt to build a light painting pixel stick
@BMonsterLaboratory
@BMonsterLaboratory 8 ай бұрын
hey there! Arduino is a great learning tool and there's so much you can do with LEDs...you'll enjoy it. If you need help, just send a mssg. I'll help where I can. good luck to you 👍💪
@AW-Services
@AW-Services 8 ай бұрын
@@BMonsterLaboratory I really appreciate your reply and many thanks for the offer of support. Austin
@edouardmarsolais2747
@edouardmarsolais2747 9 ай бұрын
Hi, thank you for making this video. I'm looking for a way to synchronize a LED strip to my music. I was thinking about using the Spotify API to determine which LED pattern to play (hard-coded, no audio analyzing). I'm wondering if using serial communication for every LED change would introduce too much of a delay. The Arduino would basically only act as a bridge between my computer and my LED strip. Do you think this is a viable solution? Also, I'm guessing that connecting two 150 pixels LED strips would require the same configuration from my power supply as a single 300 pixels strip? I need 32FT and I'm wondering if the very last LEDs will be as bright as the first ones, or if I should distribute the power. I don't understand electricity as well as programming.
@BMonsterLaboratory
@BMonsterLaboratory 9 ай бұрын
Hi there! I don't have any experience with Spotify API but it sounds like a cool concept. Using Arduino as your microcontroller is doable but it will take some research and patients. For 300 pixels, the delay shouldn't be noticeable. What type of LED strip are you using (e.g., WS2812B, WS2813, APA102, etc.)? What is the power supply voltage (usually 5V or 12V)? Check out this sparkfun board - learn.sparkfun.com/tutorials/sound-detector-hookup-guide?_ga=2.261992589.1678254721.1695069424-419616546.1677727671&_gac=1.122946297.1691987681.CjwKCAjw_uGmBhBREiwAeOfsd74pysiMAmzBzW-RnMtE-H2cakGq80JT_e8G1EFpFLt4xuwmEvHKlBoCs-MQAvD_BwE&_gl=1*ojqd7e*_ga*NDE5NjE2NTQ2LjE2Nzc3Mjc2NzE.*_ga_T369JS7J9N*MTY5NTA3ODQ0OC4yNy4xLjE2OTUwODA5OTEuNjAuMC4w and also this sparkfun shield learn.sparkfun.com/tutorials/spectrum-shield-hookup-guide-v2?_gl=1*15gm5dq*_ga*NDE5NjE2NTQ2LjE2Nzc3Mjc2NzE.*_ga_T369JS7J9N*MTY5NTA3ODQ0OC4yNy4xLjE2OTUwNzg4NjcuNjAuMC4w&_ga=2.240422915.1678254721.1695069424-419616546.1677727671&_gac=1.61476190.1691987681.CjwKCAjw_uGmBhBREiwAeOfsd74pysiMAmzBzW-RnMtE-H2cakGq80JT_e8G1EFpFLt4xuwmEvHKlBoCs-MQAvD_BwE See if you're interested in either of those links. For a 10m 300 pixel strip you will want a 20amp power supply. IMAYCC Adjustable 24V 20A Power Supply with LED Display has worked great for me. You will want to attach power to both ends of your 10m led strip to ensure uniform brightness. There are lots of diagrams of this if you search Google. I haven't done a project exactly like this, but If you hit a dead end in your research feel free to email me at bmonsterlab@yahoo.com or send message over Facebook. I'll be happy to help where I can....I may even make it a video!
@edouardmarsolais2747
@edouardmarsolais2747 9 ай бұрын
@@BMonsterLaboratory Thank you for the quick response. I do not plan on using a sound detector, because I want to manually shape my LED patterns according to my music. For some clarification, I am currently working on an Angular based GUI. The user will be able to recreate a visual representation of their personal LED strips configuration within the browser (has to be on a 2D surface). With this application connected to Spotify, the user will be able to input ‘’at this particular moment of my song (x ms), change Leds[y] to green’’, for example. I will provide features such as editing multiple leds at once, a colour wheel, and other tools for efficiency. The application will act as a sort of animation software. Once your animation is completed, the application should then connect to the Arduino through serial communication. As the song progresses, the application will send the synchronized data (LED indexes and rgb values) for the Arduino to make the according changes to the LED strips. So, the Arduino code should be rather simple and short (read incoming data and change LED values). I’m comfortable working on this (although I’m still trying to figure out a good architecture and data structure). My concerns were rather about the delays introduced with serial communication and my unfamiliarity with LED strips and power supplies. So, to answer your question, I haven’t bought these components yet, but I might just stick with what you’ve used in the video and recommended in other comments. Also, thank you for mentioning that I could power both ends. I am working on this personal project along with my studies, so it might take a while. But I’ll keep you updated with further questions if I’m stuck, as you suggested. Thanks again!
@krisko_017
@krisko_017 Жыл бұрын
I am planning on using the whole LED strip. How do I connect an external power supply to the LED light strip?
@BMonsterLaboratory
@BMonsterLaboratory Жыл бұрын
You would attach it just like I did in this video - with a 1kohm resistor on the LED data line, and a 1KuF capacitor attached at the power supply. Be sure to use a 5v supply that's capable of 20A and connect your LED ground line to the power supply and the Arduino. I use the IMAYCC 0-24V Adjustable Power Supply with LED Display from Amazon when connecting a reel of 300 LEDs. Don't ever go over 5v and you can adjust your amps around 15-18 with the knob. 👍
@joebonomono5078
@joebonomono5078 Жыл бұрын
Sir, I've written to you before about a cabinet I'm building and you wrote back with suggestions, thank you. I did buy a 16ft ws212b strip as you suggested and have learned from it. I didn't need waterproof LEDs and there is a big difference between the 30 and 60 LED per meter when considering power supply for a larger project like I'm working on. I'm new to all of this but my understanding from this video is that for my project I will require 3stripsX90LEDsPerStripX50milliamps=13.5amps of separate power. Is this math correct? My requirement for one 90 LED strip is pure white, RGBW, not a mixed RGB white. I'm not seeing a WS212b in a RGBW but do see SK6812 RGBW which is listed as "similar" to WS212b. My second question is, will the Arduino control the SK6812s as well as the WS212bs? Third question, does the MP3 sheild you suggested power a speaker or do I need to amp its power to power a speaker? When I remove my pew pew from the cabinet activating the sound I'd like decent audio, not like a greeting card?
@BMonsterLaboratory
@BMonsterLaboratory Жыл бұрын
hi there! 14amps would be fine for a strip of up to 300 RGB WS2812b leds. I don't run mine on solid white, it's usually a mix or chasing lights of flashing lights and I've never gone over 5v@5amps for a full strip of 300. If you're running all those leds solid white then you'll want to consider 50-60ma per led just to be safe. If you're looking at RGBNW Natural White SK6812, I found these on Amazon ASIN:B01N5ATQZT (just search the ASIN on Amazon). I have never used these but you should be able to use the Adafruit_NeoPixel library with them. Based on the parameters listed on Amazon, you'll need 5v@4amps per meter. It's fine if you provide a power source with a little more amperage than you need but dont' go over 5v or you could burn them out. They say they're similar to the WS2812b strips but I wouldn't mix the two. It would probably be ok but I personally wouldn't do it because they could be unpredictable with timing and color accuracy. For indoor LEDs i purchased the IMAYCC 0-24V Adjustable Power Supply with LED Display with variable Amp dial up to 20A and I couldn't be happier with it. The Sparkfun MP3 player shield itself provides audio output signals, but it does not supply power to the speaker. A small amplifier is needed to amplify the audio signal from the shield to a level that can drive a speaker. The amplifier itself will need its own power source, which is usually a separate battery or power supply. I use the OontZ Angle 3 Pro because it has a rechargeable battery that lasts a long time, an 3.5mm Aux connection, and it has excellent sound with a good bass. The downside to this is that it may be a bit large for your project. The Oontz Angle solo is much smaller and rechargeable with a aux cable. I like to use the shield Aux jack directly to the speaker. this is a bit long winded but I hope it was helpful 👍
@joebonomono5078
@joebonomono5078 Жыл бұрын
@@BMonsterLaboratory Oh, I do have a question. I can't quite figure out why you've never run 300 lights off of more than a 5V 5A? I would think 300 lights would require 15A. Are you running all lights at once at 33% max power, only using 33% of all available lights at any given moment, or is my math wrong? I'm thinking every 20 lights requires 1 amp to run at full power.
@joebonomono5078
@joebonomono5078 Жыл бұрын
@@BMonsterLaboratory Another reply I had written to you is apparently missing. I'll resubmit tomorrow. Ty
@BMonsterLaboratory
@BMonsterLaboratory Жыл бұрын
@@joebonomono5078 actually, let me test that and I'll get back to you. I 'll connect my 5meter strand and let you know.
@joebonomono5078
@joebonomono5078 Жыл бұрын
@@BMonsterLaboratory Thank you. I got my math from your video but maybe I didn't understand it correctly. Each light uses 50ma. I assume 50ma X 20 lights is 1000ma which would also equal 1amp I believe, but maybe I'm wrong, I don't know. Thus makes is seem like a lot of Amps is needed to run my 27feet of lights but maybe that's what it really takes, I'm not an electrician. Thanks for your help
@gregl2406
@gregl2406 11 ай бұрын
what is the bigger power supply you have there with V and A readout?
@BMonsterLaboratory
@BMonsterLaboratory 11 ай бұрын
Hey there! It's a 24V 20A power supply. I should do a quick review of this thing because it has been great. I use it to connect a full strand of 300 LEDs to ensure the lights can get the right current. here's the link www.amazon.com/gp/product/B09VPFZQJ4/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1
@gregl2406
@gregl2406 11 ай бұрын
@@BMonsterLaboratory sold! thanks
@BMonsterLaboratory
@BMonsterLaboratory 11 ай бұрын
@@gregl2406 you'll get some good use out of it. good luck!
@quemeese
@quemeese 7 ай бұрын
what about a battery for power, so you can be mobile?
@BMonsterLaboratory
@BMonsterLaboratory 7 ай бұрын
You're going to want a 5v battery supply for these WS2812B leds. Each RGB led can draw a max current somewhere between 50ma and 60ma, so consider that in your choice of battery supply. Also consider how many leds you want to power from this supply and are they all on at once? Do only a few light up at any given moment, like in a chaser sequence for example. If you're going to run a 30 led strip at full brightness, a 5v power supply that could hand 3A current would be fine. Choosing the wrong supply could result in overheating the battery. You could also run them at half brightness for smaller current demand.
@quemeese
@quemeese 7 ай бұрын
@@BMonsterLaboratory thank you
@BMonsterLaboratory
@BMonsterLaboratory 7 ай бұрын
@@quemeese you're welcome. Best of luck with your LEDs! 👍
@dogierek5301
@dogierek5301 2 ай бұрын
@@BMonsterLaboratory can the arduino be powered then from the same source since it is 5v?
@BMonsterLaboratory
@BMonsterLaboratory 2 ай бұрын
@@dogierek5301 It is recommended that you use 7-12V to power the board. I always try to use external power supply for anything I attach to the Arduino. You could split a12v power supply with 12v to the Arduino and one to a 5v10a or 5v5a converter. You need to take into account the max current for your Arduino and for the LEDS. You also want your power supply to have enough current overhead to properly power your setup. For example, if your LEDs are going to require 5v@5amp, don't use 5V5a supply, go for the 5v10a. If you tell me your setup I can show you how I would connect it. What LEDS, how many, what board... Be sure to research your voltages and current flow and how it will effect each component or device. Also, get help from someone who knows how to do it if you're not sure....No one wants to damage their boards and LEDs 👍
What’s Behind the Light? - How WS2812B LED Strips Work
20:45
Intermation
Рет қаралды 48 М.
FOOLED THE GUARD🤢
00:54
INO
Рет қаралды 61 МЛН
МАМА И STANDOFF 2 😳 !FAKE GUN! #shorts
00:34
INNA SERG
Рет қаралды 2,8 МЛН
I’m Never Buying LEDs Again! EASY DIY WLED!
13:11
TechFlow
Рет қаралды 1,2 МЛН
Control 12v LED strip from Arduino using a Mosfet
6:38
Gadget Addict
Рет қаралды 228 М.
What Is Arduino? What Can You Do With It? Explained
14:12
MakeUseOf
Рет қаралды 19 М.
How To Control WS2812B Individually Addressable LEDs using Arduino
9:31
How To Mechatronics
Рет қаралды 1,1 МЛН
Light Strips: have I been doing it WRONG for years?
7:49
Smart Home Solver
Рет қаралды 292 М.
How to control LED Strips with Arduino - Cosplay Tutorial
12:42
KamuiCosplay
Рет қаралды 613 М.
How to Fade an LED with Arduino analogWrite (Lesson #6)
11:13
Science Buddies
Рет қаралды 27 М.