4. Components
L298n-
• The L298 Driver is a high voltage, high current
dual full bridge driver designed to accept standard
TTL logic levels and drive inductive loads such
relays, solenoids, DC and stepping motors.
• Two enable inputs are provided to enable or
disable the device independently of the input
signals.
• The emitters of the lower transistors of each
bridge are connected together the corresponding
external terminal can be used for the connection of
an external sensing resistor.
5. Arduino Uno
• microcontroller board based on
the ATmega328P
• It has 14 digital input/output pins
(of which 6 can be used as PWM
outputs), 6 analog inputs,a USB
connection, a power jack, an ICSP
header and a reset button.
• It contains everything needed to
support the microcontroller;
simply connect it to a computer
with a USB cable or power it with
a AC-to-DC adapter or battery to
get started
8. 1.Connect the 5 volts pin of the Arduino with the 5 volts pin of the L298n motor driver
module.
2.Attach the GND pin of the Arduino with the GND pin of the L298n module.
3.Connect the IN1 pin of the L298 IC to pin 8 of the Arduino.
4.Connect the IN2 pin to pin 9.
5.Connect the EN A pin of IC to the PWM pin 2 of Arduino.
6.Pull the ENA and ENB pins HIGH to turn on the motors.
7.Pull the ENA and ENB pins LOW to stop the motors.
8.Use Pulse Width Modulation (PWM) to control the speed of the motors.
9.Transform the values of the potentiometer to values on the PWM output.