ENع
Embedded · From blinking an LED to a sensor node that reports over Wi-Fi

Embedded systems and IoT

A hands-on microcontroller course at Arduino, ESP32 and STM32 level: pins and pull-ups, interrupts, timers and PWM, ADCs and sensors, UART, I2C and SPI drivers, registers and the memory map, FreeRTOS tasks, low power, watchdogs, and connecting to the internet with Wi-Fi and MQTT. It ends with a battery sensor node you could build. Every lesson is a board you can step through, then a short quiz. Assembly language is out of scope: we stay in C and C++.

9 modules53 lessons5 special topics58 available now
0 of 58 available lessons completed
Part of: More paths coming soon
Module 01 Beginner

Getting started with a microcontroller

Choosing a board and getting your code onto it. The Hardware lesson on microcontrollers explains what is inside the chip, so this module stays on boards, toolchains and your first firmware; the C++ basics lessons cover the language used here.

Module 02 Beginner

Digital pins: inputs and outputs

Driving LEDs and reading buttons safely. Uses voltage dividers from the Circuits course and the Hardware lesson on transistors.

Module 03 Intermediate

Interrupts, timers and PWM

Reacting fast, keeping time without blocking, and structuring firmware as a state machine. The Hardware lesson on interrupts and I/O explains why polling wastes time and the Hardware lesson on state machines covers Moore and Mealy machines; the Circuits lesson on RC circuits explains PWM smoothing. Here you write the firmware.

Module 04 Intermediate

Analog: ADC, DAC and sensors

Turning the physical world into numbers and back. The Signals lessons on quantization, ADCs and DAC reconstruction explain the converters inside, and the Signals lessons on moving averages and IIR filters explain the smoothing used here; the Circuits op-amp lesson covers signal conditioning.

Module 05 Intermediate

UART, I2C and SPI in firmware

Talking to other chips from your code. The Hardware lesson on serial buses explains the wires and the Hardware lesson on test and debug shows what a logic analyser is; here you write the drivers and use the analyser to find bugs in them. The UART ring buffer is the one from the DSA lesson on queues and ring buffers.

Module 06 Intermediate

Registers and the memory map

What digitalWrite() really does, ending with setting up DMA by hand. Builds on the C++ lessons on pointers, the Hardware lessons on registers and ROM and flash, and the OS lesson on polling, interrupts and DMA.

Module 07 Advanced

Bare metal versus an RTOS

Running many jobs at once with FreeRTOS. The general theory lives in the OS course: semaphores, locks, the producer-consumer problem, deadlock, scheduling and real-time scheduling with deadlines and worst-case execution time. The C++ lesson on threads and atomics covers the language side. Here you use the FreeRTOS API: ticks, xQueueSend and semaphores given from an ISR.

Module 08 Advanced

Low power and reliability

Running for months on a battery and recovering from faults. Builds on the Hardware lessons on power supplies and batteries.

Module 09 Advanced

Connectivity and the capstone node

Putting your device on the network. The Networking lessons on Wi-Fi, Bluetooth, Zigbee and IoT with MQTT explain the protocols; here you use them from an ESP32.

Go deeper

Special topics

Stand-alone deep dives. Take them any time after the module they build on. GDB debugging assumes the Hardware lesson on test and debug (what SWD and JTAG are); motor control links the Control lesson on DC motor speed for closed-loop speed; testing on your laptop uses the Software lesson on unit testing and the Python lesson on pytest.