ZERO → HERO · THE COMPLETE DISCIPLINE
Embedded Systems
Mastery
From Ohm's law to a shipped, field-deployed board — taught through Beacon, a battery-powered ESP32-C3 asset tag you design, build, debug, and pilot across all six stages. Mechanisms over incantations; failure modes before happy paths.
6Stages
54Lessons
54Widgets
Beaconthread
1
Foundations: Electricity, Components, and Measurement
9 lessons
Every embedded failure is a physics failure first: a resistor that dissipated more than it could, a capacitor that was not the capacitor its label promised, a datasheet number read without its conditions, a measurement that changed the thing it measured. This stage installs the non-negotiable mental models — voltage as potential difference, current as flow you must budget, power as heat you must move, and the datasheet as a legal document with fine print. Nothing later makes sense without them.
Beacon milestone: Beacon's requirements table (R1–R9) is written with real numbers; an LED, a button, and an LDO regulator are running on a breadboard; the first current measurement is taken and compared against a back-of-envelope power budget.
✓LESSON 1.1
What an Embedded System Is: A Loop in a Box With Constraints
A desktop program runs on someone else's electricity. An embedded system carries its own — and every line of code is a decision about heat, time, and money.
✓LESSON 1.2
Voltage, Current, Resistance, and Power
Ohm's law is easy. Power is where the smoke comes from.
✓LESSON 1.3
Kirchhoff's Laws and Circuit Analysis by Hand
You will never run SPICE on every node — but you will always be able to sum voltages around a loop.
✓LESSON 1.4
Passive Components for Real: Resistors, Capacitors, Inductors
A 10 µF capacitor is not 10 µF. It is 10 µF at 0 V, 25 °C, on a good day.
✓LESSON 1.5
Diodes, Transistors, and MOSFETs as Switches
A MOSFET is not on or off. It is a resistor whose value you set with the gate — and in between, it is a heater.
✓LESSON 1.6
Reading a Datasheet Without Getting Fooled
Typical is a marketing number. Minimum and maximum are engineering. The conditions column is the law.
✓LESSON 1.7
Measurement: Multimeter, Oscilloscope, and Logic Analyzer
Every instrument is part of the circuit while it measures it. The question is how much.
✓LESSON 1.8
Breadboards, Prototyping, and the Bench
A breadboard is a tool for finding out whether an idea is wrong — not for finding out whether a circuit works.
✓LESSON 1.9
Beacon's Requirements: From Wish to Specification
“Long battery life” is a wish. “≥ 6 months at one report per minute at 22 °C” is a requirement — and it constrains every decision after it.
2
Circuits That Work: Digital, Analog, and Signals
9 lessons
A microcontroller sees the world through pins that have thresholds, impedances, and timing — and the world pushes back with noise, static discharge, reverse-plugged batteries, and clocks that drift. This stage teaches the small circuits that sit between silicon and reality: logic levels and pull-ups, amplification and filtering, sampling, decoupling and return paths, protection, drivers, and timing references. Each one is where most real boards fail, and each is a few components chosen for reasons.
Beacon milestone: Beacon's schematic v0 exists on paper and is reviewed: battery-voltage sensing with a switched divider, I2C bus with correctly sized pull-ups, debounced button, LED driver behind a high-side switch, USB and battery protection, a crystal-referenced clock plan.
✓LESSON 2.1
Logic Levels, Pull-ups, and Open-Drain
3.3 V and 5 V parts have talked to each other for decades — mostly by luck, occasionally by design.
✓LESSON 2.2
Op-Amps and Amplification
The ideal op-amp has infinite gain and no opinions. The real one has offset, a bandwidth limit, and rails it cannot reach.
✓LESSON 2.3
Filters: RC, Noise, and Bandwidth
Noise is not a bug in your measurement. It is a part of it you have not filtered yet.
✓LESSON 2.4
ADCs and DACs: Sampling the Real World
A 12-bit ADC gives you 12 bits of resolution and, if you are careful, about 10 bits of truth.
✓LESSON 2.5
Decoupling, Grounding, and Return Paths
Current does not flow to ground. It flows back to where it came from, by the path of least impedance — which is not the path you drew.
✓LESSON 2.6
Protection: ESD, Reverse Polarity, Overcurrent, and Inrush
Your board will be plugged in backwards, zapped by a fingertip, and shorted by a stray screw. Design for the user you actually have.
✓LESSON 2.7
Switching Things: Driving LEDs, Motors, and Relays
A GPIO pin can source a few milliamps and a great deal of optimism.
✓LESSON 2.8
Timing, Clocks, and Crystals
Every second your device counts is a claim about a piece of quartz — and quartz is a little bit wrong.
✓LESSON 2.9
Beacon's Schematic v0: The Front-End Comes Together
A schematic is an argument, not a drawing. Every part should be able to explain why it is there.
3
Microcontrollers and Firmware
9 lessons
Firmware is software that cannot pretend the hardware is not there. Registers, memory maps, interrupts, and buses set the rules; the toolchain decides where every byte lands; and the difference between a demo and a product is a state machine that handles every event, a driver that handles every error, and a debugging method that survives a bug you cannot reproduce. This stage takes the learner from a blinking dev kit to Beacon's firmware v0 with real drivers, a real event loop, and real logs.
Beacon milestone: Beacon firmware v0 runs on an ESP32-C3 dev kit: SHT40 and LIS2DH12 drivers with error handling, the application state machine, motion-interrupt wake, structured logging, and a watchdog — all tested on the bench with a logic analyzer trace of each bus.
✓LESSON 3.1
Inside a Microcontroller: Core, Memory, Peripherals, and Buses
A microcontroller is a CPU that agreed to live next to its peripherals and share an address space with them.
✓LESSON 3.2
Toolchain and Build: From Source to Flash
The linker decides where your program lives. Understand it and half of the mysterious crashes become geography.
✓LESSON 3.3
GPIO, Timers, and PWM
Every pin has a history: a default state, a strapping role at boot, and a drive strength. Ignore the history and the pin ignores you.
✓LESSON 3.4
Interrupts, Polling, and the Latency Budget
An interrupt is a promise to stop what you are doing. Keep it short or you break every other promise.
✓LESSON 3.5
Serial Buses: UART, I2C, and SPI
Three buses, three philosophies: UART trusts the clock, SPI trusts the chip select, I2C trusts everyone — which is why I2C hangs.
✓LESSON 3.6
Writing Drivers and Hardware Abstraction
A driver is a contract between a datasheet and the rest of your code. Most bugs are contract violations.
✓LESSON 3.7
State Machines and Event-Driven Firmware
The superloop that works on a demo becomes the superloop that blocks on a demo. Events and states scale; delays do not.
✓LESSON 3.8
FreeRTOS Essentials: Tasks, Queues, and Why Not Everything Needs a Thread
An RTOS gives you tasks. It also gives you priority inversion, stack overflows, and a scheduler that is right even when you are wrong.
✓LESSON 3.9
Debugging Firmware: Logs, JTAG, Logic Analyzers, and the Scientific Method
The bug is not in the last thing you changed. It is in the last assumption you made.
4
Power and Wireless
9 lessons
Battery life is the product. Every microamp of sleep current, every millisecond awake, every dBm of transmit power, every retry is a withdrawal from a budget the user will judge you on. This stage builds the power system — chemistry, regulation, sleep, charging — and the radio system — link budget, BLE, Wi-Fi, UWB, OTA — as one coupled design, because on a battery they are the same problem.
Beacon milestone: Beacon's power budget is measured and matches the canon (≈ 8 µA sleep, ≈ 38 µA average); the buck regulator is selected and justified; the BLE advertising payload is live and decoded at a gateway; OTA with rollback works; a 72-hour bench run projects well past the six-month requirement.
✓LESSON 4.1
Batteries: Chemistry, Capacity, and the Lies of mAh
1000 mAh is a capacity at a specific current, temperature, and cutoff. Change any of them and the number changes.
✓LESSON 4.2
Regulators: LDO vs Buck vs Boost
An LDO turns excess voltage into heat. A buck turns it into current. On a battery, that is the whole argument.
✓LESSON 4.3
Sleep Modes and the Power Budget
Your device is asleep 99.9 % of the time. Design that 99.9 % first.
✓LESSON 4.4
Charging, Protection, and USB-C
USB-C is a connector, a power-negotiation protocol, and a trap for anyone who forgets two resistors.
✓LESSON 4.5
Wireless Fundamentals: dBm, Link Budget, and Antennas
Range is not a number a module has. It is what is left after you subtract every loss from the transmit power.
✓LESSON 4.6
BLE: Advertising, Connections, and Data Design
A BLE advertisement is 31 bytes shouted into the room. Beacon's whole job fits in 14 of them.
✓LESSON 4.7
Wi-Fi, MQTT, and When Not to Use Wi-Fi
Wi-Fi is the fastest way to send a byte and the slowest way to save a microamp.
✓LESSON 4.8
Beyond BLE: UWB Ranging and Real Localization
BLE tells you a tag is nearby. UWB tells you it is 3.42 metres away — and then multipath tells you it is lying.
✓LESSON 4.9
OTA Updates, Provisioning, and Security Basics
A device you cannot update is a device whose bugs you have promised to keep.
5
PCB Design in KiCad
9 lessons
A schematic is a claim; a PCB is where the claim meets copper, dielectric, and a manufacturer's capabilities. Placement decides most of the electrical behaviour before a single trace is drawn; layers and return paths decide the rest; and the manufacturer's rules decide whether any of it can be built. This stage designs Beacon Rev A in KiCad from library hygiene through stackup, placement, routing, RF layout, DFM, and ordering — with a design review before money is spent.
Beacon milestone: Beacon Rev A is designed in KiCad: a reviewed schematic with ERC clean, a 35 × 25 mm four-layer layout passing DRC against JLCPCB's rules, correct RF keep-out for the module antenna, a BOM and placement file, Gerbers generated, five assembled boards ordered.
6
Bring-Up, Test, and Deployment
9 lessons
The boards arrive and the design stops being a document. Bring-up is a method, not an event; assembly and rework are skills with physics behind them; testing is a design problem of its own; and the field is a far harsher reviewer than any council. This stage takes Beacon from five unpowered boards to a 25-unit pilot, through EMC, enclosures, reliability, and field telemetry — and ends with an honest post-mortem and a Rev B change list.
Beacon milestone: Beacon Rev A is brought up and characterised; a pogo-pin jig and test firmware provision units in under two minutes; a pre-compliance EMC check passes; 25 units run in an enclosure for 30 days in a real workshop; the post-mortem produces Rev B's change list.
✓LESSON 6.1
Board Bring-Up: Smoke Test to First Blink
Never power a new board fully. Power it in stages, measure at each one, and let the current tell you where it hurts.
✓LESSON 6.2
Assembly: Soldering, Reflow, and Rework
Solder is not glue. It is a metallurgical joint with a temperature profile, and the profile is not optional.
✓LESSON 6.3
Test Jigs, Pogo Pins, and Production Test Firmware
If a unit can leave the bench untested, one will — and it will be the one the customer gets.
✓LESSON 6.4
EMC, Noise, and Certification Basics
Your board radiates. The only questions are how much, at which frequencies, and whether a lab will let you sell it.
✓LESSON 6.5
Enclosures, Thermal, and Mechanical Design
The enclosure is part of the circuit. It changes the antenna, the temperature, and what the user can break.
✓LESSON 6.6
Reliability and Field Failure Modes
MTBF is a statistic about a population. Your customer owns one unit, and it either works or it does not.
✓LESSON 6.7
Firmware in the Field: Logging, Telemetry, and Remote Diagnosis
You will not be in the room when it fails. Design the device to tell you what happened.
✓LESSON 6.8
Cost, BOM, and Scaling From 25 to 25,000
At 25 units the engineer's time is the cost. At 25,000 units a two-cent resistor is a decision.
✓LESSON 6.9
Capstone: Beacon Pilot Deployment and Post-Mortem
Thirty days in a real workshop taught more than six stages — which is exactly why the six stages existed.
🎓
Certificate
Finish all 54 lessons to unlock
Complete every lesson across all six stages — from Ohm's law to a 25-unit pilot in the field — and claim your personalized certificate of completion. Beacon's journey, yours to sign.
📚
Sources & Further Reading
Canonical works behind this course
These are the real, canonical works behind this course — go deeper here. References are grouped by the stage they most directly underpin.
Foundations — Circuits and Components
- Paul Horowitz, Winfield Hill. The Art of Electronics. 3rd ed., 2015. Cambridge University Press. — The reference for practical circuit design; the chapters on passive components, transistors as switches, and power supplies underpin Stages 1, 2 and 4.
- Adel S. Sedra, Kenneth C. Smith. Microelectronic Circuits. 8th ed., 2020. Oxford University Press. — Rigorous treatment of diodes, MOSFETs and op-amps for readers who want the device physics behind the rules of thumb.
- Sensirion. SHT4x Datasheet; STMicroelectronics. LIS2DH12 Datasheet; Espressif. ESP32-C3-MINI-1 Datasheet and ESP32-C3 Technical Reference Manual. — The primary sources for every Beacon number; read with Lesson 1.6 in hand.
Signals, Noise, and Integrity
- Henry W. Ott. Electromagnetic Compatibility Engineering. 2009. Wiley. — Grounding, return paths, decoupling and EMC from first principles; the basis for Lessons 2.5 and 6.4.
- Eric Bogatin. Signal and Power Integrity — Simplified. 3rd ed., 2018. Prentice Hall. — Why traces are transmission lines and planes are the real circuit; supports Stage 5's stackup and routing lessons.
- NXP Semiconductors. UM10204 — I²C-bus Specification and User Manual. Rev. 7, 2021. — The authoritative source for rise-time limits, pull-up sizing and bus recovery in Lessons 2.1 and 3.5.
Firmware and Real-Time Systems
- Elecia White. Making Embedded Systems. 2nd ed., 2024. O'Reilly. — Architecture, drivers, state machines and debugging for people who arrive from software; the closest book to Stage 3's philosophy.
- Jack Ganssle. The Art of Designing Embedded Systems. 2nd ed., 2008. Newnes. — Interrupt discipline, watchdogs and the engineering culture around firmware quality.
- Espressif Systems. ESP-IDF Programming Guide (v5.x) and FreeRTOS Kernel Reference. — Primary documentation for the build system, partition tables, sleep modes, OTA and the RTOS APIs used throughout Stages 3 and 4.
Power and Wireless
- Texas Instruments. TPS62840 Datasheet and application report SLVA824 — Understanding Quiescent Current in Low-Power DC/DC Converters. — The measured behaviour behind Lesson 4.2's LDO-versus-buck argument.
- Bluetooth SIG. Bluetooth Core Specification v5.4, 2023. — Advertising, connection and GATT semantics for Lesson 4.6; the Core Specification Supplement defines the advertising data types.
- Zafer Sahinoglu, Sinan Gezici, Ismail Güvenç. Ultra-wideband Positioning Systems. 2008. Cambridge University Press. — Time-of-flight ranging, two-way ranging and NLOS error models used in Lesson 4.8.
PCB Design and Manufacturing
- IPC. IPC-2221B — Generic Standard on Printed Board Design. 2012. — The trace-width, spacing and current-capacity rules referenced in Lessons 5.4 and 5.6.
- Espressif Systems. ESP32-C3 Hardware Design Guidelines. — Antenna keep-out, module placement and power-supply layout requirements that Lesson 5.7 is built on.
- KiCad Developers. KiCad Documentation (v8/v9): Getting Started, Schematic Editor, PCB Editor. — The workflow reference for Stage 5; free and versioned with the software.
Bring-Up, Test, Reliability, and Compliance
- Yongxian Han et al. (IPC). IPC-A-610 — Acceptability of Electronic Assemblies. Rev. H, 2020. — The visual inspection criteria behind Lesson 6.2's defect taxonomy.
- Patrick D. T. O'Connor, Andre Kleyner. Practical Reliability Engineering. 5th ed., 2012. Wiley. — Derating, the bathtub curve and what small-sample field data can and cannot tell you; Lesson 6.6.
- Kementerian Komunikasi dan Digital / SDPPI. Sertifikasi Alat dan Perangkat Telekomunikasi. — Indonesia's type-approval requirements for radio equipment, discussed in Lesson 6.4 alongside FCC Part 15 and the EU Radio Equipment Directive.