ProjekinAja. Embedded Systems Mastery 0 / 54 done
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
0 of 54 lessons complete
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.

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.

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.

✓
LESSON 5.1
From Schematic to Board: The PCB Design Flow and KiCad
The cost of a mistake multiplies by ten at every step from schematic to fabrication. Find it early or pay for it late.
✓
LESSON 5.2
Schematic Capture Done Right
A schematic is read a hundred times more than it is drawn. Draw it for the reader who is debugging at midnight.
✓
LESSON 5.3
Symbols, Footprints, and the Lie in Every Library
A library footprint is someone else's reading of a datasheet. Check it as if they were tired when they made it.
✓
LESSON 5.4
Layer Stackups, Vias, and Impedance
Two layers are a budget. Four layers are a ground plane — and a ground plane is the single largest improvement a board can get.
✓
LESSON 5.5
Placement: The Decision That Determines Everything
Route a good placement and the traces draw themselves. Route a bad one and no amount of skill saves it.
✓
LESSON 5.6
Routing: Traces, Current, and Return Paths
Copper is a resistor and a loop antenna. Route as if both were true, because both are.
✓
LESSON 5.7
RF and Antenna Layout for the ESP32 Module
The module's certification assumes a layout. Break the assumption and you get neither the range nor the certificate.
✓
LESSON 5.8
DRC, DFM, and Getting a Board Manufactured
DRC tells you the board matches your rules. DFM tells you whether anyone can build it. They are not the same rules.
✓
LESSON 5.9
Beacon Rev A: Design Review Before Fab
A review is not a meeting where the designer defends the board. It is a meeting where the board defends itself.
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.

🎓

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

Signals, Noise, and Integrity

Firmware and Real-Time Systems

Power and Wireless

PCB Design and Manufacturing

Bring-Up, Test, Reliability, and Compliance