Circuit fundamentals you actually use
Ohm's law, Kirchhoff's laws, dividers, time constants and the mistakes that bite on real boards.
Day 4 · 45 min
After this lesson
- You can apply Ohm's law, KVL and KCL to simple networks.
- You can design a voltage divider that does not get loaded down.
- You can explain RC time constants and reactance of capacitors and inductors.
The handful of circuit ideas that carry real boards
Charge, current, voltage and power
Everything on a board starts with four quantities. Current is charge moving past a point: 1 A is 1 coulomb per second, about 6.24 × 1018 electrons every second. Voltage is energy per unit charge: 1 V means each coulomb gains or gives up 1 joule. It is always a difference between two points, so every voltage needs a reference, and in a circuit that reference is called ground. Power is P = V · I, in watts. A 3.3 V rail supplying 200 mA delivers 0.66 W, and a 2000 mAh, 3.7 V cell stores 7.4 Wh, which is about 26.6 kJ.
Ohm's law and where the heat goes
For a resistor, V = I · R. Put 5 V across 1 kΩ and 5 mA flows. Power can be written three ways, P = V · I = I² · R = V² / R, and which one you reach for depends on what you know. 5 V across 1 kΩ burns 25 mW, but 12 V across the same part burns 144 mW, more than a 0603 resistor (100 mW) can take. Check dissipation against the package rating, and keep real designs at half the rating or less.
Kirchhoff's laws, series and parallel
KCL: the currents flowing into a node sum to zero, because charge cannot pile up at a point. KVL: the voltage rises and drops around any closed loop sum to zero. Take a 12 V battery with R1 = 27 kΩ and R2 = 10 kΩ in series. The current is 12 V / 37 kΩ = 324 µA, the drops are 8.76 V and 3.24 V, and 12 − 8.76 − 3.24 = 0. Series resistances add. Parallel resistances combine as 1/R = 1/R1 + 1/R2, so two 10 kΩ parts make 5 kΩ, and the result is always smaller than the smallest branch.
The voltage divider, loading and Thevenin
Two series resistors tapped in the middle give Vout = Vin · R2 / (R1 + R2). To scale 12 V down for a 3.3 V ADC you want a ratio of 0.275, and 27 kΩ over 10 kΩ gives 3.24 V while drawing 324 µA. But a divider is not an ideal source. Thevenin's theorem says any linear network seen from two terminals behaves like one ideal source in series with one resistance, and here that is 3.24 V behind R1 ∥ R2 = 7.3 kΩ.
A load RL on the output forms a second divider with that 7.3 kΩ, so the output falls by the factor RL / (RL + 7.3 kΩ). A 1 MΩ load costs 0.7%, 100 kΩ costs 6.8%, and 10 kΩ drags the output down to 1.88 V. Keep the load at least 10 times the Thevenin resistance for about 10% error and 100 times for about 1%.
Time and frequency: DC, AC, τ = RC and reactance
DC has constant polarity; AC alternates, and a sine is described by its peak, its frequency and its RMS value, Vrms = Vpk / √2, so 230 V RMS mains peaks at 325 V. Put a resistor in series with a capacitor and the capacitor charges as V · (1 − e−t/RC). The product τ = R · C is the time constant: after 1τ the capacitor is at 63.2%, after 3τ at 95%, and after 5τ at 99.3%, which is why 5τ is the practical settling time. A 10 kΩ resistor with a 100 nF capacitor gives τ = 1 ms and settles in 5 ms; the same pair is a low-pass filter with cutoff fc = 1 / (2πRC) = 159 Hz.
Capacitors and inductors oppose AC through their impedance, which for an ideal part is pure reactance. XC = 1 / (2πfC) falls as frequency rises, while XL = 2πfL rises. A 100 nF capacitor is 15.9 kΩ at 100 Hz but only 1.59 Ω at 1 MHz, which is why it shorts fast noise to ground, and a 10 µH inductor is 62.8 Ω at 1 MHz. A capacitor blocks DC and passes high frequencies; an inductor does the opposite.
Decibels
Engineers quote ratios in decibels: dB = 20 · log10(Vout / Vin) for voltage, with 10 · log10 for power. Remember four points: +6 dB doubles a voltage, −6 dB halves it, −20 dB is a factor of 10, and −3 dB is ×0.707, the half-power point where a filter reaches its cutoff frequency.
Measuring with a multimeter
Measure voltage in parallel with the leads in the V jack. A typical meter presents 10 MΩ, so it barely disturbs a 7 kΩ divider but would pull a 1 MΩ source down by about 9%. Measure current in series: break the circuit and use the mA or A jack. The meter is then close to a short, so leaving the leads there while you probe a supply blows the fuse. Measure resistance and continuity only with the board unpowered and the part isolated, otherwise parallel paths give a wrong answer.
Floating inputs and the ground reference
A CMOS input connected to nothing floats: it picks up 50 Hz hum from your hand, sits near mid-rail, and may draw extra current or read random bits. Every input needs a defined state, so use a pull-up or pull-down (10 kΩ typical, 100 kΩ when power matters) on reset, enable, strap and unused gate pins. A voltage also only means something against a reference. All grounds on a board are one node by convention, but copper has resistance: 3 A through 10 mΩ of shared ground is 30 mV of ground bounce, tens of counts on a 12-bit ADC.
Interactive: Ohm's law and the loaded divider
Ohm's law and the loaded divider
Change V and R: the dots circulate faster as the current rises, and the resistor heats up as P = V · I approaches its rating.
- Current I = V / R
- 5 mA
- Power P = V · I
- 25 mW
- Share of rating
- 10%
- Verdict
- Comfortable
In practice
Practice
Design a battery-monitor divider
A 12 V battery must feed a 3.3 V ADC pin through a divider that may draw at most 0.5 mA. Pick standard resistor values, then state Vout, the divider current and the Thevenin resistance. Finally check two things: what the output does if the battery reaches 14.4 V, and what a 100 kΩ load does to Vout.
Answer: show the worked solution
Ratio 3.3 / 12 = 0.275 R1 / R2 = (1 - 0.275) / 0.275 = 2.64
Budget 12 V / 0.5 mA = 24 kΩ minimum total resistance
Pick R2 = 10 kΩ, R1 = 27 kΩ (nearest E12 value to 26.4 kΩ)
Vout 12 x 10 / (27 + 10) = 3.24 V
Current 12 V / 37 kΩ = 324 µA (under 0.5 mA), P = 3.9 mW
Rth 27k || 10k = 7.3 kΩ (below 10 kΩ, fine for a SAR ADC)
100 kΩ 3.24 x 100 / (100 + 7.3) = 3.02 V, which is 6.8% low
14.4 V 14.4 x 10 / 37 = 3.89 V, above the 3.3 V pin limit
Fix R1 = 36 kΩ: 14.4 V gives 3.13 V, 12 V gives 2.61 V, Rth = 7.8 kΩ, I = 313 µA27 kΩ / 10 kΩ meets the brief at a nominal 12 V, but a charging lead-acid battery breaks it. Moving R1 to 36 kΩ keeps the pin legal up to 14.4 V and still draws only 313 µA; the price is a lower reading at 12 V, which the firmware scales back up. Add 100 nF at the pin so the ADC's sampling charge does not drag the node down.
Real-world scenario
Real-world scenario
ADC reads 2.9 V where the multimeter says 3.3 V
A 12 V battery monitor on a robot board feeds a 12-bit ADC through a divider chosen to waste almost no current: R1 = 261 kΩ and R2 = 100 kΩ, both 1%. The node should sit at 3.32 V and the divider draws only 33 µA. On the bench a multimeter on the ADC pin reads 3.30 V, yet the firmware reports about 2.9 V, and the number shifts when another analog channel is added to the scan list.
Symptoms
- Multimeter on the ADC pin reads 3.30 V; the firmware prints about 2.9 V, roughly 12% low.
- The reading is correct when the same channel is sampled twice in a row, and wrong when it follows a channel at 0 V.
- The error scales with the voltage: it is a constant fraction, not a fixed offset.
Interview questions
screenWalk me through designing a voltage divider that scales a 12 V battery down to a 3.3 V ADC input.
screenState Kirchhoff's two laws and say when you use each.
screenHow do you measure current with a multimeter, and what is the classic mistake?
screenWhat happens to a digital input that is left floating, and how do you fix it?
deepExplain a Thevenin equivalent using a voltage divider, and why a divider cannot drive a low-impedance load.
deepYou apply a 0 to 3.3 V, 1 kHz square wave to a 10 kΩ and 100 nF RC low-pass. What does the output look like, and why?
Quiz
References and further reading
Where the ideas in this lesson come from, and what to read next. Books are the standard texts; papers are the original sources; standards are what employers work to.
- Book
Paul Horowitz and Winfield Hill (2015). The Art of Electronics. Cambridge University Press, 3rd edition.
Read: Chapter 1: voltage, current, dividers, RC circuits, with the authors' practical warnings.
- Book
Adel S. Sedra and Kenneth C. Smith (2020). Microelectronic Circuits. Oxford University Press, 8th edition.
Read: The introductory chapter for the formal versions of the same ideas.