Using Servo Motors with Arduino

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

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

  • @normanhall5902
    @normanhall5902 2 года назад +41

    I’am 74 & can listen & learn from you 24 hrs a day & learn & it sinks in i was a commercial mechanical engineer for year , never got involved with electronics which is my hobby know some people you listen to it goes right over your head. You are good thank you Norman.

  • @QuintBUILDs
    @QuintBUILDs 3 года назад +255

    This was unlike anything I've seen on RUclips. Came for a refresher on arduino servo control and got SO much more! Content like this has the potential to replace the university system. Will be watching more of your videos and encouraging others to watch. Well done sir.

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

      Very useful. Thank you!

    • @zackhenderson2392
      @zackhenderson2392 3 года назад +14

      The majority of educational content is capable of replacing the universities. Hell some places flat out show you youtube videos as part of the class. Only difference is you're paying for it :)

    • @rotterdamtv6378
      @rotterdamtv6378 2 года назад +2

      @@VioFax superior intellegence?
      Lol so funny

  • @Bemoldiyezoglu
    @Bemoldiyezoglu 19 дней назад +1

    Forget any video you watch This is the best video ever made about servos. Thanks

  • @myvideo7748
    @myvideo7748 6 лет назад +108

    This guy makes the most comprehensive tutorial ever! He even explained each line of the code! I have learned a lot, thank you so much!

  • @job8251
    @job8251 6 лет назад +235

    I haven't seen the full video yet, but I really appreciate what you're doing. Your style of teaching is very clear, calm and easy to follow.

    • @AlvaroLuizTrentini
      @AlvaroLuizTrentini 3 года назад +2

      I totally agree!

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

      I was literally just thinking, “this guy gets it, he’s not talking like i already know what he’s saying”. This is a huge problem when it comes to more advanced stuff. The youtubers always over-estimate how smart i am😂

    • @andreamitchell4758
      @andreamitchell4758 Год назад +1

      @@AlvaroLuizTrentini his tutorials are horrible and leave ouit many critical steps, there is not even any servo category in y IDE under examples at all he also forgot to tell yout o set the board in board manager and the comport first

  • @alreqeb_productions
    @alreqeb_productions 6 лет назад +5

    I have always believed that young people are the best to explain sth to me till I saw your channel & realized why experience really matters...
    You are the best ever...

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

    I don’t normally comment on videos but this time I’ll make an exception. Your presentation style is spot on. Clear and calm. You also don’t do what every other educational video does and expect the viewer to know everything. Usually watching an educational video just starts a long process of watching other videos to understand what is happening in the original. Thank you very much!

  • @roberthatfield8966
    @roberthatfield8966 6 лет назад +12

    Another example of an absolutely brilliant and concise presentation of exactly the information people need to understand the topic. I appreciate not only the obvious work you put in to researching the broad variety of possible applications, but also the visual aid presentation and video editing necessary to bring it all together. Keep this up and your library of videos is destined to become the be-all and end-all of youtube workshop references.

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

    I am 90% into a DIY Eggbot. The servo that lifts the pen is kicking my butt. The video is comprehensive and I have to say the graphics are very polished. Thank you for sharing your knowledge. Thank the people that help you produce this content as well.

  • @HritikJain
    @HritikJain Год назад +2

    As a beginner, I can say this is the best channel which offers such clearity for doing things

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

    By far one of the very best electronics teachers out there. Clear and concise without any ‘greater than though’ attitude. I beg anyone interested in electronics to subscribe and support this incredible resource.

  • @larrybud
    @larrybud 2 года назад +3

    Nice introduction. For others, in his initial code at 17:00, there's no need to "sweep" each degree. You could simply write 0 to the servo, wait a bit, then write 180, wait a bit, and loop back to 0. 3 or 4 lines of code.

    • @noobdernoobder6707
      @noobdernoobder6707 29 дней назад

      There is a difference. The servo would move full speed from one position to another. with the sweep it moves slower which was intended for showcase reasons.

  • @olavodias
    @olavodias 3 года назад +2

    At 40:58 you say "I hope you learned something about server motors". You gotta be kidding, I've learned A LOT, I mean, really, A LOT. I'm very thankful for your video. You are the best.

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

    I have not seen such a comprehensive , data rich, lucid and informative video tutorial before. I would like to thank you very much for your effort from the bottom of my heart. At the end of the tutorial you feel amazed at what you have learnt from scratch. I would like to know the details about constructing the robotic arm that you used to demonstrate the working of PCA9685. I am an Electrical Engineer and have interest in Arduino Projects, which i keep doing for my kids school projects. Thank you once again.

  • @paulgalvinauthor
    @paulgalvinauthor 6 лет назад +23

    This is really high quality stuff! I really enjoy watching these videos. I liked seeing how you used the oscilloscope to show PMW. I "got it" without that, but it really hammered home what is happening there.

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

    i was searching for a channel like this where arduino is taught comprehensively...found it 2 years late but glad i found it ......will surely learn a lot from you sir.

  • @schnasndasn1504
    @schnasndasn1504 8 месяцев назад +1

    Thank you so much, not just for this but for all the videos you made. Every time I start working on a project I start with some crappy 3 minute video an get stuck at some point. Then I watch one of your videos and the problems go away because your videos include all the necessary informations.
    Happy new year! Keep up the excellent work! Greetings from Germany :)

    • @Dronebotworkshop
      @Dronebotworkshop  8 месяцев назад

      So glad to hear that you find my videos useful, thank you so much!

  • @cliftonsmith8269
    @cliftonsmith8269 2 месяца назад +1

    excellent video! one thing I've never found on the internet is a tutorial explaining how to use a serial servo (eg. Feetech scs0009) with Arduino. This type of servo can report temperature and force levels back to the microcontroller and would be a good thing to have when designing robot arm grippers where you only want to apply a limited amount of force when gripping an object. If you ever have the chance to work out the Arduino integration, this would be a useful tutorial

  • @yarachenchad5682
    @yarachenchad5682 5 лет назад +2

    I started watching this video at two times speed but then I needed to slow it down. But after listening at two times speed I can now only tolerate watching this video at 1.5 speed. Great video very informative and through!

  • @adultingishard
    @adultingishard 5 лет назад +29

    Do you have a background as a teacher? Your teaching style is absolutely fantastic.

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

    Great presentation! I'm a retired EE 10 years of Arduino experience. I've seen these RC type servos before but never used one. My experince have been with larger DC motors. I'm currently working on an Arduino based cuckoo clock, these will work great thanks.

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

    Great video, very clear. Thank you very much for speaking slowly and clearly, it is really appreciated for not native English speakers.

  • @wernerw.1328
    @wernerw.1328 3 года назад

    I´m a beginner and I´ll create an "Useless Box". Your videos help me to do it - and I´m so thankful that I subscribed your channel.

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

    I love the calm approach too. Some people suffer from a slow curve. The speed of presentation is just right.

  • @ericseidel4940
    @ericseidel4940 8 дней назад

    One thing : Arduino Nano and most of the new Arduinos can handle 12 bits analog inputs, but their default setup is 10 bits for obvious compatibility reasons. So if you want to keep the input on 12 bits resolution, the same as the output board resolution, just add the "analogReadResolution(12)" command in your setup and you can remove the map calculation. The R4 and Mega can even read a 14bit resolution.

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

    Incredible how helpful this video is. Needed a refresher on servos, building a remake of the the classic board game “Dark Tower” which featured a tower with an electronic spinning window

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

    I am very grateful to you for your lessons, especially for your excellent clear and distinct English

  • @mrt4091
    @mrt4091 5 месяцев назад

    in a pinch you can turn a standard 180 degree servo into a continuous 360. takes a few minutes just glue the potentiometer and remove any mechanical stops. there's some good RUclips tutorials on it.
    really helped in my project. I needed to drive a gear system and 360 servos weren't compatible with the RC plane receiver I was using to control the servos. (9 gram micro servos)

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

    greetings from morocco sir.....im not an engineering student and still can understund you well...thanks to your exeptional style of teaching

  • @Scanito
    @Scanito 4 года назад +17

    Thanks sir for another great, extremely clear and friendly lesson/demo on servo motors for Arduino. You are the best!

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

    Very thorough. I really appreciate you explaining everything in the code instead of breezing over it like most do.

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

    First half was pretty basic and explained in depth, second half was a big step up, really liked it :)

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

    I was not ready to try servo with PCA9685 (since datasheet says it is for LEDs) till i saw this, great tutorial. I am going to watch all of your videos now :)

  • @Darphi01
    @Darphi01 6 лет назад +12

    Thanks so much for this very very good tutorial. I knew nothing about how these servos worked and now I'm on my way to starting my first project with them. :-)

  • @leonix-m4l
    @leonix-m4l 4 года назад

    As a beginner I learnt a lot from ur teaching and I am planing to do a project on 4 legged mini robot so plss do come up with more videos or tutorials so that beginners can learn easily...... Very good teaching👏

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

    Great Video, But a little tad-bit to add.
    When using the Servo Library included into the IDE, a PWM pin is not required to operate the servo.
    The Servo library simulates a PWM signal using the onboard timers on the arduino.
    I run 3 servos from the A0-A2 pins on a homemade robot to keep all my valuable digital pins available.
    Cheers!

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

    I love you video is because is very explanatory and at a speed I like. My goal is to create a Spiderbot with 8 legs. And you gave me the answer. I will keep studying with your others video until I reach the knowledge to complete my electronic project.
    Thank you very much!!!

  • @vangelis.gavalakis
    @vangelis.gavalakis 5 лет назад +6

    I honestly appreciate your work in these videos. This is the best channel in it's category I've ever come across!

  • @75mechanic
    @75mechanic 8 месяцев назад

    Very informative and easy follow video. I'm starting to learn Arduino and build a small robotic arm with 4 servos and was unable to find out how to control servos before I came across your video. Thanks for sharing your knowledge, its great for my learning.

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

    Sir, you are the only person teaching at this level on the youtube that is easy to comprehend. Can you make a video about controlling servos on a pca9586 board using an arduino connected by bluetooth to a phone? I am about to build a robot head and have no idea of how I could use arduino to move it, so I really would appreciate your help. Thanks in advance.

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

    Love the super light smirk he makes at 27:50 "..if you need to control more than 900 servo motors with an Arduino..." LOL 😂

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

    Thanks a lot for the video. I am trying to build a remote device to control the amount of oxygen coming out of his tank (needs separate oxygen because of health issues). It is a simple rotating lever, which should be changed with the servo motor to a certain postion via bluetooth with his mobile phone, since it can be frustrating if you sit 10m away from the tank but you need more oxygen. Did not quite figured it out, put this video helped a lot!

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

    That filled some 'holes' in my understanding of servo datasheets etc. Much thanks

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

    ड्रोनेबोट workshop site videos are very nice, explains in a most systematic way..

  • @MM.x.00
    @MM.x.00 3 года назад

    Thank you so much for making this, this is exactly what a rusty beginner like me needs. Seriously, thank you

  • @Real-Hoodie-Guy
    @Real-Hoodie-Guy 2 года назад

    Omg thank you I could not get the servos to work till I found you video. 10/10 Will subscribe.

  • @abdelaaliaitmbarek8680
    @abdelaaliaitmbarek8680 6 лет назад +15

    I liked the video before watching it, I was waiting for your new videos, your channel is the best I ever seen, thank you so much :)

  • @greggtracton2588
    @greggtracton2588 8 месяцев назад

    Very nice video. Some improvements:
    - watch the camera when you frame a shot; there were a few shots where you either block what we need to see or else the important parts are out of view.
    - You speak of scaling up using the PCA9685 to multiple servo motors but don't talk about the scalability of the I2C serial communication, which I'd like to know if I'm going to create a multiple servo design. I'd want to know if I set an angle (pulse width, actually), is the library smart enough to send the signal only once.
    - In the last demo, I wanted you to manipulate all 4 potentiometers at once to show that there's no lag and that they don't get confused.
    - I want to see safer code that imposes limits on the pulse_width calculation to make sure that they are in range and won't hurt the hardware. And also options on what the software should likely do if the limits are exceeded, such as clamp it, light up an error LED, or ignore the value.
    - Please explain what "start()" does, above and beyond what the object's construction does. It's doesn't seem necessary to the design, that is, you didn't justify it in the video.
    - "controlIn" and "motorOut" variables should perhaps be named "controlInPin" and "motorOutPin". And what does the 100000 factor do in the equation?
    - where are good sources for servo power if I don't have power on my bench? (Or, like most hobbyists, don't even have a bench?) You don't have to explain that fully but a reference to another video would go a long way to reducing my learning curve.

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

    One of the best teachers on youtube!Hands down!

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

    Super helpful video! A small correction though: Torque is not measured in the units of kg-cm (or kg-length). It is measured in Newton-meters or Newton-[length]. Kilograms are not a unit of weight but a unit of mass, while Newtons are the unit of weight in the metric system.

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

    This video is just what I needed to give me a head start on my DCS A10 sim pit. I am using servo motors to replicated gauge movements in the software and there are over 30 instruments in total. It would have been a nightmare to individually wire each and every servo . Now I can install the servo board on the dash and only have to wire the communication lines to it. Thanks so much!@

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

    The best I’ve seen on arduino and servos

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

    I am a beginner, but I would like to disagree with the explanation at minute 20:40: int val isn't what we read from the pot. At that moment into the programming it's just setting up an integer which could be for anything. A few lines later we actually declare it to be as what was read from the potpin. Please correct me if I am wrong. I think this "splitting hairs" explanation is important for beginners. Thanks for your video

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

    this the most detailed Servo motor video out there, which also explains what each pin to beginners like me. thank you so much.
    1. would it possible for you to make a video of how to control multiple servos at once rather than running one at a time using PCA9685?
    2. Also how to mod this same servo for 360-degree rotation so we can control using PCA9685

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

    Thank you so much for your great video. Soon I will do it myself first and upon successful operation will teach the same to my students at the class. I am Harry from Mareeruk Chiangrai Primary School, Chiangrai Thailand. Wish you Good Luck sir.

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

    This tutorial about servomotor was the best that I've ever seen

  • @jerittwilliams
    @jerittwilliams 5 лет назад +2

    I've watched several of your videos. Very easy to follow and good information for students of all ages and levels! Thanks for sharing!

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

    Using this video to help with a final year project in university. Thanks for taking the time to make this video very clear and concise, it has been a massive help! :)

  • @user-dn9ks2oy1f
    @user-dn9ks2oy1f Год назад

    thank you for explaining servo motor I learned many things after watched this video

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

    Another excellent video. Once again I know have an idea for servo's and the courage to have a go! I have no idea how you do it but I learn more in 45 mins watching your video than I do with hours of researching myself. Keep up the good work! Right, now to subscribe to the newsletter.

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

    DUDE YOU SOLVED A LOT OF PROBLE I GET DRING SERVOPROJECTS THANKS SIR REALLY

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

    Hi Bill,
    I've just got around to watching your Servo video - another educational great. Thank you so much for posting this. It will have saved me alone many days of frustrating research and messing about.

  • @TuanTran-xi4vs
    @TuanTran-xi4vs 2 года назад

    Thank you very much for your video. Your teaching style is very easy to understand.

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

    Thank you so much for your clear and relaxed explanations, now i really start to understand how it all works,

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

    You are a great methodic teacher. I a m so so happy. God bless you

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

    Thanks very much for creating comprehensive high class tutorials.

  • @MikeM-of2if
    @MikeM-of2if 6 лет назад +15

    I found you a few months ago and absolutely love your channel! Thank you for putting all the time and energy into your videos, I know it is time consuming. I am looking forward to putting all this knowledge into use sometime soon! Thanks again and please keep up the most excellent work! Are you an instructor by chance?

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

    I truly wish you had spent a tiny bit more on the PCA9685, perhaps a sweep for the servos using the map function. People used to controlling servos using degrees are completely lost, it maybe it's just me. Thank you for these videos.

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

    Very informative. Enjoyed and gained a lot from that, have kits and need to make time to play. Thank you for your efforts.

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

    One of the best video lectures I have seen. The explanation is very clear and structured. The graphics part is very well done. Both the hardware part and the code part are explained very clearly. Thank you very much Sir!

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

    Just absolutely awesome,... I appreciate the simplicity and directness....so eell done

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

    Thank you for posting these knowledge videos! Hobbying into electronics in my spare time outside of my busy work life.

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

    Great video! Answered every question I had and several I didn't know I needed. Appreciate it!

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

    Cool video thank you. I would love a short video of your workbench/shop. It look so organized and neat. If you could tell us how you made it, what you've built into it (I see a really convenient power and connection panel) and the rest. Thanks.

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

    thank you sir you clear my concepts about servo and code of arduino really appreciate what you are doing for us love it i am student of university and this video your teaching style is great thanks again.

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

    This is a masterpiece of education! Fantastic work demystifying servo motors!!!! Thank you so much!!!

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

    I was wondering how people controlled more then a few servos from and Arduino. Thank you as always for your classes. If I were still an instructor, your classes would be mandatory watching for my class. :)

  • @suomynona7261
    @suomynona7261 5 месяцев назад

    Thank you for this video! Very great explanations, easy easy to watch and understand!

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

    Hi your are super good teacher.Keep it up

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

    also you can use a joystick in place of a potentiotmeter in the knob exsperiment

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

    Your videos are fantastic. Extremely well explained and demonstrated. You should be a teacher. This will help me in my Lost In Space Robot build I am trying to control with Arduino.

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

    Excellent explanation. Thank You very much!

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

    Thank you , you provide great information clearly and simple to understand

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

    Very nice refresher. Going to make some automated blast gates for dust exhaust system. Shop bought ones are $199 each. I have most of the parts laying around and getting a laser cutter anyway so... challenge accepted!

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

    Thank you very much. This really helps me fully understand servos

  • @thomb.9013
    @thomb.9013 3 года назад

    for my exosuit I wanted an easy to control piston, and I think a servo can be combined with a threaded shaft to make a nice piston! so I will use a continuous rotation servo and hook it up to a arduino to exten/retract the piston!

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

    The best electronics tutorial video I have seen. Keep up the good work.

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

    Thank you So much you are great teacher

  • @asoormalaian1347
    @asoormalaian1347 5 лет назад +1

    Its very useful for beginner and also for future guidance

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

    Sir you are a legendary hero!!!! I love your videos!!!

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

    Perfect and easy explanation

  • @rckevartmusic533
    @rckevartmusic533 7 месяцев назад

    Your the daddy! I've learnt so much- thanks.

  • @nuclearlion
    @nuclearlion 5 лет назад +1

    This is excellent, jumping in for hobby and work and loving this already!

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

    Thank you very much for this video. You are a very good teacher. Your explanations are clear and concise, you take us step by step, explaining as you go both verbally and visually. I knew nothing about servos beforehand, except for the word. Now I have a head full of ideas. It is the same with your other videos. Thumbs up (using my native liveware servo) and subscribed. I enjoyed your dry joke at 27:44

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

    Great explanation, with practicals

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

    Incredible servo introduction video. Thankyou so much! Subscribed!

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

    You're videos are really good, in my opinion your channel is one of the best when it comes to electronics. Thank you!
    But I would like to give a note to something: torque is defined by the (force applied) times (the distance of the point where the force was applied and the rotation axis), when the angle between then is 90°. In the servo specifications part of the video, you said that it is measured in terms of kg-cm, but I think it would be more precise if you use kgf-cm, which is a unit of force and distance.

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

      H'actually, Torque (t) is the Cross Product of the vectors: Force (F) and Distance (r) where t=Fxr, x being the Cross product operator, and t is measured in Newton-metres!

  • @shaunsomaru4524
    @shaunsomaru4524 5 лет назад +7

    Have not watched the full video as yet but its great so far, you teach clearly. Thank you sir for making these videos.. You have a new sub

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

    You have described them very well !

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

    Hi Bill,
    Excellent! Good general information for every E.E.
    P. W. M. = Pulse Width Modulation.
    Thanks!