How to connect multiple LEDs to Arduino || What Resistor to use?
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
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!
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 :)
Thanks!! a really graphic explanation!
I finally found the necessary reasons here . thank you
Thanks a lot for these valuable explanations
Noice! keep it up! Great work!
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.
Very good explanetion.tanks
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.
Merci pour le partage de la video. Thanks from Algeria.
Great content
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?
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?
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?
Connect them through a proper resistor preferably on different pins:)
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?
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
gracias master!
Thanks for appreciating my work
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?
Thanks for appreciating.
Really depends on what you are working with. How manu LEDs and what's their required voltage.
@@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.
Two AA provide a total of 3V so will power only one LED.
@@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.
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.
Resistor is just a long piece of wire. It can be anywhere in the circuit
@@Fungineers Thank you for the info. Once again, great video.
So its not possible to wire 70 leds is one arduino micro?
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..
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
this is the project
make learn it
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
You need to look into driving your LEDs with a mosfet. Look it up. Its simple
@@Fungineers thanks
How would I go about individually driving 40 leds with a single arduino nano? Tlc5940?
Yea that would work
@@Fungineers Would I need an extrrnal power supply for the leds though?
@@voldy3565 yep.
Can you show the code?
Hi,
How come 2 220 ohms resistors provide (almost) 100 ohms?
Atalia, when resistors are connected in parallel, their resistance is halved.
The formula for resistors in parallel.
TotalR = (R1 × R2) ÷ (R1 + R2)
For 2 resistors in parallel
@@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.
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.
But... Aren't resistors supposed to "reduce" current and not voltage?? I'm confused, help!
You're right. Where's the confusion?
@@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.
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.
You sound like you're from Austria.
You are awesome but you've to move to higher levels
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? 😂