Control Large Gearmotors with PWM & Arduino

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 พ.ค. 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 TH-cam channel please do it so that you won’t miss anything.
    Hope you enjoy the video!
  • แนวปฏิบัติและการใช้ชีวิต

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

  • @boxingfan5742
    @boxingfan5742 3 ปีที่แล้ว +37

    I'm so glad I found you on TH-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 ปีที่แล้ว +11

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

  • @joshuamadden2442
    @joshuamadden2442 2 ปีที่แล้ว +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.

  • @rusticagenerica
    @rusticagenerica 4 ปีที่แล้ว +1

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

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

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

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

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

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

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

  • @harleywang
    @harleywang 4 ปีที่แล้ว +1

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

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

  • @calvinlee7915
    @calvinlee7915 9 หลายเดือนก่อน

    Very nice workshop. Thanks so much for sharing!

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

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

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

  • @alicegabriel1909
    @alicegabriel1909 4 ปีที่แล้ว +1

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

  • @Inventor101
    @Inventor101 5 ปีที่แล้ว +17

    Amazing video and nice channel👍

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

    Sir, You are a wonderful teacher. Thank you.

  • @TuanTran-xi4vs
    @TuanTran-xi4vs ปีที่แล้ว

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

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

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

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

    Your graphics really help your message, Thanks

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

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

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

  • @phil4110
    @phil4110 4 ปีที่แล้ว +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.

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

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

  • @ProGamer-kr5tn
    @ProGamer-kr5tn 5 ปีที่แล้ว +3

    I love your work setup!!

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

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

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

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

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

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

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

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

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

  • @LuisRivera-jk8jc
    @LuisRivera-jk8jc 4 ปีที่แล้ว

    All of your videos are excellent

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

    Excellent video. I learned a few things - THANKS!

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

    Great video mate, keep up the good work.

  • @ThiefKingBakuraX
    @ThiefKingBakuraX 5 ปีที่แล้ว +43

    Quality content always

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

      where can i get the md10c (i'm from bolivia)

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

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

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

    Another awesome video. Thank you.

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

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

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

    Just in time , for my project, so inspiring

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

    Thank you for your great lesson, Sir!

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

    It's very interessting. Nice job. Bill.

  • @rjimene1
    @rjimene1 4 ปีที่แล้ว +1

    excellent video, premium content, Thank you so much.

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

    You are the best professor on TH-cam !

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

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

    Cant wait for the new videos. Love your videos

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

    I loved the camara changing at 1:12

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

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

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

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

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

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

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

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

    Very nice stuff sir!

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

    this is so good; thank you for this great video

  • @808GT
    @808GT 5 ปีที่แล้ว

    EXCELLENT NEWS! MORE DRONEBOT WEEKLY!!!

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

    thanks for this very helpful+informative tutorial

  • @heinrichhelmbold419
    @heinrichhelmbold419 3 ปีที่แล้ว +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?

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

    BTW: I see eBayers selling Wheel Chair motors without wheels. I found that Harbor Freight pneumatic wheels with 4 bolt holes line up perfectly, and cost around $5. You should knock out the inside bearing to fit the hub nut, and fill the tire with Fix a Flat or Slime since the valve stem will be on the inside mount side. I think they are the 4-5 in rim, white wheels. The BT-2 45 amp motor controller works on a wheel chair motor. You can get the BT-2 cheap 2 for $15. I bench tested my Wheel chair motor yesterday and it only pulled 10-12 amps under no load so there is plenty of amps left for a load. I believe DWS said the BT-2 were 30 Amps continuous. 45 peak. I just looked on eBay Wheel Chair motor prices have skyrocketed They run from $130 to $200 each. It might be better to look on Craigslist and buy a whole chair for $100-300 from an estate sale. 5 years ago I got 2 eBay motors without wheels for $75. I also had 2 chairs given to me when a friend's mother passed away

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

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

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

    Great tutorial

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

    Thanks, quite instructive!

  • @600lester
    @600lester 2 ปีที่แล้ว

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

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

    nice job keep up the good work

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

    very interesting video 👍

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

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

    brilliant! The more the better..thanks

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

    Great job

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

    very nice video

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

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

    Great video!

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

    Great youtube channel I learned a lot from u Mr

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

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

    LOVE your work

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

    Nice Job

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

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

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

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

    Great work

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

    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.

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

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

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

    Excellent, again.

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

    AWESOME JOB!!!! Thanks!

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

    Useful video 👍

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

    Very clearly communicated :)

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

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

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

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

    Excellent! Thanks.

  • @quimicaroboticatecnologia522
    @quimicaroboticatecnologia522 3 หลายเดือนก่อน

    Excelente conteúdo

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

    nice lessons

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

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

    Thanks for the video. Can you please list all the test equipment you are using?

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

    Very nice 👍 thank you

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

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

    Ohh man this is THE CHANNEL for geeks like me ❤🙂

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

    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

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

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

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

    Great stuff thank you

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

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

    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?

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

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