Ground Embedded KO Subscribe

3D Labs

11 simulations you can run in the browser. Drag to orbit, move the sliders, and watch the hardware respond.

GROUND EMBEDDED · 3D LABCircuitson a breadboardτ = RC63%RC
3DCircuits

Basic Circuit Bench

On a breadboard, explore Ohm's law with an LED and resistor, a voltage divider with two resistors, and RC charging with a resistor and capacitor.

GROUND EMBEDDED · 3D LABPWM duty toaverage voltageAvg 30%D1 period
3DFirmware & buses

PWM Duty Cycle

Change duty cycle and frequency and watch the waveform, average voltage and STM32 timer settings (PSC, ARR, CCR) together.

GROUND EMBEDDED · 3D LABUART bitson the wireIDLESTART1b01b11b20b30b40b51b60b7STOPIDLE
3DFirmware & buses

UART Waveform

Type a character and see exactly what goes onto the TX line, from the start bit to the stop bit.

GROUND EMBEDDED · 3D LABI2C many chipson two wiresUARTSPII2CCAN
3DFirmware & buses

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 LABSPI exchange onevery clockANDABY
3DFirmware & buses

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 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}
3DFirmware & buses

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 LABADC voltageinto numbersMCUTempI2CIMUSPIHallGPIORangeUARTCurrentADC
3DFirmware & buses

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 LABPID arm to atarget angleTargetKpKiKd
3DControl

PID Control

Move Kp, Ki and Kd and see how overshoot, settling time and steady-state error of the step response change.

GROUND EMBEDDED · 3D LABBLDC six-stepcommutationNSABC
3DMotors

BLDC Six-Step Commutation

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

GROUND EMBEDDED · 3D LABH-bridgedirection and speed+VGNDQ1Q2Q3Q4MForward · Q1 + Q4
3DMotors

DC Motor and H-Bridge

Combine four MOSFETs into forward, reverse, brake and coast, and watch the current path, motor speed and back-EMF together.

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

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.