How to connect multiple LEDs to Arduino || What Resistor to use?

Sdílet
Vložit
  • čas přidán 11. 07. 2024
  • Get your Arduino kit here to get started:
    bit.ly/3d8VHfg
    This tutorial explains:
    Do I need Resistors when connecting LEDs to Arduino?
    The difference between series circuits and parallel circuits.
    How many LEDs can be connected to an Arduino?
    What resistor values to use with LEDs?
    LED basics
    How much current can an Arduino supply?
  • Věda a technologie

Komentáře • 56

  • @aeffendiibrahim2562
    @aeffendiibrahim2562 Před 5 lety +4

    It's feels great when you know you learn something form very relaible source, you not just telling us how but why, thanks a lot!

    • @Fungineers
      @Fungineers  Před 5 lety +3

      Thanks for appreciating. Main purpose of all my projects is to explain the basics. Once you understand the basics you can build anything. Good luck :)

  • @alejandromatarrese6717

    Thanks!! a really graphic explanation!

  • @yazeedarifin6708
    @yazeedarifin6708 Před 3 lety

    I finally found the necessary reasons here . thank you

  • @xavillinares
    @xavillinares Před 4 lety

    Thanks a lot for these valuable explanations

  • @PurpleGround
    @PurpleGround Před 6 lety +1

    Noice! keep it up! Great work!

  • @sokoloft3
    @sokoloft3 Před 2 lety

    Thanks. I made these 8 switch macro pads that are similar to a streamdeck. I used razer green switches from a junk keyboard. I wasn't able to use any of the leds since I didn't know the circuit. I'll order some resistors and see if I can make this work with my pro micro.

  • @luispatatas
    @luispatatas Před 3 lety

    Very good explanetion.tanks

  • @Nonononono_Ohno
    @Nonononono_Ohno Před 3 lety +3

    2:39 The text explanation given is absolutely correct. However, assuming that the graph for the LED uses the same axes as the graph for the resistor, then what you're showing isn't an exponential function, but a logarithmic function.

  • @amrounesalah8706
    @amrounesalah8706 Před 3 lety

    Merci pour le partage de la video. Thanks from Algeria.

  • @carlosgruss7289
    @carlosgruss7289 Před 3 lety

    Great content

  • @johndoe-is2fw
    @johndoe-is2fw Před 3 lety

    I have a 15V 1A PowerSupply connected to 9V 0,38A Pc Vent, do i need a Resistor? how will the Ohm's Law Calculation for these Numbers look like?

  • @Andrew-fo4zo
    @Andrew-fo4zo Před 8 měsíci

    Hello! After watching your video, a question poped in my mind. Is it safe to connect all pins, including d2 to d13 and +5v, to, let's say, 3 leds each?

  • @VaibhavSNaik-nc9qt
    @VaibhavSNaik-nc9qt Před 5 lety

    Good video, u saved me from frying my arduino,
    One question I m using 5050smd leds according to datasheet they need 3x20mA what should I do?

    • @Fungineers
      @Fungineers  Před 5 lety +1

      Connect them through a proper resistor preferably on different pins:)

  • @Autotrope
    @Autotrope Před 3 lety +1

    Not sure I follow the math at 4:57. If one led drops 3v and three leds in parallel drop 3v too, wouldn't that leave the current at the resistor (and hence the circuit overall) the same?

  • @HunterFireShield
    @HunterFireShield Před 3 lety +1

    Does it matter if the resistor is in the positive or negative slot? You do it in negative but I thought it would go in positive because the electricity starts negative, attracts to the positive of the LED, turns into negative, then it should be attracted to the positive end of the resistor but you have it in negative

  • @faboxbkn
    @faboxbkn Před 5 lety

    gracias master!

  • @user-vl4zi9vl8g
    @user-vl4zi9vl8g Před 5 lety +2

    This is awesome, thank you. I am actually working on a cosplay for the upcoming video game cyberpunk 2077 and I wanted to know how I can safely add a switch to this circuit. And should I use two double A or a 9v with a resistor?

    • @Fungineers
      @Fungineers  Před 5 lety

      Thanks for appreciating.

    • @Fungineers
      @Fungineers  Před 5 lety

      Really depends on what you are working with. How manu LEDs and what's their required voltage.

    • @user-vl4zi9vl8g
      @user-vl4zi9vl8g Před 5 lety

      @@Fungineers I'm using blue LEDs, I am thinking either 4 or 8 depending on what battery I will require. I prefer to use cylindrical batteries since the prop gun has a place to hold foam darts and I can make them slide in the same area. BUT. I can use the 9v if really needed. They are 2.8-3.0v each.

    • @Fungineers
      @Fungineers  Před 5 lety

      Two AA provide a total of 3V so will power only one LED.

    • @user-vl4zi9vl8g
      @user-vl4zi9vl8g Před 5 lety

      @@Fungineers I thought running in parallel would help with that. Also there are 4 slots for the darts/batteries. Then the is the 9v but also running lights in parallel.

  • @sillysausage72
    @sillysausage72 Před 4 lety

    Great video!
    Question:
    Does the resistor go on the negative side in all situations?
    Cause I've seen people have them on the positive side as well.

    • @Fungineers
      @Fungineers  Před 4 lety +3

      Resistor is just a long piece of wire. It can be anywhere in the circuit

    • @sillysausage72
      @sillysausage72 Před 4 lety

      @@Fungineers Thank you for the info. Once again, great video.

  • @daemon3spade
    @daemon3spade Před 2 lety

    So its not possible to wire 70 leds is one arduino micro?

  • @alonbenyaish465
    @alonbenyaish465 Před 5 lety

    i didnt knew at first about the 20ma limit and connected 5 leds in parallel for like 20 sec and they worked and nothing bad happend then disconnected them, anychance i damaged something? only 1 led per 1 pin seems very low :/ and i dont have transistors to use atm..

    • @Fungineers
      @Fungineers  Před 5 lety

      Should be ok for sometime but the more you stress the arduino the more damage happens to internal components even if you dont see it

  • @internetuser9015
    @internetuser9015 Před 4 lety

    this is the project
    make learn it

  • @bilgicbilal
    @bilgicbilal Před 4 lety +1

    I bought 100 rgb leds for my arduino rgb string blade lightsaber project. I will connect them parallel but arduino cant support that mA. What should i do

    • @Fungineers
      @Fungineers  Před 4 lety

      You need to look into driving your LEDs with a mosfet. Look it up. Its simple

    • @bilgicbilal
      @bilgicbilal Před 4 lety

      @@Fungineers thanks

  • @voldy3565
    @voldy3565 Před 2 lety

    How would I go about individually driving 40 leds with a single arduino nano? Tlc5940?

    • @Fungineers
      @Fungineers  Před 2 lety

      Yea that would work

    • @voldy3565
      @voldy3565 Před 2 lety

      @@Fungineers Would I need an extrrnal power supply for the leds though?

    • @Fungineers
      @Fungineers  Před 2 lety

      @@voldy3565 yep.

  • @simonedkov21
    @simonedkov21 Před 4 lety

    Can you show the code?

  • @ataliadayan861
    @ataliadayan861 Před 5 lety +1

    Hi,
    How come 2 220 ohms resistors provide (almost) 100 ohms?

    • @Fungineers
      @Fungineers  Před 5 lety +2

      Atalia, when resistors are connected in parallel, their resistance is halved.

    • @lennynganga9575
      @lennynganga9575 Před 5 lety

      The formula for resistors in parallel.
      TotalR = (R1 × R2) ÷ (R1 + R2)
      For 2 resistors in parallel

    • @Fungineers
      @Fungineers  Před 5 lety +2

      @@lennynganga9575 exactly! So let me rephrase my comment, when two resistors OF EQUAL resistance are in parallel, the total resistance is almost half. In this case ((220X220)/(220+220)) = 110Ohms.

    • @Autotrope
      @Autotrope Před 3 lety +1

      An easier way of thinking of it: For resistances X and Y in parallel the total resistance Z can be calculated as:
      1/X + 1/Y = 1/Z
      This works here as
      1/220 + 1/220 = 2/220 = 1/110
      So Z is 110.
      This works with any number of resistances is parallel.

  • @vitphire3210
    @vitphire3210 Před 5 lety +1

    But... Aren't resistors supposed to "reduce" current and not voltage?? I'm confused, help!

    • @Fungineers
      @Fungineers  Před 5 lety

      You're right. Where's the confusion?

    • @vitphire3210
      @vitphire3210 Před 5 lety

      @@Fungineers
      You said "2 Volts to dissipate across the resistor." (1:56)
      I've ran a simulation on the tinkercad circuit designer, and putting a resistor in this circuit doesn't make a diference in the voltage where the led is (measured with a multimater).
      Also, an led with these parametets needs a resistor about 360 ohms.

    • @Fungineers
      @Fungineers  Před 5 lety +1

      Hmm. I might not have worded it correctly. Its def the current that gets dissipated. But how much current gets dissipated is dictated by the voltage across the resistor (which is 2), and the value of resistance. So what I meant is 2V is stray across the circuit, so 100 ohms would dissipate .02amps and have a potential of 2V across it leaving only 3v for LED.
      I dont know what setup you have in tinkercad, what voltage supply, which led type, is it taking the resistance of wires etc into account etc... But anyway 360ohm is a close number and really wouldnt matter much unless you want a precise value for max brightness. In any case, you want a low res value for max brightness.

  • @loafandjug321
    @loafandjug321 Před 3 lety

    You sound like you're from Austria.

  • @omranshahrour7291
    @omranshahrour7291 Před 2 lety

    You are awesome but you've to move to higher levels

  • @Nonononono_Ohno
    @Nonononono_Ohno Před 3 lety

    Isn't it a bit decadent, instead of using a simple, dedicated current supply, to (ab)use a highly sophisticated and powerful computer like the Arduino as nothing but a current supply for a stupid LED? 😂