Arduino - DC Motor Control and PWM Signal With L298N H-bridge
by MertArduino in Circuits > Arduino
17954 Views, 13 Favorites, 0 Comments
Arduino - DC Motor Control and PWM Signal With L298N H-bridge
![Arduino Tutorial 37: DC motor control and PWM signal with L298N H-bridge](/proxy/?url=https://content.instructables.com/FK7/WINL/J52QAPLC/FK7WINLJ52QAPLC.jpg&filename=Arduino Tutorial 37: DC motor control and PWM signal with L298N H-bridge)
![l298n_cover.jpg](/proxy/?url=https://content.instructables.com/FTC/PR22/J52QAPJE/FTCPR22J52QAPJE.jpg&filename=l298n_cover.jpg)
In this tutorial we will learn how to use the L298N H-Bridge Motor Controller.
We will control the dual DC motor with using the PWM Signals via L298N.
Required Hardware
![vlcsnap-2017-07-16-15h57m15s126.png](/proxy/?url=https://content.instructables.com/FDH/7FG1/J52QAPJL/FDH7FG1J52QAPJL.png&filename=vlcsnap-2017-07-16-15h57m15s126.png)
Arduino Board - https://goo.gl/Rqc5w2
L298N H-Bridge - https://goo.gl/Ucvx6J
DC Motor Wheel - https://goo.gl/iDy7ep
F to F Jumper - https://goo.gl/iDy7ep
M to M Jumper - https://goo.gl/iDy7ep
Battery - https://goo.gl/iDy7ep
Battery Clip - https://goo.gl/iDy7ep
Some Promotion Links
Flash Deals -- https://goo.gl/CVqg7P
Mega Stock Clearance -- https://goo.gl/eCbuiP
Arduino Kits -- https://goo.gl/uwr19e
More Budget 3D Printers -- https://goo.gl/uwr19e
Anet A8 3D Printer Promotion -- https://goo.gl/uwr19e
L298N H-Bridge
![vlcsnap-2017-07-16-15h57m29s781.png](/proxy/?url=https://content.instructables.com/FVV/26FP/J52QAPJO/FVV26FPJ52QAPJO.png&filename=vlcsnap-2017-07-16-15h57m29s781.png)
![vlcsnap-2017-07-16-15h57m42s149.png](/proxy/?url=https://content.instructables.com/FTA/TTW4/J52QAPJR/FTATTW4J52QAPJR.png&filename=vlcsnap-2017-07-16-15h57m42s149.png)
This allows you to control the speed and direction of two DC motors, or control one bipolar stepper motor with ease.
Connections
![vlcsnap-2017-07-16-15h58m26s500.png](/proxy/?url=https://content.instructables.com/FPZ/GWZK/J52QAPK0/FPZGWZKJ52QAPK0.png&filename=vlcsnap-2017-07-16-15h58m26s500.png)
![vlcsnap-2017-07-16-15h57m51s383.png](/proxy/?url=https://content.instructables.com/F1K/N4R8/J52QAPJU/F1KN4R8J52QAPJU.png&filename=vlcsnap-2017-07-16-15h57m51s383.png)
![vlcsnap-2017-07-16-15h58m06s943.png](/proxy/?url=https://content.instructables.com/F6A/LD2A/J52QAPJX/F6ALD2AJ52QAPJX.png&filename=vlcsnap-2017-07-16-15h58m06s943.png)
You can control the speed of the DC motors if the enable jumpers are removed.
Source Code
![vlcsnap-2017-07-16-15h59m48s302.png](/proxy/?url=https://content.instructables.com/FRG/TEH8/J52QAPK3/FRGTEH8J52QAPK3.png&filename=vlcsnap-2017-07-16-15h59m48s302.png)
![vlcsnap-2017-07-16-16h00m05s273.png](/proxy/?url=https://content.instructables.com/FBR/7CCM/J52QAPK6/FBR7CCMJ52QAPK6.png&filename=vlcsnap-2017-07-16-16h00m05s273.png)
You can just copy and paste the code into empty page of the Arduino IDE.
Get the Code - https://goo.gl/8PphQF
You Can Subscribe to My YouTube Channel
![mertarduin2.png](/proxy/?url=https://content.instructables.com/F30/U46C/J52QAP9S/F30U46CJ52QAP9S.png&filename=mertarduin2.png)
You can subscribe to the my YouTube channel for more tutorials and projects. Subscribe for support. Thank you.
Go to my YouTube Channel - https://goo.gl/f0RHmR