How Servo Motors Work & How To Control Servos using Arduino

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 มี.ค. 2018
  • In this tutorial we will learn how servo motors work and how to control servos using Arduino and PCA9685 PWM driver.
    Find more on my website! ► howtomechatronics.com/how-it-...
    Visit HowToMechatronics.com for more Tutorials, Tips, Projects and How It Works videos:
    ► howtomechatronics.com/
    Like my page on Facebook:
    ► / howtomechatr. .
    Add me on Google+:
    ►plus.google.com/+Howtomechatr...
    Music: MÆSON - The Catch ( / tracks )
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 170

  • @ottokueng4236
    @ottokueng4236 6 ปีที่แล้ว +91

    Perfect teacher, quiet, clear, nice graphics, good to understand even for non mother tonge in english, no stupid music,
    Really verry helpful.
    Thank you,
    Otto

    • @HowToMechatronics
      @HowToMechatronics  6 ปีที่แล้ว +4

      Thank you!

    • @romanshalamov8949
      @romanshalamov8949 4 ปีที่แล้ว +3

      @BLAIR M Schirmer Bruh

    • @Mippi12
      @Mippi12 3 ปีที่แล้ว

      @BLAIR M Schirmer 😂😂😂😂,
      I think you can manage it .

  • @TonySwitzerland
    @TonySwitzerland 5 หลายเดือนก่อน

    Among the many videos about servos, this one was the most helpful for me! Thank you

  • @ninadtaralekar
    @ninadtaralekar 6 ปีที่แล้ว +3

    Briefly explained with peculiar points... Thanks

  • @thegirlwithbrighteyes2453
    @thegirlwithbrighteyes2453 2 ปีที่แล้ว

    This was very helpful, thank you very much! I've enjoyed all the videos I've watched on your channel so far and I'm learning a lot.

  • @maheshjayakumar1767
    @maheshjayakumar1767 6 ปีที่แล้ว +29

    You are a nice teacher 😊

  • @customdevelopment136
    @customdevelopment136 ปีที่แล้ว

    Nice job man. Thanks. Very important to describe how things work, as opposed to how to use them.

  • @tedhobby
    @tedhobby 4 ปีที่แล้ว +2

    Thank you. I can fix my servo because of this video.

  • @junuhunuproductions
    @junuhunuproductions 6 ปีที่แล้ว +3

    Great! Very Informative Video, I didn't know about 16 ch Servo Controller Board. Thank you :)

  • @moviejungle1430
    @moviejungle1430 6 ปีที่แล้ว +3

    Must watch tutorial for Servo hobbyist!!

  • @revellights1000
    @revellights1000 6 ปีที่แล้ว

    Excellent video explaining servos, both their mechanics and how to control them.

  • @user-rp6gz4ks4x
    @user-rp6gz4ks4x 2 ปีที่แล้ว

    The clearest explanation! Thank you very much!

  • @PaulMcKillop
    @PaulMcKillop 6 ปีที่แล้ว +1

    Another brilliant video explaining various options very clearly. Thanks

  • @juanalvares11
    @juanalvares11 5 ปีที่แล้ว

    wonderful thanks bro i am a student of mechatronics and i am learning about it thanks to you .

  • @friedtofu5309
    @friedtofu5309 2 ปีที่แล้ว

    Perfect teacher, quiet, clear, nice graphics, good to understand even for non mother tonge in english, no stupid music,
    Really verry helpful.
    Thank you, (1)
    its just a copy from Otto, but exactly what I wanna say

  • @arjieparjiie
    @arjieparjiie ปีที่แล้ว

    Hi there! Great video, thank you. Wanted to ask, how did you determine an appropriate capacitor for the PCA9685?

  • @isbestlizard
    @isbestlizard 3 ปีที่แล้ว

    Thank you for the tutorial, that was super useful, going to play with a pca9685 :D

  • @chinmoytahbildar3278
    @chinmoytahbildar3278 6 ปีที่แล้ว +1

    always waiting for your video sir......very nice

  • @kinangeagle133
    @kinangeagle133 3 ปีที่แล้ว

    Finally
    Something related to DIY FFB wheels spoken in English

  • @invenioengineer
    @invenioengineer 3 ปีที่แล้ว

    Excellent videos as always. Thanks for producing these.

  • @Lazybeam
    @Lazybeam 5 ปีที่แล้ว +2

    Great tutorial, Thanks!

  • @Felipe-53
    @Felipe-53 4 ปีที่แล้ว

    Sir, your channel is aewsome. Hope you can keep bringing us high quality content like this. Thank you!

  • @facetegger
    @facetegger 6 ปีที่แล้ว +2

    nice vedio .
    what is the software you use in editing this vedio

  • @pitudefe
    @pitudefe 6 ปีที่แล้ว

    I would like to know if there is a possibility to measure the resistance (Force in newtons) that the servos suffer at certain moment without taking care of the angle. I don't know if the servo have to supply the same voltage or current for the same position (angle) suffering different external forces. Either in dc or brushless servos. I'm trying to look the manner to measure tis external forces. Thank You!!

  • @simonharrison6447
    @simonharrison6447 5 ปีที่แล้ว

    Fantastic! Really useful video, thanks.

  • @samuellazcano9189
    @samuellazcano9189 3 ปีที่แล้ว

    Great instructions! I have interested in this since I found some projects using Arduino. And I am more interested in building a tracking device to control a pan and tilt motor. If you have a chance or time to help me I can explain in more detail. Thanks

  • @werwio09
    @werwio09 6 ปีที่แล้ว

    Hi great tutorial ! what about digital servos ? is this video also for digital servos

  • @mpeladestube7031
    @mpeladestube7031 3 ปีที่แล้ว

    omg ,you are the best ,thank you so much

  • @gzl527
    @gzl527 5 ปีที่แล้ว

    This is high quality. Thank you.

  • @9407zeek
    @9407zeek 3 ปีที่แล้ว

    great video! but how much voltage the mini DC motor works?

  • @wonkaytry
    @wonkaytry 3 ปีที่แล้ว

    Very good explanation!

  • @cickislav
    @cickislav 3 ปีที่แล้ว

    Svaka čast Dejane! :)

  • @electronicsafrica
    @electronicsafrica 6 ปีที่แล้ว +2

    thanks for sharing!

  • @nibemo99
    @nibemo99 6 ปีที่แล้ว +1

    Excellent video!

  • @ManpreetSingh-vq1py
    @ManpreetSingh-vq1py 5 ปีที่แล้ว +1

    I would like to know which software you are using for Animation?

  • @user-di4bt7qu2i
    @user-di4bt7qu2i ปีที่แล้ว

    Excellent video. Thanks for posting!

  • @Rajeshkumar-lf8bk
    @Rajeshkumar-lf8bk 6 ปีที่แล้ว

    Yes I am searching for this video

  • @sexyfatbastid
    @sexyfatbastid 6 ปีที่แล้ว

    Hey,...at the beginning of this clip, you have an animation of a piston-style motor in the "M" of "Mechatronics" & the thing goes up & down, slowly. Where can I get a tiny motor like that? & What do I search for? Please help me.

  • @knowall5792
    @knowall5792 5 ปีที่แล้ว

    Just like other tutorial, it is compact, deals with lots of issues, and well scripted. My knowledge level does not permit grasping fully. I have to come back again for future reference. And yes, his English is easy to understand.

  • @BenM0
    @BenM0 6 ปีที่แล้ว

    Awesome !!! Thank you so much

  • @akuaagyeman9588
    @akuaagyeman9588 6 ปีที่แล้ว

    I was wondering if you could help me with how to control 4 wheels using an Adafruit Motorshield. I need to go fwd for 600mm, move sideways by the same amt, rotate 180deg and move fwd by 600mm. I am using an uno with omniwheels attached to car chassis. i can move fwd/bak and stop.

  • @DuckBros58
    @DuckBros58 3 ปีที่แล้ว

    I wonder if you can use this to teach make a bigger Servo for a bigger kinds of robots

  • @laliborio
    @laliborio 6 ปีที่แล้ว

    great explanation

  • @14types
    @14types ปีที่แล้ว

    what control circuit with h-bridge is used in servo? thats what i cant find in such howitworks videos.

  • @EasyHomeMadeProjects
    @EasyHomeMadeProjects 6 ปีที่แล้ว +10

    Excellent!

  • @franciscourena5636
    @franciscourena5636 2 ปีที่แล้ว

    Great presentation

  • @user-ew4zm8hr8f
    @user-ew4zm8hr8f 2 ปีที่แล้ว

    thanks for this video...

  • @rolandosalgado1552
    @rolandosalgado1552 6 ปีที่แล้ว +1

    Very nice video, !!!!!

  • @t_sixtyfivex_wing8787
    @t_sixtyfivex_wing8787 3 ปีที่แล้ว

    WOW THANK YOU SO MUCH

  • @AeroLens_by_SP
    @AeroLens_by_SP 4 ปีที่แล้ว

    Could plz make video how to build app to control(on and off position) remotely(by sending sms)the ball valves with servo motors ?

  • @chickenz4604
    @chickenz4604 4 ปีที่แล้ว

    Hello Sir, is it possible to apply this PCA using matlab? I tried in matlab but the PCA library is not provided, it only provide Adafruit Motor Shield V2

  • @ratovoeric4908
    @ratovoeric4908 4 ปีที่แล้ว

    High teacher!thank u

  • @StrsAmbrg
    @StrsAmbrg 3 ปีที่แล้ว

    With yours, what is the different between servo motor and stepper motor? What I understand about servo motor is that it can detect the best signal, so it used to trace the best signal like in antenna parabola. But what you did here is to turn the servo to a specific direction, which it mostly like in stepper motor.

  • @igorradevski9147
    @igorradevski9147 6 ปีที่แล้ว +1

    Bravo Dejane!

  • @Steve-xg7zy
    @Steve-xg7zy 4 ปีที่แล้ว

    can the dc motor replaced by larger dc motor so it can have more power?

  • @matthewanderson2594
    @matthewanderson2594 3 ปีที่แล้ว

    I really appreciate how he says that he bought a cheaper copy instead of acting like it’s the actual thing

  • @grannysvids
    @grannysvids 5 ปีที่แล้ว

    Can you show how to control speed with the Pca9685

  • @bayroncastillo7653
    @bayroncastillo7653 5 ปีที่แล้ว

    nice job bro

  • @galveno6892
    @galveno6892 3 ปีที่แล้ว +1

    Just a question,, if we replace that small motor with a bigger motor. For more power... How can we give more power supply like 50w.....
    OK can you provide a video by which we can convert a big DC motor to servo like this...having bigger and more power

  • @manhme
    @manhme 4 ปีที่แล้ว

    I like you ..thanks admin

  • @adelzarifi3235
    @adelzarifi3235 6 ปีที่แล้ว

    Very nice thanks sir

  • @AliIsmaeltyphoon
    @AliIsmaeltyphoon 4 ปีที่แล้ว

    1,000 likes for this very good tutorial.

  • @bennarabdelali
    @bennarabdelali 6 ปีที่แล้ว +1

    hello can tell me how you made this video plz

  • @mohanh7734
    @mohanh7734 6 ปีที่แล้ว

    Outstanding demo bro. Great job. Please publish a video to design a humanoid robot using more than 20 servos and see how it can walk and perform various activities.

  • @franciscourena5636
    @franciscourena5636 2 ปีที่แล้ว

    I have a question
    * introduction
    I am building an autonomous sea boat
    The servo will handle the rudder for direction purposes
    However, the sea waves may steer the boat trajectory forcing the servo to constantly rotate the rudder to maintain the autonomous trajectory
    ** Questions
    1. When the servo receives a signal to change arm position, does the battery feeds power to maintain that arm at that position ? or the servo only consume power to place the arm at the position that was requested by the signal?

  • @x-tech3440
    @x-tech3440 6 ปีที่แล้ว +2

    very good video :)

  • @abbv2x
    @abbv2x 6 ปีที่แล้ว

    Very good tutorial. Question: Are you using 50Hz because of your location (Europe or other) or are you using 50Hz just for ease of calculating PWM? In North America we are using 60Hz but I'm wondering if this is not important

    • @HowToMechatronics
      @HowToMechatronics  6 ปีที่แล้ว

      Thanks. Well no, the main power doesn't matter, 50Hz PWM signal is just a standard for these type of RC or hobby servos.

  • @arletpaz8010
    @arletpaz8010 3 ปีที่แล้ว

    is there a reason why you didn't show the second instance you created for the second servo down in the loop? i mean i dont even see this particular sketch in your website whats going on ?

  • @frederikdecroos3810
    @frederikdecroos3810 ปีที่แล้ว

    first let me say it's a wonderful video and well explained.
    But when i try it at home it doesn't work
    I use the same cheap servos (mg996R), and an arduino mega 2560 and also the pca9685 but i whatever code I try nothing works.
    According to the arduino formum it is because i have "fake sevo's".
    but i see you can make the servos work, so i also tried your code but i get an eror at line 27 something with init(B000000) what can i do about this ?
    (I'm not very good at programming myself)
    thanks in advance

  • @mohamedeldaly2709
    @mohamedeldaly2709 5 ปีที่แล้ว

    Hello! great video!
    Im curious, why do you need a separate power supply? The Arduino is 5 V and the servo voltage is 4.8-7.2 V.

    • @HowToMechatronics
      @HowToMechatronics  5 ปีที่แล้ว +1

      Yes, but the Arduino can provide only around 500mA of current, and the servos can draw more current. You can burn your Arduino if more current is drawn from it.

    • @mohamedeldaly2709
      @mohamedeldaly2709 5 ปีที่แล้ว

      Ohh makes sense. Thank you!

  • @danikki89
    @danikki89 5 ปีที่แล้ว +1

    Can u explain how to use servo motor in plc

  • @actyon20
    @actyon20 4 ปีที่แล้ว

    I love you. Thank you :)

  • @qusyairibadrulhisham5994
    @qusyairibadrulhisham5994 6 ปีที่แล้ว

    Good explanation.. but can you comment on the performance of the cheap servo?
    In this case, we know that the cheap servo is not very precise/not efficient, but how do we determine/verified it in data?
    Should we check the frequency of the PWM using oscilloscope and compare it with the actual degree the servo is turning? or is there any other way to verified the statement of ''cheap servo vs original servo''
    Thanks

    • @HowToMechatronics
      @HowToMechatronics  6 ปีที่แล้ว

      With these cheap servos even if they are the same models some of them might not position at the exact angle, let's say 0 degrees with the same 1.5ms pulse duration. For the the 0 degrees position might be 1.45ms. The good this is that as I said in the video you can manually test each servo and set different pulses duration for each 0, 90 and 180 degrees position. I guess that would be the only way to deal with this cheaper servos.

  • @arijitrj7648
    @arijitrj7648 5 ปีที่แล้ว

    can it be controlled in master and slave controll

  • @sureshrasika2887
    @sureshrasika2887 5 ปีที่แล้ว

    please send to me that software when you used for this programmer

  • @Andratos95
    @Andratos95 3 ปีที่แล้ว

    Hey, could you explain exactly how one could go about determining the exact pulse widths which correspond to 0° and 180° (in the case that they're not the usual 1ms-2ms)? Is it just trial and error? If I set a pulse width that is lower than the allowed pulse width for 0°, would I damage the servo? Thank you!

    • @friedtofu5309
      @friedtofu5309 2 ปีที่แล้ว

      that pulse is provided in the servo's datasheet

    • @friedtofu5309
      @friedtofu5309 2 ปีที่แล้ว

      actually, its not exactly 1ms for the 0 degree, you can set the lower a little bit till the servo doesnt change it's angle anymore. However, Users usually want to set the Horizontal axis as 0 and 180 degree.

  • @akroutsamo
    @akroutsamo 6 ปีที่แล้ว +2

    Hi Dejan how are you,
    How about you make a tutorial for home automation using a simple GPRS/GSM module to activate bunch of relays via sms .. and to know the system state at any time 😎😉

    • @HowToMechatronics
      @HowToMechatronics  6 ปีที่แล้ว +2

      Hi there! Yeah, that would be cool project, and sure I will do it in some of my next videos. Cheers! :)

  • @whysthat2877
    @whysthat2877 6 ปีที่แล้ว

    Man id love to talk to u. Im a novice when it comes to electronics but have an idea for an invention using only a remote control servo. But im not sure how to go about making it work and dont want anyone stealing my idea

  • @visionaryrobotics4065
    @visionaryrobotics4065 5 ปีที่แล้ว

    can you give me a link to the 5v power supply?

  • @Livefreeman
    @Livefreeman 5 ปีที่แล้ว +6

    I am planning to build a robotic arm. I want to use it to do 3d printing, and other tasks. I just want to know why a servo motor is used instead of a stepper motor. is there an advantage to use a servo motor over a stepper motor? from my understanding, I know stepper motors have very accurate movements because they move in small steps, so how come many robotic arms are made from servos where it's better to be built from stepper, maybe I am missing something, can someone shed some light. thanks

    • @philipwolf3619
      @philipwolf3619 5 ปีที่แล้ว +1

      eXACTLY !! GOOD QUESTION

    • @TMS5100
      @TMS5100 5 ปีที่แล้ว +4

      you need positional feedback for a robotic arm to work properly. a stepper can easily lose steps and your arm will destroy itself. also, steppers typically have very low torque. if you add gearing and encoder feedback to your stepper, then you have just built a servo. so might as well just use a servo!

  • @mertgunes9854
    @mertgunes9854 5 ปีที่แล้ว

    Thank you

  • @user-fb8pu3uo3x
    @user-fb8pu3uo3x 5 ปีที่แล้ว +1

    So mazing👍👍👍👍👍👍👍👍👍👍👍👍

  • @sayyadabid5901
    @sayyadabid5901 6 ปีที่แล้ว +3

    Awesome

  • @sushantsarvade6699
    @sushantsarvade6699 6 ปีที่แล้ว

    pls make video on accelerometer interfacing with arduino to control game gesture on computer

  • @urano4810
    @urano4810 3 ปีที่แล้ว

    Anyone know possible causes for a servo motor showing an "overvoltage" fault?

  • @sammy5576
    @sammy5576 6 ปีที่แล้ว

    what CAD do you use

  • @MeshesCrafts
    @MeshesCrafts 5 ปีที่แล้ว

    Like the Video, though it was difficult to read the white text easily on a white background

  • @LvvLvvLvvw
    @LvvLvvLvvw ปีที่แล้ว

    Anyone knows what is the thread size of the servo motor arm mounting?

  • @danieljohnsopardenilla997
    @danieljohnsopardenilla997 3 ปีที่แล้ว

    How do you rotate servo 180° in reverse?

  • @MOHITKUMAR-xe7bg
    @MOHITKUMAR-xe7bg 2 ปีที่แล้ว

    Excellent

  • @hayel2015
    @hayel2015 6 ปีที่แล้ว +1

    Great. Work 😙 😙 😙

  • @johnkoester7795
    @johnkoester7795 3 ปีที่แล้ว

    I’d like to make my own servers for the robot I’m making How can I do that?

  • @ferdinandotriulzi7132
    @ferdinandotriulzi7132 5 ปีที่แล้ว +1

    Usefull

  • @imstudent1979
    @imstudent1979 5 ปีที่แล้ว

    Why potentio meter is use in servo motor?

  • @reinaldoportuondo6118
    @reinaldoportuondo6118 5 ปีที่แล้ว

    hola estoy interesado en el circuito del cervo.

  • @pornesianparapio6897
    @pornesianparapio6897 4 ปีที่แล้ว

    does the pulse always be 20ms??

  • @ya_boi_edupez
    @ya_boi_edupez 5 ปีที่แล้ว

    can 12c control lcd aswell

  • @johnedwardreyes3183
    @johnedwardreyes3183 5 ปีที่แล้ว

    What arduino code will i use to pause the rotation of servo for a period of time. Like i want it to rotate 90 degrees for 10 secs and back to 0 degrees after that.

    • @michaelpeter5290
      @michaelpeter5290 5 ปีที่แล้ว

      In his code in the video he uses a delay function. so code is.... delay(1000) ; This will delay for 1000 milliseconds. 1000 milliseconds is 1 second

  • @nitinjaware4185
    @nitinjaware4185 4 ปีที่แล้ว

    How to control 360 servo motor in increase 45 degree sequence???

  • @ddee2501
    @ddee2501 3 ปีที่แล้ว

    PCA9685_ServoEvaluator' does not name a type
    I get this error, can you help ?

  • @robstorms
    @robstorms ปีที่แล้ว

    thanks