element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum What is your go to DC motor driver for Arduino projects
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 28 replies
  • Subscribers 388 subscribers
  • Views 5570 views
  • Users 0 members are here
  • motor control
  • arduino
Related

What is your go to DC motor driver for Arduino projects

colporteur
colporteur over 2 years ago

My post  Raising the Bridge...Automation with Arduino: Failure reconciliation  details some of my failures with the L293N & L298N motor drivers.

Now I find myself looking for another DC motor driver. What DC motor driver do you use in Arduino projects? Why is it you motor driver of choice? Is there a Arduino library for the module or do you roll your own.

  • Sign in to reply
  • Cancel

Top Replies

  • shabaz
    shabaz over 1 year ago +3
    Another advantage of trying something new: Although I initially searched around for a reliable H-bridge to help colporteur it ended up helping me too. It turned out to make a nice little AC driver for…
  • shabaz
    shabaz over 1 year ago +2
    I don't know if I ever posted a photo of it, but that H450 driver (which was described here: Using H450 (Toshiba TB67H450) Motor Driver Boards with Arduino ) PCB arrived a while back. It appears to work…
  • shabaz
    shabaz over 1 year ago in reply to colporteur +2
    Hi Sean, The KiCad files, and the zip Arduino library file are here: https://github.com/shabaz123/h450 If you download that repository, then the KiCad project is in the motor_pcb folder. It is a KiCad…
Parents
  • robogary
    robogary over 1 year ago

    I've used L298N for a ton of projects, also used BTS7960 43A and 50A H bridges, and DFRobot bridges. I have never had an H bridge fail.

    I fuse the H bridge power input in case I short the output or do something dumb in software, and to provide overload protection for the H bridge/motor for stalled motor current.

    The H bridges usually have bridge direction lockouts to prevent users programming a shoot thru situation, tho I'm sure nothing is totally dummy proof.  

    Never use a library for an H bridge. Create a direction bit and PWM output to drive the H bridge gate. 

    Fuses are a wonderful thing. 

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • shabaz
    shabaz over 1 year ago in reply to robogary

    Unfortunately the L298's (and the cheap boards which use them) do not have as much built-in protection.

    You can see from an earlier blog that clearly they are failing, can one be sure a fuse would have protected them?

    From the photos of them it looks like some have diodes of some sort positioned some distance away. Inductive spikes don't care about a fuse. No decent supply decoupling either in the board in the photo below.

    Those boards run warmer too (and might require that heatsink). For those that need it, there are just as cheap and more rugged alternatives.

    I too don't use Arduino libraries for H-bridges, but I wrote my custom library to help those who do require it. It's cleaner code in any case, and negligible overhead, so using a good library is often better than directly writing registers. Everyone is not as comfortable writing bits into peripheral registers (it entails knowing the microcontroller architecture, and goes out of the window if you move to (say) a newer Arduino.

    Those ancient driver chips were state-of-the-art 40 years ago, they still work in properly-designed applications, but when it comes to cheap hobby boards, I don't think it can be expected of the manufacturer to have made much of an effort.

    Regarding the "or do something dumb in software" it would be good if the hardware is protected against that (which it is with almost any decent board).

    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • robogary
    robogary over 1 year ago in reply to shabaz

    Failure modes are never absolute unless an autopsy is done and an analysis of the application. :-)   

    After having several autopsy's , maybe a common cause can be established. Would doubt normal infant failures. 

    I actually have robots and Power Wheels cars (running like an EV) , etc....running for over 10 years on these cheap hobby boards and switching power supplies. 

    I'd tend to lean to common destructive failure modes like stalled motors without stalled motor protection, banging a fully loaded motor between full forward and full reverse without ramps, and  intermittent grounds/shorts before focusing on internal suppression circuits, altho cant rule out crappy suppression without ohm checking the boards to the schematic. 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • robogary
    robogary over 1 year ago in reply to shabaz

    Failure modes are never absolute unless an autopsy is done and an analysis of the application. :-)   

    After having several autopsy's , maybe a common cause can be established. Would doubt normal infant failures. 

    I actually have robots and Power Wheels cars (running like an EV) , etc....running for over 10 years on these cheap hobby boards and switching power supplies. 

    I'd tend to lean to common destructive failure modes like stalled motors without stalled motor protection, banging a fully loaded motor between full forward and full reverse without ramps, and  intermittent grounds/shorts before focusing on internal suppression circuits, altho cant rule out crappy suppression without ohm checking the boards to the schematic. 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • shabaz
    shabaz over 1 year ago in reply to robogary

    Regardless, merely by inspection you can see that the "typical" board in the photo above is not great. For sure people are going to experience failures with it. As well as the problems mentioned earlier, I think more can be heaped on it, just looking at the photo. I can't even see any sense resistors have been installed on it. If a motor stalls, it may well overheat. If you're making a toy robot, you may well be willing to accept the occasional failure if a motor stalls perhaps. But Sean was driving model train apparatus, I presume he wants a bit of reliability.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • robogary
    robogary over 1 year ago in reply to shabaz

    I view any of these devices as IEC rated components - the lifetime and reliability needs engineered in by the user. In selecting a reliable motor driver, one needs to know ( or measure) stall current, typical motor current, under load voltage, gear ratio. etc... duty cycle, cycle frequency, with little motors those parameters are sometimes tough to get.  They can be checked on a power supply with a load display or battery with a DVM with mA input.  

    Apologies if I missed where motor load data was taken. Its luck to size a bridge if the motor load is unknown. 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube