Inside the driver: the H bridge
Four switches around a motor make it go both ways. An L293D on a breadboard: the truth table, braking against coasting, back EMF, and why half the PWM is not half the speed.
Open it in the simulatorDC motors on a driver, the H bridge inside it, servos, a stepper on an A4988, an encoder that measures what the motor did, and a 2WD robot car with ultrasonic eyes and line sensors.
0 of 7 done
7 lessons in 4 chapters, about 4 hours on a simulated Arduino Uno R3. Free, in your browser, every step checked by the simulator.
Four switches around a motor make it go both ways. An L293D on a breadboard: the truth table, braking against coasting, back EMF, and why half the PWM is not half the speed.
Open it in the simulatorA NEMA 17 moves in exact steps with no sensor at all. Two wires from the Uno, microstepping from three pins, the current limit you set with a screwdriver, and how a stepper misses steps.
Open it in the simulatorThe finished robot: a 2WD car on a MOSFET DRV8833 with an ultrasonic eye and two TCRT5000 line sensors, run by a four-state machine that hunts, charges and never drives off the edge.
Open it in the simulatorEach lesson opens when the one before it is done, and each chapter ends in a project.
Speed with PWM, direction with an H bridge, and where the volts go.
Two gear motors on an L298N: why a pin cannot run a motor, two inputs for direction, PWM on the enable for speed, and the volts a bipolar driver keeps for itself.
0 of 5 steps
Four switches around a motor make it go both ways. An L293D on a breadboard: the truth table, braking against coasting, back EMF, and why half the PWM is not half the speed.
0 of 5 steps
Motors that go to an angle, and motors that count their steps.
A hobby servo is a motor, a gearbox, a potentiometer and a control loop in one box. Drive it with a pulse width, follow a slider, and learn why it needs its own power.
0 of 5 steps
A NEMA 17 moves in exact steps with no sensor at all. Two wires from the Uno, microstepping from three pins, the current limit you set with a screwdriver, and how a stepper misses steps.
0 of 5 steps
An encoder measures what the motor really did, and the code corrects.
A gear motor with a Hall encoder on an L9110S pumps an exact dose: count pulses on an interrupt, work out speed from them, and slow down before the mark so it stops on it.
0 of 5 steps
A 2WD robot car that avoids walls, hunts with its eye and never crosses the line.
A 2WD chassis on an L298N with an HC-SR04 on the front: time an ultrasonic echo, turn it into millimeters, and write the look-then-decide loop every robot starts from.
0 of 5 steps
The finished robot: a 2WD car on a MOSFET DRV8833 with an ultrasonic eye and two TCRT5000 line sensors, run by a four-state machine that hunts, charges and never drives off the edge.
0 of 6 steps
All 7 lessons, in order, each with what it covers. Any of them opens in the editor right away.
Motors and motion is part of the embedded track, a ladder of courses from zero to expert.
A 32 bit RISC-V board at 160 MHz. Its own peripherals, its own 3.3 V rules, and a console at the end of it.
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.
An Uno, a 2WD chassis, two motor drivers, an ultrasonic eye and two line sensors.
Open the kitPick the starter kit you own and run every lesson in its manual with the same parts on the same pins.
See every kitYes. All 7 lessons of Motors and motion 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 Arduino Uno R3 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 4 hours: 7 lessons in 4 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: Inside the driver: the H bridge, A stepper on an A4988: STEP and DIR and Boss: a robot car with eyes and line sensors.
With "A DC motor on a driver: speed and direction", and each lesson builds on the one before it. New to circuits? Electronics basics is the course that starts from zero.