Purpose of resistors?

Okay so this might sound like a super general question but i'm still having trouble understanding this and its a basic need to know for electronics.

What do i use resistors for exactly? Is it to get the required voltage / amperage of your components?

So if i have a 9v battery with an LED that uses 2v (Not sure how many they actually use) do i need to use the V = I/R equation to find my required resistance to bring down the voltage?

From what i understand about electronics you cant "over amp" something with too many amps as electronic components only draw what they need? (Im probably totally wrong here so feel free to correct me).

Sorry if this question is too broad, like i said its just something i have trouble wrapping my head around so i want to try to get it all down. Thanks for any help :smiley:

What is the purpose of a water tap?
By adjusting the tap you control the flow of water.
You can increase and decrease the water pressure from a high pressure source to the output.

Resistors are used to adjust the flow of electrical current in a circuit.

So if i have a 9v battery with an LED that uses 2v (Not sure how many they actually use) do i need to use the V = I/R equation to find my required resistance to bring down the voltage?

LEDs (like all diodes) are non-linear devices... Their resistance changes with the voltage. At low voltages (voltages below their normal operating voltage), they have fairly high resistance. If you go above their normal operating voltage, the resistance drops drastically you get lots of current, and you can fry the LED (or you can fry your Arduino if you don't have a current-limiting resistor).

Because of this, LEDs are considered "constant voltage" devices. You can try to crank-up the voltage, but the voltage will remain at about 2V and you'll just get more current (and more light).

Ohms Law is a law of nature and it's valid for the LED, but you can't use it directly for the LED because the resistance is not constant. However, we can use Ohm's Law to calculate the resistor value...

Voltage in series circuits is divided among the components. With 2V across the LED, we'll have 7V across the resistor.

In a series circuit, the same current flows through all of the components. If we want 20mA through the LED (and through the resistor) we can calculate the appropriate resistor value as 7V / 0.020 Amps = 350 Ohms.

h4344:
So if i have a 9v battery with an LED that uses 2v (Not sure how many they actually use) do i need to use the V = I/R equation to find my required resistance to bring down the voltage?

Wrong! V = I x R - you can't afford to be sloppy with these basic equations, get a handy app
or reference card if you need to.

Resistors set the relationship between current and voltage drop, which has many uses
like setting the current in an LED, measuring current through measuring voltage, limiting
fault currents, forming resistor dividers to divide voltages and to form feedback networks
with amplifiers to set the gain. Add capacitors and you can produce low-pass and high-pass
filters.

An electric heater is a resistor too.

resistors are simple and cheap, but play a very important roll both as a design item and as a device you need to design around.

for the simple LED, the resistor limits the energy passing. this creates a change in the energy and by proper selection, the LED is fed with the exact energy it needs.

put two resistors in series and each will change the energy and in the section between, you can select what you need. typically, this is used as a voltage divider when you want to create a specific voltage. or, one might use a very high resistance so that when there is no power on the circuit, that very high value one will bleed off any stray power or feed tiny bits of power to keep the voltage up at a level.

a long wire has a calculated resistance so you could use a long wire if needed, or you might need to increase power to compensate for the loss by the resistance in the wire

there are many more uses, applications and devices that you have to know in order to calculate power.

electronics is a very exacting science. in 98% of the uses the applications can be awfully sloppy and get the job done. however, the amount on knowledge needed to truly understand a circuit is pretty amazing.

the bottom line is that there are a handful of basic formulas that you need to know and understand in order to make sure things work properly.

for instance, you have an LED that has a 2 volt drop and can work from 10mA to 20mA and you have 5 volt power available. you can calculate the proper resistance based on voltage.

however, the next calculation is power. say that 1 LED is really 25. that resistor value did not change, however the power needed to be delivered to all those LEDs did. an you need to calculate how many watts of power that resistor will need to handle in a second calculation.

resistors are a fundamental building block. you should take the time to really understand their use and application.

From what i understand about electronics you cant "over amp" something with too many amps as electronic components only draw what they need? (Im probably totally wrong here so feel free to correct me).

Not totally wrong but not totally correct either.

If a device is designed to work at a set voltage, say a chip or a relay then if you provide that voltage then the current drawn will be the current it was designed for and all will be well. The only way to alter the current will be to alter the voltage.

However, there are devices like LEDs that can not be driven at the exact voltage they need because that voltage is a very precise value and it fluctuates whit both time and temperature. Therefore you need a resistor to limit the current.

Likewise a transistor's base will need a certain amount of current through it to switch a certain load, but the voltage at the transistor's base will always be 0.7V no matter how much current is flowing through it. In this case you can not control the current by controlling the voltage, you need a resistor.

An other use of a resistor is to act as a potential divider, to produce a defined fraction of any voltage applied to it. Two resistors of equal value always divide the applied voltage by half.

You can use them as toothpicks at a pinch too. (but not the surface mounted kind. They're useless)

KenF:
You can use them as toothpicks at a pinch too. (but not the surface mounted kind. They're useless)

This was actually funny :grin:

KenF:
You can use them as toothpicks at a pinch too. (but not the surface mounted kind. They're useless)

The surface mount ones get stuck between your teeth.

KenF:
You can use them as toothpicks at a pinch too. (but not the surface mounted kind. They're useless)

Ceramic capacitors are better - you can do two teeth at a time .....

RogerRowland:

KenF:
You can use them as toothpicks at a pinch too. (but not the surface mounted kind. They're useless)

Ceramic capacitors are better - you can do two teeth at a time .....

As long as you don't pick one with earwax residue.

Alternatively you could just connect a 12v buzzer across the door solenoid.

Edit. I wondered where this comment went. It's in the wrong thread.

H4344:

There are several free SPICE programs on the Internet:
One is SPICE

These programs allow you to build out simple DC & AC circuits and use virtual meters and oscilloscopes to view voltages and measure current and power. All on your PC.

Almost everything important has been prepackaged into examples.

Ray

Let me add another suggestion to what mrburnette has just mentioned: there is a super easy free software out there written in Java (it means it runs on any operating system) called Circuit Simulator which you might find very useful starting with electronics.

which you might find very useful starting with electronics.

I rarely design discrete circuits where I do not simulate first before breadboarding! It is very easy to validate your thoughts and have every possible resistor and capacitor and inductor value at hand! Even better, put in a known circuit and determine what happens if you build the circuit with part values you have on-hand.

SPICE will free your mind to think about about how the various components work together. And it costs nothing but a few minutes in learning the GUI.

Ray

Ray, I'm not sure if your last post was directed to me: if it was I was suggesting a circuit simulator, sure not as evolved as SPICE but definitely a lot simpler to understand.

rlogiacco:
Ray, I'm not sure if your last post was directed to me: if it was I was suggesting a circuit simulator, sure not as evolved as SPICE but definitely a lot simpler to understand.

No, not directed to you... but, our two links are the same! the circuit simulator uses SPICE equations internally and hides a lots of what commercial programs would require for input.

Ray