What is Servo Motor?
A servomotor is a rotary actuator or linear actuator that allows for precise control of angular or linear position, velocity, and acceleration
Hardware Components
You will require the following hardware for Controlling Arduino Servo Motor by a Potentiometer.
S.no | Component | Value | Qty |
---|---|---|---|
1. | Arduino | UNO | 1 |
2. | Servo Motor | – | 1 |
3. | Potentiometer | – | 1 |
4. | USB 2.0 cable type A/B | – | 1 |
5. | Breadboard | – | 1 |
6. | Jumper Wires | – |
– |
Steps Controlling Arduino Servo Motor by Potentiometer
- First Connect Potentiometer to the breadboard.
- One end of the pot is connected to 5v of Arduino and the other to the ground while the middle pin connects to Arduino A0.
- Then connect Servo OUT pin to D9 of Arduino and 5V to 5V ..Ground to GND
- Upload the code
- Power Up the circuit and move a potentiometer you will see a rotating servo precisely.
Schematic
Make connections according to the circuit diagram given below.
Wiring / Connections
Arduino | Servo Motor | Potentiometer |
---|---|---|
5V | VCC | VCC |
GND | GND | GND |
A0 | Terminal 2 | |
D9 |
PWM |