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

  Переглядів 8,393

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

КОМЕНТАРІ: 55
@3DPrintedProps
@3DPrintedProps 4 дні тому
Fantastic Video. Going to watch everything on your channel. You really do a great job teaching these topics. Great stuff.
@deanallenjones
@deanallenjones 14 днів тому
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
@rufustoad1
@rufustoad1 13 днів тому
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.
@Joe-sx1iu
@Joe-sx1iu 2 дні тому
This is an awesome tutorial! Thank you!
@jacquesdubord6844
@jacquesdubord6844 12 днів тому
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 UKposts. Thanks
@terrymcdade1888
@terrymcdade1888 17 днів тому
I have an animatronic I'm starting to build that I'm using your tutorials on. Thanks for another great idea.
@bountyhunterbreaks898
@bountyhunterbreaks898 17 днів тому
Rachel getting a little fast and furious programming LED strips!!!
@RachelDeBarrosLive
@RachelDeBarrosLive 16 днів тому
🤣 Indeed!
@A_F_Innovate
@A_F_Innovate 9 днів тому
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.
@ebrahimajam9299
@ebrahimajam9299 16 днів тому
Much love all the way from Cape Town
@bobmirror7164
@bobmirror7164 17 днів тому
Great way to get the "for" loop iteration coding down pat.
@razzle4528
@razzle4528 14 днів тому
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
@user-us3dp7tb3m
@user-us3dp7tb3m 17 днів тому
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 17 днів тому
Glad it was helpful! I hope you can use the info for your next project!
@tomg721
@tomg721 17 днів тому
Great tutorial Rachel. You answered a lot of my questions about LED strips. I'm ready to order some and start tinkering. Thanks
@TheHeritageLine
@TheHeritageLine 17 днів тому
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.
@jamesmoon5632
@jamesmoon5632 17 днів тому
Oh I need to watch this on Sunday so I can watch with my full attention
@guyprovost
@guyprovost 11 днів тому
Love your videos a lot. Well made, fun and educational. Keep it up!
@MohammadsarwarNoorzai
@MohammadsarwarNoorzai 17 днів тому
Nice to meet you
@naboulsikhalid7763
@naboulsikhalid7763 16 днів тому
Great tutorial with animation and comedy very enjoyable to watch. thanks, Rach
@Electramasco
@Electramasco 17 днів тому
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.
@dr_shayan4617
@dr_shayan4617 17 днів тому
You explain very well👌
@kurtdeschepper2631
@kurtdeschepper2631 16 днів тому
I understand your logic the best of them all ,thanks,i'll try this one!
@RachelDeBarrosLive
@RachelDeBarrosLive 15 днів тому
Best of luck on your project 👍
@TheUnofficialMaker
@TheUnofficialMaker 17 днів тому
fabulous, just what I needed!
@RachelDeBarrosLive
@RachelDeBarrosLive 17 днів тому
Working on a lighting project? Let me know how it goes!
@michaegi4717
@michaegi4717 17 днів тому
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.
@chadwickjones2824
@chadwickjones2824 16 днів тому
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 16 днів тому
*WS2812s
@strandum67
@strandum67 16 днів тому
Nice !! 😍
@louiepauda6275
@louiepauda6275 14 днів тому
Looks cool following it going back and forth? Like? Skittles?
@colinrobert-kv2up
@colinrobert-kv2up 17 днів тому
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.
@McGarveyton
@McGarveyton 17 днів тому
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 17 днів тому
Hi nice video nice to meet you
@corsairsmitty5438
@corsairsmitty5438 3 дні тому
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 ?
@user-hc6uo5fp8n
@user-hc6uo5fp8n 5 днів тому
Have you see this by Robert Jenkins Technology Channel - Spooky eyes - halloween Eyes assembly with schematic and configuration.
@nktube.vyas.n
@nktube.vyas.n 16 днів тому
How can do long program is upload
@samjohnson2801
@samjohnson2801 17 днів тому
So cool! And Rachel is always so FINE!
@paulcohen1555
@paulcohen1555 17 днів тому
תצוגה מצויינת של הנושא.
@ledsarefun-oi3oi
@ledsarefun-oi3oi 15 днів тому
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 15 днів тому
😄 I actually do have a 16x16 matrix so I'll add that to the mix!
@I.____.....__...__
@I.____.....__...__ 16 днів тому
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
@damianbutterworth2434
@damianbutterworth2434 17 днів тому
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 17 днів тому
Nice video and nice girl ❤
@RachelDeBarrosLive
@RachelDeBarrosLive 17 днів тому
Thanks! Hope you make a cool lighting project 👍
@DBB-KE5DUO
@DBB-KE5DUO 17 днів тому
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 17 днів тому
They've updated the library since we first discovered the 3-color gradient bug, but it's still biting! 🤣
@DBB-KE5DUO
@DBB-KE5DUO 17 днів тому
@@RachelDeBarrosLive - I see what you did there... bug bites... bug bytes? 🤣
@mikejones-vd3fg
@mikejones-vd3fg 17 днів тому
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 17 днів тому
@@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 10 днів тому
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 17 днів тому
Nice to meet you
@MohammadsarwarNoorzai
@MohammadsarwarNoorzai 17 днів тому
Nice to meet you ‏‪
How to Control a 12V Motor with Arduino: Easy Wiring & Code Examples
44:13
Rachel De Barros
Переглядів 360 тис.
How to Use Arduino Interrupts The Easy Way
33:28
Rachel De Barros
Переглядів 69 тис.
"Поховали поруч": у Луцьку попрощались із ДВОМА Героями 🕯🥀 #герої #втрати
00:15
Телеканал Конкурент TV - новини Луцька та Волині
Переглядів 286 тис.
WLED: Mastering Segments, Multi-pin & Multi-Controller Setups
29:53
ResinChem Tech
Переглядів 6 тис.
Cheap and easy motor for props
6:02
Brian Benson
Переглядів 10 тис.
You’ve Never Seen WiFi Like This
20:43
Data Slayer
Переглядів 270 тис.
Motion-activated Sound Effects with Arduino, PIR Sensor & MP3 Player
25:26
Rachel De Barros
Переглядів 7 тис.
How to Use Millis to Master Arduino Multi-tasking
50:17
Rachel De Barros
Переглядів 43 тис.
The Ultimate Smart Light Strip Comparison! (6 Popular Devices)
41:23
Automate Your Life
Переглядів 186 тис.
Trigger DC Motor with PIR Sensor & Arduino - Complete Guide
35:29
Rachel De Barros
Переглядів 8 тис.
Wiring a Wiper Motor for Your Motorized Props!
26:54
Rachel De Barros
Переглядів 25 тис.
Make Posable, Movable, Articulating Joints for your PVC Props
36:33
Rachel De Barros
Переглядів 40 тис.
RTX 4070 Super слишком хороша. Меня это бесит
15:22
Рома, Просто Рома
Переглядів 95 тис.
САМЫЙ дешевый ПК с OZON на RTX 4070
16:16
Мой Компьютер
Переглядів 60 тис.
САМЫЙ дешевый ПК с OZON на RTX 4070
16:16
Мой Компьютер
Переглядів 60 тис.
🤯Самая КРУТАЯ Функция #shorts
0:58
YOLODROID
Переглядів 2,5 млн
Как установить Windows 10/11?
0:56
Construct PC
Переглядів 1,6 млн