Ultimate Guide to Programming LED Strips with Arduino | Wiring, Powering & Code with FastLED

  Рет қаралды 14,849

Rachel De Barros

Rachel De Barros

Күн бұрын

Welcome to my comprehensive beginner's tutorial on how to program LED strips using an Arduino Uno and the FastLED library. This Arduino tutorial is perfect for beginners and hobbyists interested in adding colorful animations to their projects like props, wearables, attractions and exhibits. This guide will walk you through all the steps to bring your LED strips to life!
🛠🎨 Engineering Artists: Become a member for LIVE WORKSHOPS & COMMUNITY BUILDS (Zoom) ▶︎ racheldebarros.com/community
🔗 Full Tutorial: racheldebarros.com/how-to-use...
Pixel Reference: github.com/FastLED/FastLED/wi...
BUILD YOUR OWN LED Strip Animations with Arduino:
🛒 Arduino Uno: amzn.to/3JrQvpo
🛒 5V LED Strip (WS2812B): amzn.to/3xEWmVP
🛒 330-470 Ohm Resistor (kits are useful): amzn.to/3WbfjK9
🛒 Large Electrolytic Capacitor (kits are useful): amzn.to/448UEbC
🛒 Push-in Wire Connectors: amzn.to/3Jsqdnc
🛒 Jumper Wires: amzn.to/42K4kbv
🛒 Breadboard (optional): amzn.to/42FZZGk
In this LED Strips with Arduino tutorial, you'll learn:
▶︎ LED strip types and their specifications.
▶︎ Step-by-step instructions on how to correctly connect your LED strip to the Arduino Uno.
▶︎ How to choose the right power supply for your LED strip.
▶︎ How to install the FastLED library via the Library Manager.
▶︎ Explanation of the basic principles of programming with the FastLED library.
▶︎ Writing your first simple code to control the LED strip.
▶︎ Creating Animations like scanner, chaser, solid colors, gradient colors and rainbows.
🎬 VIDEO CHAPTERS: Program LED Strips with Arduino and FastLED
0:00 Welcome
0:32 LED Strip Basics
0:46 LED Strip Wires
1:47 5V vs 12V LED Strips
2:07 How to Power LED Strips
2:29 How to Wire an LED Strip to Arduino & Power Supply
3:51 Installing the FastLED library
4:30 Arduino Code: FastLED library setup code
6:33 Arduino Code: Check LED Strip Color Order
7:53 Arduino Code: Blink Single Pixel
8:50 Arduino Code: Move Pixel Along Strip
12:53 Arduino Code: Color Chaser
13:53 Arduino Code: Solid Colors
15:03 Arduino Code: Gradient Colors
16:30 Arduino Code: Rainbow
17:46 Arduino Code: Animate Start Hue of Rainbow
19:51 Arduino Code: Animate Delta of Rainbow
20:41 Wrap Up: Create Your Own Animations
20:48: Get Full Tutorial with Code
20:55: Join the Community
💬 Have any questions or want to share your own experiences, tips and advice about programming LED strips with Arduino? Drop a comment below - I love hearing from you!
🔔 If you find this video helpful, please hit that like button 👍 and consider subscribing to my channel for more props/animatronics/robot tutorials, tips, and tricks. Your support helps me create more content like this!
Some links included here are to affiliate sites. If you purchase something through them, I may earn a small commission - which costs you nothing! I am very grateful for your support when you use my links to make a purchase.
#arduino #ledstrips #fastled #arduinotutorial

