Go Down

### Topic: Resistance question (Read 2198 times)previous topic - next topic

#### funkyguy4000

##### Oct 17, 2011, 09:18 pm
So i am realizing that I should probably learn this whole voltage and resistance and amperes thing.

Ohms law is V=IR (voltage = current * resistance)

I have a few questions.
I buy my LEDS from e-Bay, normally hong kong/china.
It says forward voltage for a blue Led is 3.0 - 3.8 and that confuses me, cause shouldn't they have a specific voltage?
they also have forward current is 20 mA.
I'm just curious, for example, say i put 4 of these in a series circuit, how much resistance would I need?
and then what about a parallel circuit what would I do then?
I learned this in high school way back, but i've forgotten it since then.
Accelerate to 88 miles per hour.

#### AWOL

#1
##### Oct 17, 2011, 09:38 pm
Quote
I'm just curious, for example, say i put 4 of these in a series circuit, how much resistance would I need?

Forget resistance for now, you're going to need at least  4 * 3.8 volts of supply to start with - that's a minimum of 15.2 volts.
Do you have a suitable supply?
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.
I speak for myself, not Arduino.

#### funkyguy4000

#2
##### Oct 17, 2011, 09:41 pm
plug it into the wall?
I'm not sure...I can put 4 leds in a series with my arduino and they'll work without any resistors while the arduino is plugged into the serial bus port.
Accelerate to 88 miles per hour.

#### AWOL

#3
##### Oct 17, 2011, 10:00 pm
Quote
I can put 4 leds in a series with my arduino and they'll work without any resistors while the arduino is plugged into the serial bus port

Only if the Vf of all your LEDs add up to less than 5 volts.
Can I suggest you don't connect anything without resistors until you understand more?
It is a great way of burning-out Arduinos.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.
I speak for myself, not Arduino.

#### funkyguy4000

#4
##### Oct 17, 2011, 10:03 pm
haha, yeaaa. I'm using common anode RGB Led's most of the time and I always put a resistor on the cathode.  I'm just saying i did it once and that confused me.
I'm pretty good about getting the right things there, I just don't understand it.
Accelerate to 88 miles per hour.

#### funkyguy4000

#5
##### Oct 17, 2011, 10:21 pm
WAIT! I do have some old power supply units from computers, think I could use those somehow?  I mean they are like 250W but those'll do right?
How would I be able to tap into those?
Accelerate to 88 miles per hour.

#### AWOL

#6
##### Oct 17, 2011, 10:25 pm
Most PC power supplies don't have output voltages higher than 12 volts, so that 15V plus is still looking elusive.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.
I speak for myself, not Arduino.

#### funkyguy4000

#7
##### Oct 17, 2011, 11:47 pm
Now what you mean is something would provide that much voltage through the little DC adapter on the arduino board?
Accelerate to 88 miles per hour.

#### justjed

#8
##### Oct 18, 2011, 03:40 am
Perhaps this tutorial will help?

http://www.antonine-education.co.uk/electronics_as/electronics_module_1/topic_4/topic_4__diodes.htm

In particular, note the I vs. V plots. In the forward direction, no current flows until the voltage is very close to the forward voltage. In the example you have given, you describe 4 diodes in series, thus the voltage drop across all 4 is additive, therefore, you will need to supply that total amount of voltage before any current will flow.

Now what you mean is something would provide that much voltage through the little DC adapter on the arduino board?

No. The Arduino board can supply only +5V max. And if you're referring to the barrel power jack, then the limit there is +12V, but it gets regulated down to +5V anyway, so there's no "extra" to be had that way.

To do what you're describing, you would need to use some other power supply. Forget Arduino for a bit, and focus on what your operative circuit needs. Then you can work out how to supply that, and control it using an Arduino.
... it is poor civic hygiene to install technologies that could someday
facilitate a police state. -- Bruce Schneier

#### funkyguy4000

#9
##### Oct 18, 2011, 07:01 pm
So if I needed to power something that needed more than 5v (b/c the arduino would bring it down anyway no matter what i put in, right?) would I plug the series into the pin on the arduino board and then have the other pin go to a power supply that provided more and then go to the ground on the arduino?  I would need some resistors somewhere in that circuit so I dont burn out the board, correct? Am I in the same ballpark?
Accelerate to 88 miles per hour.

#### Grumpy_Mike

#10
##### Oct 18, 2011, 07:26 pm
You would only do that if you wanted to blow up your arduino.

Quote
b/c the arduino would bring it down anyway no matter what i put in, right?

Wrong

A voltage plugged into the power jack would remain the same. The arduino would tap off some of the power and convert it to 5V for itself and the +5V pin.

#### funkyguy4000

#11
##### Oct 18, 2011, 08:37 pm
Okay so then would I have to do something like the attached image for the series of 4 or 5 or more leds?

Its pretty basic, I just made it in paint
Accelerate to 88 miles per hour.

#### Grumpy_Mike

#12
##### Oct 18, 2011, 08:42 pm
It helps if you read my answers. If you do that you will blow up your arduino unless the external voltage is 5V.
You need the resistor in the anode or cathode of your LED. The ground of the external supply should be connected to the ground of the arduino.

You need a transistor or FET if your external supply is higher than 5V.

#### funkyguy4000

#13
##### Oct 18, 2011, 08:50 pm
mmkay, at this point i'm only doing little tutorials so that i don't' blow things up although I did make one thing last night.
Lemme see if this was bad or not.
So i got some fading code for RGB Leds last night that somebody shared.
I hooked it up the way you would for 1 rgb led.  common anode.  I put 1 resistor on the cathode and then hooked up the digital pins.
But then I put a bunch more there too all connected to the led before it and then the resistors were all connected together on the +- part of the breadboard.
So all of the leds were going off of the digital pins that were for the 1st led and then all of the resistors were going off of the 1 ground.  Is that bad?  I mean it worked and nothing got warm or blew up.
Accelerate to 88 miles per hour.

#### justjed

#14
##### Oct 19, 2011, 12:46 am

But then I put a bunch more there too all connected to the led before it and then the resistors were all connected together on the +- part of the breadboard.
So all of the leds were going off of the digital pins that were for the 1st led and then all of the resistors were going off of the 1 ground.  Is that bad?  I mean it worked and nothing got warm or blew up.

There just isn't enough information here. "Bunch more" isn't descriptive enough. More of the same RGB LEDs? The blue ones you referred to earlier? Resistors? Something else?

You started out posting Ohm's law. But do you understand how it works with resistances in series? Doing the tutorials can be fun, and the temptation to add more stuff to see what happens is there, but as Mike said, this is a good way to fry your Arduino, if you just do it willy-nilly without doing the arithmetic for your circuit.