Control Large Gearmotors with PWM & Arduino

Поділитися
Вставка
  • Опубліковано 2 сер 2024
  • Pulse Width Modulation (PWM) is the ideal method of controlling large DC gearmotors, but driving these motors can often be challenging and expensive. Today I will show you an inexpensive and efficient H-Bridge motor controller - the Cytron MD10C.
    I’ll also show you how raising the PWM frequency can make your motor controller design far more efficient.
    Article with code:dronebotworkshop.com/dc-gearm...
    More articles and tutorials: dronebotworkshop.com
    Join the conversation on the forum: forum.dronebotworkshop.com
    Subscribe to the newsletter and stay in touch:dronebotworkshop.com/subscribe/
    We have used PWM to control small DC motors many times but what happens when you need to control a bigger motor? The L298N is the usual “go-to” motor controller but it doesn’t have the current capability to handle anything that draws over 3.5 amperes., so it won’t work with large motors.
    Most large H-Bridge controllers are expensive, many cost as much or even more than the motor they are driving. But there are a few inexpensive options, and I’ve got a great one for you today.
    The Cytron MD10C is a single-motor H-Bridge controller that can support motors that draw up to 13 amperes continuous, with peaks of up to 30 amperes! Amazingly this device is not only cheap, it also is so efficient that it doesn’t even require a heatsink to source those impressive current levels.
    It is a very easy controller to use with an Arduino. I’ll show you how to hook it up as well as how to code for it. But it doesn’t stop there.
    We’ll put our motor controller to the test and observe its performance. I will then “fine-tune” it to run a LOT more efficiently, and I’ll demonstrate its capabilities by driving a 10 Kg (22 lb) weight around the room!
    We’ll then look at an improved Arduino design to control our DC gearmotors.
    Here what we will cover in today's video:
    00:00 - Introduction
    03:04 - H-Bridge Design
    04:57 - Cytron MD10C
    08:03 - Arduino PWM Sketch
    13:57 - Arduino PWM Test
    18:25 - High Frequency PWM Test
    23:11 - First Load Test
    26:13 - Arduino High Frequency PWM Sketch & Test
    If you haven’t subscribed to the UA-cam channel please do it so that you won’t miss anything.
    Hope you enjoy the video!
  • Навчання та стиль

