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! - Навчання та стиль
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. ✌
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!
anybody kno2 that motor spec ?
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.
I can't express enough how much I admire how well you explain details that are necessary to know.
I agree, they're wonderful.
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.
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.
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!
Thats awesome, i am looking forward too see your upcoming content! Really well produced video as always :)
Amazing video and nice channel👍
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
Your work area is of a medicaly cleanliness. Stunning job.
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!
Love to watch and learn from you. I like the style you explain with demos and pics. Thank you
Quality content always
where can i get the md10c (i'm from bolivia)
Thanks DB. I'm looking forward to the robot series, and hoping it gives me the insentive to get my fellow rolling.
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!
Excellent course. That's the course I needed for motor driving. Thanks a lot!
Thks for all the hard work making these videos, it's really appreciated.
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.
Great video ! I always learn something new any time I watch your video ,keep it up .
Sir, You are a wonderful teacher. Thank you.
Realy good video. And covering exactly what I wanted to know. Thanks.
Excelente tutorial (como siempre). Felicitaciones y muchas gracias por sus enseñanzas.
I love your work setup!!
Excellent! The comparison with the different frequencies was very cool. Thanks much. New subscriber here!
Just in time , for my project, so inspiring
Thank you, I wish I could learn from everyone like I can learn from you. God bless you.
Your lectures are so easy to understand. Thank you very much.
Great video mate, keep up the good work.
AWESOME! This is great information. Thanks. And I have subscribed to the DBWS!
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.
You are the best professor on UA-cam !
Great video ,a lot of information to know. Excellent teaching technique.Looking for more.Thank you Sir!
Cant wait for the new videos. Love your videos
Very nice workshop. Thanks so much for sharing!
this is so good; thank you for this great video
Thank you for your great lesson, Sir!
Excellent video. I learned a few things - THANKS!
This was a really good video. Very interesting. Thank you :) You really have good videos :)
Your graphics really help your message, Thanks
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.
EXCELLENT NEWS! MORE DRONEBOT WEEKLY!!!
GREAT VIDEO. For a beginner myself I'am learning a lot. Thankyou
Excellent! Good illustrations, great video work, excellent information.
All of your videos are excellent
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.
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!
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?
excellent video, premium content, Thank you so much.
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 !
Well i'll bookmark that specific video and thank you for sharing both video and code.
Great job! I am just in need of this solution.
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.
Interesting. 10 minute videos are an excellent idea to supplement your others. Cheers from OZ.
Another awesome video. Thank you.
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.
I loved the camara changing at 1:12
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...
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!
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.
It's very interessting. Nice job. Bill.
Great tutorial
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
LOVE your work
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.
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.
Very nice stuff sir!
brilliant! The more the better..thanks
Thanks, quite instructive!
Great video!
thanks for this very helpful+informative tutorial
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
Excellent, again.
Great job
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 ?
AWESOME JOB!!!! Thanks!
Thanks great video, does increasing on the PWM frequency also increase RF noise from the circuit?
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?
Nice Job
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.
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
Great work
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
very nice video
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
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!!!!
nice job keep up the good work
Hi great video, love to see it with an encoder and PID
Excellent! Thanks.
Great youtube channel I learned a lot from u Mr
Great stuff thank you
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
Useful video 👍
Impressive again
Excelente conteúdo
Why wasn’t a case statement used for the button selections at the start of the while loop? Thanks
Thanks sir. This is great.
Can you also see the BTS7960B Motor Driver 43A H-Bridge Drive PWM For Arduino
very interesting video 👍
Very clearly communicated :)
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?
Very nice 👍 thank you
Great video! Do you also happen to have a video on the control of AC motors?