Introduction: Controlling 2 Servos With Joystick on Arduio UNO

Picture of Controlling 2 Servos With Joystick on Arduio UNO

Today I will guide you step by step on how to control 2 servos at the same time, which is useful for a robot arm

Step 1: What You Need

Picture of What You Need

1. 1x Arduino UNO

2. 1x Joystick Module

3. 2x Servo Motors

4. 1x Breadboard

5. 12x Jumper Cables

6. USB Power Cord

Step 2: Connecting Servos

Picture of Connecting Servos

Servo 1:

Connect Ground(Brown) To ground on Breadboard

Connect Power(Red) To Power on Breadboard

Connect Imput(orange) To Pin 9

Servo 2:

Connect Ground(Brown) To ground on Breadboard

Connect Power(Red) To Power on Breadboard

Connect Imput(Orange) To Pin 10

Step 3: Connecting Joystick

Picture of Connecting Joystick

1.Connect Ground On Joystick To Ground on Arduino

2.Connect +5V to To Power on Breadboard

3.Connect VRx to A1

4.Connect VRy to A0

Step 4: Connecting Arduino to Breadboard

Picture of Connecting Arduino to Breadboard

1. Connect 5V To Power on Breadboard

2.Connect Ground To Ground on Breadboard

Step 5: Code

Open with Arduino IDE and you are good to go!

Comments

DonW93 (author)2017-07-20

Great Job on this project..

Just a quick note; if any analog connection is open, both servos will respond to the one connected (A0,A1).

jackmachiela (author)2017-01-22

Looks great, now add a laser to it!

https://www.instructables.com/id/Basic-Doomsday-Device/

CarterW16 (author)2017-01-13

I'm impressed, did you really design this yourself?

ChaseTheRedDragon (author)2017-01-13

This guy stole my comment.

ChaseTheRedDragon (author)2017-01-13

Great work kid.

CarterW16 made it! (author)2017-01-13

I made it

Swansong (author)2017-01-12

Looks good, welcome to Instructables!

About This Instructable

821views

39favorites

More by braiden15:Controlling 2 Servos With Joystick on Arduio UNO
Add instructable to: