Chapters

4 Ohm's Law and Power

electronics-controller-design
electricity
ohms
law

4.1 Start Simple

Choose One Resistor and Check the Heat

Picture an indicator light that works at first and then damages its controller pin. The circuit needed a current limit and a power check before it was connected.

A microcontroller means the small computer that reads inputs and controls a device. GPIO means general purpose input/output. A GPIO pin is one of the controller’s small digital connections.

Measure the supply and light voltage, choose a safe current, calculate the resistor, and then measure current and heat. Repeat at the highest expected supply voltage.

This runway does not prove that Ohm’s Law describes every component by itself. The deeper sections explain voltage, current, resistance, power, series and parallel paths, tolerances, and safe ratings.

Imagine choosing a resistor for an indicator LED on a microcontroller pin. Ohm’s Law turns the supply voltage, LED drop, and safe current into a part value, while the power equation checks whether the part can survive. Start with the load you can see, then calculate current, voltage drop, and heat before wiring the circuit.

The mathematical gist. The chapter’s 260 ohm metal-film resistor follows (R(T)=R_0[1+\alpha(T-T_0)]). With 100 ppm/°C it reaches 261.56 ohms at 85°C, only +0.600%, while a copper conductor with 3,930 ppm/°C would move +23.6%. The same temperature-aware resistance then sets LED current and resistor heat through (I=(3.3-2.0)/R) and (P=I^2R).

Math Bridge · guided foundationsWhy does a 260 ohm resistor change when it gets hot?Let Eddie connect temperature coefficient, resistance drift, LED current, and resistor power.

4.2 Overview: Ohm’s Law Is A Safety Check

Ohm's Law connects voltage, current, and resistance: V = I x R. In IoT hardware, the formula is not just a classroom equation. It is how you check whether a GPIO pin, LED resistor, pull-up, divider, sensor rail, heater, relay coil, or fuse choice is plausible before powering the circuit.

The key habit is to ask what the circuit is trying to prove. If you know supply voltage and resistance, calculate current. If you know current and resistance, calculate voltage drop. If you know voltage and current, calculate power. Then compare the result with the limits of the component, board trace, wire, regulator, battery, or power supply.

Voltage Vera, the circuits guide

Voltage Vera

“Before you blame the code, follow the current — most ‘bugs’ are a loose ground or a wrong resistor.”

In this chapter Vera turns each formula into a meter check: predict the number, then probe the built circuit to confirm it.

Before choosing a formula, inspect Figure 4.1 to decide which known quantities and safety limit belong in the calculation. The visual is a route through the checks, not a substitute for naming the two voltage points and the current path.

Key electrical equations for IoT showing Ohm’s Law, power formulas, and Kirchhoff voltage and current laws.
Figure 4.1: Ohm’s Law, power, and Kirchhoff equations used as a circuit-review sequence

Read Figure 4.1 from the Ohm’s Law relationship to the power forms, then finish with the loop and node checks. First solve for the unknown electrical quantity; next translate current and voltage into heat or battery demand; finally verify that voltage drops and branch currents balance. That sequence turns an equation into a pre-power safety check.

That selection step matters because each formula answers a different review question. I = V / R estimates the current a path will demand. R = V / I chooses a current-limiting value. P = V x I translates the electrical result into heat and battery cost. Kirchhoff-style loop and node checks catch missing return paths, impossible voltage drops, and current that has no safe place to flow.

If you only remember two formulas, remember I = V / R for current and P = V x I for power. Those two checks catch many unsafe IoT circuit assumptions.

The calculated resistance still has to become a physical part. Inspect Figure 4.2 to connect the required ohmic value and dissipation with the resistor that will actually be fitted to the circuit.

Six axial-lead resistors with coloured value and tolerance bands
Figure 4.2: Six axial-lead resistors with coloured value and tolerance bands. Photo: Evan-Amos, public domain.

In Figure 4.2, begin with the coloured bands that encode resistance and tolerance, then consider the body size that constrains power handling, and finally check the leads and placement against the build. The photograph supplies physical orientation; the datasheet and calculation still own the exact rating. This closes the chapter’s path from predicted current to a reviewable component choice.

4.2.1 The Core Variables

Voltage

Voltage is the electrical push between two points. Always name the two points being compared, such as 3.3 V rail to ground or GPIO output to LED forward drop.

Current

Current is the flow through a path. It is what heats resistors, stresses GPIO pins, drains batteries, and decides whether protection is needed.

Resistance

Resistance limits current or divides voltage in a resistive path. Use real component values and include the part of the circuit where the voltage actually appears.

Power

Power is energy per second. It is the bridge from a correct electrical calculation to heat, battery life, regulator stress, and part ratings.

4.2.2 Beginner Checklist