Пікірлер: 66
@deanallenjones
@deanallenjones 2 ай бұрын
okay, i've seen you tubers give a V V V basic guide, or just go "find a sketch, and run it" this is the first time I can honestly say I understand what is going on. Thank you so very much
@georgekalata7595
@georgekalata7595 2 күн бұрын
Thank you for your tutorials as I am just learning and I find your teaching Very informative and easy to follow. :)
@rufustoad1
@rufustoad1 2 ай бұрын
WOW just found you. I have been trying to learn Arduino for a year now and still learning. You seem to be a great teacher so I am gonna lock in and see how we do. I will look for your community as well. Thankyou.
@terrymcdade1888
@terrymcdade1888 2 ай бұрын
I have an animatronic I'm starting to build that I'm using your tutorials on. Thanks for another great idea.
@kurtdeschepper2631
@kurtdeschepper2631 Ай бұрын
I made it,it's beautifull in the dark, thanks Rachel!
@tomg721
@tomg721 2 ай бұрын
Great tutorial Rachel. You answered a lot of my questions about LED strips. I'm ready to order some and start tinkering. Thanks
@3DPrintedProps
@3DPrintedProps Ай бұрын
Fantastic Video. Going to watch everything on your channel. You really do a great job teaching these topics. Great stuff.
@mariaviklund4546
@mariaviklund4546 Ай бұрын
I just found your channel and i already love it! You are so much fun to watch and my goodness you know your stuff! :)
@guyprovost
@guyprovost 2 ай бұрын
Love your videos a lot. Well made, fun and educational. Keep it up!
@Electramasco
@Electramasco 2 ай бұрын
This was an awesome tutorial. I haven't messed with WS2812 even though they've been out for quite some time now. This will be my starting point. I appreciate the hard work you put into this being easy to grasp, useful, and entertaining.
@jacquesdubord6844
@jacquesdubord6844 2 ай бұрын
Hi. I just want to say that I really like the way you demonstrate (with a touch of humour) the content of your video. You aren't boring like many on KZfaq. Thanks
@razzle4528
@razzle4528 2 ай бұрын
i've been trying to learn coding for a couple of years now, (part time), you nailed it in one short video. thank you. other people just assume that you know what( i ) means when in an array, your the best girl xx
@Joe-sx1iu
@Joe-sx1iu Ай бұрын
This is an awesome tutorial! Thank you!
@user-us3dp7tb3m
@user-us3dp7tb3m 2 ай бұрын
EXCELLENT Rachel this lesson is truly amazing very clear just a pure pleasure to listen, watch and follow your instructions. Thank you very much !
@RachelDeBarrosLive
@RachelDeBarrosLive 2 ай бұрын
Glad it was helpful! I hope you can use the info for your next project!
@naboulsikhalid7763
@naboulsikhalid7763 2 ай бұрын
Great tutorial with animation and comedy very enjoyable to watch. thanks, Rach
@jamesmoon5632
@jamesmoon5632 2 ай бұрын
Oh I need to watch this on Sunday so I can watch with my full attention
@A_F_Innovate
@A_F_Innovate 2 ай бұрын
Great video, the detail you go into for modifying the code is good for learning. Thx. I just wish the tube would show the new shows timely not a week later.
@TheUnofficialMaker
@TheUnofficialMaker 2 ай бұрын
fabulous, just what I needed!
@RachelDeBarrosLive
@RachelDeBarrosLive 2 ай бұрын
Working on a lighting project? Let me know how it goes!
@kurtdeschepper2631
@kurtdeschepper2631 2 ай бұрын
I understand your logic the best of them all ,thanks,i'll try this one!
@RachelDeBarrosLive
@RachelDeBarrosLive 2 ай бұрын
Best of luck on your project 👍
@colinrobert-kv2up
@colinrobert-kv2up 2 ай бұрын
Layers of strips, makes a led tv, codes of references, on quicker, groups filed, prechoice alpha letters, index's. On catalogue. Loops the more loops of speed color,shifts, john.
@dr_shayan4617
@dr_shayan4617 2 ай бұрын
You explain very well👌
@bountyhunterbreaks898
@bountyhunterbreaks898 2 ай бұрын
Rachel getting a little fast and furious programming LED strips!!!
@RachelDeBarrosLive
@RachelDeBarrosLive 2 ай бұрын
🤣 Indeed!
@TheHeritageLine
@TheHeritageLine 2 ай бұрын
Hi Rachel, This is such a great tutorial as there is little about that actually shows you how to control a single led, they all seem to concentrate on animation effects, I have just started messing about with addressable leds and I am also using the Fast led library. I am new to programming on the Arduino but have found a great on-line GUI called Fastled Animator which could also be useful to a novice as it generates the code, when you have created your animation. I intend using it for a lighting sequence to light model buildings. All the best Tony.
@michaegi4717
@michaegi4717 2 ай бұрын
2:30 Those "quick connectors" are absolutely fine to be used long term. They are even more safer than other connecors if you use stranded wires. Those single strands can move over time... if you use a connector with a screw this might cause lose contact, but with those spring loaded connectors the force to the wire will be the same. If you are good in soldering, this might be even better, but if you produce cold solder connections, the spring loaded connectors would be better.
@strandum67
@strandum67 2 ай бұрын
Nice !! 😍
@berlinjackson1847
@berlinjackson1847 Ай бұрын
Hi you are very smart and have a great sense of humor. I am learning stuff here. You remind me of Abs that use to play on NCIS.
@chadwickjones2824
@chadwickjones2824 2 ай бұрын
I truly enjoy your vids and the way you have your tutorials set up. I have used 1282's before but this is giving me new ideas, particularly on combining with multitasking...maybe a future vid on millis and 1282's?
@chadwickjones2824
@chadwickjones2824 2 ай бұрын
*WS2812s
@casper7961
@casper7961 8 күн бұрын
Thanks for this tutorial! just wondering, you say to add a capacitor for larger projects - when would you say a project becomes larger? 😆
@ebrahimajam9299
@ebrahimajam9299 2 ай бұрын
Much love all the way from Cape Town
@bobmirror7164
@bobmirror7164 2 ай бұрын
Great way to get the "for" loop iteration coding down pat.
@I.____.....__...__
@I.____.....__...__ 2 ай бұрын
12:34 Here's a simpler version of this one which covers both directions with no extra loops: void setup() { … int delta=1; int ledNum=0; … } void loop() { leds[i]=CRGB::Red; FastLED.show(); delay(50); leds[i]=CRGB::Black; ledNum+=delta; if (ledNum>NUM_LEDS || ledNum
@louiepauda6275
@louiepauda6275 2 ай бұрын
Looks cool following it going back and forth? Like? Skittles?
@McGarveyton
@McGarveyton 2 ай бұрын
Oooo, I've used an Uno on my Atari computer Sdrive Max drive emulator…I should try this out too…I have my game room lights running on a Digquad (ESP32), running WLed but I'm always looking at new ways to do stuff for other projects 😀
@MohammadsarwarNoorzai
@MohammadsarwarNoorzai 2 ай бұрын
Nice to meet you
@MohammadsarwarNoorzai
@MohammadsarwarNoorzai 2 ай бұрын
Hi nice video nice to meet you
@michaelromeo5658
@michaelromeo5658 Ай бұрын
Hi there. are the light strips 5vdc? Is it possible to use 12vdc led strips?
@michaelromeo5658
@michaelromeo5658 Ай бұрын
sorry you mentioned the 12Volt issue in the video my mistake!
@user-hc6uo5fp8n
@user-hc6uo5fp8n Ай бұрын
Have you see this by Robert Jenkins Technology Channel - Spooky eyes - halloween Eyes assembly with schematic and configuration.
@corsairsmitty5438
@corsairsmitty5438 Ай бұрын
Can you blink 2 different LED(position=1 and position=10) at the same time, using the entire LED(3 pixels) to be the same white, hold for a time, then blink a different set of 2(position 5 and 15) etc ? Is there a random blink control ?
@MakeNoise280
@MakeNoise280 4 күн бұрын
Is there a limit to the length of the strip that can be controlled by a single Arduino? Can i circle my whole house with a single strip controlled by one device?
@nktube.vyas.n
@nktube.vyas.n 2 ай бұрын
How can do long program is upload
@user-wl2zy7mj9f
@user-wl2zy7mj9f Күн бұрын
Why not power it with arduino if it is supposed to work with 5V?
@thezehands9694
@thezehands9694 27 күн бұрын
I am not getting CRGB to change colors when its inputted in my text. How do I fix this?
@ledsarefun-oi3oi
@ledsarefun-oi3oi 2 ай бұрын
YEAH! look forward to learning how to code these LEDS. 16X16 matrix next? It can be called " MADE FROM 100% BRAIN MATTER PROJECT" or MF1BMP
@RachelDeBarrosLive
@RachelDeBarrosLive 2 ай бұрын
😄 I actually do have a 16x16 matrix so I'll add that to the mix!
@samjohnson2801
@samjohnson2801 2 ай бұрын
So cool! And Rachel is always so FINE!
@paulcohen1555
@paulcohen1555 2 ай бұрын
תצוגה מצויינת של הנושא.
@damianbutterworth2434
@damianbutterworth2434 2 ай бұрын
There was never any pretty Tech Girls when I was younger and dating. Then again we would of never got down to kissing if we was programming Arduino`s all night. :) :) Thanks again Rachel for the vid. I`m working on a Arduino LCD 20/4 game vid. Taking me a few weeks. I ran out of motivation.
@zahreddinezairi7363
@zahreddinezairi7363 2 ай бұрын
Nice video and nice girl ❤
@RachelDeBarrosLive
@RachelDeBarrosLive 2 ай бұрын
Thanks! Hope you make a cool lighting project 👍
@DBB-KE5DUO
@DBB-KE5DUO 2 ай бұрын
No 3 gradients!! It's worse than wire cooties! Tesla would not approve (he was into 3, 6, and 9)! I have hundreds of single color LEDs... I may never use them since I'm hooked on programmable LEDs (thanks to Rachel)... I might need to have a LED yard sale!! 😂😂😂😂😂😂
@RachelDeBarrosLive
@RachelDeBarrosLive 2 ай бұрын
They've updated the library since we first discovered the 3-color gradient bug, but it's still biting! 🤣
@DBB-KE5DUO
@DBB-KE5DUO 2 ай бұрын
@@RachelDeBarrosLive - I see what you did there... bug bites... bug bytes? 🤣
@mikejones-vd3fg
@mikejones-vd3fg 2 ай бұрын
Why not put 3 of those single led's together, preferabbly Red Green and Blue, now you have a giant RGB LED pixel! hook them up to an andruino and they're now programmable! PWM the intesity and you should be able to make any colour. Youd only be able to control only a couple of these LED RGB pixels with an arduino though because 1 would take up at leaste 3 pins. I actually did something similar to this but isntead of using single LEDs i used RGB LEDs, just not the programable ones, but if you hook each leg of them up to an MCU you can vary the different R G and B intesitities and make them programable too, but they also take up lots of pins of a MCU. I could only control 5 of these non programmable RGB LEDs like this with an STM32 because each one took up 3 pins, so in total it used 15 pins which was close or at the limit of the pwm pins i believe. Or its all i was willing to do , cant remember. But 1 mcu can control like 5-10 RGB led pixels, these indiviuduably addressble ones are more efficient, they have 1 mcu per LED. But technically you could DIY that part too, have1 MCU per 5-10 LED's , youd just have to make a new communication system to talk between other mcu's and i think these programmable ones already did that more efficiently. Still i think the DIY approach helps you learn more and is actually easier sometimes since its doing the most basic thing to get somethign accomplished, while these conventient libraries abstract that away for convenience, it doesnt help with understanding, and you could pull something like this off yourself without a special type of LED.
@DBB-KE5DUO
@DBB-KE5DUO 2 ай бұрын
@@mikejones-vd3fg - wow! excellent idea!! I could actually build my own programmable strip by building my own pixels! ... then use the SPI (serial interface) to code for all the Rachel projects!! 🥳🎉🤩😊😎🍾
@jayblanchard4477
@jayblanchard4477 2 ай бұрын
I have just discovered your channel and you have such a relatable way of working through things! BTW, what you made early on is called a Larson Scanner (named for Glen Larson who created Cyclons and KITT - en.wikipedia.org/wiki/Glen_A._Larson).
@MohammadsarwarNoorzai
@MohammadsarwarNoorzai 2 ай бұрын
Nice to meet you ‏‪
@MohammadsarwarNoorzai
@MohammadsarwarNoorzai 2 ай бұрын
Nice to meet you
How to Control a 12V Motor with Arduino: Easy Wiring & Code Examples
44:13
DIY Kitchen Under Cabinet Lighting
9:50
DIY Declassified
Рет қаралды 62 М.
The child was abused by the clown#Short #Officer Rabbit #angel
00:55
兔子警官
Рет қаралды 14 МЛН
Just try to use a cool gadget 😍
00:33
123 GO! SHORTS
Рет қаралды 85 МЛН
Always be more smart #shorts
00:32
Jin and Hattie
Рет қаралды 34 МЛН
DIY Vacuum Form Machine Series: Sourcing Heating Elements
20:21
Rachel De Barros
Рет қаралды 4,8 М.
RIP Philips Hue & Govee
16:28
Zac Builds
Рет қаралды 677 М.
Make Posable, Movable, Articulating Joints for your PVC Props
36:33
Rachel De Barros
Рет қаралды 45 М.
Light Strips: have I been doing it WRONG for years?
7:49
Smart Home Solver
Рет қаралды 293 М.
How to convert a wiper motor into a strong servo motor
4:07
12V WS2812B 3-wire LED Strip with Arduino Uno
10:15
Tom Donnelly
Рет қаралды 56 М.
Wiring a Wiper Motor for Your Motorized Props!
26:54
Rachel De Barros
Рет қаралды 34 М.
Beginner's Guide to Using LED Strips with Arduino
8:59
MakeUseOf
Рет қаралды 317 М.
How To Power A LOT of LEDs!
5:36
Zibartas
Рет қаралды 132 М.