Ground Embedded KO Subscribe
Ground Embedded · 26.4K YouTube subscribers

Top 1% know-how from a working engineer

From C to motor control. A step-by-step guide to becoming an embedded developer.

Labs

Simulations where you change a value, run it and see the principle.

All 11 labs →
GROUND EMBEDDED · 3D LABADC voltageinto numbersMCUTempI2CIMUSPIHallGPIORangeUARTCurrentADC
3D

ADC Sampling and Resolution Simulation

Watch a smooth analog voltage turn into a staircase of numbers as it passes through an ADC. See how coarse the steps get with fewer bits, and why slow sampling makes a signal look like a different frequency.

GROUND EMBEDDED · 3D LABInterrupts drop it,handle it, return 1volatile uint32_t *ODR 2 = (uint32_t*)0x40020014; 3*ODR |= (1u << 5); 4while (1) { 5 if (flag) toggle(); 6}
3D

Interrupts and Priority Simulation

Watch where the CPU jumps when an interrupt arrives in the middle of the main loop, and when it comes back. Try priority and preemption, long handlers, critical sections, and the endless re-entry you get when a flag is never cleared.

GROUND EMBEDDED · 3D LABSPI exchange onevery clockANDABY
3D

SPI

One bit per clock, with master and slave exchanging data at the same instant. Chip select, the four modes, and how a mode mismatch shifts the value you read.

GROUND EMBEDDED · 3D LABI2C many chipson two wiresUARTSPII2CCAN
3D

I2C Bus

Put two sensors on one pair of wires and call them by address. Start condition, 7-bit address, ACK and NACK, and what happens without pull-up resistors, step by step.

GROUND EMBEDDED · 3D LABFOC d and qcurrent vectorsdqisiqid
3D

PMSM and Field-Oriented Control

See the current vector made by three phase currents and the rotor's d and q axes in 3D, and how iq, id and encoder angle error affect torque.

GROUND EMBEDDED · 3D LABBLDC six-stepcommutationNSABC
3D

BLDC Six-Step Commutation

Watch six switch combinations, chosen by the Hall sensors, pull the rotor around one step at a time.