Start by deciding whether the reviewed path behaves approximately like a resistor. For an LED or diode, remove the device's forward drop from the available voltage before using Ohm's law on the series resistor. For a motor, relay, coil, capacitor, or radio, add the startup, stall, inrush, pulse, or switching state that a steady resistance omits. After calculating current, compare it with both the component limit and the source or GPIO capability. Then calculate dissipation in every element that drops voltage while carrying that current, including regulators and transistors. The checklist is complete only when those calculations are checked against the real supply, wiring, firmware state, temperature, and package ratings.

  • Use V = I x R only for paths that are approximately resistive.
  • For LEDs and diodes, subtract the forward voltage before calculating the series resistor current.
  • For motors, relays, and coils, expect startup, stall, or switching behavior that a simple DC resistance does not capture.
  • After calculating current, compare it with the component's allowed current and the source's ability to supply it.
  • After calculating power, compare it with the resistor, regulator, transistor, enclosure, and thermal margin.

4.2.3 Overview Knowledge Check

4.3 Practitioner: Turn Formulas Into A Circuit Review

A practical Ohm's Law review records the known values, the equation, the result, and the design decision that follows from the result. The calculation is only useful when it is tied to the real circuit path and to a component limit.

For many IoT circuits, the sequence is simple: identify the source voltage, identify what part of that voltage appears across the resistive element, calculate current, calculate power, and compare both values with ratings. Then measure the built circuit, because breadboard wiring, tolerances, batteries, regulators, and non-resistive loads can shift the result.

4.3.1 Review Ledger

Circuit Case
Known Values
Calculation
Decision
LED indicator
Supply voltage, LED forward voltage, target current, GPIO or driver limit.
R = (Vsupply - Vled) / Iled, then P = Iled^2 x R.
Choose a standard resistor value, keep current below the pin and LED limits, and verify brightness.
Pull-up resistor
Bus voltage, sink-current limit, bus capacitance, required rise time.
Check low-state current with I = V / R; check whether the signal rises fast enough.
Choose a value that is not too strong for the pin and not too weak for the bus timing.
Voltage divider
Input voltage, safe output voltage, input impedance, acceptable divider current.
Vout = Vin x R2 / (R1 + R2); check divider current and loading.
Scale the signal safely without wasting too much current or making the node too noise-sensitive.
Load or heater
Supply voltage, load resistance or rated power, wire path, fuse, switch, and source limit.
I = V / R or I = P / V; then check P = V x I.
Confirm source capacity, protection, wire margin, switch rating, and heat dissipation.

4.3.2 Worked Review: GPIO LED

Follow the LED loop from the 3.3 V GPIO through the diode and resistor to ground. With an estimated 2.0 V red-LED drop, the resistor receives about 1.3 V; choosing 5 mA then gives 260 ohms before rounding upward to a standard value. That upward choice reduces stress rather than chasing maximum brightness. Check the resulting resistor dissipation and the GPIO's source or sink limit, then build the actual path and measure voltage across the resistor to infer current. If the measurement differs, inspect breadboard connections, supply level, LED polarity and forward voltage, and resistor tolerance. Keep the calculation and measurement together so later boards do not inherit an unverified nominal value.

Record which GPIO state lights the LED, because a sink-connected indicator reverses the apparent firmware logic while leaving the same electrical checks in force. Measure the resistor voltage with probes on its two terminals, divide that observed drop by the installed resistance, and compare the inferred current with the 5 mA target. Also measure the pin voltage while loaded: excessive deviation from the rail is evidence that the pin is being asked to source or sink too much current. This closes the review with actual node voltages rather than brightness alone.

  1. State the path. A 3.3 V GPIO drives a red LED and a series resistor to ground.
  2. Estimate resistor voltage. If the LED forward voltage is about 2.0 V, the resistor sees about 1.3 V.
  3. Choose current. A visible indicator often needs less than the LED's maximum current; the GPIO limit is also part of the decision.
  4. Calculate resistance. For 5 mA, R = 1.3 V / 0.005 A = 260 ohms; a nearby higher standard value reduces current.
  5. Check power. Resistor power is small in this case, but the calculation should still be recorded.
  6. Measure. Verify voltage and current on the actual board before reusing the design.

Vera’s Probe Points

  • Measure: voltage across the series resistor, then the LED loop current.
  • Expect: about 1.3 V across the resistor; 5 mA when it is 260 ohms.
  • Wrong?: breadboard wiring, tolerances, or a shifted supply — the reasons this review ends by measuring the real board.

4.3.3 Worked Review: Simple Lamp Load

A classroom lamp circuit uses the same ledger. If a 12 V source drives a lamp path that behaves like a 3 ohm load, the current estimate is I = V / R = 12 V / 3 ohms = 4 A. The next review step is not just writing "4 A"; it is checking whether the battery or supply, switch, wire, connector, and lamp rating can safely carry that current. The matching power check is P = V x I = 12 V x 4 A = 48 W, which explains why a small formula result can become a heat, fuse, or source-capacity decision.

Vera’s Probe Points

  • Measure: current in the lamp loop, with the meter in series.
  • Expect: 12 V / 3 ohms = 4 A, and a 48 W power check.
  • Wrong?: a sagging source or wire resistance in the loop — recheck supply, switch, connector, and lamp ratings.

4.3.4 Practitioner Knowledge Check

4.4 Under The Hood: Where Ohm’s Law Stops Being Enough

