PWM Motor Control Simulator
Change the duty cycle and watch torque, speed and current respond.
Free · runs in your browser · no signup, no install
PWM SIGNAL
ON: 10.0ms OFF: 10.0ms (20ms period, 50Hz)
DC MOTOR
PWM (Pulse Width Modulation) controls motor speed by switching power on and off thousands of times per second. A 50% duty cycle delivers 50% average voltage = half speed. This is how every Arduino, Raspberry Pi, and microcontroller controls motors.
What you can do here
- Sweep the duty cycle from 0 to 100% and watch the speed curve follow
- See why a motor stalls under load even at high duty cycle
- Build intuition for what your Arduino analogWrite() is actually doing
Go deeper
S-04: How Robots Move →Related concepts
More simulators
PID Tuner
Drag P, I and D and watch the system settle, overshoot or oscillate in real time.
A* Pathfinder
Draw walls, drop a start and goal, and watch A* search the grid step by step.
SLAM Simulator
Drive a robot through an unknown world and watch it build a map while locating itself.
IK Solver
Drag the gripper anywhere and watch the joint angles solve themselves.
Sensor Fusion
Two noisy sensors, one clean estimate. Watch a filter combine them live.
Code Playground
Write real Python in the browser and drive a simulated robot with it.