Multiple Servo Control with Potentiometers and Arduino

preview_player
Показать описание
In this tutorial, we will learn how to use multi-servo with potentiometer. We will control 4 pcs servo motor with 4 pcs potentiometer. 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 control servo motor with joystick. Do not forget to subscribe. Thank you for your support. I did not share the code because it is short and it varies according to the number of servo,potentiometer. You can write code by watching the tutorial. This is a better way to learn. I will continue to share long and complex codes.

Required Hardware:
Arduino Board
Servo Motor x4 :
10k Potentiometer x4:
Jumper Wires :
Breadboard:

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 potentiometer connections we use in this project are as follows;

Two other pins are power (VCC) and ground (GND)
Middle pin is signal pin

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's one outer pin connect to the breadboard VCC input
The Potentiometer's other outer pin connect to the breadboard GND input
The Potentiometer's middle pin connect to the Arduino Analog 1-2-3-4 input

Social Media:
Рекомендации по теме
Комментарии
Автор

Very clear. Nice background music. The lack of narration frees the viewer up to think things through while watching. I also like that you typed each block of code rather than copy/paste/change variable (<--which is what I usually do.)

nx
Автор

thanks for giving every data like codes and diagrams ( with every information we will learn everything about our children's great future and our india so thanks again)

karanpatel
Автор

My first attempt resulted in servo twitching. Then I realised you had connected the servo positives to the same rail as the pots but didn't connect the Arduino VCC. So I changed the servo positives and the positive from the external battery to a separate positive rail, kept the battery and pots ground in the same ground as the pots and connected the Arduino VCC to the pots positive rail.
This worked a treat. Now everything works smoothly. If anybody is interested in a Fritzing diagram, I'll post one.

malcolmpalmer
Автор

Thx you this helped out a lot I was making a robot arm for a project and i have to present in 2 days but i could not figure out how to do until i saw this thx again

NomadVideos
Автор

THANKS FOR THE VID ! I FOLLOWED YOUR VID STEP BY STEP AND I GOT MY BATTERY PACK TO WORK !

joesmith
Автор

How can you connect 9V battery as a power source for servos, where the operating voltage for micro servos is 4.8v - 5v?

capo-
Автор

REMEMBER to add a Pin to the 5v pin with the VCC to complete the circuit

BakiBicep
Автор

Hello mert remember me?? It's a very very and very gud idea that you are explaining the code in the video. Now to be frank I just love your job keep it up

nihalkeetha
Автор

hi can you make this setup but with a record feature? so basiclly the arduinno can record the movement and play it back? i need the tutorial because im making a robot arm :) would be helpfull if you can help

samuelruben
Автор

Great tutorial. However, I don't get to work with my "MeArm" robotic arm. My lecturer had I quick look at it, tested all the four potentiometers and said that there is no enough current for the motors... Im using the same mini servos(tower 9g), 10k pot, arduino Uno and your code. Hope to hear from you! cheers

underwaterchippie
Автор

I've done the circuit & code correctly but it doesn't work. just one servomotor shakes and the others stay still

bouhnibsoufiane
Автор

I am your big fan dude. You explain things so well. Just an will be good if you give link to download code in the description. You may create a

baaatli
Автор

Excellent. Can you extend it to 16 servos using Arduino servo shield 2+16 with one joystick to record the position of each servo and play automatically thereafter

PatnaikUC
Автор

love you bro
we had done this project

ishmeetsingh
Автор

hello, can we control the speed of the servos if we can how please

JaspreetSingh-xjjy
Автор

Does the Potentiometer must need 10k ?
I use 1k and follow your step to build this example...but it doesn't work.

hkiceman
Автор

I discovered but a little late your video thank you for sharing your knowledge. I am going to redo this assembly. But I would also like to be able to memorize the positions to make a sort of path to redo movements at will. Have you seen any idea of the code to do ? I obviously look but nothing works correctly ? Fiendly. Sy.

sylvainleseur
Автор

?is it better to control servos with potentiometer or joystick thumb
also i couldnt write a code to control servo with joystick the same way you control it with pot
cuz when the joystick back to base the servo too . i hope you get what i mean

tmsker
Автор

Hello, have you a code to move servo with midi note ? Thank you

fromundertootherplanet
Автор

Hello, can i ask in this vedio how can i apply pneumatic or hydronic with out using servo in Arduino instead using servo i use pneumatic?

mardelpiloton