How Circuits Actually Work — for Programmers

1 min read Original article ↗

Act 0 — Foundation

Introduction Variables & Equations

Act 1 — Linear World

Voltage & Current The First Resistor Circuits by Hand The Circuit Class UNSAT as Information Wheatstone Bridge Bonus

Act 2 — Non-Linearity

Logic & Decisions The Diode Driving an LED BJT Transistors Best Answers: Optimize Bonus Optimization: Saturation MOSFETs Op-Amps

Act 3 — Dynamics

Capacitors & Time The Charge Curve Inductors The Rectifier

Act 4 — The Real World

The CMOS Inverter The MCU as a Constraint Pull-ups & the Floating Input The Button Bounces Driving Real Loads Power Integrity: The Decoupling Cap Reading the Analog World: the ADC Signal Conditioning: the Op-Amp Pre-Amp Analog Out: PWM + RC Smoothing Talking to Chips: UART, I2C, SPI

Act 5 — Integration

System Power Budget I2C Address Collisions The Pin Allocator I2C Pull-up Sizing

Capstones

The Smart Night-Light The All-Analog Alarm Bonus: Make It Tick The Debounced Thermostat The Variable-Speed Fan The Multi-Sensor Node

Exercise Sets

Act 0 Problems Act 1 Problems Act 2 Problems Act 3 Problems Act 4 Problems Act 5 Problems

Epilogue

Where This Breaks