Hardware & electrical · topic E1 · 60 hours
Circuits & analog/digital basics
The goal is not to design circuits; it is to read a schematic, judge whether a wiring choice will let the smoke out, and hold your own in a conversation with hardware engineers.
What to learn
- Basic components, Ohm's law, voltage dividers, RC charge/discharge (the τ = RC concept gets reused everywhere)
- Op-amp circuits: follower, amplifier, difference, comparator
- MOSFET switching and gate drive, and why a freewheeling diode is needed
- Supply ripple, decoupling capacitors, the role of the ground plane
The lesson · plain words
All circuit knowledge converges to one equation, V=IR, and one concept, the time constant τ=RC. Resistors limit current, capacitors store voltage, and RC together decides «how fast».
Power supply, filtering, signal conditioning, motor drive on a robot — all are permutations of these two concepts.
RC: the yardstick of «how fast»
A capacitor charges to 63% in exactly one τ (=R×C) and is considered full after 5τ. Drag R and C below: a larger τ flattens the curve — that same math is a filter's cutoff frequency, a reset circuit's hold time, and the settling time before an ADC sample.
Memorize the two numbers 63% and 5τ, and you can estimate «how fast» any node in a schematic is — this is the foundation of hardware intuition.
Interactive figure · drag it and see
The analog signal chain: from sensor to ADC
Sensor output (mV level) → amplification (op-amp) → filtering (RC or active) → ADC sampling. Every stage can inject error: offset, drift, noise. Paying for 1% divider resistors instead of 5% is money you cannot save.
Do not confuse three ADC specs: resolution (bits) ≠ accuracy (actual error) ≠ sample rate. A 12-bit ADC nominally has 4096 levels but may deliver only 10 effective bits — check ENOB, not the datasheet cover.
Power integrity, the short version
Every chip's supply pin needs a decoupling capacitor (100nF close by + 10μF as backup) — it is the local reservoir for transient current. Without it, the rail sags at every switching instant and the digital side sprouts inexplicable glitches.
Separate two kinds of power problems: voltage sag (load too heavy / traces too thin) and noise (crosstalk on a shared rail). Fix the first with wider traces and more current headroom, the second with LC filtering and isolation. Measuring rail ripple with a scope is the first debugging step.
The multimeter/scope dividing line
A multimeter measures static things: voltage, continuity, resistance. The moment anything «changes» — PWM waveforms, supply ripple, communication signals — you need a scope. About 80% of hardware issues in robot debugging require looking at waveforms; a multimeter only tells you «there is voltage».
E13 covers scope technique in depth. One rule to set here: on any new board, first measure the supply rails (3.3V/5V ripple under 50mV is good), then the crystal waveform. If both pass, the problem is probably in the logic layer.
Three questions — do you really get it?
1. How long does an RC circuit take to charge to 63%?
- AHalf of R×C seconds
- BExactly one time constant τ=R×C
- C5τ
Show answer
B. 63% at 1τ, 86% at 2τ, 95% at 3τ, 99% at 5τ. The yardstick of exponential convergence.
2. Why place a 100nF capacitor next to every chip supply pin?
- ATo increase total capacitance
- BTo supply transient current locally and pin down rail sag
- CTo filter 50Hz
Show answer
B. A decoupling cap is the local reservoir for transient current; over any distance, lead inductance stops the big bulk caps from helping.
3. A 12-bit ADC «really has only 10 effective bits» — what is that spec called?
- AFull-scale error
- BSample rate
- CENOB (effective number of bits)
Show answer
C. ENOB folds in the effect of noise and distortion — it is the true resolution. Judging by the cover-page bit count overestimates accuracy.
Keep going deeper
Links without a marker stay on this site; the rest point to the Chinese edition until its translation batch lands.
How it fails in the field
- Skipping decoupling capacitors: occasional communication bit errors, and the root cause turns out to be an unstable supply
- Wiring 3.3V logic directly to a 5V device — it burns on power-up
You have learned enough when
The Chinese edition carries the full topic page for Circuits & analog/digital basics, including the complete outline, depth requirements per career track, and further derivations: robotguide.dev/k/E1/.