How to Control DC Motor With L298n and Arduino

by Trying Together in Circuits > Arduino

1369 Views, 2 Favorites, 0 Comments

How to Control DC Motor With L298n and Arduino

How To Control DC Motor With L298n And Arduino || Arduino Tutorial For Beginners || Lesson 3

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.

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:

https://wiki.dfrobot.com/MD1.3_2A_Dual_Motor_Cont...

In our lesson I will control one dc motor.

So let’s start.

Materials

material dc motor.png

Wiring Diagram

DiagramD.png

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.

Code

Arduino Code (DC Motor).png

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.