New ESP32-S3 development board is now available → /products
</>OceanLabz
ArduinoBeginner~30 min

Arduino Servo Sweep + Knob Control

Your first motor control: sweep a servo, then drive it with a potentiometer.

Everything you need

Required Components

ComponentQtyPrice
Arduino Nano V3.0 (CH340, soldered)×1249
SG90 Micro Servo 9g×189
Jumper Wires 40pcs Male-to-Male (20cm)×159

Total: 397

#Introduction

Learn servo control on the Nano: first a sweep, then position control with a pot on A0.

#Wiring

  • Servo signal → D9, power → 5V, ground → GND
  • Pot ends → 5V/GND, wiper → A0

#Steps

  1. Use the built-in Servo library.
  2. Upload the knob sketch and turn the pot.