Reading a pin
A button on PB0 with the pull-up on, lighting an active low lamp. Two inversions in one circuit, and how to stop them confusing you.
Open it in the simulatorA Cortex-M4 at 84 MHz, where a pin is a port and a number and every peripheral starts with its clock switched off.
0 of 6 done
6 lessons in 3 chapters, about 6 hours on a simulated STM32F411 Black Pill. Free, in your browser, every step checked by the simulator.
A button on PB0 with the pull-up on, lighting an active low lamp. Two inversions in one circuit, and how to stop them confusing you.
Open it in the simulatorPA0 is TIM5 channel 1, and once it is set up the hardware holds the brightness on its own. Prescaler, reload, and the compare value.
Open it in the simulatorSix lamps and a blank page. Rewrite the sweep around the clock, count what it does, and measure how long your own loop takes.
Open it in the simulatorEach lesson opens when the one before it is done, and each chapter ends in a project.
Active low wiring, a button, and what one line of Arduino is hiding.
The Black Pill wires its LED between the rail and the pin, so the pin has to go low to light it. Active low, and why so much hardware is built that way.
0 of 6 steps
A button on PB0 with the pull-up on, lighting an active low lamp. Two inversions in one circuit, and how to stop them confusing you.
0 of 6 steps
Six pins on one port, and a timer that holds a brightness for you.
A dot along PA1 to PA6, from an array of pin numbers. What a port is, and why six pins on the same one can be written in a single instruction.
0 of 6 steps
PA0 is TIM5 channel 1, and once it is set up the hardware holds the brightness on its own. Prescaler, reload, and the compare value.
0 of 6 steps
USART1 both ways, then a blank page and six lamps.
USART1 on PA9 and PA10, the monitor, and an echo driven from a receive interrupt. What printing costs and why the receive side is different.
0 of 6 steps
Six lamps and a blank page. Rewrite the sweep around the clock, count what it does, and measure how long your own loop takes.
0 of 6 steps
All 6 lessons, in order, each with what it covers. Any of them opens in the editor right away.
Embedded on the STM32F411 is part of the embedded track, a ladder of courses from zero to expert.
The multimeter, the oscilloscope, the logic probe and analyzer, Serial done right, and a method that finds any fault. Ends with a boss: three bugs in one circuit.
Open the next courseArduino, ESP32, Raspberry Pi Pico and STM32: pins, timing, buses, motors, WiFi, registers and debugging, every lesson checked on a simulated board.
See every course on the trackEvery lesson runs in the simulator with nothing to buy. When you want the real thing, these kits have the parts.
Pick the starter kit you own and run every lesson in its manual with the same parts on the same pins.
See every kitYes. All 6 lessons of Embedded on the STM32F411 are free and run in your browser, with nothing to install and no parts to buy before you start.
No. Every lesson runs on a simulated STM32F411 Black Pill with its parts on the canvas, and the simulator checks each step as you go. When you want to build it for real, the same wiring and code work on a real board.
About 6 hours: 6 lessons in 3 chapters, each one a few short steps. Your progress is kept, so you can stop after any lesson and pick up where you left off.
Each chapter ends in a project that puts it together: Reading a pin, PWM from a timer and Project: make the sweep yours.
With "The LED that is on when the pin is low", and each lesson builds on the one before it. New to circuits? Electronics basics is the course that starts from zero.