Phase 2 of 6
Blinking Leds on Microcontrollers
Usually 2–4 months
Programming a dev board (e.g. STM32, AVR, or RP2040) directly with registers and vendor HALs: GPIO, timers, interrupts, UART, I2C, and SPI to talk to real sensors. They produce small working firmware programs and learn to debug with a multimeter, logic analyzer, and debugger.
What you do
Now you move from abstract C to code that touches pins. You pick a dev board such as an STM32 Nucleo-64 or Raspberry Pi Pico, install the vendor toolchain or a general IDE, and get a bare-metal “blinky” running without using Arduino-style wrappers. You learn to read the reference manual just enough to configure clocks and GPIO.
You then extend blinky into small experiments: button-controlled LEDs, timer-based blinking, and interrupts that toggle pins or count events. You configure UART for printf-style debugging, and use I2C or SPI to talk to at least one external sensor. Along the way you practice using your multimeter to confirm voltages and a simple logic analyzer or debugger to inspect signals and registers.
- Bring up a toolchain for your board and build a minimal project that directly writes to GPIO registers to toggle an LED.
- Implement timer-driven blinking with different periods, and an interrupt service routine that reacts to a button press without busy loops.
- Set up UART so you can print debug strings from your firmware, then log sensor readings as text on your PC.
- Use I2C or SPI to read from a real sensor on a breakout board, verifying signals with a logic analyzer when things misbehave.
You're done when
A repo of bare-metal firmware examples with a video of a board reading a sensor over I2C or SPI.
Resources
Before and after
Track this phase, post your proof, and meet people in the same phase.
Join this road, free →