how to use l298n to control dc motor with arduino
Home » Blog » how to use l298n to control dc motor with arduino

how to use l298n to control dc motor with arduino

Views: 0     Author: Site Editor     Publish Time: 2020-09-02      Origin: Site

Inquire

facebook sharing button
twitter sharing button
line sharing button
wechat sharing button
linkedin sharing button
pinterest sharing button
whatsapp sharing button
kakao sharing button
snapchat sharing button
telegram sharing button
sharethis sharing button

Hello everyone, welcome to this tutorial. first check the explanation contained in the video. we are using L298n double H-
Using Arduino to control the bridge drive of the DC motor, if you need more information, you can view more information on the Internet, but here we will make things work, so you hope you like it.
In this step, you can connect the driver as in the picture, or change it to suit your project, and don\'t forget to connect the GND in the driver with the Arduino GND, for the power supply here, I use the 9 v battery, you can power it with the power supply or the battery, also, if you put the Arduino into the Vin from the Arduino board, the 5 v pin of the driver can power your Arduino, here I only use one motor, the module can run 2 DC motors or 1 stepping motor.
Test 1: First, we try to open the motor in one direction and turn it off so that you can connect it like in the picture, below is the code.
Test 2: Turing on/off, change direction, then turn on/off (
You keep the same wiring as above)
In this step, we will remove the jumper on the ENA pin, which we will control through the PWM signal on the Arduino board, which will enable us to control the speed of the DC motor.
Test 3: low speed on/off, high speed on/off (
Wiring is the same as before, but now you remove the jumper and connect the enA pin with the Arduino\'s pwm pin, here I used D10)

HOPRIO group a professional manufacturer of controller and motors, was established in 2000. Group headquarters in Changzhou City, Jiangsu Province.

Quick Links

Contact Us

WhatsApp: +8618921090987 
Tel: +86-18921090987 
Add: No.19 Mahang South Road, Wujin High-tech District, Changzhou City, Jiangsu Province, China 213167
Leave a Message
CONTACT US
Copyright © 2024 ChangZhou Hoprio E-Commerce Co., Ltd. All Rights Reserved. Sitemap | Privacy Policy