All projects

Actuators

The moving arm (servo motor)

Intermediate30 min

Drive an SG90 servo by angle, understand the signal that controls it and its current budget.

What you get

An arm sweeping precise angles, driven by a potentiometer, without resetting the board.

Parts (simulated)

  • Arduino UNO board
  • SG90 servo motor
  • 10 kΩ potentiometer
  • External supply

Nothing to buy: every component here is simulated in the browser.

Project steps

  1. 01Connect the servo to a PWM pin and power it properly.
  2. 02Send an angle command and watch the movement.
  3. 03Read a potentiometer and map its value to an angle.
  4. 04Handle the inrush current when the motor starts.

What you learn

  • Servo control signal
  • map() and value ranges
  • Inrush current and decoupling

Other projects