Ohm's Law Calculator
Ohm’s Law is the foundational equation of electronics. It describes the relationship between voltage, current, and resistance in a circuit. Choose any two values, and the calculator solves for the third — with a live circuit animation showing what’s happening.
The Equations
Section titled “The Equations”
Where:
- V = Voltage in volts (V)
- I = Current in amperes (A)
- R = Resistance in ohms (Ω)
- P = Power in watts (W)
The Water Analogy
Section titled “The Water Analogy”The circuit animation uses the water pipe analogy — the classic way to build intuition for Ohm’s Law:
| Electricity | Water |
|---|---|
| Voltage (V) | Water pressure (height of reservoir) |
| Current (I) | Flow rate (litres per second) |
| Resistance (R) | Pipe narrowness / restriction |
| Power (P) | Work done (turning a wheel) |
Increasing voltage with the same resistance = more current (more pressure, faster flow). Increasing resistance with the same voltage = less current (narrower pipe, slower flow). The animated electrons in the circuit speed up and slow down accordingly.
Practical Examples
Section titled “Practical Examples”Choosing an LED Resistor
Section titled “Choosing an LED Resistor”A standard red LED has a forward voltage of ~2.0 V and needs ~20 mA. Running from 3.3 V (tinyCore GPIO):
Use the next standard value: 68 Ω or 100 Ω for a slightly dimmer but safer LED.
I2C Pull-up Resistors
Section titled “I2C Pull-up Resistors”I2C lines need pull-up resistors. For tinyCore at 3.3 V running I2C at 400 kHz (fast mode), 4.7 kΩ is typical:
This is well within GPIO drive capability and keeps bus capacitance manageable.
Voltage Divider
Section titled “Voltage Divider”To measure a 5 V signal with a 3.3 V ADC, use a voltage divider:
For R1 = 10 kΩ, R2 = 22 kΩ: — just within range.
Power Dissipation Warning
Section titled “Power Dissipation Warning”Always check how much power a resistor will dissipate. Standard resistors are rated at 1/4 W (250 mW). If your calculation exceeds this, use a higher-rated resistor.
Example: 100 mA through a 10 Ω resistor:
That’s 100 mW — within spec for a 1/4 W resistor, but getting warm.