// FREE MINI-COURSE · M

Motors & Drivers

Make Things Move — DC motors, drivers, servos and steppers: wire them right and control them from code.

4 of 5 lessons out · next: Stepper motor: move in exact steps

▶ Start lesson 1
  1. 01 Why your motor needs a driverWhy a pin can't power a motor, and how an L298N driver sets direction (IN1/IN2) and speed (PWM on ENA). EP.21 · 20 s
  2. 02 How a DC motor worksHow a brushed DC motor spins: magnets + coil, current in a field gets pushed (F = B × I × L), the commutator flips the current every half turn, more volts = faster, swap + / − = reverse. EP.29 · 20 s
  3. 03 Servo motor: stop at an exact angleInside a servo (motor + gears + pot feedback), pulse width = angle, 3-wire hookup and servo.write() to 0°, 90°, 180°. EP.33 · 20 s
  4. 04 Two motors: a robot carOne L298N, two channels (A = left, B = right); same direction = straight, opposite = spin; every move = IN1–IN4 HIGH/LOW. EP.70 · 24 s