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

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 พ.ค. 2024
  • 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
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 57

  • @3DPrintedProps
    @3DPrintedProps 8 วันที่ผ่านมา +1

    Fantastic Video. Going to watch everything on your channel. You really do a great job teaching these topics. Great stuff.

  • @deanallenjones
    @deanallenjones 18 วันที่ผ่านมา +1

    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 17 วันที่ผ่านมา +1

    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.

  • @A_F_Innovate
    @A_F_Innovate 13 วันที่ผ่านมา

    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.

  • @Joe-sx1iu
    @Joe-sx1iu 6 วันที่ผ่านมา

    This is an awesome tutorial! Thank you!

  • @terrymcdade1888
    @terrymcdade1888 21 วันที่ผ่านมา +1

    I have an animatronic I'm starting to build that I'm using your tutorials on. Thanks for another great idea.

  • @jacquesdubord6844
    @jacquesdubord6844 16 วันที่ผ่านมา

    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 TH-cam. Thanks

  • @guyprovost
    @guyprovost 15 วันที่ผ่านมา

    Love your videos a lot. Well made, fun and educational. Keep it up!

  • @user-us3dp7tb3m
    @user-us3dp7tb3m 21 วันที่ผ่านมา +1

    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  21 วันที่ผ่านมา

      Glad it was helpful! I hope you can use the info for your next project!

  • @michaegi4717
    @michaegi4717 21 วันที่ผ่านมา

    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.

  • @tomg721
    @tomg721 21 วันที่ผ่านมา

    Great tutorial Rachel. You answered a lot of my questions about LED strips. I'm ready to order some and start tinkering. Thanks

  • @razzle4528
    @razzle4528 18 วันที่ผ่านมา

    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

  • @jamesmoon5632
    @jamesmoon5632 21 วันที่ผ่านมา

    Oh I need to watch this on Sunday so I can watch with my full attention

  • @ebrahimajam9299
    @ebrahimajam9299 20 วันที่ผ่านมา

    Much love all the way from Cape Town

  • @naboulsikhalid7763
    @naboulsikhalid7763 20 วันที่ผ่านมา

    Great tutorial with animation and comedy very enjoyable to watch. thanks, Rach

  • @MohammadsarwarNoorzai
    @MohammadsarwarNoorzai 21 วันที่ผ่านมา

    Nice to meet you

  • @TheUnofficialMaker
    @TheUnofficialMaker 21 วันที่ผ่านมา

    fabulous, just what I needed!

    • @RachelDeBarrosLive
      @RachelDeBarrosLive  21 วันที่ผ่านมา

      Working on a lighting project? Let me know how it goes!

  • @Electramasco
    @Electramasco 21 วันที่ผ่านมา

    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 21 วันที่ผ่านมา

    You explain very well👌

  • @bountyhunterbreaks898
    @bountyhunterbreaks898 21 วันที่ผ่านมา +1

    Rachel getting a little fast and furious programming LED strips!!!

  • @kurtdeschepper2631
    @kurtdeschepper2631 19 วันที่ผ่านมา

    I understand your logic the best of them all ,thanks,i'll try this one!

  • @strandum67
    @strandum67 20 วันที่ผ่านมา

    Nice !! 😍

  • @chadwickjones2824
    @chadwickjones2824 20 วันที่ผ่านมา

    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?

  • @colinrobert-kv2up
    @colinrobert-kv2up 21 วันที่ผ่านมา

    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 21 วันที่ผ่านมา

    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 😀

  • @TheHeritageLine
    @TheHeritageLine 21 วันที่ผ่านมา

    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.

  • @bobmirror7164
    @bobmirror7164 21 วันที่ผ่านมา

    Great way to get the "for" loop iteration coding down pat.

  • @I.____.....__...__
    @I.____.....__...__ 20 วันที่ผ่านมา

    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 18 วันที่ผ่านมา

    Looks cool following it going back and forth? Like? Skittles?

  • @MohammadsarwarNoorzai
    @MohammadsarwarNoorzai 21 วันที่ผ่านมา

    Hi nice video nice to meet you

  • @michaelromeo5658
    @michaelromeo5658 3 วันที่ผ่านมา

    sorry you mentioned the 12Volt issue in the video my mistake!

  • @michaelromeo5658
    @michaelromeo5658 3 วันที่ผ่านมา +1

    Hi there. are the light strips 5vdc? Is it possible to use 12vdc led strips?

  • @paulcohen1555
    @paulcohen1555 20 วันที่ผ่านมา

    תצוגה מצויינת של הנושא.

  • @corsairsmitty5438
    @corsairsmitty5438 7 วันที่ผ่านมา

    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 9 วันที่ผ่านมา

    Have you see this by Robert Jenkins Technology Channel - Spooky eyes - halloween Eyes assembly with schematic and configuration.

  • @ledsarefun-oi3oi
    @ledsarefun-oi3oi 19 วันที่ผ่านมา

    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  18 วันที่ผ่านมา

      😄 I actually do have a 16x16 matrix so I'll add that to the mix!

  • @samjohnson2801
    @samjohnson2801 21 วันที่ผ่านมา +2

    So cool! And Rachel is always so FINE!

  • @nktube.vyas.n
    @nktube.vyas.n 20 วันที่ผ่านมา

    How can do long program is upload

  • @damianbutterworth2434
    @damianbutterworth2434 21 วันที่ผ่านมา

    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 21 วันที่ผ่านมา

    Nice video and nice girl ❤

    • @RachelDeBarrosLive
      @RachelDeBarrosLive  21 วันที่ผ่านมา +1

      Thanks! Hope you make a cool lighting project 👍

  • @DBB-KE5DUO
    @DBB-KE5DUO 21 วันที่ผ่านมา +1

    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  21 วันที่ผ่านมา +2

      They've updated the library since we first discovered the 3-color gradient bug, but it's still biting! 🤣

    • @DBB-KE5DUO
      @DBB-KE5DUO 21 วันที่ผ่านมา +2

      @@RachelDeBarrosLive - I see what you did there... bug bites... bug bytes? 🤣

    • @mikejones-vd3fg
      @mikejones-vd3fg 21 วันที่ผ่านมา +1

      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 21 วันที่ผ่านมา +1

      @@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 14 วันที่ผ่านมา

    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 21 วันที่ผ่านมา

    Nice to meet you

  • @MohammadsarwarNoorzai
    @MohammadsarwarNoorzai 21 วันที่ผ่านมา

    Nice to meet you ‏‪