Arduino #9 - Servo Selection & Motion Control

Поделиться
HTML-код
  • Опубликовано: 29 дек 2024

Комментарии •

  • @gfodale
    @gfodale 4 года назад +1

    @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.

  • @Enoch_The_Gent
    @Enoch_The_Gent 2 года назад +1

    Did you connect the black and red to a power source or a drive board?

  • @ilos9883
    @ilos9883 2 года назад +1

    Hi sir, what do i need to add in the code if I want to make the servo rotate in every 30 seconds?

  • @TonyStark-ef6gy
    @TonyStark-ef6gy 5 лет назад

    Superb Tutorial

  • @wanjirumburu3616
    @wanjirumburu3616 4 года назад +1

    Just discovered your channel.It has really helped me with my project. Thank you

  • @TightEWhitey
    @TightEWhitey 3 года назад +1

    Thank you for the video! How do I download a servo library? I am very new to this

  • @RESC_Eng
    @RESC_Eng 4 года назад +1

    Thanks bro
    what is the maximum rotation angle range??

  • @Greenwickpress
    @Greenwickpress 7 лет назад +1

    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.

  • @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!

  • @jeffreyambayec4491
    @jeffreyambayec4491 3 года назад

    Thanks man! This was my first time using one

  • @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.

  • @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?

  • @prashantlimbu5989
    @prashantlimbu5989 3 года назад

    Good sir ..coding is seen clearly ..

  • @davidli2522
    @davidli2522 8 лет назад +1

    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 :)

  • @Zach-de3dv
    @Zach-de3dv 8 лет назад

    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.

  • @VariousParticular199
    @VariousParticular199 4 года назад

    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.

  • @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

  • @bobsthea
    @bobsthea 6 лет назад +4

    this is exactly what i'm looking for, thanks man

  • @achrafazzez4157
    @achrafazzez4157 8 лет назад +1

    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 ?

  • @therudemechanicals2173
    @therudemechanicals2173 7 лет назад +1

    Great tutorial, quick and precise

  • @suhastg9639
    @suhastg9639 7 лет назад +1

    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°?

  • @zaracla
    @zaracla 8 лет назад

    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?

  • @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?

  • @UnboxyTech
    @UnboxyTech 8 лет назад

    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

  • @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.

  • @16vastraturbo
    @16vastraturbo 7 лет назад +1

    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????

  • @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

  • @HieuNguyen-ei8ep
    @HieuNguyen-ei8ep 5 лет назад

    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

  • @diego_creator
    @diego_creator 4 года назад +1

    What software do use to code and send to the Arduino?

  • @papaibakshi5224
    @papaibakshi5224 4 года назад

    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.....

  • @samanthap1227
    @samanthap1227 4 года назад

    What is the three point cable you use called

  • @fadisaba7952
    @fadisaba7952 8 лет назад +1

    hi, can you tell me what is the exact Arduino controller type is? and can I control more than one servo motor on it ?

    • @VladRomanov89
      @VladRomanov89  8 лет назад

      Hi Fadi, the Arduino Uno uses the Atmega328P-PU microcontroller. You can definitely control more than one servo motor with it. The most I've seen with ONLY the controller, was 16.

    • @fadisaba7952
      @fadisaba7952 8 лет назад

      thank you for the fast respond .... it helps a lot.

  • @MartinMartinez
    @MartinMartinez 4 года назад

    Can you run a servo directly with a 2-Position switch like a Monolever (joystick) or is Arduino a must?

  • @aaj3798
    @aaj3798 8 лет назад +1

    i am using sm-s4315m servo motor and the coding is not working well =( what should i do

  • @misorashi24
    @misorashi24 8 лет назад

    Hello. I'm new to arduino and servos. What's the best way to get familiar and get started with these?

  • @mohammadghanatian114
    @mohammadghanatian114 8 лет назад

    Hi.I bought a MG995 servo motor and the sales person told that the servo is a 360 degree one and now my problem is that when I write the code at 4:50 the servo rotates continuesly without stopping.What should I do to stop it where I want?Please answer me...

    • @chewzhenglim8252
      @chewzhenglim8252 8 лет назад

      I faced the same problem as yours

    • @mohammadghanatian114
      @mohammadghanatian114 8 лет назад

      hi.I still have the problem regarding control that servo and all I know for now is that this servo is not like other servos.take a look at this code,that might be helpful and if you found something useful please tell me cause my project is not done yet:github.com/diegorys/arduino-example-servomotor-360/tree/master/sketchbook/servomotor-360

    • @jensenlam6466
      @jensenlam6466 7 лет назад +1

      mohammad ghanatian It is a problem with the voltage. We need 6 volts to power the servo correctly and I have that issue.

    • @mohammadghanatian114
      @mohammadghanatian114 7 лет назад

      I used a variety of voltages including 4,5,6 ,7 and still the same problem.

    • @jensenlam6466
      @jensenlam6466 7 лет назад

      mohammad ghanatian Yea I am not sure then but I asked a professional and they advised me to use 6. My issue right now is it's kind of doing its own thing. Good luck

  • @dragonfeesh8358
    @dragonfeesh8358 6 лет назад +1

    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?

  • @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.

  • @realtrickybilly
    @realtrickybilly 7 лет назад

    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?

  • @dushandesilva6767
    @dushandesilva6767 9 лет назад +2

    hi i like to know if i can program this for a 10 degree max position to use this for a solar tracker application

  • @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

  • @xenoglossyglossolalia8631
    @xenoglossyglossolalia8631 8 лет назад +2

    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

  • @IoTLearner
    @IoTLearner 6 лет назад

    Bro..you deserves more Subscribers

  • @paulemmanuel6694
    @paulemmanuel6694 6 лет назад +1

    Can you please give me the code to turn MG996R Servo motor 360 degrees clock wise and anticlock wise on a schedule time . Thanks

  • @visionaryrobotics4065
    @visionaryrobotics4065 5 лет назад

    Nice video , what power supply did you use and do you recommend any power supply that I should use.

  • @Lava-i3g
    @Lava-i3g Год назад

    You can power that from Arduino?

  • @christmasdreams1
    @christmasdreams1 8 лет назад

    I have followed your channel for several years but have yet to see a video on how to control the speed of a servo without using a "for loop with delay" method. It seems that "servo speed" remains in the "too hard basket" because it is very hard to find videos which deal with the subject in depth. Any hope you could touch on the subject?

    • @VladRomanov89
      @VladRomanov89  8 лет назад +1

      I've worked on that offline for some time, but the limiting factor has always been the hardware. The setup you get with an inexpensive dc motor is a very crude wheel with cutouts. I'll try to put something together for this topic, but it will probably take me a few weeks.

    • @christmasdreams1
      @christmasdreams1 8 лет назад

      On the ARDUINO forum, there is a post on the library which I have successfully copied and tested - see my Vimeo upload here: vimeo.com/171200374. It works, is very convenient as the servos are set up in an array. The speed variable is not linear, but it is within practical limits for all but the most exacting applications- (but then, I suppose steppers are better for the really accurate uses)! Kepp up the great work! Cheers.

  • @jjvictor8067
    @jjvictor8067 4 года назад

    How would I use a servo connected with an audrino and using one channel RF control and transmitter ?

  • @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

  • @atharvasaney3376
    @atharvasaney3376 5 лет назад

    is there a motor that comes to its initial position after power supply is shut off ??

  • @yaminiraut4847
    @yaminiraut4847 5 лет назад +3

    This was really helpful. Thank you.

  • @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.

  • @akshayd211
    @akshayd211 7 лет назад +1

    A good memory refresher! Very concise and neat. Well done!

  • @prince2shahir
    @prince2shahir 8 лет назад +1

    can i control hc sr04 ultrosonic sensor and servo motor together using Arduino Mega 2560 for my project

  • @dominicm6144
    @dominicm6144 7 лет назад +1

    Helpful, concise and fun video. Thanks for that!

  • @mrjn5786
    @mrjn5786 7 лет назад +1

    hey what kind of program code did you use? i mean is that only in notepad?

    • @DhadamRobotics
      @DhadamRobotics 6 лет назад

      Mr Jn see ruclips.net/video/R2yRbfm8uAE/видео.html

  • @santhoshv574
    @santhoshv574 6 лет назад +1

    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 6 лет назад

      Santhosh V ruclips.net/video/R2yRbfm8uAE/видео.html

  • @julianpa92
    @julianpa92 7 лет назад

    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!

  • @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 6 лет назад

      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);

  • @dylanclaytonnn
    @dylanclaytonnn 4 года назад

    How do you attach a second servo and have them rotate at different times or alternate

  • @RamakrishnaMak
    @RamakrishnaMak 6 лет назад +2

    The servo is not stopping for the 180deg

  • @mechatronicsabubakar1860
    @mechatronicsabubakar1860 5 лет назад

    Have you ever work on servo mg945 (360° rotation)

  • @ThirdPer3on
    @ThirdPer3on 7 лет назад +3

    Thanks, answered every question i had.

  • @sumandutta7554
    @sumandutta7554 8 лет назад

    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

  • @radumihai9233
    @radumihai9233 8 лет назад +9

    as soon as i upload my first code it starts rotating and doesent stop...

    • @Rasmushkoch
      @Rasmushkoch 8 лет назад +2

      i have the same event going on ???

    • @costimasca
      @costimasca 7 лет назад +6

      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

  • @PunakiviAddikti
    @PunakiviAddikti 6 лет назад +1

    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 6 лет назад

      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)

  • @divyanshkhare7901
    @divyanshkhare7901 7 лет назад +8

    How many servos can i attach to my arduino uno board?

  • @mohamedsabry7155
    @mohamedsabry7155 7 лет назад

    So the write function takes the position as a parameter not the whole angle of rotation?

    • @VladRomanov89
      @VladRomanov89  7 лет назад

      That's correct. The parameter specifies the absolute angle to which the motor will be moving. It's not relative to the current position.

  • @johansmitphotography
    @johansmitphotography 5 лет назад

    I think the brown or black wire is ground, the middle one + and the lightest one is the siginal bus.

  • @Shivam-nj7eb
    @Shivam-nj7eb 6 лет назад +1

    you don't need motor driver for servo motor?

    • @vladromanov8380
      @vladromanov8380 6 лет назад

      Shivam Satyam not for these ones. The driver is incorporated into the motor.

  • @Pankaj0714
    @Pankaj0714 6 лет назад +1

    Can i control my servo in analog side?

  • @Vortexcinema677
    @Vortexcinema677 7 лет назад +1

    SO I HAVE A QUEWSTION. MY SERVO GOES CLOCKWISE HOW WOULD I DO COUNTER CLOCKWISE? WOULD I HAVE TO PROGRAM IT IN THE NEGETIVES?

  • @baileytaylor6731
    @baileytaylor6731 7 лет назад +1

    Does anyone know if u can make it go say 90 degrees then after a while u can push a button for it to go another 90 degrees if so can someone explain how it's done

    • @VladRomanov89
      @VladRomanov89  7 лет назад +1

      It's definitely possible, you can use an increment for the angle value.

    • @baileytaylor6731
      @baileytaylor6731 7 лет назад

      EEEnthusiast ok thanks

  • @sonamjamtsho995
    @sonamjamtsho995 7 лет назад +2

    EEEnthusiast can you show this same servo motor MG995 for opening and closing of sliding door.
    Thank you.

  • @jayricktombado2533
    @jayricktombado2533 3 года назад

    hI! I have followed your instructions and all but my servo won't turn on, is there something I need to do?

    • @Zeenathin
      @Zeenathin 2 года назад

      You need to turn the servo arm then it turns back I set -180 to 80

  • @Златамассажист
    @Златамассажист 6 лет назад

    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?

  • @WatchMe24_7
    @WatchMe24_7 5 лет назад

    Is it possible to get input from them

  • @saikumarreddysirigiri772
    @saikumarreddysirigiri772 5 лет назад

    there are some holes on the rotating pieces. Is that necessary to make holes on them??

    • @CardZed
      @CardZed 5 лет назад

      Nope, its just because of the 3d printing process.

  • @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.

  • @HassanAli-rq2xd
    @HassanAli-rq2xd 4 года назад

    What is the purpose of using the initializer "Servo" and what is the purpose of using the variable "servo1" next to it?

    • @aiversity5975
      @aiversity5975 4 года назад +1

      The "Servo" initializes that the next parameter which is the "servo1" is the servo's name

  • @mrjn5786
    @mrjn5786 7 лет назад +1

    hey how did you do that?? in opposite movement of servo. :)

    • @VladRomanov89
      @VladRomanov89  7 лет назад +1

      You write the angle you want it to go to.

  • @krishnanshudey3831
    @krishnanshudey3831 5 лет назад

    Nice explanation. It will help me a lot in my future projects. Thanks you.

  • @SaeedAcronia
    @SaeedAcronia 4 года назад

    Is it servo one or servo L?

  • @samadkohi9166
    @samadkohi9166 5 лет назад

    Thanks! Nice tutorial

  • @shayma3171
    @shayma3171 8 лет назад +1

    how can I connect the servo motor to gripper ?

  • @swarajpawar6623
    @swarajpawar6623 6 лет назад +1

    How can i just rotate the servo in just one loop ie 0-180. 180-0 and stop

  • @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 .

  • @edgar_ssi
    @edgar_ssi 6 лет назад

    I want to implement an RFID reader on this example.. Any guides?

  • @AjinKs-qn1of
    @AjinKs-qn1of 4 года назад

    Can please share the code for 180 degree shown in this vedio

  • @Lucas-dk6rv
    @Lucas-dk6rv 7 лет назад +1

    What arduino uno did you use?

  • @borgeayuban2006
    @borgeayuban2006 7 лет назад

    Can you teach me how to get a random angles in servo, please?

  • @thunderbrain3605
    @thunderbrain3605 6 лет назад +1

    one problem why does it say
    exit status 1
    expected initializer before 'void'

  • @kamilnevriva4897
    @kamilnevriva4897 8 лет назад

    Great video! It helped me very much!

  • @435iak
    @435iak 8 лет назад +7

    thanks m8, really helped!

  • @팔도강산-m9u
    @팔도강산-m9u 4 года назад

    thank you for your helping! but why does mine slide without suddenly stopping when it changes direction?

    • @epictitus
      @epictitus Год назад

      I have the same problem could you please share the solution with me if you've found it

  • @negueba235689
    @negueba235689 6 лет назад +4

    Error
    'pos1' was not declared in this scope
    and I done the same as your code, why do I get this error?

    • @DhadamRobotics
      @DhadamRobotics 6 лет назад

      Ken Tore Foss see ruclips.net/video/R2yRbfm8uAE/видео.html

  • @thevivekmathema
    @thevivekmathema 9 лет назад +1

    is it ok to power it with just usb. do i need to hook up yo external power sourcr

    • @VladRomanov89
      @VladRomanov89  9 лет назад

      I believe the stall current will exceed the current of the USB. That being said, if you just want to play with the servo without any load, you should be just fine.

    • @thevivekmathema
      @thevivekmathema 9 лет назад

      thank you for your info. i have one another general question but a bit off the main topic. how many times can we reprogramme arduino uno. i heard around 1000 only. is it true?

    • @Joshua-lv7to
      @Joshua-lv7to 8 лет назад

      +VibeX MaTxeMa I think the number is 10000 not 1000

    • @Yvesmotulafundi
      @Yvesmotulafundi 8 лет назад

      +VibeX MaTxeMa it's making control overloading the memory of that

  • @av03
    @av03 6 лет назад

    I am planning to use 3 mpu6050 as input, 12 servos for the output and 5 flexible sensor as input all in one board is that possible? if it is, what board to use?

    • @PunakiviAddikti
      @PunakiviAddikti 6 лет назад

      Aljohn V You will need a special servo shield. That many servos will burn your Arduino.

    • @av03
      @av03 6 лет назад

      thank you

  • @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.

  • @carolj.zamora2366
    @carolj.zamora2366 6 лет назад

    Hey can someone please help and let me know where I can get the wires that connect the servos to the Arduino? Or do they come with the servo??

    • @benjamindavidson992
      @benjamindavidson992 5 лет назад

      ik this is an old comment but they are called jumper cables you can get them off amazon