Ohm's Law: Difference between revisions

From doityourselfchristmas.com
Jump to navigation Jump to search
 
(46 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Disclaimers==
The standard disclaimers pertaining to the information contained on this wiki page are listed [[Disclaimers | here.]]<br/>
==Ohm's Law==
==Ohm's Law==
[http://en.wikipedia.org/wiki/Ohm's_law Ohm's Law] is a formula that relates the basic electrical properties.  These properties can be measured with a [http://en.wikipedia.org/wiki/Multimeter multimeter]. The common formula for Ohm's Law is:<br/>
[http://en.wikipedia.org/wiki/Ohm's_law Ohm's Law] is a formula that relates the basic electrical properties of [[Ohm%27s_Law#Voltage_.28V.29|Voltage]], [[Ohm%27s_Law#Current_.28I.29|Current]] and [[Ohm%27s_Law#Resistance_.28R.29|Resistance]].  These properties can be measured with a [http://en.wikipedia.org/wiki/Multimeter multimeter].<br/>  [https://learn.sparkfun.com/tutorials/how-to-use-a-multimeter How to use a multimeter]<br/> [[File:Multimeter.jpg|100px]]<br/>
::'''V=IR'''<br/>
The common formula for Ohm's Law is:<br/>
::'''Voltage = Current x Resistance'''<br/>
:::'''<big>V=IR</big>'''<br/>
:::'''Voltage = Current x Resistance'''<br/>
<br/>


==Ohm's Law Diagram==
==Ohm's Law Diagram==
The following diagram shows the relationship between the various electrical properties.<br/>
The following diagram shows the relationship between the various electrical properties.<br/>
[[File:Ohms-law.jpg|300px]]<br/>
[[File:Ohms-law.jpg|300px]]<br/>
<br/>


==Voltage '''(V)'''==
==Voltage '''(V)'''==
Voltage is measured in [http://en.wikipedia.org/wiki/Volt volts]. (V)  There are two basic type of voltage:<br/>
[http://en.wikipedia.org/wiki/Voltage Voltage] is measured in [http://en.wikipedia.org/wiki/Volt volts] (V). Voltage is a measure of the electric potential difference between two points.<br/>
There are two basic type of voltage:<br/>
===AC Voltage===
*'''AC''' [http://en.wikipedia.org/wiki/Alternating_current Alternating Current]  
*'''AC''' [http://en.wikipedia.org/wiki/Alternating_current Alternating Current]  
**Example:  
**Common values:  
***The voltage of a typical wall power outlet in the United States is 120 volts AC (VAC).  
***The voltage of a typical wall power outlet in the United States is 120 volts AC (VAC).  
===DC Voltage===
*'''DC''' [http://en.wikipedia.org/wiki/Direct_current Direct Current]  
*'''DC''' [http://en.wikipedia.org/wiki/Direct_current Direct Current]  
**Example:   
**Common values:   
***The voltage of a typical AA battery is 1.25 volts DC (VDC).
***The voltage of a typical [http://en.wikipedia.org/wiki/Nickel%E2%80%93metal_hydride_battery NiMh AA battery] is 1.25 volts DC (VDC).
***Many Integrated Circuits require 5 volts DC (VDC) to power them.
***Many integrated circuits require 5 volts DC (VDC) to power them.
 
===Voltage Formulas===
*'''V=IR'''
*'''V=&radic;<span style="text-decoration: overline">PR</span>'''
*'''V=P/I'''
===Voltage Examples===
#What is the voltage drop across a 4 &Omega; resistor that has a current of 0.3A?<br/>V=IR, V=(0.3)(4)=1.2V
#What is the voltage across a 5W lamp with a resistance of 2 &Omega;?<br/>V=&radic;<span style="text-decoration: overline">PR</span>=&radic;<span style="text-decoration: overline">(5)(2)</span>=&radic;<span style="text-decoration: overline">10</span>=3.16V
# What is the voltage across a 1 W LED that has a current of 0.35A running thru it?<br/>V=P/I, V=1/0.35= 2.86V
<br/>


==Current '''(I)'''==
==Current '''(I)'''==
[http://en.wikipedia.org/wiki/Electric_current Current] is measured in [http://en.wikipedia.org/wiki/Ampere amps] (A). Current is a measure of the flow of electric charge.  Current is often measured in milliamps (ma) in many electronic circuits.  A milliamp is one thousandth of an amp (0.001A).<br/>
[http://en.wikipedia.org/wiki/Electric_current Current] is measured in [http://en.wikipedia.org/wiki/Ampere amps] (A). Current is a measure of the flow of electric charge.  Current is often measured in milliamps (ma) in many electronic circuits.  A milliamp is one thousandth of an amp (0.001A).<br/>
*Example:   
*Common values:   
**A typical LED draws 20 milliamps (0.02A or 20mA).
**A typical LED draws 20 milliamps (0.02A or 20mA).
**A typical string of 100 count incandescent lights draws 0.33A.
===Current Formulas===
*'''I=V/R'''
*'''I=P/V'''
*'''I=&radic;<span style="text-decoration: overline">P</span>/R'''
*'''I<sub>Parallel</sub>= I<sub>1</sub>+I<sub>2</sub>+I<sub>3</sub>+...I<sub>n</sub>'''
===Current Examples===
#How much current flows thru a 680 &Omega; resistor that has 5V applied to it?<br/>I=V/R, I=5/680=0.007A (7 ma)
#How much current is used by a 75W floodlight using 120V?<br/>I=P/V, I=75/120=0.625A
#What is the current thru a 5W lamp with a resistance of 2 &Omega;?<br/>V=&radic;<span style="text-decoration: overline">P</span>/R=&radic;<span style="text-decoration: overline">(5)</span>/2=2.24/2=1.12A
#How much current is required by 1 RGB pixel that draws 20ma (0.02A) each per color?<br/>I<sub>Parallel</sub>= I<sub>1</sub>+I<sub>2</sub>+I<sub>3</sub>=0.02+0.02+0.02=0.06A, or 60mma
#How much current is required by 4 RGB pixels that draw 60ma (0.06A) each when lit white?<br/>I<sub>Parallel</sub>= I<sub>1</sub>+I<sub>2</sub>+I<sub>3</sub>+I<sub>4</sub>=0.06+0.06+0.06+0.06=0.24A, or 240 ma


==Resistance '''(R)'''==
==Resistance '''(R)'''==
Resistance is measured in [http://en.wikipedia.org/wiki/Ohm ohms] (&Omega;). Resistors are the most common form of resistance in circuits.<br/>
[http://en.wikipedia.org/wiki/Electrical_resistance Resistance] is measured in [http://en.wikipedia.org/wiki/Ohm ohms] (&Omega;). Resistance is a measure of  the opposition to the passage of an electric current through a circuit component.  Resistors are the most common form of resistance in circuits.<br/>
*Example:   
*Common values:   
**A common current limiting resistor for driving optoisolators  is 680 ohms (&Omega;).
**A common current limiting resistor for driving optoisolators  is 680 ohms (&Omega;).
 
===Resistance Formulas===
*'''R=V/I'''
*'''R=V&sup2;/P'''
*'''R=P/I&sup2;'''
===Resistance Examples===
#What value resistor do you need to drop 3V and allow 20ma thru the circuit?<br/>R=V/I=3/0.020=150&Omega;
#What is the resistance of a 120V light string that draws 40W?<br/>R=V&sup2;/P=(120)&sup2;/40=14400/40=360&Omega;
#What is the resistance of a 1W LED that draws 350ma?<br/>R=P/I&sup2;=1/(0.35)&sup2;=1/0.123)=8.16&Omega;


==Power '''(P)'''==
==Power '''(P)'''==
Power is measured in [http://en.wikipedia.org/wiki/Watt watts] (W). Electric power is the rate of doing work.  The common formula for Power is:<br/>
[http://en.wikipedia.org/wiki/Electrical_power Power] is measured in [http://en.wikipedia.org/wiki/Watt watts] (W). Power is a measure of the rate of doing work.<br/>  
::'''P=VI'''<br/>
The common formula for Power is:<br/>
::'''Power=Voltage x Current'''<br/>
:::'''P=VI'''<br/>
*Example:   
:::'''Power=Voltage x Current'''<br/>
*Common values:   
**A common table lamp is 100 watts (100w).
**A common table lamp is 100 watts (100w).
===Power Formulas===
*'''P=VI'''
*'''P=I&sup2;R'''
*'''P=V&sup2;/R'''
===Power Examples===
#How much power does a 100 count string of 120V incandescent lights that use 0.33A use?<br/>P=VI=(120)(0.33)=39.6 W
#How much power does a 4 &Omega; resistor dissipate as heat that has 0.3A running thru it?<br/>P=I&sup2;R=(0.35)&sup2;(4)= (0.123)(4)=0.49 W
#How much power does a 10 &Omega; resistor dissapate as heat that has 12V across it?<br/>P=V&sup2;/R=(12)&sup2;/10=144/10=14.4W
<br/>


==LED Calculator==
==LED Resistor Calculator==
Use these calculators to calculate the resistor needed to include in a circuit with a LED.<br/>
By using Ohm's Law you can calculate the current limiting resistor needed to include in a circuit with a LED. LEDs need a resistor in a circuit to limit the amount of current flowing though it to prevent it from being destroyed. The current used by LEDs depends on the type of LED being used.  Common values are:<br/>
===Single LED===
<table border="1">
[http://led.linear1.org/1led.wiz LED Calculator] for 1 LED.<br/>
<tr><td>LED Type</td><td>Typical Current I</td></tr>
<tr><td>Optoisolator LED</td><td>6ma</td></tr>
<tr><td>Typical 5mm LED</td><td>20ma</td></tr>
<tr><td>Piranha Superflux LED</td><td>20ma</td></tr>
<tr><td>"1/3 W" LED</td><td>100ma</td></tr>
<tr><td>1 W LED</td><td>350ma</td></tr>
</table><br/>


===Array of LEDs===
All LEDs have a characteristic voltage drop across them called the V<sub>F</sub> that depends on the color of the LED.  Common values are:<br/>
[http://led.linear1.org/led.wiz LED Calculator] for an array of LEDs.<br/>
<table border="1">
<tr><td>LED Color</td><td> Typical V<sub>F</sub></td></tr>
<tr><td>Optoisolator</td><td>1.2-1.6 V</td></tr>
<tr><td>Red</td><td>1.9-2.3 V</td></tr>
<tr><td>Green</td><td>2.9-3.5 V</td></tr>
<tr><td>Blue</td><td>2.9-3.5 V</td></tr>
<tr><td>White</td><td>3.2-3.4 V</td></tr>
</table><br/>


===LED Resistor Example===
#What resistor would you use with a 5VDC power supply and a Blue 5mm LED with a V<sub>F</sub> of 3.0V?<br/> First you need to calculate the voltage that the resistor needs to drop.  That is equal to  <br/>V<sub>Drop</sub>=V<sub>PowerSupply</sub> - V<sub>F</sub>=5-3=2V<br/>The table above  recommends a current I of 20 ma for a 5mm LED. The formula for resistance gives us:<br/>R=V/I=2/0.02=100&Omega; Generally you choose a resistor for that value or the next higher standard resistor value.<br/> To calculate the wattage resistor needed you use the formula for Power:<br/>P=VI=(2)(0.02)= 0.04W.  You would use the next standard size up resistor, 1/8 W.<br/>
#What resistor would you use with a 5VDC power supply and an optoisolator  with a V<sub>F</sub> of 1.2V?<br/> First you need to calculate the voltage that the resistor needs to drop.  That is equal to  <br/>V<sub>Drop</sub>=V<sub>PowerSupply</sub> - V<sub>F</sub>=5-1.2=3.8V<br/>The table above  recommends a current I of 6 ma for an optoisolator. The formula for resistance gives us:<br/>R=V/I=3.8/0.006=633&Omega; Generally you choose a resistor for that value or the next higher standard resistor value, 680&Omega;.<br/> To calculate the wattage resistor needed you use the formula for Power:<br/>P=VI=(3.8)(0.006)= 0.02W.  You would use the next standard size up resistor, 1/8 W.<br/>
===Single LED Calculator===
A simple calculator for calculating resistors can be found at: [http://led.linear1.org/1led.wiz LED Calculator] for 1 LED.<br/>
===Array of LEDs Calculator===
A simple calculator for calculating resistors for an array of LEDs can be found at:[http://led.linear1.org/led.wiz LED Calculator] for an array of LEDs.<br/>
<br/>


==Pixel Voltage Drop Calculator==
==Pixel Voltage Drop Calculator==
[http://doityourselfchristmas.com/forums/showthread.php?20242-New-tools-for-estimating-pixels-string-voltage-drops Thread]<br/>
Due to the high current used by pixels and the small guage wires used by many people, there can be issues due to voltage drops caused by the wire resistance.<br/>
[http://blinkyflashy.info/calcs/pixpower.php Calculator]
===Voltage Drop Example===
# What is the voltage drop when using 5V  and drawing 500ma over a 10M pair of Cat5 wire?<br/>Since Cat5 wire has a loop resistance of about 0.19 &Omega;/M, the 10 M length will have a resistance of (10)(0.19)=1.9 &Omega;<br/>  By Ohm's Law we know that V=IR, then<br/>V=IR=(0.5)(1.9)=0.95 V drop, so only 4.05 V will be at the far end of the wire.<br/>
#What is the voltage drop when using 5V and drawing 30A over a 2ft length of 18ga wire?<br/>  Since 18 ga wire has a loop resistance of about 0.013 &Omega;/ft, the 2ft wire will have a resistance of (2)(0.012) = 0.024 &Omega;<br/>  By Ohm's Law we know that V=IR, then<br/>V=IR=(30)(0.024)=0.72 V drop, so only 4.28 V will be at the far end of the wire. The wire will get hot because it is dissipating P=VI=(0.72)(30)= 21W!  You must use larger wire for high currents!<br/>
 
This is a [http://doityourselfchristmas.com/forums/showthread.php?20242-New-tools-for-estimating-pixels-string-voltage-drops thread] that discusses voltage drop.<br/>
 
This is a [http://blinkyflashy.info/calcs/pixpower.php Voltage Drop Calculator] usefull for calculating the effects of different wire types on pixel strings.<br/>
<br/>
 
[[Category:Beginners Info]]
[[Category:DIYC Index]]
[[Category:General Info]]
[[Category:Pixel]]

Latest revision as of 17:45, 22 August 2013

Disclaimers

The standard disclaimers pertaining to the information contained on this wiki page are listed here.

Ohm's Law

Ohm's Law is a formula that relates the basic electrical properties of Voltage, Current and Resistance. These properties can be measured with a multimeter.
How to use a multimeter

The common formula for Ohm's Law is:

V=IR
Voltage = Current x Resistance


Ohm's Law Diagram

The following diagram shows the relationship between the various electrical properties.


Voltage (V)

Voltage is measured in volts (V). Voltage is a measure of the electric potential difference between two points.
There are two basic type of voltage:

AC Voltage

  • AC Alternating Current
    • Common values:
      • The voltage of a typical wall power outlet in the United States is 120 volts AC (VAC).

DC Voltage

  • DC Direct Current
    • Common values:
      • The voltage of a typical NiMh AA battery is 1.25 volts DC (VDC).
      • Many integrated circuits require 5 volts DC (VDC) to power them.

Voltage Formulas

  • V=IR
  • V=√PR
  • V=P/I

Voltage Examples

  1. What is the voltage drop across a 4 Ω resistor that has a current of 0.3A?
    V=IR, V=(0.3)(4)=1.2V
  2. What is the voltage across a 5W lamp with a resistance of 2 Ω?
    V=√PR=√(5)(2)=√10=3.16V
  3. What is the voltage across a 1 W LED that has a current of 0.35A running thru it?
    V=P/I, V=1/0.35= 2.86V


Current (I)

Current is measured in amps (A). Current is a measure of the flow of electric charge. Current is often measured in milliamps (ma) in many electronic circuits. A milliamp is one thousandth of an amp (0.001A).

  • Common values:
    • A typical LED draws 20 milliamps (0.02A or 20mA).
    • A typical string of 100 count incandescent lights draws 0.33A.

Current Formulas

  • I=V/R
  • I=P/V
  • I=√P/R
  • IParallel= I1+I2+I3+...In

Current Examples

  1. How much current flows thru a 680 Ω resistor that has 5V applied to it?
    I=V/R, I=5/680=0.007A (7 ma)
  2. How much current is used by a 75W floodlight using 120V?
    I=P/V, I=75/120=0.625A
  3. What is the current thru a 5W lamp with a resistance of 2 Ω?
    V=√P/R=√(5)/2=2.24/2=1.12A
  4. How much current is required by 1 RGB pixel that draws 20ma (0.02A) each per color?
    IParallel= I1+I2+I3=0.02+0.02+0.02=0.06A, or 60mma
  5. How much current is required by 4 RGB pixels that draw 60ma (0.06A) each when lit white?
    IParallel= I1+I2+I3+I4=0.06+0.06+0.06+0.06=0.24A, or 240 ma

Resistance (R)

Resistance is measured in ohms (Ω). Resistance is a measure of the opposition to the passage of an electric current through a circuit component. Resistors are the most common form of resistance in circuits.

  • Common values:
    • A common current limiting resistor for driving optoisolators is 680 ohms (Ω).

Resistance Formulas

  • R=V/I
  • R=V²/P
  • R=P/I²

Resistance Examples

  1. What value resistor do you need to drop 3V and allow 20ma thru the circuit?
    R=V/I=3/0.020=150Ω
  2. What is the resistance of a 120V light string that draws 40W?
    R=V²/P=(120)²/40=14400/40=360Ω
  3. What is the resistance of a 1W LED that draws 350ma?
    R=P/I²=1/(0.35)²=1/0.123)=8.16Ω

Power (P)

Power is measured in watts (W). Power is a measure of the rate of doing work.
The common formula for Power is:

P=VI
Power=Voltage x Current
  • Common values:
    • A common table lamp is 100 watts (100w).

Power Formulas

  • P=VI
  • P=I²R
  • P=V²/R

Power Examples

  1. How much power does a 100 count string of 120V incandescent lights that use 0.33A use?
    P=VI=(120)(0.33)=39.6 W
  2. How much power does a 4 Ω resistor dissipate as heat that has 0.3A running thru it?
    P=I²R=(0.35)²(4)= (0.123)(4)=0.49 W
  3. How much power does a 10 Ω resistor dissapate as heat that has 12V across it?
    P=V²/R=(12)²/10=144/10=14.4W


LED Resistor Calculator

By using Ohm's Law you can calculate the current limiting resistor needed to include in a circuit with a LED. LEDs need a resistor in a circuit to limit the amount of current flowing though it to prevent it from being destroyed. The current used by LEDs depends on the type of LED being used. Common values are:

LED TypeTypical Current I
Optoisolator LED6ma
Typical 5mm LED20ma
Piranha Superflux LED20ma
"1/3 W" LED100ma
1 W LED350ma


All LEDs have a characteristic voltage drop across them called the VF that depends on the color of the LED. Common values are:

LED Color Typical VF
Optoisolator1.2-1.6 V
Red1.9-2.3 V
Green2.9-3.5 V
Blue2.9-3.5 V
White3.2-3.4 V


LED Resistor Example

  1. What resistor would you use with a 5VDC power supply and a Blue 5mm LED with a VF of 3.0V?
    First you need to calculate the voltage that the resistor needs to drop. That is equal to
    VDrop=VPowerSupply - VF=5-3=2V
    The table above recommends a current I of 20 ma for a 5mm LED. The formula for resistance gives us:
    R=V/I=2/0.02=100Ω Generally you choose a resistor for that value or the next higher standard resistor value.
    To calculate the wattage resistor needed you use the formula for Power:
    P=VI=(2)(0.02)= 0.04W. You would use the next standard size up resistor, 1/8 W.
  2. What resistor would you use with a 5VDC power supply and an optoisolator with a VF of 1.2V?
    First you need to calculate the voltage that the resistor needs to drop. That is equal to
    VDrop=VPowerSupply - VF=5-1.2=3.8V
    The table above recommends a current I of 6 ma for an optoisolator. The formula for resistance gives us:
    R=V/I=3.8/0.006=633Ω Generally you choose a resistor for that value or the next higher standard resistor value, 680Ω.
    To calculate the wattage resistor needed you use the formula for Power:
    P=VI=(3.8)(0.006)= 0.02W. You would use the next standard size up resistor, 1/8 W.

Single LED Calculator

A simple calculator for calculating resistors can be found at: LED Calculator for 1 LED.

Array of LEDs Calculator

A simple calculator for calculating resistors for an array of LEDs can be found at:LED Calculator for an array of LEDs.

Pixel Voltage Drop Calculator

Due to the high current used by pixels and the small guage wires used by many people, there can be issues due to voltage drops caused by the wire resistance.

Voltage Drop Example

  1. What is the voltage drop when using 5V and drawing 500ma over a 10M pair of Cat5 wire?
    Since Cat5 wire has a loop resistance of about 0.19 Ω/M, the 10 M length will have a resistance of (10)(0.19)=1.9 Ω
    By Ohm's Law we know that V=IR, then
    V=IR=(0.5)(1.9)=0.95 V drop, so only 4.05 V will be at the far end of the wire.
  2. What is the voltage drop when using 5V and drawing 30A over a 2ft length of 18ga wire?
    Since 18 ga wire has a loop resistance of about 0.013 Ω/ft, the 2ft wire will have a resistance of (2)(0.012) = 0.024 Ω
    By Ohm's Law we know that V=IR, then
    V=IR=(30)(0.024)=0.72 V drop, so only 4.28 V will be at the far end of the wire. The wire will get hot because it is dissipating P=VI=(0.72)(30)= 21W! You must use larger wire for high currents!

This is a thread that discusses voltage drop.

This is a Voltage Drop Calculator usefull for calculating the effects of different wire types on pixel strings.