Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Voltage Divider
- # Divides voltage between resistors
- # Giving you say 5v from 12v.
- # DOES NOT REDUCE AMERAGE. 1A in = 1A out. 6A in = 6A out.
- # Equasion to calculate voltage:
- #
- # V = (Vtotal/Rtotal) x R1
- # 12v Circuit
- #
- # V = (12v/(R1(2ohm) + R2(10ohm))) * R1(2ohm)
- # V = (12v/(12ohm) * 2ohm
- # V = (1 * 2ohm)
- # V = 2 ohm
- #
- # Example 1, 12v in, R1 = 1ohm, R2 = 1ohm
- # V = (12v/(R1 + R2) * R1)
- # V = (12v/(1ohm + 1ohm) * 1ohm)
- # V = (12v/(2ohm) * 1ohm)
- # V = (12v/ 2)
- # V = (6)
- # Voltage across R2 = 6v. Must mean voltage across R1 = 6v also, because total voltage is 12v.
- #
- # Example 2, 12v in, R1 = 5ohm, R2 = 25ohm
- # V = (12v/(R1 + R2) * R1)
- # V = (12v/(5ohm + 25ohm) * 5ohm)
- # V = (12v/(30ohm) * 5ohm)
- # V = (12v/(150ohm))
- # V = (float(0.08))
- # Big voltage loss... Is that what you want?
- # Equasion to find voltage:
- #
- # 12v circuit, calculate resistor values.
- #
- # R2 = R1 x (Desired vOut / (vIn - vOut)
- # R2 = R1 x (5v / (vIn - vOut)
- # R2 = R1 x (5v / (12v - 5v)
- # R2 = R1 x (5v / (7v)
- # R2 = R1 x (5/7)
- # Algebra! Solve for R1.
- # Or, pick one resistor and call it R1. Solve for R2.
- # No more Algebra.
- #
- # Example 1, 12v in, R1 = 2ohm, R2 = 10ohm
- # R1 = 2ohm
- # R2 = 10ohm
- # vTotal = 12v
- # rTotal = R1 + R2
- # V = R1 * (vTotal / rTotal)
- # V = R1 * (12v / (R1 + R2)
- # V = 2 * (12v / (2+10)
- # V = 2 * (12v / 12)
- # V = 2 * 1
- # V = 2v
- #
- # Example 2, 12v in, 5v out:
- # vIn = 12v
- # vOut = 5v
- # R1 = 10ohm
- # R2 = ???
- # R2 = R1 x desiredVOut / (vIn - vOut)
- # R2 = R1 x 5v / (vIn - vOut)
- # R2 = R1 x 5v / (12v - 5v)
- # R2 = R1 x 5v / 7v
- # R2 = R1 x float(0.714)
- # R2 = 10ohm x float(0.714)
- # R2 = float(7.14)
- # R2 = int(rnd(R2))
- # R2 = 7ohm Resistor
- # Love Maths.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement