arduino code
arduino code
ENA 3
IN1 12
IN2 4
IN3 7
IN4 2
ENB 5
12v 12v
GND GND
5v 5v
EN1 5v
IN1 GND
IN2 6
Vcc 5v
GND GND
Signal 11
Vcc 5v
GND GND
DO (RIGHT) 9
DO (FORWARD) 8
DO (LEFT) 10
For L298N motor driver module, motors are connected to the motor terminals of the motor driver
module. The motor driver has another 3 terminals, in which one is 12Volt connected to the
battery. The GND terminal is connected to the battery’s negative terminal and it is also
connected to the Arduino board GND pin and 5v is connected to 5v of the Arduino board.