Arduino - Multiple Servo Control With Arduino

41,929

193

16

Introduction: Arduino - Multiple Servo Control With Arduino

About: Arduino, Raspberry Pi, esp8266, Tutorials, Projects

In this tutorial, we will learn how to use multi-servo with Arduino. We will control 4 servo motors with Arduino PWM outputs.

You can implement your robotic arm projects with reference to this tutorial. Of course we will use external battery / power when doing this. In the next tutorial, I'll show you how to use multiple servos with potentiometers.

Do not forget to subscribe. Thank you for your support.

Step 1: Hardware Required

- Arduino Board

- Servo Motor x4

- Battery

- Wires and Breadboard

Step 2: Connections

- The external battery VCC / GND connect to the breadboard.

- The Arduino GND connect to the breadboard's GND input

- The servo connections we use in this project are as follows;

Orange Input -Signal Input

Red Input -Power Input (VCC)

Brown Input -Ground Input(GND)

- The Servo1 VCC and GND connect to the breadboard's VCC / GND inputs

- The Servo1 Signal connect to the Arduino Digital PWM 3

- The Servo2 VCC and GND connect to the breadboard's VCC / GND inputs

- The Servo2 Signal connect to the Arduino Digital PWM 5

- The Servo3 VCC and GND connect to the breadboard's VCC / GND inputs

- The Servo3 Signal connect to the Arduino Digital PWM 6

- The Servo4 VCC and GND connect to the breadboard's VCC / GND inputs

- The Servo4 Signal connect to the Arduino Digital PWM 9

The potentiometer

Two outer pins are power (VCC) and ground (GND)

Middle pin is signal pin

- Potentiometer's one outer pin connect to the breadboard VCC input

- Potentiometer's other outer pin connect to the breadboard GND input

- Potentiometer's middle pin connect to the Arduino Analog 1 input

Step 3: Code

I did not share the code because it is short and it varies according to the number of servos.

You can write code by watching the tutorial. This is a better way to learn.

I will continue to share long and complex codes.

Be the First to Share

    Recommendations

    • Mason Jar Speed Challenge

      Mason Jar Speed Challenge
    • Bikes Challenge

      Bikes Challenge
    • Remix Contest

      Remix Contest

    16 Discussions

    0
    jdogstoga12
    jdogstoga12

    Question 6 months ago

    I has query:
    How can use 4x Servo wit 9v? My 1x servo cannot operate with 9v. Am I do wrong?

    0
    binods7
    binods7

    Question 1 year ago

    Can i control 12 SG90 servo with arduino uno

    0
    monusuthar2016
    monusuthar2016

    2 years ago

    Hey Its My Youtube Video Tutorial

    https://youtu.be/a_jgmrk4a-Y

    0
    PhilippeG1
    PhilippeG1

    Reply 1 year ago

    votre lien youtube porte sur la mesure de distance avec des ultra sons et des centaines de milliers de personnes connectent des servos à des cartes arduino, votre idée n'est donc pas originale, brevetable vous n'êtes pas le seul au monde à en avoir eu l'idée, on vient ici pour partager du savoir pas pour en revendiquer lapaternité

    0
    congelata
    congelata

    2 years ago

    Hi, this is awesome!

    Just a question:

    How can I have different degrees and delay for each servo?

    I'm new in this "arcuino's world"... please forgive my stupid question :)

    0
    AthiamaanR
    AthiamaanR

    Reply 2 years ago

    yes u can......only if u r about to add gyro to ur model

    0
    kenwood120s
    kenwood120s

    2 years ago

    The way you word it, it implies servos have to be onPWM pins. They don't: any pin, even the analog inputs a0-a5 will drive servos with the servo library.

    0
    kenwood120s
    kenwood120s

    2 years ago

    I'll bet those are 4.8-6V servos: why are you powering them from a 9V battery?

    0
    techietech
    techietech

    3 years ago

    kool video, I love it!!

    0
    JoeMannix
    JoeMannix

    3 years ago

    I always wondered how to do this.

    1
    Techno craft
    Techno craft

    3 years ago

    Plz give the codes
    And the tutorial of writing any code
    Sparta53535@gmail.com

    0
    jradzevi
    jradzevi

    3 years ago

    Thats a 9V battery, correct?

    0
    alsalmi616
    alsalmi616

    3 years ago

    Thank you very nice job

    0
    CarlosF78
    CarlosF78

    3 years ago

    Thanks a lot!