Set up your courses
Pick the courses you're taking and this page shows only those. About 30 seconds.
Learn electronics by doing it.
Short lessons, real circuits, instant feedback. You'll burn out an LED in the first minute, on purpose.
Start the first lessonNo sign-up. Your progress saves on this device, and you can keep it later with an email.
Know some firmware already?
Answer about 10 questions and skip the units you know. New to it? Start with the first lesson below.
Bits that move pins
Set, clear, toggle and test single bits and 2-bit fields in GPIO registers without disturbing the other pins.
Formulas: Bits that move pinsC for embedded
Predict what fixed-width arithmetic leaves behind, say where every variable lives and who sets it up before main(), and reach registers through pointers that the compiler can't optimize away.
GPIO in practice
Choose push-pull or open-drain, wire and code LEDs and buttons either way round, count presses on bouncing contacts, and bring a port up in the order the hardware needs.
Timers and PWM
Set PSC, ARR and CCR from a clock frequency, replace delay loops with a timer, dim an LED so it looks right, measure a period with input capture, and write timeouts that survive the counter wrapping.
Interrupts
Work out when an interrupt beats polling, bring one up and clear its flag, share data with it safely, keep ISRs short, and set NVIC priorities that lose no bytes.
UART
Decode 8N1 frames on a logic capture, budget baud error, size an ISR-fed ring buffer, log without stalling a control loop, and parse lines and checksummed frames that survive real senders.
SPI and I²C
Clock bytes in and out over SPI, match its mode to a datasheet, decode and sequence I²C register reads, size the pull-ups, and get a stuck bus moving again.
Memory and DMA
Size a stack and catch it overflowing, keep the heap from fragmenting, move ADC samples with DMA instead of an interrupt each, double-buffer a circular transfer, and keep DMA buffers coherent on a cached Cortex-M7.
Program structure and state machines
Find what a blocking delay starves, rewrite delays as elapsed-time checks, replace flag soup with an enum state machine, decide every cell of a transition table, and test the logic on a laptop behind a HAL.
RTOS: tasks and scheduling
Split a superloop into FreeRTOS tasks that block instead of spinning, predict which task runs and when it preempts, keep periodic tasks from drifting, pass data through queues and from ISRs, and assign priorities that meet every deadline.
RTOS: sharing safely
Find a lost update at instruction level, guard shared data with short critical sections, choose a mutex or a semaphore, diagnose priority inversion and deadlock on a timeline, and size task stacks in words from their high-water marks.
Reliability, low power, debugging
Feed a watchdog only when every task has checked in, record why each reset happened, read a HardFault from its stacked frame, get an MCU down to its datasheet sleep current, budget a coin cell, and debug without changing the bug.