Whats Inside a Servo and How to Use With Arduino Full Tutorial

Introduction: Whats Inside a Servo and How to Use With Arduino Full Tutorial

About: I am an electronics hobbyist and I love to share my works with others

in this tutorial, let's explore what is a servo

watch this video tutorial

Step 1: What Is a Servo

A servo motor is a rotary actuator or linear actuator that allows for precise control of angular or linear position, velocity and acceleration. It consists of a suitable motor coupled to a sensor for position feedback. It also requires a relatively sophisticated controller, often a dedicated module designed specifically for use with servomotors.

Servomotors are not a specific class of motor, although the term servomotor is often used to refer to a motor suitable for use in a closed-loop control system.

Servomotors are used in applications such as robotics, CNC machinery or automated manufacturing.

Step 2: Lets Open and Inspect What Inside a Servo

We are experimenting with sg90 servo

gear system-used to reduce rpm and increase torque
control circuit-kc8801ic based control circuit variable resistor -used to give feedback

Step 3: How to Control a Servo

Servos are controlled by sending an electrical pulse of variable width or pulse width modulation (PWM), through the control wire. There is a minimum pulse, a maximum pulse, and a repetition rate. A servo motor can usually only turn 90° in either direction for a total of 180° movement. The motor's neutral position is defined as the position where the servo has the same amount of potential rotation in both the clockwise or counter-clockwise direction. The PWM sent to the motor determines the position of the shaft, and based on the duration of the pulse sent via the control wire; the rotor will turn to the desired position. The servo motor expects to see a pulse every 20 milliseconds (ms) and the length of the pulse will determine how far the motor turns. For example, a 1.5ms pulse will make the motor turn to the 90° position. Shorter than 1.5ms moves it in the counter-clockwise direction toward the 0° position, and any longer than 1.5ms will turn the servo in a clockwise direction toward the 180° position

Step 4: Components Needed

  • servo
  • Arduino
  • variable resistor

Step 5: Circuit Diagram

a servo has 3 pins

connections with Arduino

connect VCC to 5v (red)

connect gnd to gnd(brown)

signal wire to D9 (orange)

Step 6: Library and Program

Arduino Contest 2020

Participated in the
Arduino Contest 2020

Be the First to Share


    • Plywood Contest

      Plywood Contest
    • Fandom Contest

      Fandom Contest
    • Cheese Challenge

      Cheese Challenge



    11 months ago on Step 6

    What a nice "unboxing" of servo