Ohm's Law is exact for an ideal resistor at a fixed condition. IoT hardware is full of parts that are only partly resistive, change with temperature, or behave differently during startup and switching. The equation remains valuable because it gives a first-order ledger, but the ledger must identify where a deeper model or measurement is required.

The common trap is treating the calculated value as the final truth. A motor may draw far more current during startup or stall than its running current suggests. A diode has a nonlinear voltage-current curve. A battery voltage may sag under pulse load. A regulator may dissipate heat that limits current below the headline rating. A long wire may add enough resistance to change the load voltage.

For non-ideal parts, use Ohm's Law as a local approximation and then ask which assumption was hidden. Is the resistance stable, or does it change with temperature and current? Is the supply stiff, or does its internal resistance lower the voltage during a radio burst or motor start? Is the load passive, or does it contain semiconductor junctions, coils, capacitors, firmware-controlled modes, or protection paths?

A strong review therefore writes the condition next to the equation: steady state at a measured supply voltage, startup at current limit, LED at an expected forward voltage, divider under ADC loading, or resistor after warm-up. The math gives the expected value, and the measurement proves whether the real circuit stayed inside that model. When the two disagree, the next task is not to force the formula, but to identify the missing physical behavior.

4.4.1 Formula Set

Ohm's Law

V = I x R, I = V / R, and R = V / I. Use them for resistive paths and first-pass checks.

Power

P = V x I, P = I^2 x R, and P = V^2 / R. Use them to check heat, source load, and battery drain.

Series Paths

Series resistances add, current is common, and voltage divides according to resistance when the load does not disturb the divider.

Parallel Paths

Parallel branches share voltage, currents add, and total resistance is lower than the smallest branch resistance.

4.4.2 Escalation Checks

Escalate beyond the simple resistor model when the component, load, or environment changes during operation. Use the device's voltage-current curve for semiconductors, capture startup or stall current for dynamic loads, and test warm conditions when resistance, regulator dropout, or safe operating area may shift. Measure source sag at the load while the event occurs, not only at the supply connector. Keep voltage probes across two named nodes and place current measurement in the intended branch. Finally review protection against the real fault energy: fuses and limiting for sustained overcurrent, flyback paths for inductive turn-off, and a driver with adequate voltage, current, thermal, and transient margins. Each escalation should end with a reproducible test condition.

  • Nonlinear parts: LEDs, diodes, transistors, and many sensors need their voltage-current behavior checked, not just a resistor equation.
  • Dynamic loads: motors, relays, radios, and capacitors can create startup, inrush, stall, or pulse currents.
  • Thermal behavior: resistance, regulator dropout, and safe operating margin can change as parts warm up.
  • Source limits: batteries and regulators have internal limits that can sag voltage under load.
  • Measurement placement: current must be measured in series with the path, while voltage is measured across two points.
  • Protection: fuses, current limiting, flyback paths, and driver selection must match the real fault modes.

4.4.3 Under-the-Hood Knowledge Check

4.5 Size an LED Resistor and Its Heat

A 3.3 V output drives a red LED whose forward drop is 2.0 V. The resistor must take the remaining (3.3-2.0=1.3\ \text{V}). For a 5 mA target, Ohm’s Law gives (R=V/I=1.3/0.005=260\ \Omega). In Figure 4.1, start with the two known values and choose the form that leaves resistance alone; Figure 4.2 then connects the calculated value to a real part and power rating.

Resistor power is (P=VI=1.3\times0.005=0.0065\ \text{W}), or 6.5 mW. A 0.25 W part has ample ideal margin, but LED voltage and GPIO limits still belong to the circuit check.

4.5.1 Predict the Ohm’s Law Change

  • Predict: The resistor rises to 330 Ω with the same 1.3 V across it. What current follows? Check: (1.3/330=0.00394\ \text{A}), or about 3.94 mA.
  • Predict: The LED is shorted, leaving 3.3 V across 260 Ω. Does resistor heat rise? Check: Yes. Power becomes (3.3^2/260=0.0419\ \text{W}), about 41.9 mW.

4.6 Summary

Read these conclusions as one connected engineering argument: Ohm’s Law links voltage, current, and resistance, and it is most useful when tied to a named circuit path. Power equations turn a current or voltage calculation into heat, battery drain, source capacity, and rating checks. LED resistors, pull-ups, voltage dividers, heaters, and simple loads all benefit from a small review ledger before power is applied. Nonlinear and dynamic parts need more than the simple equation: check startup, stall, pulse load, forward voltage, source sag, and thermal behavior. A defensible circuit decision records the formula, known values, result, rating comparison, and measurement evidence.

Key Takeaway

Use Ohm’s Law as a review workflow, not a memorized triangle: name the path, calculate current and power, compare with limits, and measure the built circuit.

4.7 See Also

Electricity Fundamentals

Review voltage, current, resistance, power, grounding, and measurement habits before applying formulas.

Electricity Applications

Apply circuit calculations to pull-ups, dividers, loads, protection, and troubleshooting decisions.

Electricity Common Pitfalls

Avoid unit mistakes, unsafe current paths, missing power checks, and misleading measurements.

Semiconductors, Doping, and Diodes

Move beyond resistive assumptions into nonlinear devices used throughout IoT electronics.