Control RGB LEDs with Arduino || Arduino Essentials #1

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 พ.ค. 2024
  • In this first video in the Arduino essentials series, we go through how to program it to control an RGB LED strip that is individually addressable. By some, referred to as Neopixel, this can take creative projects to a whole new level. There are many tools that can be bought which implements fancy effects for you, but there is nothing quite like being able to write your own code to control your projects.
    Like our videos and would like to help out? Become a Patreon supporter! / nerdforge
    Website - www.thenerdforge.com/
    Follow us for social media for updates and behind the scenes content:
    Facebook - / nerdforge
    Instagram - / thenerdforge
    Twitter - / thenerdforge
    BUSINESS CONTACT: contact@thenerdforge.com
    LED KIT:
    LED Strip: goo.gl/sR7f5P
    Arduino Nano: goo.gl/V7qIaV
    5 volt power: goo.gl/S39EKB
    Easy power connector: goo.gl/GX1dN4
    Breadboard: goo.gl/UlYSsB
    Male to female jumpers: goo.gl/Cgiz1l
    Male to male jumpers: goo.gl/uFQKah
    Related videos at the end of the clip:
    Music Reactive Desk Light: • Music Reactive Desk Li...
    Color-Changing Acrylic LED Lamp: • Amazing Color-Changing...
    Room Lighting Control Panel: • Room Lighting Control ...
  • แนวปฏิบัติและการใช้ชีวิต

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

  • @thecaptain8773
    @thecaptain8773 5 ปีที่แล้ว +86

    This is one of the best technical vids I have watched in a long time. Well scripted, to the point, complete detail to make something simple happen which then opens the door for the user to do something more complex. Complete theory of operation at the functional level leaving out unnecessary / trivial detail that does not directly support achieving a specific result. BRAVO.

    • @underillusions5657
      @underillusions5657 4 ปีที่แล้ว +2

      Hey, you seem to know a lot about these channels. Can you recommend me some? Thanks

  • @Nerdforge
    @Nerdforge  7 ปีที่แล้ว +91

    Did you like the idea of this series? I know there's a ton of Arduino videos on TH-cam already, and I'm not sure if the topic is already too saturated. In the case that you liked it, have any ideas for what you would like to see in the future?

    • @LordFelix93
      @LordFelix93 7 ปีที่แล้ว +2

      Natural Nerd What about a 100W LED with an Arduino based pwm fan controller and a temp sensor?

    • @hab628
      @hab628 6 ปีที่แล้ว +2

      I would like seeing you doing more of the coding stuff.
      love your videos, they are greatly made! if you only could talk a little bit slower. not always easy to understand what you are saying wth your nowegian accent.

    • @altf113
      @altf113 6 ปีที่แล้ว +4

      I have an idea. how about an led strip behind the dashboard of a car or inside of it that lights up and does a forward and back motion and then stays on when you switch on the ignition of the car. i have been looking for a video on this and cant find it anywhere. thats actually how i found this video. keep up the great work.

    • @sumitadipadi1996
      @sumitadipadi1996 6 ปีที่แล้ว

      Want to see a video of arduino nano bluetooth servo powered speed controlled tank

    • @sumitadipadi1996
      @sumitadipadi1996 6 ปีที่แล้ว

      I gave 4 pin RGB led strip. How to wire it

  • @TheItzGambit
    @TheItzGambit 7 ปีที่แล้ว +9

    Love this concept! hit a wall with the reactive led video and this came out just in time for me to try something simpler with the same components. May I recommend you make an add on to this where you show coding in different patterns and effects into the strip?
    I know the fastled library has demo codes, but a lot of them include defines and such that aren't covered here.

  • @Branabis
    @Branabis 7 ปีที่แล้ว +16

    Oh my goddd I was literally hoping you would make one of these. I love learning all this stuff! I want to know all the possibilities of the Arduino.

    • @SquidBeats
      @SquidBeats 2 ปีที่แล้ว

      Jesus Christ is God

  • @Sheepsville
    @Sheepsville 6 ปีที่แล้ว +8

    Thank you from the bottom of my heart for this tutorial. I have been working with my Arduino controlling actual LED components individually wired up to separate pins on the Arduino, which limits the amount I can plug into it. I bought myself one of these LED strips with 300 LEDs on it but I haven't had the time to sit down and actually go through how I control every LED individually on the Strip. You have saved me such a lot of work...thank you, thank you, thank you. I am now happy to sit and start programming my strip of LEDs to dance a merry dance 😊😘

    • @Nerdforge
      @Nerdforge  6 ปีที่แล้ว +3

      Comments like these is what keeps us going :)

  • @Orybailey
    @Orybailey 4 ปีที่แล้ว +2

    I just discovered this channel and dear heaven please keep making these videos with how to code to make lighting effects! BTW I think I just spent 24 hours trying to catch up on all your videos. They are amazing.

  • @MoltenFungus
    @MoltenFungus 2 ปีที่แล้ว

    I've had this video bookmarked for a while. Of course it's Xmas season, I'm staring at a couple of strips, and never realized how no nonsense this tutorial is. Thank you!

  • @AdamNadas
    @AdamNadas 6 ปีที่แล้ว +6

    Hi, i realy like the video, on question i have only, how many led u can control with this controller maximum? How big led matrix i can build with this if is possible?
    Thank you for your help. Peace

  • @khainestar
    @khainestar 5 ปีที่แล้ว

    Seen a few videos on doing LED strips and they all seem to assume you already know how to do wiring, So skim it. They also seem to use 4 wires and a lot more kit. Love the simplicity of this one, very clear too. Thanks.

  • @carlosjosejimenezbermudez9255
    @carlosjosejimenezbermudez9255 6 ปีที่แล้ว +1

    This is what I was looking for, I don't need to be taught again how to program, just to understand the basics of arduino. Good job.

  • @bertmonkey8457
    @bertmonkey8457 6 ปีที่แล้ว

    Thanks for the simple and easy to follow tutorial... I am very new to it all and have managed to get my LED strip to dim and drighten at differant rates thanks to you! Now onto your next tutorial!

  • @drumminjeff71
    @drumminjeff71 4 ปีที่แล้ว +24

    This is a great tutorial! I wish you could do one about using multiple strips of LEDs on different channels of the Arduino. Working together as one array but also working totally separate of each other. I can't find any good tutorials on multiple Channel LED strips.
    Thank you for your videos.

    • @sefan1317
      @sefan1317 4 ปีที่แล้ว +3

      Did you ever find a good one? I'm wanting to start a project that needs exactly that.

    • @joshjohnson2460
      @joshjohnson2460 4 ปีที่แล้ว +3

      @@sefan1317 same! Trying to make an LED wall

    • @danvelarde446
      @danvelarde446 4 ปีที่แล้ว +1

      hahah I'm trying to do that too

    • @danvelarde446
      @danvelarde446 4 ปีที่แล้ว

      @@joshjohnson2460 did u ever find a vid

    • @danvelarde446
      @danvelarde446 4 ปีที่แล้ว

      @@sefan1317 did u ever find a vid

  • @MalakyPSPGen
    @MalakyPSPGen 7 ปีที่แล้ว +4

    Always such detailed thanks you guys ! Keep going you're great work :)

    • @Nerdforge
      @Nerdforge  7 ปีที่แล้ว +1

      Thanks man :)

  • @snotvlek4721
    @snotvlek4721 3 ปีที่แล้ว +2

    Good video! VERY IMPORTANT POINT, make sure your power supply can supply more amps than the LED strip pulls, you can check this by looking at how many leds the strip has, and since RGB LEDs take around 60mA, multiply the LED count by 60mA and you have the Amperage your PSU needs to supply!

  • @Joshua-ju5uc
    @Joshua-ju5uc 3 ปีที่แล้ว +2

    This was very helpful. I would love to see more projects for the 5V Leds using Arduino Nano

  • @greyhnd001
    @greyhnd001 4 ปีที่แล้ว

    Love that I an see your video clearer on my phone. How I usually start watching videos. Can you make a more indebted video about how to use fastled? Would appreciate it greatly. Thank you in advance.

  • @realsoftgames7174
    @realsoftgames7174 4 ปีที่แล้ว

    thanks this is exactly what i was looking for. i was wanting to convert input from my Electric skateboards throttle input to add brakes and indicators. this looks like it will work perfectly thanks for the short and well detailed tutorial.

  • @arenttelindert2913
    @arenttelindert2913 5 ปีที่แล้ว +1

    Great, it works, I now want to use the 12V WS2811. How do I put a mosfet in the diagram?
    Thanks for the answer, in advange.

  • @samiraa78
    @samiraa78 6 ปีที่แล้ว

    Thanks your simple yet very important video helped me solve a problem which was very simple yet for two days no one seemed to have an answer

  • @LoganHenry
    @LoganHenry 7 ปีที่แล้ว

    Thanks for the video! I'm new to arduino and IDE but I'm looking forward to digging in. How much more work is it to actually address them individually in your code?

    • @Nerdforge
      @Nerdforge  7 ปีที่แล้ว +1

      Thanks for the feedback. We actually address them individually, even though the effect is not so visible. When looping through the led array, each element led[i] can be given a different CRGB value, resulting in each led having different colors. Deciding how we want to give the leds different colours is more of a design issue when creating a project :)

    • @FreshApplePie
      @FreshApplePie 6 ปีที่แล้ว

      if you look at how for loops work, do you see when you set led[i] to a color? you're actually setting the led of index "i" to that color
      try it again and type in a number without writing the for loop, and you'll just change that led

  • @TruffleOfficial
    @TruffleOfficial 6 ปีที่แล้ว

    Hey bro, I have a question; are you able to control the led strip in side of Ableton Live 9 with a midi clip?

  • @SergioMaestroRoshi12
    @SergioMaestroRoshi12 5 ปีที่แล้ว

    Hi Nerdforge, I'm new using Arduino and I think your tutorial is the best to learn fade effect.
    I have a question, How could you modify your code to program 2 RGB LEDs strips (NeoPixels) on different pins?
    I'm trying it but I spent 3 days looking for information and I haven't got any result...
    Thank you for your patience!

  • @drewsemingson
    @drewsemingson 6 ปีที่แล้ว

    Thanks for the video, very helpful. My goal is to create an LED matrix display that will play gifs. Do you have any advice on how to do this using the Arduino? Is there already code written for a project like this?

  • @KaeMProd
    @KaeMProd 7 ปีที่แล้ว

    hello
    I wanted to ask you can use normal RGB LED strips
    and somehow to connect it with arduino ?

  • @Razorrule
    @Razorrule 7 ปีที่แล้ว +3

    its better to add a ~500 Ohm resistor for Data Pin - > Arduino Digital Pin

  • @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

  • @gregorydavis8144
    @gregorydavis8144 5 ปีที่แล้ว

    is there something i can use to test my program before i gather my LEDs?? possibly using another linux program or so for a display with 5 or 10 "on-screen lights"?? my projects build isn't until later this year so I'm hoping to get the programming portion sorted, then change the number of LED's and associated "lights" coding once I have it ready to go...

  • @Rydrdg
    @Rydrdg 5 ปีที่แล้ว

    Thanks for the info I'm new to this and planning to put rgb light on my skateboard.

  • @keithscott9219
    @keithscott9219 4 ปีที่แล้ว +1

    Do you have to have a power supply if you have the Arduino nano plugged in

  • @TempleGuitars
    @TempleGuitars 2 หลายเดือนก่อน

    Hello! Thank you for this clear tutorial! I want to ask you, is it possible to change the code so on a chain of maybe 20 LEDs, the two outside LED's activate first, then the next two etc, until they meet in the middle, then reverse until they reach the outside pair again on loop? What would that code look like?

  • @augustotessaro2085
    @augustotessaro2085 5 ปีที่แล้ว

    I liked so much this video you explain very well, continue this serie please

  • @sky8831
    @sky8831 6 ปีที่แล้ว +4

    Do any of y'all have a recommendations as to which power source we should use?

    • @EpicProvider
      @EpicProvider 6 ปีที่แล้ว

      i use a 3.7v 6600mah lipo with a powerboost 1000c (5v 1a) i also use a cheap dollar store power bank for $3 its 5v 1a 4400mah.

    • @kennmossman8701
      @kennmossman8701 4 ปีที่แล้ว

      There are 'open frame' SMPS at 5V that can handle up to 30A

    • @kennmossman8701
      @kennmossman8701 4 ปีที่แล้ว

      @warriorpluto These LEDs are USUALLY for 5V ONLY

  • @utsabdeepray6030
    @utsabdeepray6030 7 ปีที่แล้ว

    Natural Nerd, does this video have second part? awesome video. I want to learn Arduino related Diy or the workflow of arduino. Can you please help me that? Thank you in advance.

  • @MrScalzinator
    @MrScalzinator 7 ปีที่แล้ว

    Fantastic video! keep em' rolling!

  • @doyouknow3483
    @doyouknow3483 5 ปีที่แล้ว

    Just like we make animation using 8x8 led matrix, it is possible to do same thing using LED strip?

  • @clarkso65
    @clarkso65 6 ปีที่แล้ว

    U cant please everybody we all have differences, but the bottom-line is ur vid is awesomely good! keep it up..

  • @user-xp1mn8lq3n
    @user-xp1mn8lq3n ปีที่แล้ว

    thanks for the tutorial. does individual control work with ws2812? or only 2812b?

  • @vivecatos
    @vivecatos 5 ปีที่แล้ว

    if we were to control the LEDs over wifi using an arduino wifi module, would we need a separate power supply for the arduino? if so, any suggestions where such power supply can be bought?

  • @omnimediagroup5761
    @omnimediagroup5761 4 ปีที่แล้ว

    Can you hook up multiple strands to the same data pin to control a few all the same way?

  • @eggyrepublic
    @eggyrepublic 5 ปีที่แล้ว +30

    Looks like I'm gonna just return my $80 Asus ROG RGB terminal and build a even better one myself :D

    • @Pixel_FX
      @Pixel_FX 3 ปีที่แล้ว +3

      I creatd a corsair node pro using an arduino pro mirco.

  • @DunnyRail
    @DunnyRail 3 ปีที่แล้ว

    Superbly stated so that even I can understand it, just starting to get interested in Arduino for some House Front Window projects with changing lights and colours all inspired by a YT Vid of a Diagon Alley build. Never know where YT is going to take you, my thing is really Model Railways but I like building all sorts so Arduino has the ability to up my game in terms of lighting those projects. Many thatks for posting. Dunnyrail.

  • @pfft7267
    @pfft7267 5 ปีที่แล้ว +1

    Does this work in pc? The lights can they work inside my pc? Also i have an gigabyte z390 auros motherboard do you think that the lights will work for my pc?

  • @0t0egeub76
    @0t0egeub76 6 ปีที่แล้ว

    For the LED strip you linked to there are 5 wires coming off of it; A red and a white wire that are separate from the rest which I'm assuming are the for the power supply, and then another red, another white, and a green wire running through a connector. I'm assuming from my (albeit quite limited) knowledge that the green wire is the ground. What would the second red and white wire be for? How would one wire up that LED strip?

    • @ragingcow
      @ragingcow 5 ปีที่แล้ว

      The red and white wire not on the connector ia just for easy access im pretty sure

    • @lfcbpro
      @lfcbpro 5 ปีที่แล้ว

      I have the same kind of wiring,
      did you ever figure this out?

  • @SharkFin.pppppppppppp
    @SharkFin.pppppppppppp 7 ปีที่แล้ว +1

    nice! thanks this really helps with some projects!

  • @KalabawCNC
    @KalabawCNC 7 ปีที่แล้ว +1

    love this!! I'd like to see a tutorial like this for controlling a max number of individually addressable RBG LEDs....like what is the max number of RGB LEDs that can be controlled? Is it possible to individually address 1024 RGB LEDs? or how about 2048? or 4096? what kinds of technologies would it take? what are the technologies involved in such a large setup? multiplexing? wires? drivers? Keep up the good videos! :-D

    • @hejtmy
      @hejtmy 7 ปีที่แล้ว +1

      There is no limit to LED theoretically. I think the major issue with so many leds will become power consumption, as most of them run on 10/5V only. I have a strip of 120 LEDs and it draws approximately 36W on 5 V, so you get 7A current. On 1000 that would be 70A. Very high draw from home sockets is I believe somewhere between 15-20A.

    • @KalabawCNC
      @KalabawCNC 7 ปีที่แล้ว

      I was mainly concerned about address-ability. Being able to individually address each LED, and what signal wire protocol. i.e. if using 2-wire serial communication how fast is the refresh rate to loop through each LED and set it's light value. If using a hybrid parallel/serial signal wire protocol with something like ethernet wire then what kind of refresh rate could be expected. If using a fully parallel wire obviously addressing loop time would be very fast.

    • @KalabawCNC
      @KalabawCNC 7 ปีที่แล้ว +1

      My other main concern is how would the setup/configuration be done for
      very large numbers of LED's before it becomes impractical for individual
      addressing. i.e. How do you do this kind of multiplexing? I've seen a
      lot of videos that say you just do it, but gloss over the implementation
      details. I like that you have all the details in this video and would
      like to see something that goes into greater detail on large scale
      multiplexing.

    • @hejtmy
      @hejtmy 7 ปีที่แล้ว +1

      If you do it through arduino, you don't care about the serial connection. You upload the script and it just runs on its cpu - aroudn 800MHz. through serial/tcp, you can only upload some simple commands that affect the loop, where you don't care about speed. the limiting factor in this case would be both the arduino and the led itself. I really have no idea. I recommend github.com/FastLED/FastLED/wiki/Overview to browse through their library. It's amazing and I used it for all my projects so far.

    • @KalabawCNC
      @KalabawCNC 7 ปีที่แล้ว +2

      Ahhh ok I just looked up the specs for the Atmega chip at 250,000 bps, and 16 bit serial address gives about 65,000 individual light addresses as the limit. But lets say a liberal estimate of 10,000 individually addressable lights on a serial signal wire. So that means to drive that chain we would have to send 160,000 bits which would take approximately 0.64 seconds, which is about 1.5625 hz refresh for the entire light chain as the theoretical limit. So my real interest is in how you could get this refresh rate up by using more than just 1 serial wire, and what would work best and how the implementation would work. Obviously if you use a 2-wire telephone wire you could probably get this to double since the data pipe would double. 250,000 bps down 2-wires rather than just 1. 4-wire security cable would double it again to update the chain in 0.08 seconds 12.5 hz. Ethernet wire would double it again and give you about 25 hz. I suppose that is acceptable refresh rate for most applications. And most applications will have less then 10,000 individual lights. ;-) Next interesting challenge is as you said, power, and of course programming. I'll have some fun when I finish building my Maker Lab space. Thank you for all of this! Good stuff!!

  • @PapaFortnite
    @PapaFortnite 7 ปีที่แล้ว

    Så kult at dere er i fra norge, hvilken by?

  • @patricb7769
    @patricb7769 3 ปีที่แล้ว

    Do you also need to connect the 5v to the arduino to power the arduino?

  • @WhiteError37
    @WhiteError37 4 ปีที่แล้ว

    Plug in the Arduino Nano into your PC!!!!.
    Thanks for the video dude, for everyone that was going through my pain on start-up you have to plug the Arduino into the usb port first (well that’s what I found worked for me!). Going to google search but hopefully I can get it working without the usb cable as I want to make a lightsaber with the Arduino nano in the hilt so plugging the usb cable in every time to the board is not ideal. Once the board is powered via usb i can take the usb cable out and the leds stay lit over a single 3.7v Li-ion battery I’m also running a 330om resistor in-between the data line as this takes less voltage so it's best practice to protect it. Took me so ling to figure this out because i didn't want to push too much current to the leds from both the nano and the 3.7v battery.
    anyway hope this helps some people :)

  • @BrandonPrentice
    @BrandonPrentice 5 ปีที่แล้ว +1

    Great video. Question on arduinos as a whole; Is there any way for me to permanently program an arduino to perform this program by just powering it on? My project is to have a stand-up LED sign and I was hoping to mount a Arduino nano to the base so anytime it was powered on, it would run this program in it's memory without me having to re-upload it. I'd appreciate any help on this

    • @TechieBaksh
      @TechieBaksh 5 ปีที่แล้ว

      Yes..!! All microcontrollers have this function inbuilt..!! So, if you program/flash the code once ... Your Arduino board will always have the same code stored in its internal Read Only Memory. Just give the power to your Arduino Nano...and it will do the same job.... whenever you power it up. Hope I answered your question..??😊

  • @antonbeck439
    @antonbeck439 6 ปีที่แล้ว

    Hey really good video, but my led strip has four pins... how i can do it with them?

  • @peterlingas
    @peterlingas 6 ปีที่แล้ว

    Kalla by kommer du fra? Er veldig interresert i arduino forresten, fortsett med serien!

  • @brocki5762
    @brocki5762 5 ปีที่แล้ว

    Hey, very good video! But i have on question because of the fade. Is there any method to fade mixed colors? I mean, when you have for example (0,153,76). In my case that doesn't work. Am I doing anything wrong, or do I have to choose a different way?
    (Sorry for mistakes, I'm from Germany and my English is not the best😊)

    • @Nerdforge
      @Nerdforge  5 ปีที่แล้ว +1

      That should work, blue is 0,0,255, but for instance purple would be 255,0,255 or something like that.

  • @jeremydavis3964
    @jeremydavis3964 6 ปีที่แล้ว

    Thank you I got a lot of good information from your video that you made and I look forward to doing cool things with LEDs similar to Daft Punk thank you and light on

  • @hulahoopvevo8537
    @hulahoopvevo8537 6 ปีที่แล้ว

    hey i want to ask you if you can save the patterns on the arduino or dosen´t the the light strip reapeat the pattern that you make while the arduino isn´t conectet to the PC?

  • @b.w.oostdam8875
    @b.w.oostdam8875 6 ปีที่แล้ว

    Hello, nice tutorial short and to the point. I have a question. Is it possible, aside from the power needed, to address lets say a strip of 10 meters with for instance 30 LED/meter. They will not be lit all at the same time. only a few. But the addressing worries me. Is it possible to address them all individually when there are more than 300 LEDs in the strip?

    • @zenniz1992
      @zenniz1992 6 ปีที่แล้ว

      Possible so long as the voltage is high enough. From the code 2:29, leds[i] = Function(X, Y, Z) where i is the position of LED in the strip.

    • @b.w.oostdam8875
      @b.w.oostdam8875 6 ปีที่แล้ว

      Thank you !

  • @NOSCOPE21
    @NOSCOPE21 5 ปีที่แล้ว

    Hello, can i be super lazy and use Jinx!, Glediator, Pixel Controller with an arduino nano? Thanks

  • @SirDanMartin
    @SirDanMartin 3 ปีที่แล้ว

    How do you power the Arduino with this circuit setup? If I use a separate power supply using the Vin pad will the common ground points be a problem? Sorry if this is a stupid question.

  • @Engine_biulds
    @Engine_biulds 4 ปีที่แล้ว

    Say for instance you want it to do a preprogrammed sequence for a triggered input. Is the nano able to be programmed with up to 5 programs for 5 input triggers?

    • @Engine_biulds
      @Engine_biulds 4 ปีที่แล้ว

      For instance if your using it as the means to totally control reverse lights/ brake lights/ turn signals using addressable LEDs

  • @victorsokoluik4573
    @victorsokoluik4573 ปีที่แล้ว

    Hi! Thansk for the video. Is there the way to divide the strip for two part: 3 of the leds light blue and other 3 light green for example

  • @makeitathome1327
    @makeitathome1327 11 หลายเดือนก่อน

    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.

  • @J4RDAAN
    @J4RDAAN 4 ปีที่แล้ว

    It worked perfectly , thanks!

  • @Porroquio
    @Porroquio 3 ปีที่แล้ว

    Let's say I want to control 12 leds with arduino nano. So I connect them and create a colorful grading base animation that looks great.
    But in addition, is it possible to use a switch for each led that when pressed the corresponding led will change to white? All this without interfering with the base animation.
    Is this possible? I've been looking online but haven't been lucky enough to find information on a project like that.
    In other words, having an animation loop around the whole strip and when pressing (in example) switch number 3, the led number 3 goes fully white, while the animation still keeps going for the rest of the LEDs.

  • @herdysetyawan3990
    @herdysetyawan3990 5 ปีที่แล้ว

    I have led strip 5M long, 300 LED. Should 5V works to powering 300 LED ? Thanks

  • @Steve211Ucdhihifvshi
    @Steve211Ucdhihifvshi 4 ปีที่แล้ว

    Id like to run three 240v relays from an arduino. Can one buy an Arduino thats allready set up and programmed to trigger 3 to 4 relays?

  • @Sate_Padang_Rp20.000
    @Sate_Padang_Rp20.000 5 ปีที่แล้ว +3

    I got a problem it said that no matching function for call to'CFastLED::addLeds(CRGB&, int)'
    What does it meant and what could i do with it

    • @Ethaaaaaaaaaan
      @Ethaaaaaaaaaan 4 ปีที่แล้ว

      I have the same issue.

    • @koolrcky
      @koolrcky 4 ปีที่แล้ว +1

      I had the same issue but then realized where I had “CRGB led[NUM_LEDS];” I had parenthesis around NUM_LEDS instead of the brackets

  • @Extraterrestifool
    @Extraterrestifool 6 ปีที่แล้ว

    Brilliant video :D Really helped a lot, but is it possible to program the Led's not to use the blue light colour?

    • @Nerdforge
      @Nerdforge  6 ปีที่แล้ว +1

      Sure, when you set the color value using CRGB(0, 0 255), the positions of the numbers represent the color. First is red, second green, third blue. 255 is full, 0 is nothing, so this will output full blue.

    • @Extraterrestifool
      @Extraterrestifool 6 ปีที่แล้ว

      Thank you So much for replying! Subscribed :)

  • @aneudysc
    @aneudysc 6 ปีที่แล้ว

    I needed this... also I need theese kind of tutorials but with WRGB LED's theese strips have 4 contacts

  • @markharrington5826
    @markharrington5826 7 ปีที่แล้ว +4

    Excellent video very good , but delivered at extreme high speed Please read further questions
    1: Having explained this much as far essentials is concerned what do you feel are the important parts or absolute essentials that you have missed ?
    2: If the user truthfully really does want to delve into arduino what should you next step be do you think and could you explain how you might attack this problem ?
    3: What do you think the user now understands about the communications protocol for addressing the led lighting ?
    4: How would you consider that knowledge of that communications protocol might affect industry later on ?
    5: If you were to write this and its library from scratch what language would you be using and at what level ?
    7: More importantly why would you be using your choice of language ?
    8: What would you feel the users understanding of the hardware is at this stage ? This includes external hardware regarding led strip
    9: What typical precautions that you might observe and how would you instruct define those pre requisites be and what would your expected be knowledge be with reference to hardware be ?
    10: If you gave the user a schematic showing the led strip and its associated hardware how quickly would most be able to identify particular components be and would they recognize badly made led strips with possible mistakes in both structure and design
    11 :What does the user know about libraries used in your sketch and what do you feel their understanding might be of a library ?
    12: Would you consider this import and withing your answer could you explain why you might or might not consider this important together with its impact in perhaps business on both the both the buying side , technical side , sales side , managerial side
    13: With reference to your above answer to question 12 how do you feel that your answer may or may not throw light on the number of bossiness in todays society that now closing and how would explain this to the departments of man power with respect to high levels of unemployment ?
    14: What do you feel the importance of flow charting might be with respect to your tutorial and how do you feel that might impact your code or others whom you instruct ? What you describe as the importance of writing algorithms be with reference to deciding on flow control of your code ?
    15: What would that impact be in the work place do you think ?
    16: On you clip you have depicted a power source from whence you led strip derives its power Ho would you implement over voltage protection and what would you do in your setup to ensure that of the led strip failed that no damage might be caused to the Arduino ?
    17: With Reference to question 16: How would you describe the impact of this in lets say a custom design and its servicing required within an interior design and how would you tackle this problem
    18: What typical types of test equipment and tools would you require to locate a fault in these areas
    Thanking you
    Mark

    • @rdmm123
      @rdmm123 6 ปีที่แล้ว +1

      Mark Harrington ignorado rufián :v

    • @alejandroperez5368
      @alejandroperez5368 6 ปีที่แล้ว +4

      Make 100$ payment and I'll answer all that book of questions...

    • @HelloMyNamesNino
      @HelloMyNamesNino 5 ปีที่แล้ว

      Lol. There’s a great website that can answer this ridiculous list of questions. Just follow this link:
      Www.google.com

  • @hawkshalfback
    @hawkshalfback 7 ปีที่แล้ว +1

    Is the 5v pin on the Arduino board an output? Could I use that pin to power the LED strip if I am powering the board through USB?

    • @Nerdforge
      @Nerdforge  7 ปีที่แล้ว

      only with a couple of LEDs, the Arduino does not output enough current to power many LEDs

    • @hawkshalfback
      @hawkshalfback 7 ปีที่แล้ว

      Natural Nerd My first project is going to be small. Would 3-4 be safe for testing? Am I correct in thinking that LEDs just glow dimmer when under-powered? I don't want to "magic smoke" the board right off the bat.

    • @Nerdforge
      @Nerdforge  7 ปีที่แล้ว

      I'm pretty sure 3-4 would be fine for testing. If you draw too much current, you can damage the board, yes.

    • @hawkshalfback
      @hawkshalfback 7 ปีที่แล้ว

      Natural Nerd Sorry, I'm new to Arduino boards. Do you know if it is a regulated 5V output or just a contact point to the circuit board's internal power?

    • @Nerdforge
      @Nerdforge  7 ปีที่แล้ว

      Look at the answer in this stackexchange, I think it answers your question:
      electronics.stackexchange.com/questions/67092/how-much-current-can-i-draw-from-the-arduinos-pins

  • @nazirumbangba7530
    @nazirumbangba7530 4 ปีที่แล้ว

    Awsome.
    But How do you control a panel of rgb led sign that displays letters

  • @moisesmosso6328
    @moisesmosso6328 5 ปีที่แล้ว

    How many led can you light without the battery, just the arduino?

  • @obliquetortoise6980
    @obliquetortoise6980 5 ปีที่แล้ว

    hey just out of curiosity(noob here) could you have plugged in the led strip to the arduino's 5v output?

    • @Nerdforge
      @Nerdforge  5 ปีที่แล้ว +2

      Yes, if the LED strip is small that would work. The Arduino usually can't deliver over 1A :)

  • @gongarcia4071
    @gongarcia4071 7 ปีที่แล้ว

    Quick question, this LEDs are necessary Neopixels strips? or can any rgb conventional led work as the same?

    • @Nerdforge
      @Nerdforge  7 ปีที่แล้ว +1

      Hey! No, leds can only be addressed individually if they are of a neopixel kind, I'm afraid

    • @gongarcia4071
      @gongarcia4071 7 ปีที่แล้ว

      Natural Nerd thats what i thought.... oh well it was nice having the ilusion for a while... hahaha. thanks for answering

    • @Nerdforge
      @Nerdforge  7 ปีที่แล้ว

      The specific effect created in this can be achieved with regular leds though, using a transistor like a mosfet. But you wont have the ability to access each led through an array to set the color value

  • @paulglenny1714
    @paulglenny1714 6 ปีที่แล้ว

    so after you do all the code can you run the strip without the arduino? or does the arduino need to be connected in order for the leds to receive the code?

    • @Nerdforge
      @Nerdforge  6 ปีที่แล้ว

      The Arduino runs the code and controls which signals are sent to the LEDs, so it has to be attached. Else the LEDs will only hold a static color.

    • @Criznz
      @Criznz 6 ปีที่แล้ว

      it has to be connected or on a different case you can leave the ATMEGA with out the arduino shield

  • @Matyanson
    @Matyanson 3 ปีที่แล้ว

    Hello. My power supply for the led strip is 5V 2.5A. and I use my notebook usb for the supply for arduino(5V i guess). When I connect the data cable to the pin on the arduino, don't I need to add a ressisto between the cable and pin?
    Thanks for help

  • @Kostanj42
    @Kostanj42 5 ปีที่แล้ว +2

    so i can also do
    led[1] = crgb(255,0,0);
    led[2] = crgb(0,255,0);
    led[3] = crgb(0,0,255);
    FastLED.show();
    and first led will be red, second green and third blue?

    • @ghans2305
      @ghans2305 5 ปีที่แล้ว

      not quite, if i read the code correctly, the individual LEDs are stored in an array, which starts at 0. That's why in the function where he made them all turn blue for the first time, the loop counter "i" started at 0. so you would have to do
      led[0] = crgb(255, 0, 0);
      led[1] = crgb(0, 255, 0);
      led[2] = crgb(0, 0, 255);
      fastLED.show();

    • @Kostanj42
      @Kostanj42 5 ปีที่แล้ว +1

      yeah i figured it out after many failed attempts..

  • @pg86131314
    @pg86131314 6 ปีที่แล้ว

    How do u make it change colors during the cyle

  • @HyperspeedMedia
    @HyperspeedMedia 5 ปีที่แล้ว

    Is there a software to do all this ??

  • @yzainsarfraz
    @yzainsarfraz 4 ปีที่แล้ว

    Is arduino able to run RGB fan display leds?

  • @mysticqro950
    @mysticqro950 6 หลายเดือนก่อน

    0:55 wait so how does the ESP32 get its power? Do you plug the ESP32 via USB or does it power from the power supply? I’m confused.

  • @DMonZ1988
    @DMonZ1988 6 ปีที่แล้ว

    hey. thank you for the guide! unfortunately i bought a 12V LED strip. can i connect them with a common ground or will i fry the arduino? if there's a simple way to make it work i'd be so so grateful!

    • @Nerdforge
      @Nerdforge  6 ปีที่แล้ว +1

      Should be fine.

    • @DMonZ1988
      @DMonZ1988 6 ปีที่แล้ว

      Natural Nerd thank you for the quick reply. Just found some info on using a transistor so will try that to be safe, if I have one, but if not I'll just do it anyway.

    • @Nerdforge
      @Nerdforge  6 ปีที่แล้ว

      The arduino can take 12 volt input as well. It's regulated. 5-12 volts.

    • @DMonZ1988
      @DMonZ1988 6 ปีที่แล้ว

      really? there are so many guides on how to step down 12v for an arduino, drive LEDs with a mosfet, thermistor and so on. i'm really confused by all the different suggestions.
      the data pins are definitely 5v if i understand correctly.
      are you suggesting that i input 12V from the power supply to the LED lights and arduino in parallel, LED ground into the arduino GND pin and the LED data cable to the correct PWM pin, with nothing else, and it will work?

    • @DMonZ1988
      @DMonZ1988 6 ปีที่แล้ว

      ok you're right about the 12V, thank you! i can power the arduino fine with my 60W PSU. no smoke.
      so, would it be a terrible idea to solder the LED power and ground directly at the VIN on the arduino, or would i somehow be pulling too much current into the board despite it being before the regulator?
      if i then put data input into the PWM pin and the other end into the digital GND, it should work, right?

  • @StizzyPlays
    @StizzyPlays 3 ปีที่แล้ว

    How do i connect the SK6812 model of led strip to my arduino and to my pc is this video the way i should connect them ?

  • @williamb3323
    @williamb3323 5 ปีที่แล้ว

    how do you code it to alternate through the colors?

  • @oneyedthing
    @oneyedthing 3 ปีที่แล้ว

    Does it really require a power supply? Is there anyway to power the nano using the usb? Just need to power up 5-6 leds

    • @Nerdforge
      @Nerdforge  3 ปีที่แล้ว

      For 5-6 5volt leds you can power the nano with an USB and use the 5v pin for power :)

    • @oneyedthing
      @oneyedthing 3 ปีที่แล้ว

      @@Nerdforge
      Eeeeeyyy.. thanks man. You are life saver.. Just ordered the nano with no power supply.

  • @Richardpapz
    @Richardpapz 6 ปีที่แล้ว

    How to change the colors be sides red, green and blue? With for code and fading effect?

  • @darkavenzi58
    @darkavenzi58 7 ปีที่แล้ว

    Great job!

  • @roopesh1988
    @roopesh1988 5 ปีที่แล้ว +3

    Hi I am getting error say 'NUM_LEDS' was not declared in this scope .. followed all you instruction

    • @PlasmaSabre
      @PlasmaSabre 5 ปีที่แล้ว

      Same problem here.

  • @steezy1692
    @steezy1692 3 ปีที่แล้ว

    could I do this with the arduino starter kit?

  • @christiangibbs1482
    @christiangibbs1482 3 ปีที่แล้ว

    Thank you so much for posting this!

  • @bmax5928
    @bmax5928 3 ปีที่แล้ว

    3 years later and i still like it! 👀👍

  • @CanErdinc
    @CanErdinc 4 ปีที่แล้ว

    You gave me inspiration and i gave you a sub!

  • @imaansattar5135
    @imaansattar5135 6 ปีที่แล้ว +4

    getting an error with this code : led not declared in a scope. how do i fix this?

    • @PlasmaSabre
      @PlasmaSabre 5 ปีที่แล้ว +1

      Same issue. Did you get it fixed?

    • @hemantmundhe6662
      @hemantmundhe6662 5 ปีที่แล้ว

      @@PlasmaSabre sir dose not led it is leds all change name in skech

  • @timsampson2941
    @timsampson2941 4 ปีที่แล้ว +2

    Can I run 2 strips at the same time, both doing the same sequence?

    • @shinmalpure7872
      @shinmalpure7872 4 ปีที่แล้ว

      yup if you have enough pc power supply

    • @timsampson2941
      @timsampson2941 4 ปีที่แล้ว

      @@shinmalpure7872 From the same arduino or does it need 2?

    • @shinmalpure7872
      @shinmalpure7872 4 ปีที่แล้ว

      @@timsampson2941 pROBaBly saMe cAUsE aUrDINo hAS sEPERaTE ports

    • @kennmossman8701
      @kennmossman8701 4 ปีที่แล้ว

      In theory, you can but check the logic drive current vs max port current

  • @R3MIXMODZ
    @R3MIXMODZ 5 ปีที่แล้ว

    Please Help!!! So I just finished a project and i realized my leds dont work! When I plug the led strip in about half of the cut strips work and the other half show colors that are not even present in the code? What is wrong with it?

  • @robinrosiers331
    @robinrosiers331 6 ปีที่แล้ว

    Hi,
    Can you with these control each LED individually? Like let's say, you have 20 LED's and you want the 5th, 8th and 20th to light up blue, the rest not, and so? Is that possibe? If so, could you make a tutorial about it?

    • @Nerdforge
      @Nerdforge  6 ปีที่แล้ว

      That is exactly what we do in this video, except we use a for loop to go through all the LEDs and set them to the same color. If you want to set them to different colors, then instead of looping through, just do leds[4] = whatever color you need, to set the 5th LED.

    • @robinrosiers331
      @robinrosiers331 6 ปีที่แล้ว

      aha, perfect, is there a site where I can buy them seperated from each other? In large quantities? Like, I'm planning to make my own emergency LED's, to build in a car. :)

    • @Nerdforge
      @Nerdforge  6 ปีที่แล้ว

      I see. Well, you could just buy the strips I linked and cut them into the lengths you need

    • @vasil-yt
      @vasil-yt 5 ปีที่แล้ว

      @@robinrosiers331 if you're still searching. It's best to use an entire strip since they are very cheap and can be cut as long as you need. Also you have some extras since sometimes a few LEDs don't work

  • @wZerox
    @wZerox 3 ปีที่แล้ว

    Hey, if i connect one which has already a "program" on it .. can i then just read the code thats on it ?

  • @ltechled15
    @ltechled15 3 ปีที่แล้ว

    Really detailed and helpful.

  • @roboticsgen2229
    @roboticsgen2229 3 ปีที่แล้ว

    For me the hardest part of Maker is programming. I follow up with many don't understand but it work, Thank anyway.

  • @jacksprat2200
    @jacksprat2200 3 ปีที่แล้ว

    What is neopixel?? Is it same like RGB Led strip? Thanks