How to Control DC Motor With L298n and Arduino

Introduction: How to Control DC Motor With L298n and Arduino

About: The science of robotics fascinates me. Come my friends to experiment together.

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:

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

In our lesson I will control one dc motor.

So let’s start.

Step 2: Materials

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.

Be the First to Share

    Recommendations

    • Make It Bridge

      Make It Bridge
    • Big and Small Contest

      Big and Small Contest
    • For the Home Contest

      For the Home Contest

    Comments

    0
    gktools123
    gktools123

    2 months ago on Step 1

    would like to control 2 ---- 5vdc gear motors with nano ---- L298N --- forward/reverse/delay for my project .... with code , thx , great article ,