Multiple Servo Control with Potentiometers and Arduino

  Рет қаралды 105,520

Maker 101

Maker 101

Күн бұрын

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
goo.gl/UyGYeF
amzn.to/2LZr6t4
Servo Motor x4 :
goo.gl/iOkPgu
amzn.to/3avwe1N
10k Potentiometer x4:
goo.gl/c90Uix
amzn.to/3dlgYq1
Jumper Wires :
goo.gl/VRzUN4
amzn.to/3doetmT
Breadboard:
goo.gl/yCa8hX
amzn.to/3qxLxwm
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
Source:
Web Site: www.mertarduino.com
Social Media:
/ mertarduino
/ mertarduino

Пікірлер: 164
@crisp4085
@crisp4085 5 жыл бұрын
where is the code?!
@Lut-yg6hz
@Lut-yg6hz 3 жыл бұрын
No
@samuelruben8726
@samuelruben8726 7 жыл бұрын
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
@crisp4085
@crisp4085 5 жыл бұрын
It sucks there are no videos out there on how to make a robot arm that mimics your arm movemnts Reeee
@capo-
@capo- 7 жыл бұрын
How can you connect 9V battery as a power source for servos, where the operating voltage for micro servos is 4.8v - 5v?
@Ripsticker45
@Ripsticker45 7 жыл бұрын
I have the same concern I am afraid I am going to damage the servo by doing this.
@hasankeskin977
@hasankeskin977 4 жыл бұрын
Hello Can i work 9v battary like this ? Does it safe for sg90 servo motors ?
@victorvanmassenhove4825
@victorvanmassenhove4825 4 жыл бұрын
just use your arduino 5v output
@legoyoda8037
@legoyoda8037 3 жыл бұрын
@@victorvanmassenhove4825 the pro league With that is that they all get controlled by the same potentiometer
@FRESNEL_COOKING_SOLAR_OVENS24
@FRESNEL_COOKING_SOLAR_OVENS24 3 жыл бұрын
Dc to dc step down converter 9v step down to 4.5v - 5v
@nx99
@nx99 7 жыл бұрын
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 (
@MaxMet2024
@MaxMet2024 5 жыл бұрын
REMEMBER to add a Pin to the 5v pin with the VCC to complete the circuit
@johnjamesorane1075
@johnjamesorane1075 3 жыл бұрын
Ty man
@karanpatel4378
@karanpatel4378 15 күн бұрын
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)
@PatnaikUC
@PatnaikUC 3 жыл бұрын
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
@narullah69
@narullah69 Жыл бұрын
i connected three servos but one of them not working and other two showing variation in potentiometer values. Can u pls guide me
@bouhnibsoufiane6425
@bouhnibsoufiane6425 Жыл бұрын
I've done the circuit & code correctly but it doesn't work. just one servomotor shakes and the others stay still
@umut_turhan
@umut_turhan 7 жыл бұрын
çok güzel videolar çekiyorsunuz hep sizi takip ediyorum ama türkçe çeviri de koysanız videolarınıza çok daha güzel olacak
@rin-101
@rin-101 4 жыл бұрын
good choice on background music :)
@kaanylmaz1008
@kaanylmaz1008 7 жыл бұрын
yardım! bir diğer videonada yazmıştım..... aynı şeyi yapmama rağmen çalışmıyor 3 tane servo kullanıyorum hepsi bağlıyken hiç hareketo olmuyor motorlardan ufak bir ses geliyor *diiiiiiii...* 3 taneden 2 sine enerjiyi kesincede ayakta kalan sağ sola sağ sola dönüyor MG996R kullanıyrum
@joybarualablu3040
@joybarualablu3040 4 жыл бұрын
hello,,u can give me this code ,,,??please..i am your subscriber,,cz i can write this code
@onlinemoneyearningreferral4676
@onlinemoneyearningreferral4676 2 жыл бұрын
Esp32 board how to control 2 servo and 2 potanmeter please code send me
@puneridholtasha
@puneridholtasha 2 жыл бұрын
Hi, very nice video, can you please make same video with 4 nema 17 stepper motor with speed and direction contol
@kaverisarkar3696
@kaverisarkar3696 Жыл бұрын
After uploading the coding the servo motor is not
@fromundertootherplanet1008
@fromundertootherplanet1008 6 жыл бұрын
Hello, have you a code to move servo with midi note ? Thank you
@storywaadi6612
@storywaadi6612 7 ай бұрын
please code driver arduino ide and diagram
@hkiceman001
@hkiceman001 7 жыл бұрын
Does the Potentiometer must need 10k ? I use 1k and follow your step to build this example...but it doesn't work.
@underwaterchippie
@underwaterchippie 7 жыл бұрын
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
@kenichi5717
@kenichi5717 10 ай бұрын
(soryy im 6 years late) anyways if your still having trouble.. u can try to use an external battery supply, maybe dont use ur arduino's 5v u could instead connect a 9v battery to the railings in the breaboard that will supply servo and potentiometer. for arduino u can use the same as before. hope this helps!!
@KayladelaLlana
@KayladelaLlana 26 күн бұрын
@@kenichi5717 wow sige chat salamat
@milindkumar2445
@milindkumar2445 6 жыл бұрын
Sir I have problem in coading Can you give me coad in suggestion box
@SandipGajareShorts
@SandipGajareShorts Жыл бұрын
I don't know why this not working on my
@muhamadsyafiq4998
@muhamadsyafiq4998 4 жыл бұрын
can't use charger phone 5v 2A for multiple servo? and to turn on arduino with a 5v 2A phone charger GND and VCC charger phones are connected to the Vin and GND pins on Arduino Uno. Does it work?
@JaspreetSingh-xj1jy
@JaspreetSingh-xj1jy 7 жыл бұрын
hello, can we control the speed of the servos if we can how please
@Zimoelia
@Zimoelia 4 жыл бұрын
Hi, somebody can tell me why Giving 9V to arduino, thru the GND it doesn't blow up?
@qnaman
@qnaman 5 жыл бұрын
Amazing.Simple base for robotic arm.
@erikschmidt2571
@erikschmidt2571 2 жыл бұрын
When I tried it, it basically worked (the servos were clearly responding to the potentiometers, but they still all kinda twiched around and sometimes quite heavily. Does anybody know how make it work properly??
@frasesmotivadorastiktok3018
@frasesmotivadorastiktok3018 2 жыл бұрын
HEY, excuse me whats the code for this project? good afternoon. regards
@y.1brahim726
@y.1brahim726 3 жыл бұрын
hocam koduda verseydiniz güzel olurdu
@mardelpiloton409
@mardelpiloton409 2 жыл бұрын
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?
@Plank8642
@Plank8642 4 жыл бұрын
Hello, My servo motors twitch multiple times per second when I use this exact same code. I notice yours do not. Why could this be? Thank you!
@donatoleon3506
@donatoleon3506 4 жыл бұрын
Jake Plank I have the same problem dude idk what it is. It’s most likely the power sources current output
@tamPrime
@tamPrime 4 жыл бұрын
maybe your potentiometer really loose attachment with board
@yashwanthkumarmurugesan935
@yashwanthkumarmurugesan935 4 жыл бұрын
Alter the delay value to less than 10 and upload
@aiversity5975
@aiversity5975 4 жыл бұрын
Add a 4700 uf 16v capacitor between the positive and negative railing But also use a resistor as the capacitor voltage is high
@connorspaulding5714
@connorspaulding5714 4 жыл бұрын
code wont compile and your link to code does not work cant make the code work all of your videos have the same issue
@minecraftvideos3435
@minecraftvideos3435 4 жыл бұрын
I tryed the code and it is not working
@minecraftvideos3435
@minecraftvideos3435 4 жыл бұрын
Same
@ExopMan
@ExopMan 2 жыл бұрын
Does this work without being connected to a laptop?
@azimalif266
@azimalif266 2 жыл бұрын
6:40 The servo value numbers didn't turn green. need help.
@estebansanchez676
@estebansanchez676 5 жыл бұрын
trying to get two mg996r 4.8v - 6v 180degree servos to be controlled by pots both B10k, however for the life of me i cant make them budge with the pot. i have a separate supply source( Supplies 5v) , ive more than once gone through Merts' videos to see if there was any error in the coding and wiring. the code and wiring set up works for SG servos but just not my mg996r. suggestions? not enough power from supply? maybe defective product? Mg996r servos are from Tiankongrc
@estebansanchez676
@estebansanchez676 5 жыл бұрын
BTW wiring does include GRD connection between power supply and arduino uno. And just tried it using only the arduino power source 5v for both mg996r and pots and actually works but still has a few kinks (twitching) by viewing merts' videos i came to understand that you diminish the kinks by adding a separate power supply, but when i do that the servos stop reading the pot
@Mahi-cm5sh
@Mahi-cm5sh 7 жыл бұрын
hey can you plz give me the code link??
@RCTechBattles
@RCTechBattles 7 жыл бұрын
very nice vid!!
@profeduardo25
@profeduardo25 5 жыл бұрын
Excellent...!!
@robomaster53
@robomaster53 3 жыл бұрын
Where is the link to the Code? Used the one above but it is not their.
@gkw1232
@gkw1232 2 жыл бұрын
Why moter get vibration While running
@XO65034
@XO65034 6 жыл бұрын
Bro kodları verebilirmisin proje için lazım.
@tmsk8er364
@tmsk8er364 7 жыл бұрын
?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
@malcolmpalmer2437
@malcolmpalmer2437 7 жыл бұрын
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.
@arjaystephenebonostro9691
@arjaystephenebonostro9691 7 жыл бұрын
Malcolm Palmer hello sir. can i have your code. i have zero knowledge of program codes. tnx
@malcolmpalmer2437
@malcolmpalmer2437 7 жыл бұрын
There are plenty of Arduino Tutorials on the web including those in Arduino's actual website. In this particular case you will see the Coding in the video at position 5:37. Also you will find how to code potentiometers in the File, Examples in the Arduino menu. You will learn a lot quicker by buying a good Arduino book instead of copying codes. And Experiement ........
@mohamedessamhadid231
@mohamedessamhadid231 7 жыл бұрын
Malcolm Palmer I am interested
@pranavpatel9525
@pranavpatel9525 7 жыл бұрын
Hi I m having the same problem. My servos are twitching and the light on the arduino is blinking. Please tell me what I should do.
@meep4987
@meep4987 5 жыл бұрын
Hello. can you give the fritzing diagram?? thank you
@tyleresquivel6339
@tyleresquivel6339 6 жыл бұрын
I have a troubleshooting error, need help.
@krishnachaitanya6800
@krishnachaitanya6800 7 жыл бұрын
hello can you add play back infinite loop after teaching it(robot) the movements plzzzzzzz
@codingtimes3199
@codingtimes3199 7 жыл бұрын
no sorry i want to do this project but i don't know how to begin
@Hopplee0
@Hopplee0 4 жыл бұрын
So even though I followed your code step by step my potentiometer still controlled only one servo and even then the servo spazes out .. help?
@sundramkumarjha6319
@sundramkumarjha6319 4 жыл бұрын
Sir can you share code for 4 survo motors in an another video step by step
@nihalkeetha
@nihalkeetha 7 жыл бұрын
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
@sylvainleseur1072
@sylvainleseur1072 3 жыл бұрын
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.
@jukkakumpulainen3293
@jukkakumpulainen3293 5 жыл бұрын
Does the potentiometer have to be 10k? Does the 5k potentiometer go?
@MossyThomson
@MossyThomson 7 жыл бұрын
the code mite help pls The .ino if pos?
@benjin5268
@benjin5268 7 жыл бұрын
awesome work bro...can u plz make tutorial of using this potentiometer servo memory technique,like record and play function...can u plz help me with tat,THANKS
@mortenloftesnes540
@mortenloftesnes540 7 жыл бұрын
Hi I tested this set up i while ago, and it worked perfectly. I was working on something else and now im back into my project that i need this agin. Btw, great video :) Before there was no servo jitter, now it is alot. I tried to connect only one. A1 and 3. I tried to connect the same on A2 and 5, but nothing happens. Could this mean that its a bad arduino? I think its the same i used earlier. Even tried with a Nano, same result.
@mortenloftesnes540
@mortenloftesnes540 7 жыл бұрын
No problem. Yes i have, im useing 6V 2A Power supply.
@milindkumar2445
@milindkumar2445 6 жыл бұрын
Sir can you me coad i have much problem in coading
@aiversity5975
@aiversity5975 4 жыл бұрын
Add a 4700 uf 16v capacitor between the positive and negative railing But also use a resistor as the capacitor voltage is high
@erikschmidt2571
@erikschmidt2571 2 жыл бұрын
Same thing is happening to me
@ramojinaidu7842
@ramojinaidu7842 4 жыл бұрын
please tell me what is the best book for learning gcoad
@baaatli
@baaatli 7 жыл бұрын
I am your big fan dude. You explain things so well. Just an opinion........it will be good if you give link to download code in the description. You may create a blog..........
@baaatli
@baaatli 7 жыл бұрын
Mert Arduino Tutorial & Projects THANK YOU
@hernanhernandez3458
@hernanhernandez3458 5 жыл бұрын
No me sirbio, estoy utilizando solo 3 servos, no se eso afecte
@oscaralfonzo1832
@oscaralfonzo1832 5 жыл бұрын
Thanks man
@codingtimes3199
@codingtimes3199 7 жыл бұрын
good job but you don't answer my question
@aliyusufbatal2928
@aliyusufbatal2928 6 жыл бұрын
Rica etsem kodları da paylaşırmısın
@raghavthakur7564
@raghavthakur7564 6 жыл бұрын
Can you send me your code for this project please please
@ishmeetsingh1002
@ishmeetsingh1002 2 жыл бұрын
love you bro we had done this project
@nihalkeetha
@nihalkeetha 7 жыл бұрын
hello mert i posted my idea on your facebook page hope you get it and do it...
@mohitarora1701
@mohitarora1701 7 жыл бұрын
can i connect servos by 9 volt battery directly or use resistor between vcc
@sumitpanwar5408
@sumitpanwar5408 7 жыл бұрын
please provide me the arduino code for this project
@Enderkruemel
@Enderkruemel 4 жыл бұрын
Servos are Made for 5v Not 9v!!
@srikantca143
@srikantca143 3 жыл бұрын
wrong code
@NomadVideos
@NomadVideos 5 жыл бұрын
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
@Bram4Real
@Bram4Real 7 жыл бұрын
Awesome vid! There is only one problem: When I turn on my Arduino, the motors become very shaky and wobble everywhere. I am using this in a robotic arm, and they are PowerHD 1501MG servo motors. Do you think this problem is from the motor type/voltage or the setup in the robotic arm? Thanks!
@underwaterchippie
@underwaterchippie 7 жыл бұрын
Im having the same problem with the micro servos Bram.... Apparently not enough current for the servos... Please let me know if you manage to sort it out! :)
@Ripsticker45
@Ripsticker45 7 жыл бұрын
I am also having this problem.
@milindkumar2445
@milindkumar2445 6 жыл бұрын
Sir can you give me coad
@rosemondcardoso4919
@rosemondcardoso4919 6 жыл бұрын
Bro can do that without using breadboard plzzz
@claudioballancin5957
@claudioballancin5957 2 жыл бұрын
Sketch?
@sagnikapanda2893
@sagnikapanda2893 6 жыл бұрын
What is the programing code
@bobsthea
@bobsthea 6 жыл бұрын
it didn't work for mine i guess....
@isaacleung2858
@isaacleung2858 7 жыл бұрын
Can you give me the code pls?
@arjaystephenebonostro9691
@arjaystephenebonostro9691 7 жыл бұрын
Mert Arduino and Tech thanks for the code sir. i like your videos. thanks again. from Philippines JAY
@galihridhoutomo
@galihridhoutomo 5 жыл бұрын
Hi.... Where coding arduino with Potentiometers ? I need coding that please
@luizalmeida1209
@luizalmeida1209 5 жыл бұрын
What do you need? It's not very complicated, as you can see in the video, he's using analog read do read the output on the potentiometer and writing the value he gets into the servo's angle. If you want to control something directly with the potentiometer you just need to plug that middle pin as the input energy of whatever you want to control. If you give me more detail maybe I can help you better
@jonahrubin9989
@jonahrubin9989 7 жыл бұрын
I've tried recreating this setup twice with the same code, but I can't get it working. Some potentiometers affect all four servos, and some affect none. My potentiometers are 2k not 10k. Could this be the issue? If not, do you know what could?
@jonahrubin9989
@jonahrubin9989 7 жыл бұрын
That worked, thanks.
@Ripsticker45
@Ripsticker45 7 жыл бұрын
Can you please show me what you did here. I am having the same issue and it would be greatly appreciated.
@mpls_link
@mpls_link 7 жыл бұрын
hello, i want to implement robotic arm from this, tell me how can i store the motor locations, so that it can continue automatic without the help of potential meter
@joesmith9330
@joesmith9330 6 жыл бұрын
THANKS FOR THE VID ! I FOLLOWED YOUR VID STEP BY STEP AND I GOT MY BATTERY PACK TO WORK !
@मनदर्पण
@मनदर्पण 6 жыл бұрын
awake.... but background music is so sad...
@ishmeetsingh1002
@ishmeetsingh1002 2 жыл бұрын
Love you bro We made this
@Dinesh-KumaranK
@Dinesh-KumaranK 6 жыл бұрын
Give me this code please
@rohithreddy3814
@rohithreddy3814 7 жыл бұрын
Can we use 100k potentiometer
@petermaker76
@petermaker76 7 жыл бұрын
good but I want multi sensors in one aurdino
@JaspreetSingh-xj1jy
@JaspreetSingh-xj1jy 7 жыл бұрын
how to do the same with a rotary encoder
@vipin_mishra19
@vipin_mishra19 6 жыл бұрын
Where is code
@Prop_essor
@Prop_essor 3 жыл бұрын
Sir give us code
@koalaes9755
@koalaes9755 7 жыл бұрын
Can you do that without the delay and use millis as delay for
@koalaes9755
@koalaes9755 7 жыл бұрын
making a delay using millis() Like blink without delay in arduino examples
@मनदर्पण
@मनदर्पण 6 жыл бұрын
but it's awesome 😱😱😱😱
@phuocattran8338
@phuocattran8338 7 жыл бұрын
i love u very much...thank you
@mastercat
@mastercat 4 жыл бұрын
can be more motors?
@faisalfaris8486
@faisalfaris8486 5 жыл бұрын
Share code please,sir
@mal-ko4ln
@mal-ko4ln 5 жыл бұрын
d
@lahirukahavita723
@lahirukahavita723 3 жыл бұрын
Great
@aquilesstar581
@aquilesstar581 6 жыл бұрын
Beautiful beautiful ✌✌✌✌😭😤😤
@arrshithrg5359
@arrshithrg5359 6 жыл бұрын
can you do the same thing wireless ??
@sayantangope2573
@sayantangope2573 6 жыл бұрын
Vasudev Mr bro...u can use hc05 or 06 module ...thats a bluetooth module for arduino U can control your servos via android bluetooth....u get many apps in playstore
@abdulrehmanikram7966
@abdulrehmanikram7966 7 жыл бұрын
code plz!!!!!
@rosemondcardoso4919
@rosemondcardoso4919 6 жыл бұрын
Bro plzzzz share the code
@rommelsevilla676
@rommelsevilla676 3 жыл бұрын
Tnx
@BadEnergyJohn
@BadEnergyJohn 6 жыл бұрын
thank you thank you thank you.
Ep.53 Arduino Projects - Potentiometer Servo Control & Memory
14:30
Please Help This Poor Boy 🙏
00:40
Alan Chikin Chow
Рет қаралды 23 МЛН
Turn any DC Motor into a Servo Motor
25:24
How To Mechatronics
Рет қаралды 290 М.
Using Servo Motors with Arduino
43:06
DroneBot Workshop
Рет қаралды 1,4 МЛН
I tried the 3 Cheapest Arduino Alternatives! (That you Suggested)
13:21
Mastering Servo Control: PCA9685 PWM Driver with Arduino Tutorial and Demo
7:50
I Made a Robot Arm... in the Middle of my Room!
14:42
Jelle Vermandere
Рет қаралды 1,2 МЛН
Multiple Servo Motor Control with Joystick and Arduino
5:36
Maker 101
Рет қаралды 989 М.
Control a Positional Servo Motor with an Arduino (Lesson #10)
8:28
Science Buddies
Рет қаралды 49 М.
Control DC Motors with Arduino and Joystick - Step-by-Step Guide
20:09
Rachel De Barros
Рет қаралды 6 М.
Please Help This Poor Boy 🙏
00:40
Alan Chikin Chow
Рет қаралды 23 МЛН