Тёмный

Arduino #9 - Servo Selection & Motion Control 

EEEnthusiast
Подписаться 41 тыс.
Просмотров 489 тыс.
50% 1

In the ninth Arduino tutorial I briefly go over some of the uses of a common servo motor. A servo is used in applications which require a controlled range of motion and provide greater control than a regular DC motor.
Getting started with the Arduino servo library is extremely simple and should be easily accessible to anyone who is looking to get started with electronics.
Let me know if you have any questions and once again thank you for watching!
Get in touch:
Facebook: / eeenthusiast
Website: staticjolt.com/
Personal website: vladromanov.com/
Keywords & Search Terms:
Servo
Hobbyist Servo
RC Servo
RC Car
RC Plane
Servo Control
Motion Control
Robotics
Software Debouncing
Software De bouncing
Hardware Debouncing
Arduino Tutorial
Arduino Button
Arduino Debouncing
Hardware Button
LED Toggling
LED Blinking
LED Arduino
Speaker
Arduino Tone
Tone
Buzzer
Piezzo Speaker
Piezzo Buzzer
Arduino Sound
Arduino Music
Mario Arduino
Super Mario Theme
Mario on Arduino

Опубликовано:

 

27 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 265   
@akshayd211
@akshayd211 6 лет назад
A good memory refresher! Very concise and neat. Well done!
@dominicm6144
@dominicm6144 7 лет назад
Helpful, concise and fun video. Thanks for that!
@bobsthea
@bobsthea 6 лет назад
this is exactly what i'm looking for, thanks man
@yaminiraut4847
@yaminiraut4847 4 года назад
This was really helpful. Thank you.
@therudemechanicals2173
@therudemechanicals2173 6 лет назад
Great tutorial, quick and precise
@435iak
@435iak 8 лет назад
thanks m8, really helped!
@wanjirumburu3616
@wanjirumburu3616 3 года назад
Just discovered your channel.It has really helped me with my project. Thank you
@ThirdPer3on
@ThirdPer3on 7 лет назад
Thanks, answered every question i had.
@dushandesilva6767
@dushandesilva6767 8 лет назад
hi i like to know if i can program this for a 10 degree max position to use this for a solar tracker application
@suhastg9639
@suhastg9639 7 лет назад
Can the Arduino be programmed such a way that when it receives +5 volts at one of it's analog or digital ports, the servo motor turns to 60° or 90° or 120°?
@sameerk12982
@sameerk12982 4 года назад
Thank you very much for this informative tutorial....appreciated.
@kamilnevriva4897
@kamilnevriva4897 8 лет назад
Great video! It helped me very much!
@IoTLearner
@IoTLearner 5 лет назад
Bro..you deserves more Subscribers
@julianpa92
@julianpa92 6 лет назад
Hello! I'm working on a project, an automatic guitar tuner and I want the servo to move the guitar pegs. Do you know approx. which servo could I use? I need anyone that moves continuosly until it reaches the correct string frecuency. Very good videos!
@jeffreyambayec4491
@jeffreyambayec4491 3 года назад
Thanks man! This was my first time using one
@16vastraturbo
@16vastraturbo 7 лет назад
is it possible to program it to turn 360 but say a max of 100 times. i want to make a winch with a camera on the end but if i have only 10meters of cable i dont want it to keep spinning so the cable drops of the winch if you know what i mean????
@PeteTum
@PeteTum 7 лет назад
Great video! Thanks!
@prince2shahir
@prince2shahir 7 лет назад
can i control hc sr04 ultrosonic sensor and servo motor together using Arduino Mega 2560 for my project
@krishnanshudey3831
@krishnanshudey3831 4 года назад
Nice explanation. It will help me a lot in my future projects. Thanks you.
@edharkins112
@edharkins112 5 лет назад
very well done..thank you!
@gfodale
@gfodale 3 года назад
@1:07, they're called control arms. @1:54, ground is generally black or brown. center wire is always V+, usually red or orange, signal is usually white or yellow. If in doubt, search "datasheet" part number. ie 'datasheet mg995'. when vibrating on limit, back off limit till it stops vibrating, otherwise it's pulling more current than normal.
@dragonfeesh8358
@dragonfeesh8358 5 лет назад
thank you, this was very helpful. Does anyone know how this would work if I were trying to control a servo with an Adafruit Circuit Playground Express?
@achrafazzez4157
@achrafazzez4157 8 лет назад
after hacking a servo futaba s3003 to turn 360° , what is the arduino programme to make the servo turn 3 time for 360° to the left and than 3 time to the right ?
@visionaryrobotics4065
@visionaryrobotics4065 5 лет назад
Nice video , what power supply did you use and do you recommend any power supply that I should use.
@realtrickybilly
@realtrickybilly 6 лет назад
Subscribed. I am very new to electronics. Question: how to know if my Arduino can handle a motor? I have a similar Carson-model sport 500502015 CS3 Reflex racing servo. Afrotechmods said that plugging a bigger motor (anything that draws more than a few mA) would be bad for an Arduino. How can I know if it will be too much for an Arduino? I have 2 of these mentioned and 2 little blue 9G microservos. If I join all 4 for a robotic arm will that be too much?
@zaracla
@zaracla 7 лет назад
Hi. Nice and efective video. Is there a way to connect Arduino to a R/C receiver to run de servos so Arduino would record the transmitters movement?
@dekimbe3874
@dekimbe3874 7 лет назад
thankyou so much!
@alekrodimidecu4625
@alekrodimidecu4625 7 лет назад
one question, does servo have potentiometer inside, if so can i just hook up orange wire so i can read position and power motor externally from power suply.
@samadkohi9166
@samadkohi9166 4 года назад
Thanks! Nice tutorial
@MartinMartinez
@MartinMartinez 4 года назад
Can you run a servo directly with a 2-Position switch like a Monolever (joystick) or is Arduino a must?
@mohanprasath6216
@mohanprasath6216 8 лет назад
can I use servo to rotate a heavy object say around 20kg as I need to control the position and speed precisely or using more than 1 servo
@lakshancosta4121
@lakshancosta4121 5 лет назад
Thank it was very helpful. I have a servo which can turn 360. what should be the code to turn it 360 continuously? thanks
@TonyStark-ef6gy
@TonyStark-ef6gy 4 года назад
Superb Tutorial
@Greenwickpress
@Greenwickpress 7 лет назад
Do you have any recommendations for really small servos? my project would involve a lot of them, and I'd prefer to have them be compact to keep the device small.
@normwright5018
@normwright5018 Год назад
If I were to use 2 mg996r servos for this application, would I be able to utilize the v+ pin and any other numbered pins on the arduino uno,or should I use a pca9685 to accommodate the 2 servos?
@TightEWhitey
@TightEWhitey 3 года назад
Thank you for the video! How do I download a servo library? I am very new to this
@misorashi24
@misorashi24 8 лет назад
And what are the tools & materials do I need? I want to start with a mini arduino (cheap) if there is one.
@KevinNoyola
@KevinNoyola 5 лет назад
How can I replicate a hold with the servo? Like I want it to press on a touchscreen with a stylus but I wasn’t it to hold it there for 3 seconds then retract? Thanks!
@Zach-de3dv
@Zach-de3dv 7 лет назад
How do You run servo motors from the servo 1 and 2 header stacks on the motorshield? So I cut a trace across the bottom of the motorshield so I could run external power? I am trying to test the servos using external power. There are no good examples online because everyone is running the servo directly off pin 9, like your vid.
@ilos9883
@ilos9883 2 года назад
Hi sir, what do i need to add in the code if I want to make the servo rotate in every 30 seconds?
@RESC_Eng
@RESC_Eng 3 года назад
Thanks bro what is the maximum rotation angle range??
@Enoch_The_Gent
@Enoch_The_Gent Год назад
Did you connect the black and red to a power source or a drive board?
@paulemmanuel6694
@paulemmanuel6694 6 лет назад
Can you please give me the code to turn MG996R Servo motor 360 degrees clock wise and anticlock wise on a schedule time . Thanks
@misorashi24
@misorashi24 8 лет назад
Hello. I'm new to arduino and servos. What's the best way to get familiar and get started with these?
@davidli2522
@davidli2522 7 лет назад
quick question, i want to use a servo with the arduino to create an automated fish food dispenser, theoretically, the servo should be spinning the food container around to the opening when it's time for feeding and then spinning it back around when it's done - the container is fairly heavy, 300 grams ish, how would i attach the container to the servo without overloading it?
@CardZed
@CardZed 5 лет назад
I know it is old, but put two motors, and make one the reverse of the other. So it wont overload. Hope your fishes get food now :)
@edgar_ssi
@edgar_ssi 5 лет назад
I want to implement an RFID reader on this example.. Any guides?
@dylanclaytonnn
@dylanclaytonnn 4 года назад
How do you attach a second servo and have them rotate at different times or alternate
@maximon72
@maximon72 4 года назад
I enjoyed watching your clip. Two observations. In some instances the information was said too quickly and it was hard to discern the terminology and applications of the commands.
@arbaazkhan326
@arbaazkhan326 4 года назад
Can you tell me what components i will require where I want a servo motor with 180 degree rotation and where I need to change the product with which rechargeable battery and a illuminated switch or vibrator where I should know whether the motor is on or off... All these things should fit in 6 by 6 cm of area
@taranagnew436
@taranagnew436 5 лет назад
i want the servo to start with the attachment up and down or side to side(depending on witch way you look at the servo) and turn to the right ( so the top plastic peice is to the right) and then go back to the side to side prositon, how would i do that?
@shaneshih4198
@shaneshih4198 3 года назад
I am having a huge trouble in using sg 90 servo as the torque is not sufficient in lifting a 200 g weight vertically via a wooden arm. so does mg 995 servo has enough torque.
@divyanshkhare7901
@divyanshkhare7901 6 лет назад
How many servos can i attach to my arduino uno board?
@byronstorm4383
@byronstorm4383 6 лет назад
12
@mikehattias5837
@mikehattias5837 6 лет назад
I'm a noob, how would I control 48 servos?
@saqibreshi9984
@saqibreshi9984 6 лет назад
2 at one time
@levipicard7685
@levipicard7685 6 лет назад
probably shift registers
@sudhanshunautiyal6765
@sudhanshunautiyal6765 5 лет назад
you can use arduino mega to control 48 servos
@shayma3171
@shayma3171 7 лет назад
how can I connect the servo motor to gripper ?
@Vortexcinema677
@Vortexcinema677 7 лет назад
SO I HAVE A QUEWSTION. MY SERVO GOES CLOCKWISE HOW WOULD I DO COUNTER CLOCKWISE? WOULD I HAVE TO PROGRAM IT IN THE NEGETIVES?
@AkshanshShrivastava
@AkshanshShrivastava 6 лет назад
try negative sign before angle
@s.sradon9782
@s.sradon9782 4 года назад
The servo will draw a large current if it is not to sweep incrementally. This is important for certain batteries. although incremental sweeping limits the speed of the servo. The current spikes may be resolved by a capacitor circuit.
@HieuNguyen-ei8ep
@HieuNguyen-ei8ep 4 года назад
I have done with Servo MG996R but it only active at 180 degrees . With this servo , can we change degrees ?? 45 ,135 despite of 180 or 90 . Thanks
@aaj3798
@aaj3798 7 лет назад
i am using sm-s4315m servo motor and the coding is not working well =( what should i do
@Pankaj0714
@Pankaj0714 6 лет назад
Can i control my servo in analog side?
@jjvictor8067
@jjvictor8067 4 года назад
How would I use a servo connected with an audrino and using one channel RF control and transmitter ?
@borgeayuban2006
@borgeayuban2006 6 лет назад
Can you teach me how to get a random angles in servo, please?
@abbasezzdein952
@abbasezzdein952 6 лет назад
very very helpfull
@xenoglossyglossolalia8631
@xenoglossyglossolalia8631 7 лет назад
Hello, Excuse me, how would the code look like if i hade 6 pcs of MG 996R servos with a arduino joystic for turn 6 pcs of wheels`?
@user-pf3vz3rd9h
@user-pf3vz3rd9h 5 лет назад
did you get the answer to this? please respond
@nsk6914
@nsk6914 2 года назад
can i use 3AMP buck convertor for thiss servo which reduce voltage from from a 11.1v lithium battery
@mechatronicsabubakar1860
@mechatronicsabubakar1860 4 года назад
Have you ever work on servo mg945 (360° rotation)
@viveksoni3503
@viveksoni3503 7 лет назад
sir , i m making balancing ball on a plate using vision feedback, sir can u help me with the code as i m using two servos to control the motion of the plate in according to the ball movement on d plate .
@chimpbae6478
@chimpbae6478 4 года назад
This is awesome thx
@SikhoSikhaoOfficial
@SikhoSikhaoOfficial 4 года назад
Really helping video
@umargul5644
@umargul5644 2 года назад
Well done
@RamakrishnaMak
@RamakrishnaMak 6 лет назад
The servo is not stopping for the 180deg
@mominfahim
@mominfahim 8 лет назад
sir I want reference arduino programming for pick and place robot
@VariousParticular199
@VariousParticular199 3 года назад
I'd like to know how to program a 180 degree and stop. Then press a capasitive touch button and another 180 degree and stop. I need it for a door that opens and closes. Thanks.
@atharvasaney3376
@atharvasaney3376 5 лет назад
is there a motor that comes to its initial position after power supply is shut off ??
@davidhristu6742
@davidhristu6742 6 лет назад
Hey, everyone I need help, I tried doing the same thing will a Arduino Nano and a Hi-tec HS-402X and every time after I upload the program, the servo just rotates continuously in a clockwise direction until it hits the physical maximum the servo can go and then just gets jammed in there until I power off the servo. Can someone please explain why this happens and how to fix it? I`m doing it exactly like in the video. I have also researched how to fix the problem with "writeMircoseconds" command but it does the same thing. Thank you
@engjibuzhala3128
@engjibuzhala3128 6 лет назад
its probably a 360 servo, i dont know if you can control the position that you want it to stop.
@PunakiviAddikti
@PunakiviAddikti 6 лет назад
I might be wrong, but if the control signal has a frequency that tells the servo to go beyond its own physical limits, the servo will try to achieve that position and stalls. That might be what your code is doing. Idk how you might fix it, but you can try to simply give it a PWM signal. Make sure the signal is within the servos limits or it will stall again as stated above. It might be that your servo has different frequency demands. Is there a knob you can adjust on some side of the servo? If there is, it can be used to trim the servo.
@miller7992
@miller7992 6 лет назад
Great video, but do u know how to turn the motor to a degree u have set and have it stop for a certain amount of time before going back to it’s starting point. I can only get it to continually rotate back and fourth.
@PunakiviAddikti
@PunakiviAddikti 6 лет назад
Muggers 79 You need to adjust the wait times (delay) in the code. It's in milliseconds.
@Aryan-dy4sr
@Aryan-dy4sr 5 лет назад
Just define this (in void loop or void setup, wherever you have typed the degrees): delayPeriod = (whatever your wait time is); then after the degree type: delay(delayPeriod);
@yashthakur4878
@yashthakur4878 6 лет назад
Worked thanks
@EEEnthusiast
@EEEnthusiast 6 лет назад
Awesome! I'm glad I was able to help you.
@papaibakshi5224
@papaibakshi5224 3 года назад
can i use this as a car steering..... with arduino...... when i press right it turned right and when i release it.... it back to his original position .... and it gonna be the same to left..... can arduino do that.....
@santhoshv574
@santhoshv574 5 лет назад
Pls help I have a project to be done but while checking my servos if I insert it in the arduino uno the board gets off
@DhadamRobotics
@DhadamRobotics 5 лет назад
Santhosh V ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-R2yRbfm8uAE.html
@sadmanh0
@sadmanh0 8 лет назад
how do you make it so that the servo is rotating small planks of wood instead of the included plastic bits?
@PunakiviAddikti
@PunakiviAddikti 6 лет назад
sadman hoque Either mount the plastic things (called "servo arms") to the piece of wood by using the pre-drilled holes or drill a hole in the piece of wood and screw it onto the servo. Don't drill all the way through! Drill a small amount in to fit it onto the servo and drill a small screw hole, like in the servo arms.
@user-ez7mt3jx5e
@user-ez7mt3jx5e 5 лет назад
Surprisingly, the servo works it is powerful, does not the Arlooino burn, I thought that such servos should be nurturing at least 5 in the power supply separately, is not it?
@roboticchannel699
@roboticchannel699 3 года назад
Very good.
@andrew11099
@andrew11099 8 лет назад
how do i pause after 180 turn ive changed the time 50000 and it acts the same when its 5 ms
@adrianmurthi2495
@adrianmurthi2495 3 года назад
Thank you man
@mrjn5786
@mrjn5786 7 лет назад
hey how did you do that?? in opposite movement of servo. :)
@EEEnthusiast
@EEEnthusiast 7 лет назад
You write the angle you want it to go to.
@mrjn5786
@mrjn5786 7 лет назад
hey what kind of program code did you use? i mean is that only in notepad?
@DhadamRobotics
@DhadamRobotics 5 лет назад
Mr Jn see ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-R2yRbfm8uAE.html
@sumandutta7554
@sumandutta7554 7 лет назад
once we start up the motor it stop after 90 degree and when we start again it rotate back to 0 degree. is there any way to do it ? can you please post the code here
@mohammedhesham6937
@mohammedhesham6937 5 лет назад
Thank you very much i’m servo pro now
@radumihai9233
@radumihai9233 8 лет назад
as soon as i upload my first code it starts rotating and doesent stop...
@Rasmushkoch
@Rasmushkoch 8 лет назад
i have the same event going on ???
@costimasca
@costimasca 7 лет назад
you're probably owning a modded servo for 360 rotation. you cannot control the angle on that kind of servo, just the direction of the spin.
@TheRolfster
@TheRolfster 5 лет назад
so basically... a motor? lol
@taranagnew436
@taranagnew436 5 лет назад
@@Rasmushkoch if you want the code to run forever, put it in the loop, if you want the code to run once, put it is setup
@chandancv6819
@chandancv6819 4 года назад
You have a 360-degree servo
@bogdanonishchuk8153
@bogdanonishchuk8153 4 года назад
Thanks this helped
@turulob1055
@turulob1055 4 года назад
my servo motor is moving step wise, where is the problem ? i have used the same coding and connections
@harshvachasidha4712
@harshvachasidha4712 6 лет назад
thanks
@UnboxyTech
@UnboxyTech 7 лет назад
i am using a servo with rfid but after unlocking it keeps sending pwm signal to the servo and it creates a buzzing noise anyway to stop this
@PunakiviAddikti
@PunakiviAddikti 6 лет назад
I have a very specific problem. I need to control a servo with a toy tank receiver. No digital control, only two wires and a H-bridge. The servo will need to act as a steering servo. When polarity is one way, it needs to turn one way and stop, when polarity swaps, it needs to go to the other side and stop, when no signal is provided it needs to center and stop. No idea how to control an Arduino with a H-bridge and how to use "if this then do that" statements.
@ourtube1128
@ourtube1128 5 лет назад
I know I’m many months late, but you could use an ‘if’ statement like in javascript, then the action you want accomplished inside the brackets of the ‘if’ statement (If I didn’t explain this well, just look up how to write an if statement in arduino)
@samanthap1227
@samanthap1227 3 года назад
What is the three point cable you use called
@akshaykumar-ve3it
@akshaykumar-ve3it 6 лет назад
12V servo motor fluctuates at very high speed when given external power supply Coding is correct and simple Help me how to overcome this fluctuation I have to submit project by tomorrow
@mrstarbox1200
@mrstarbox1200 7 лет назад
How can I code it in C++?
@manjusrinivas3665
@manjusrinivas3665 7 лет назад
hi bro, i am using same servo and arduino uno r3 but i am not able to control servo. At least its not working, when ever i try to connect then servo give some giggling sound that's it. it is not running. and program it self not uploading to servo. please help me thank you
@manjusrinivas3665
@manjusrinivas3665 7 лет назад
Duncan Angus MacDougall thans for your help but I was having problem with Arduino Uno when ever I changed it, servo working fine.
@RazerRose
@RazerRose 5 лет назад
How do you change the speed it rotates ?
@stanojiarnolsp.z.2394
@stanojiarnolsp.z.2394 3 года назад
TAnks A LOT BRO
@ItAintMeBabe99
@ItAintMeBabe99 4 года назад
Very excellent tutorial. How do I control the speed at which it sweeps?
@hhobegginernew
@hhobegginernew 4 года назад
itaintmebabe99 change delay(10); to smaller number ex delay(5); or just delete delay line
@negueba235689
@negueba235689 6 лет назад
Error 'pos1' was not declared in this scope and I done the same as your code, why do I get this error?
@DhadamRobotics
@DhadamRobotics 5 лет назад
Ken Tore Foss see ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-R2yRbfm8uAE.html
Далее
Servo Motors, how do they work?
15:12
Просмотров 1,9 млн
Угадай МОБА 1 🥵 | WICSUR #shorts
01:00
Просмотров 942 тыс.
Using Servo Motors with Arduino
43:06
Просмотров 1,4 млн
Turn any DC Motor into a Servo Motor
25:24
Просмотров 281 тыс.
Electronic Basics #25: Servos and how to use them
5:55
How to control a DC motor with an encoder
9:30
Просмотров 427 тыс.
6 Horribly Common PCB Design Mistakes
10:40
Просмотров 182 тыс.
Control ANY COMPUTER with these Pi KVMs!
17:46
Просмотров 805 тыс.
Угадай МОБА 1 🥵 | WICSUR #shorts
01:00
Просмотров 942 тыс.