КОМЕНТАРІ • 303

  • @boxingfan5742
    @boxingfan5742 3 роки тому +37

    I'm so glad I found you on UA-cam. I'm in my 50's and had to put my programming and robotics interests on the back burner for too many years to be able to recollect the technique specifics. You're a life saver; particularly as I'm trying to pivot in my career. Your tone, pace and thoroughness are perfect. I just can't overemphasize how grateful I am to find your channel and for what an outstanding job you do. ✌

    • @lucasrem1870
      @lucasrem1870 2 роки тому

      All he says is use mosfet transistors, they are faster.
      Programming these logic control board, i do suggest, use LEGO mindstorms first, before you start coding these.
      If your good enough, use his scripts!

    • @churnejii57
      @churnejii57 Рік тому

      anybody kno2 that motor spec ?

    • @tinkerpertao8383
      @tinkerpertao8383 Рік тому

      i think i found workbotshop about 2years ago. I would like to second your comment. Busy working & time goes by fast. I'm over half a century yrs old and still learning. Last, I would like to thank Mr. WorkBotShop a lot too.

  • @fabiolus2007
    @fabiolus2007 3 роки тому +12

    I can't express enough how much I admire how well you explain details that are necessary to know.

  • @joshuamadden2442
    @joshuamadden2442 3 роки тому +5

    This video was so incredibly helpful. I especially liked those camera switches very professional. Thanks for all the effort you put into this will be watching and learning from all your videos.

  • @jlucasound
    @jlucasound 4 роки тому +5

    Love your videos. This particular one is close to my heart. Arduino, Robots, and the motor controller I just learned of. I think one of the best parts of your videos is your wiring diagrams. So easy to follow. Thank You, Sir! Interesting is the effect of different frequencies and that the Arduino can actually deliver them. What a difference in current draw. Batteries will last MUCH longer. Nice.

  • @hadireg
    @hadireg 5 років тому +2

    Excellent ! I'm grateful to all the folks sharing so kindly their knowledge and on top of that with this high quality! Thank you sir!

  • @Tri_3st
    @Tri_3st 5 років тому +2

    Thats awesome, i am looking forward too see your upcoming content! Really well produced video as always :)

  • @Inventor101
    @Inventor101 5 років тому +17

    Amazing video and nice channel👍

  • @wishicouldarduino8880
    @wishicouldarduino8880 5 років тому +4

    I found a DC to pwm kit I also got the cytron I can't wait to see how they work cytron seems really neat

  • @rusticagenerica
    @rusticagenerica 5 років тому +1

    Your work area is of a medicaly cleanliness. Stunning job.

  • @infinytower3317
    @infinytower3317 5 років тому

    Super great news! I am just beginning to watch the video, but it must contain tons of great contents, as always! Thank you so much!

  • @kinsgabil5004
    @kinsgabil5004 4 роки тому

    Love to watch and learn from you. I like the style you explain with demos and pics. Thank you

  • @ThiefKingBakuraX
    @ThiefKingBakuraX 5 років тому +43

    Quality content always

  • @newburypi
    @newburypi 5 років тому +1

    Thanks DB. I'm looking forward to the robot series, and hoping it gives me the insentive to get my fellow rolling.

  • @victorinborsciov6817
    @victorinborsciov6817 4 роки тому

    At last I found someone knowing what he is saying. Just for kicks I measured my Hitachi battery powered hand drill, starting current with no load reached peaks in the range10-15A, when loaded 30-35A. Good job!

  • @harleywang
    @harleywang 4 роки тому +1

    Excellent course. That's the course I needed for motor driving. Thanks a lot!

  • @MattyEngland
    @MattyEngland 5 років тому +1

    Thks for all the hard work making these videos, it's really appreciated.

  • @phil4110
    @phil4110 5 років тому +4

    Using a ramp with a change in slope by measured degrees would be a more accurate way to determine efficient torque versus frequency distortion. You'd need to secure that load and use higher traction wheels though. Great video and in depth knowledge. I'm completely new to this and I appreciate your simplified and detailed tutorials.

  • @alicegabriel1909
    @alicegabriel1909 4 роки тому +1

    Great video ! I always learn something new any time I watch your video ,keep it up .

  • @antonetrinh8662
    @antonetrinh8662 4 роки тому +6

    Sir, You are a wonderful teacher. Thank you.

  • @duncanmcgregor4973
    @duncanmcgregor4973 4 роки тому

    Realy good video. And covering exactly what I wanted to know. Thanks.

  • @patricioantonio4189
    @patricioantonio4189 5 років тому

    Excelente tutorial (como siempre). Felicitaciones y muchas gracias por sus enseñanzas.

  • @ProGamer-kr5tn
    @ProGamer-kr5tn 5 років тому +3

    I love your work setup!!

  • @VeryMuchBlessed
    @VeryMuchBlessed 4 роки тому

    Excellent! The comparison with the different frequencies was very cool. Thanks much. New subscriber here!

  • @hfe1833
    @hfe1833 5 років тому

    Just in time , for my project, so inspiring

  • @lucamyot8443
    @lucamyot8443 4 роки тому

    Thank you, I wish I could learn from everyone like I can learn from you. God bless you.

  • @TuanTran-xi4vs
    @TuanTran-xi4vs 2 роки тому

    Your lectures are so easy to understand. Thank you very much.

  • @crushboss
    @crushboss 5 років тому

    Great video mate, keep up the good work.

  • @acadman4322
    @acadman4322 5 років тому

    AWESOME! This is great information. Thanks. And I have subscribed to the DBWS!

  • @ozgemmo3445
    @ozgemmo3445 4 роки тому +2

    Hi Bill - simply brilliant video with excellent graphics etc! You have now prompted me to get into this very interesting area of controlling large gear-motors through an Arduino and will now duplicate your project! Just as an additional thought I think you could produce a graph for each motor (or pairs of) showing motor efficiency compared to PWM vs frequency and current draw. - would be very interesting to see graphically; please let me know what you think? Cheers & thanks from Down Under. PS: just signed up for your News Letter as well.

  • @jomango1929
    @jomango1929 5 років тому

    You are the best professor on UA-cam !

  • @sritamroy4430
    @sritamroy4430 4 роки тому

    Great video ,a lot of information to know. Excellent teaching technique.Looking for more.Thank you Sir!

  • @capistor1
    @capistor1 5 років тому

    Cant wait for the new videos. Love your videos

  • @calvinlee7915
    @calvinlee7915 11 місяців тому

    Very nice workshop. Thanks so much for sharing!

  • @ovidiurosu6632
    @ovidiurosu6632 5 років тому

    this is so good; thank you for this great video

  • @dule1635
    @dule1635 3 роки тому +1

    Thank you for your great lesson, Sir!

  • @pjwlk
    @pjwlk 4 роки тому

    Excellent video. I learned a few things - THANKS!

  • @kioapsytrance5594
    @kioapsytrance5594 3 роки тому

    This was a really good video. Very interesting. Thank you :) You really have good videos :)

  • @MrManta2012
    @MrManta2012 4 роки тому

    Your graphics really help your message, Thanks

  • @catchulater7483
    @catchulater7483 Рік тому

    I know this video is over three years old. I keep referring back to it (thanks YT library) to remind me of the importance of clocking, for frequency. Thank you.

  • @808GT
    @808GT 5 років тому

    EXCELLENT NEWS! MORE DRONEBOT WEEKLY!!!

  • @caveratward6218
    @caveratward6218 5 років тому

    GREAT VIDEO. For a beginner myself I'am learning a lot. Thankyou

  • @toprudder1
    @toprudder1 3 роки тому

    Excellent! Good illustrations, great video work, excellent information.

  • @LuisRivera-jk8jc
    @LuisRivera-jk8jc 4 роки тому

    All of your videos are excellent

  • @sambarakat2
    @sambarakat2 4 роки тому

    Hi, I just want to say thank you for this well-done video I build my watch kinetic charger using your setup,it works just fine and I'm really happy with it .thank you looking forward to build my next project, I love to share a video of my kinetic charger.

  • @pecilijevelicanstveni4973
    @pecilijevelicanstveni4973 5 років тому +1

    Thank you sir!
    What a great job! I immediately subscribe to your list waiting fo new excited projects.
    Thank you again! I learned a lot from you.
    But, allow me to ask: in what application you made those wonderfull animations?
    I am planning to make some lessons and those animations are very, very usefull.
    Greetings!

  • @heinrichhelmbold419
    @heinrichhelmbold419 4 роки тому +1

    Your videos are absolutely incredible and really informative.... Thank you!! Any chance you could do this tutorial on the ESP 32 board still using the Cytron MD10C?

  • @rjimene1
    @rjimene1 4 роки тому +1

    excellent video, premium content, Thank you so much.

  • @PhG1961
    @PhG1961 5 років тому

    Waw more video ! Great ! Hmmm, building a robot for over 40 years... this sounds so familiar ! I go to sleep and wake up with it !

  • @scamper_van8470
    @scamper_van8470 3 роки тому

    Well i'll bookmark that specific video and thank you for sharing both video and code.

  • @Tamingshih
    @Tamingshih Рік тому

    Great job! I am just in need of this solution.

  • @stalebreivik5945
    @stalebreivik5945 4 роки тому

    Thanks for great videos, I'm in smart house mode at the moment, I would like to see some standalone zigbee or z-wave projects.

  • @Yosemite_Sam
    @Yosemite_Sam 2 роки тому

    Interesting. 10 minute videos are an excellent idea to supplement your others. Cheers from OZ.

  • @marctalcott5613
    @marctalcott5613 2 роки тому

    Another awesome video. Thank you.

  • @OsoPolarClone
    @OsoPolarClone 5 років тому

    I am a relatively new viewer to your channel. I am enjoying your teaching style, the articles, and your very informative web site. I am staying current with all of your new videos while going back and looking at older ones. Will you be combining the google ai voice hat with the robot? I noted the hat has the ability to control servos and immediately thought of the recent robot videos. Thanks for your efforts at producing excellent educational videos.

  • @luisfernandomoncayomarulan1208
    @luisfernandomoncayomarulan1208 4 роки тому

    I loved the camara changing at 1:12

  • @edmondedwards6729
    @edmondedwards6729 4 роки тому

    I need microsecond control of the pwm pins, so am glad to see this tutorial as I was thinking it was too slow, with the fastest speed of 1 millisecond. With this proposed modification, what is now the fastest switching time of the pwm pins in microseconds? Thanks for a great tutorial on the subject...

  • @NoahPeeters
    @NoahPeeters 5 років тому +2

    Amazing informative video!
    Could you maybe make a video about the esp 32 module?
    I'm trying to figure out how it's Bluetooth and wifi work and how it can be connected to a smartphone.
    I would really appreciate it if you could make a video about it.
    Keep up the great work!

  • @szmuchen
    @szmuchen 5 років тому

    First of all, thank you so much for making this video. I was facing almost the exact same problem with the same motors. Could you please tell me what adapters you used for the bullet connectors on the motors? Thanks.

  • @guyd6
    @guyd6 4 роки тому

    It's very interessting. Nice job. Bill.

  • @derekschwontz9072
    @derekschwontz9072 5 років тому +1

    Great tutorial

  • @abualis1178
    @abualis1178 4 роки тому

    Hello DroneBot, thank you for sharing all the knowledge and experiences with us, your classes are fantastic and well prepared and delivered.
    I have a question for you or the community if anyone can help with some advise, I want manage the direction of a 2 phase 220v motor with and Arduino, the motor has been removed from a winch, what kind of driver should I be using.
    Many thanks

  • @kamauwainaina5782
    @kamauwainaina5782 3 роки тому

    LOVE your work

  • @opalprestonshirley1700
    @opalprestonshirley1700 5 років тому

    Very nicely done. Most all of this I follow no problem. I would like to know how you determined the proper motor to use. Thanks for your hard work.

  • @AstrofishGames
    @AstrofishGames 2 роки тому

    Really great stuff! Would you say the reason for motor efficiency going down with frequency increase is due to the rise/fall time of the motors (inductive loads?) I guess you get to a point where your frequency starts capping off the amplitude due to BEMF etc.

  • @myduffly
    @myduffly 5 років тому

    Very nice stuff sir!

  • @ukwerna
    @ukwerna 5 років тому

    brilliant! The more the better..thanks

  • @donaldwright2426
    @donaldwright2426 4 роки тому

    Thanks, quite instructive!

  • @OsoPolarClone
    @OsoPolarClone 5 років тому

    Great video!

  • @unglaubichuberlieber8048
    @unglaubichuberlieber8048 3 роки тому

    thanks for this very helpful+informative tutorial

  • @omego23
    @omego23 5 років тому +2

    Great learning video sir.
    could you please make a video of h bridge operating two large motors.
    I am working on making controller for electric wheelchair for disabled. your suggestions about that will be warmly welcom.
    Thanks

  • @peterashley6042
    @peterashley6042 5 років тому

    Excellent, again.

  • @lamiae7430
    @lamiae7430 3 роки тому

    Great job

  • @eldy938
    @eldy938 5 років тому

    Subscribed, looking forward to seeing you build 3CPO...:)
    I'm doing a commercial design/build for a project, would you recommend the IMC413 over the Cytron 13A? I'm looking smooth low end torque with top speed comparable to fast paced walks, should I go with the 5201 or 5202 Motor serie ?

  • @albertolostaunau9567
    @albertolostaunau9567 5 років тому

    AWESOME JOB!!!! Thanks!

  • @drmosfet
    @drmosfet 4 роки тому

    Thanks great video, does increasing on the PWM frequency also increase RF noise from the circuit?

  • @OsoPolarClone
    @OsoPolarClone 5 років тому

    I am really looking forward to the robot series of videos as it’s an interest of mine. Where did you get the perforated angle?

  • @erickduffis
    @erickduffis 5 років тому

    Nice Job

  • @rickhunt3183
    @rickhunt3183 5 років тому

    I would strongly consider using a preset 555 timer for duty cycle and frequency and a programmable frequency devider to drive the input of an h-bridge. This would of course be beyond the scope of just one video. I would suggest a series of videos carefully planned out with the just the information required to stay on the objective lasting only 10 or 12 minutes each. This would allow noobs the oppertunity to absorb the information without getting intimidated or overwhelmed by the magnitude of the information. It’s easer to remember 12 minutes of information than 35, and sitting through a 10 minute video 3 times is a lot more appealing than a 35 minute video 3 times. If someone is going to leave a dislike or a negative comment. They should at the very least be willing to offer a solution.

  • @cecilialinck7778
    @cecilialinck7778 5 років тому

    Nice tutorial, could you post a schematic diagram of your final setup including the breadboard and how the shield connects to the lcd screen and Arduino? Maybe it's supposed to be self explanatory but I'm very new with electronics and am trying to test out a gearmotor hooked up to a power tool battery pack

  • @eemhisolutions9287
    @eemhisolutions9287 4 роки тому

    Great work

  • @T2D.SteveArcs
    @T2D.SteveArcs 4 роки тому

    just to let you know your sig gen can put out DC you could have used ch2 to generate 5V direction signal
    also there is a frequency counter built into the scope.. and should be a counter built into sig gen aswel

  • @startcherif
    @startcherif 3 роки тому

    very nice video

  • @mohamedabd-alqawy6979
    @mohamedabd-alqawy6979 5 років тому

    Sir , again and continuously I am amazed by your demonstration .
    where I am from ! when A master teach some thing as your doing we have to kiss his hand for it.
    and with your case this is not enough case i knew how hard to put this videos together and the content it self
    thank you is not enough but my English fails me to give a proper word for you
    thank you Sir

  • @IgnacioAOlivar
    @IgnacioAOlivar 4 роки тому

    Great video! Question, it's nice to have a code to change the freq of pwm signals with arduino ide but you said that it can change, in no desirable way, functions like delay or tone, so, it´s possible to adjust the output frequency connecting a module or some components in pwm pin that we use? I'm thinking in a module similar to step down/step up dc to dc converters. Thanks a lot!!!!

  • @rolandramie5606
    @rolandramie5606 4 роки тому

    nice job keep up the good work

  • @600lester
    @600lester 2 роки тому

    Hi great video, love to see it with an encoder and PID

  • @mrbourdet
    @mrbourdet 5 років тому

    Excellent! Thanks.

  • @walidoulondon8107
    @walidoulondon8107 5 років тому

    Great youtube channel I learned a lot from u Mr

  • @MicheleHjorleifsson
    @MicheleHjorleifsson 5 років тому

    Great stuff thank you

  • @duriezalable
    @duriezalable 2 роки тому

    Superb Video, thank you so much. I like the fact that you’re working with an oscilloscope and the other equipment. I do have a question. Would motors or/and the HBridge Cytron would tolerate a change in direction at a rate of 100 ms for instance. I’m working on a self-balance robot and I’d like to know if it would be feasible with that kind of equipment. Once again, wow, great video and thanks. Ad

  • @electronic7979
    @electronic7979 5 років тому

    Useful video 👍

  • @Aloka1432
    @Aloka1432 5 років тому

    Impressive again

  • @quimicaroboticatecnologia522
    @quimicaroboticatecnologia522 6 місяців тому

    Excelente conteúdo

  • @OsoPolarClone
    @OsoPolarClone 5 років тому

    Why wasn’t a case statement used for the button selections at the start of the while loop? Thanks

  • @soumitradey8208
    @soumitradey8208 5 років тому

    Thanks sir. This is great.
    Can you also see the BTS7960B Motor Driver 43A H-Bridge Drive PWM For Arduino

  • @szopanawsi
    @szopanawsi 3 місяці тому

    very interesting video 👍

  • @ZookeeperJohnG
    @ZookeeperJohnG 4 роки тому

    Very clearly communicated :)

  • @legpetruchka2124
    @legpetruchka2124 3 роки тому

    Merci beaucoup pour cette vidéo et pour faire connaître le MD10C. Juste une question sir, As -t-on le même résultat avec des moteurs de 24 V dc à forts ampérages?

  • @armansotude1474
    @armansotude1474 2 роки тому

    Very nice 👍 thank you

  • @ntang4922
    @ntang4922 Рік тому

    Great video! Do you also happen to have a video on the control of AC motors?