In this video, you will learn how to control a dc motor with the help of Arduino Uno using an L298N dual H-bridge motor controller.

►Arduino Uno:
Arduino Uno is a microcontroller board based on the ATmega328P. It has got 14 digital input/output pins(of which 6 can be used as PWM outputs), 6 analog inputs, a 16 MHz quartz crystal, a USB connection, a power jack, an ICSP header and a reset button.

►Motor Driver L298n:
The l298n motor driver is based on the L298 Dual H-Bridge Motor Driver IC. This module allows us to easily and independently control two motors of up to 2A each in both directions.
It has got the ability to control the speed of the motors and this is achieved using ENA and ENB pin provided on the motor driver.

Pulse Width Modulation (PWM), is a technique for getting analog results with digital means. Digital control is used to create a square wave, a signal switched between on and off. This on-off pattern can simulate voltages in between 5 Volts and 0 Volts by changing the portion of the time the signal spends ‘on’ versus the time that the signal spends ‘off’, Basically, we take out the average of the signal over a certain time period.The average voltage will be closer to the 5V if the pulse width, that is the time when it is switched ‘on’ is greater than the ‘off’ time. If we repeat this on-off pattern fast enough with a LED, the result is as if the signal is not fluctuating but is steady between 0 and 5v controlling the brightness of the LED.

To know more about it visit our website:
Follow us on Twitter:
Follow us on Facebook:


Leave a Reply