Driving DC Motors with Microcontrollers

DroneBot Workshop October 16, 2022
Video Thumbnail
DroneBot Workshop Logo

DroneBot Workshop

@dronebotworkshop

About

Welcome to the Workshop! The DroneBot Workshop is the place where I work with Arduino, Raspberry Pi, ESP32, and lots of other cool microcontrollers, components, and sensors. This is a channel for learning and understanding. While I do build projects, most episodes focus on showing you HOW things work, so you can use the information to bring your own designs to life. Every video has a corresponding article on my website at https://dronebotworkshop.com , along with the diagrams and code samples you’ll need to build your own creations. You can also participate in discussions on my Forum at https://forum.dronebotworkshop.com. Please note that I no longer do any sponsored videos, enquiries for these will be ignored! If you'd like to know more about me or the DroneBot Workshop you can read the FAQ at https://dronebotworkshop.com/about-dronebot-workshop/faq/ And if you have technical questions please ask them on the Forum. Welcome to the Workshop! I hope you enjoy your stay! Bill

Video Description

How to use 7 different motor driver modules with an Arduino or any microcontroller. Hookup, code & demonstrations with motors big and small. Article with code: https://dronebotworkshop.com/dc-motor-drivers More articles and tutorials: https://dronebotworkshop.com Join the conversation on the forum: https://forum.dronebotworkshop.com Subscribe to the newsletter and stay in touch: https://dronebotworkshop.com/subscribe/ Today we will be working with lots of motor drivers and lots of motors! You’ll see how there are actually three methods used among all of these drivers for controlling speed and direction. Because of this, it’s pretty easy to swap drivers and use a sketch for small motors to be used with much larger ones (or vice-versa). I’ll be driving everything with a simple Arduino Uno today, but you could use any microcontroller to work with these motor drivers. The code for all these motors is pretty simple, I’ll show it to you, and I’ll also introduce you to a few libraries that make coding for these motor drivers a breeze. We’ll also check out a motor driver library from Cytron that is a hidden gem, as it can be used with ANY of these drivers! Here is the Table of Contents for today's video: 00:00 - Introduction 01:17 - DC Motor Driver Basics 08:05 - L298N Dual H-Bridge 16:13 - TB6612FNG Dual H-Bridge 25:24 - DRV8871 Single H-Bridge 31:08 - MX1508 Dual H-Bridge 38:54 - DBH-12 Dual H-Bridge 46:27 - IBT-2 Single H-Bridge 51:17 - MD25HV Single H-Bridge & Controller 1:02:27 - Conclusion Hope you enjoy this, remember that the article on the DroneBot Workshop website has all the code I used today.

DC Motor Control Kit Essentials

AI-recommended products based on this video

Loading...
High-Performance Graphics Card Fan CF9010U12D for TUF RTX 3060/3060 TI/3070/3080/3090 - DC 12V Cooling Solution

High-Performance Graphics Card Fan CF9010U12D for TUF RTX 3060/3060 TI/3070/3080/3090 - DC 12V Cooling Solution

(0)
$68.86
FREE delivery Mar 10 - 30
Loading...
AstroAI Tire Inflator Air Compressor 12V DC, Digital Car Tire Pump 150 PSI, Preset Tire Pressure & Auto Shutoff, Electric Air Pump for Car Tyres, Bicycles, Other Inflatables

AstroAI Tire Inflator Air Compressor 12V DC, Digital Car Tire Pump 150 PSI, Preset Tire Pressure & Auto Shutoff, Electric Air Pump for Car Tyres, Bicycles, Other Inflatables

(8,855)
$30.59
Prime
2K+ bought in past month
Loading...
200W Car Power Inverter, PiSFAU DC 12V to 110V AC Car Plug Adapter Outlet with [20W USB-C] /USB-Fast Charger(18W) / 4.8A Dual USB/car Charger for Laptop
Best Seller

200W Car Power Inverter, PiSFAU DC 12V to 110V AC Car Plug Adapter Outlet with [20W USB-C] /USB-Fast Charger(18W) / 4.8A Dual USB/car Charger for Laptop

(2,648)
$28.48
FREE delivery Mon, Aug 25 on your first order
2K+ bought in past month
Loading...
DHT11 modules Digital Temperature and Humidity Temperature Sensor for arduino DIY KIT 5pcs

DHT11 modules Digital Temperature and Humidity Temperature Sensor for arduino DIY KIT 5pcs

(1)
$15.99
FREE delivery Sat, Jun 14 on your first order
Loading...
ZFOX 50PSI Paddle Board Pump,Dual Motor SUP Pump with HD LED Display & 9 Nozzles - Auto-Shutoff & Auto Overheat Protection,12V DC Electric Air Pump for Paddle Board/Kayak/Tent/Boats/Tyres etc.

ZFOX 50PSI Paddle Board Pump,Dual Motor SUP Pump with HD LED Display & 9 Nozzles - Auto-Shutoff & Auto Overheat Protection,12V DC Electric Air Pump for Paddle Board/Kayak/Tent/Boats/Tyres etc.

(32)
$85.99
FREE delivery Wed, Aug 20
Loading...
ZFOX 50PSI Paddle Board Pump,Dual Motor SUP Pump with HD LED Display & 9 Nozzles - Auto-Shutoff & Auto Overheat Protection,12V DC Electric Air Pump for Paddle Board/Kayak/Tent/Boats/Tyres etc.

ZFOX 50PSI Paddle Board Pump,Dual Motor SUP Pump with HD LED Display & 9 Nozzles - Auto-Shutoff & Auto Overheat Protection,12V DC Electric Air Pump for Paddle Board/Kayak/Tent/Boats/Tyres etc.

(32)
$85.99
FREE delivery Wed, Aug 20
Loading...
Patches 2026 New 10-𝙞𝙣-1 Patch, Nano Microneedle Patch for Men and Women, Suitable for All Skin Types (4 Boxes)

Patches 2026 New 10-𝙞𝙣-1 Patch, Nano Microneedle Patch for Men and Women, Suitable for All Skin Types (4 Boxes)

(14)
$22.90
$1.99 delivery Feb 17 - 19