โ† Arduino learning path
Arduino ยท Module 5 of 10

PWM and actuators

Control brightness, motors and servos.

๐Ÿ“– Key ideas

  1. analogWrite(pin, 0โ€“255) outputs PWM on ~ pins (3, 5, 6, 9, 10, 11).
  2. PWM dims LEDs and controls motor speed.
  3. Servo library: myServo.write(90) sets angle.
  4. DC motors need a motor driver (L298N/L293D).
  5. Buzzers play tones with tone(pin, frequency).
๐Ÿ’ก Real-life example: PWM is blinking a light so fast your eyes see it as dimmer or brighter.
PWMPulse Width Modulation
analogWriteOutputs PWM value 0โ€“255
ServoMotor with angle control
Motor driverSupplies current to motors