Controlling DC Motors with the L298N H Bridge and Arduino
In this video, I'll show you how to use the L298N H-Bridge Motor Controller with an Arduino. Includes plans for a simple robot car.
Get more info about using the L298N at https://dbot.ws/l298nhbr
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://dbot.ws/dbnews
The L298N Dual H-Bridge Motor Controller is an inexpensive device that allows you to control two independent DC motors using 5-volt digital logic signals, such as the digital output pins of an Arduino. The L298N can also be used to control a single stepper motor or two sets of LED lighting strips.
In this tutorial, we'll learn how to control two 6-volt DC motors with the L298N.
First, we will enlighten ourselves by learning a quick bit of the history of DC motors and discovering how they actually work. We will also learn what an “H-Bridge” is, how it works, and how we can control the direction of rotation of a DC motor with it.
We will then quickly discuss the concept of Pulse Width Modulation, or PWM, as it is used to control the speed of DC motors. Don’t worry, it’s a lot easier than it sounds!
Then we will look at how the L288N H-Bridge module actually works, how to hook it up to a couple of motors, and how to power it correctly.
Next, we will connect the L298N Dual H-Bridge Motor Controller to an Arduino. Once that's done we’ll run a motor demo sketch to put the device through its paces.
After the demo, we will expand upon our sketch to allow a couple of potentiometers (connected to the Arduino’s analog inputs) to control the speed of each motor.
And now that we’ve become experts we will replace the potentiometers with a joystick and use it to control the motors. Just for fun, we’ll use this setup to build an Arduino-driven car!
The L298N Dual H-Bridge Motor Controller is a very versatile device that is sure to find a lot of use in your robotics and IoT projects. Anywhere you want to make things move with an Arduino!
This is a long video, so if you’d like to jump ahead to a specific spot here is the table of contents:
00:00 - Introduction
01:25 - What is a DC Motor & Where is it used?
03:01 - How does a DC Motor work?
04:17 - What is an H-Bridge?
05:25 - Popular L298N Interface boards
06:49 - L298N Module Pinouts and hookup
09:04 - Understanding PWM (Pulse Width Modulation)
09:58 - Testing the L298N without a controller
13:28 - Arduino Hookup to L289N
14:53 - Sketch 1 - Motor Control Demo
19:29 - Motor Control Demo
20:38 - Potentiometer Hookup to Arduino and L298N Module
21:38 - Sketch 2 - Two Potentiometer Control Demo
25:08 - Two Potentiometer Control Demo
25:43 - Joystick and Arduino Hookup
27:52 - Sketch 3 - Joystick Control Demo
34:22 - Driving our car!
For more information and other great projects and tutorials please visit https://dronebotworkshop.com/ .
And if you enjoyed this video please like it and subscribe to the DroneBot Workshop YouTube channel!
Видео Controlling DC Motors with the L298N H Bridge and Arduino канала DroneBot Workshop
Get more info about using the L298N at https://dbot.ws/l298nhbr
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://dbot.ws/dbnews
The L298N Dual H-Bridge Motor Controller is an inexpensive device that allows you to control two independent DC motors using 5-volt digital logic signals, such as the digital output pins of an Arduino. The L298N can also be used to control a single stepper motor or two sets of LED lighting strips.
In this tutorial, we'll learn how to control two 6-volt DC motors with the L298N.
First, we will enlighten ourselves by learning a quick bit of the history of DC motors and discovering how they actually work. We will also learn what an “H-Bridge” is, how it works, and how we can control the direction of rotation of a DC motor with it.
We will then quickly discuss the concept of Pulse Width Modulation, or PWM, as it is used to control the speed of DC motors. Don’t worry, it’s a lot easier than it sounds!
Then we will look at how the L288N H-Bridge module actually works, how to hook it up to a couple of motors, and how to power it correctly.
Next, we will connect the L298N Dual H-Bridge Motor Controller to an Arduino. Once that's done we’ll run a motor demo sketch to put the device through its paces.
After the demo, we will expand upon our sketch to allow a couple of potentiometers (connected to the Arduino’s analog inputs) to control the speed of each motor.
And now that we’ve become experts we will replace the potentiometers with a joystick and use it to control the motors. Just for fun, we’ll use this setup to build an Arduino-driven car!
The L298N Dual H-Bridge Motor Controller is a very versatile device that is sure to find a lot of use in your robotics and IoT projects. Anywhere you want to make things move with an Arduino!
This is a long video, so if you’d like to jump ahead to a specific spot here is the table of contents:
00:00 - Introduction
01:25 - What is a DC Motor & Where is it used?
03:01 - How does a DC Motor work?
04:17 - What is an H-Bridge?
05:25 - Popular L298N Interface boards
06:49 - L298N Module Pinouts and hookup
09:04 - Understanding PWM (Pulse Width Modulation)
09:58 - Testing the L298N without a controller
13:28 - Arduino Hookup to L289N
14:53 - Sketch 1 - Motor Control Demo
19:29 - Motor Control Demo
20:38 - Potentiometer Hookup to Arduino and L298N Module
21:38 - Sketch 2 - Two Potentiometer Control Demo
25:08 - Two Potentiometer Control Demo
25:43 - Joystick and Arduino Hookup
27:52 - Sketch 3 - Joystick Control Demo
34:22 - Driving our car!
For more information and other great projects and tutorials please visit https://dronebotworkshop.com/ .
And if you enjoyed this video please like it and subscribe to the DroneBot Workshop YouTube channel!
Видео Controlling DC Motors with the L298N H Bridge and Arduino канала DroneBot Workshop
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![Control Large Gearmotors with PWM & Arduino](https://i.ytimg.com/vi/Rc892r--njw/default.jpg)
![Using the HC-SR04 Ultrasonic Distance Sensor with Arduino - Everything you need to know!](https://i.ytimg.com/vi/6F1B_N6LuKw/default.jpg)
![Control a Stepper Motor using an Arduino, a Joystick and the Easy Driver - Tutorial](https://i.ytimg.com/vi/cYIL5gxRogM/default.jpg)
![The nRF24L01 - Wireless Joystick for Arduino Robot Car with nRF24L01+](https://i.ytimg.com/vi/lhGXAJj8rJw/default.jpg)
![The L298N H-bridge motor controller module - basics](https://i.ytimg.com/vi/-ikmDMW6tEw/default.jpg)
![How DC GEAR MOTOR Works with ARDUINO and L298N](https://i.ytimg.com/vi/GPVC84D5ULw/default.jpg)
![turn a fan into a high power generator 220v 4000w Free Energy](https://i.ytimg.com/vi/jPsbOxJ_DqU/default.jpg)
![L298n Dual H-Bridge Motor Driver : DC Motors : PWM : Stepper Motors : Eye-On-Stuff](https://i.ytimg.com/vi/_I-7XYaAtAo/default.jpg)
![Stepper Motors with Arduino - Controlling Bipolar & Unipolar stepper motors](https://i.ytimg.com/vi/0qwrnUeSpYQ/default.jpg)
![How to use L298 motor driver module](https://i.ytimg.com/vi/-9Lo9IxGaSM/default.jpg)
![](https://i.ytimg.com/vi/eUDPhedpIVw/default.jpg)
![Arduino Motor Control and PWM Signal with L298N H-bridge Motor Driver](https://i.ytimg.com/vi/Da4HY7HZ6h0/default.jpg)
![TB6612FNG H-Bridge Motor Controller - Better than L298N?](https://i.ytimg.com/vi/JPPTRj0KWbg/default.jpg)
![6 AWESOME DC MOTOR LIFE HACKS](https://i.ytimg.com/vi/BbxwaMbTEW0/default.jpg)
![Motor mit L298 ansteuern - Arduino](https://i.ytimg.com/vi/go5HJVb4lh0/default.jpg)
![Arduino Robot Car with Speed Sensors - Using Arduino Interrupts](https://i.ytimg.com/vi/oQQpAACa3ac/default.jpg)
![Arduino Tutorial 1: Setting Up and Programming the Arduino for Absolute Beginners](https://i.ytimg.com/vi/fJWR7dBuc18/default.jpg)
![24V DC Motor an H Brücke L298N und Arduino](https://i.ytimg.com/vi/-5O20SurqtU/default.jpg)
![How to Make Arduino Obstacle Avoiding Robot with L298N H-Bridge Motor Driver](https://i.ytimg.com/vi/tXsP9STxdBc/default.jpg)
![Raspberry Pi Servo Motor Control](https://i.ytimg.com/vi/xHDT4CwjUQE/default.jpg)