Introduction: How to Control DC Motor With L298n and Arduino
Hello to everyone. Let's introduce myself. My name is Dimitris and i am from Greece. I love very much Arduino becasuse it's a smart board. I will try to describe as best as i can this instructable in order to make by anyone. So let's start.
Step 1: Introduce
Hello my friends! In the third lesson I will show you how to control a dc motor (6V) with Arduino and L298N motor controller. The L298N is a dual H-Bridge motor driver which allows speed and direction control of two DC motors at the same time. The module can drive DC motors that have voltages between 4.8 - 46V, with a peak current up to 2A per motor.
For more details please visit:
In our lesson I will control one dc motor.
So let’s start.
Step 2: Materials
For this project we will use:
Arduino Uno Board
L298N motor controller
Jumper wires female to male
Jumper wires male to male
DC motor (I used a dc motor of 6V)
Power Supply 9V
Step 3: Wiring Diagram
Wire your dc motor with L298N motor controller and Arduino as the image above .If you follow the steps carefully you won’t face any problem. If something goes wrong write your comment below and I will answer you as soon as possible.
Step 4: Code
Step 5: That’s It
I hope you to enjoy this project as I when you make it.
If you have any problem with the code or the wiring diagram please write your comment below. Thank you.