
A microcontroller has a limited power output (current and voltage). Motors usually draws a larger current than what a microcontroller can safely provide. This is where a driver/controller module comes in. It able to provide enough current to drive motors and the same time allows a microcontroller/microcomputer to decide regarding the speed and the direction of the motors.
This module uses L298N chip as its main driver. It features a dual H-bridge motor controller that can drive two DC motors independently at a time. Alternatively, it can also drive one 4-wire stepper motor. The module runs on two circuit. One can work on high voltage up to 35V. It uses the input voltage to drive the motors. The other one runs on lower 5V for the module logic control. This can be interfaced to a microcontroller for a logic level signal control. There is a 78M05 regulator chip on board that can take the main input voltage and provide 5V power supply for the logic circuit. To avoid damage to the 78M05, if you are using more than 12V to drive the motor, it is better if you can provide an external 5V for the logic power supply.
Board layout
Screw terminal 1 and 2 - Output to Motor A, connect to motor terminal
Screw terminal 3 and 4 - Output to Motor B, connect to motor terminal
Screw terminal 5 - Input voltage (5V-35V recommended)
Screw terminal 6 - GND, common ground for power supply and microcontroller
Screw terminal 7 - Provide +5V power supply if input voltage is in between 7V-12V, can be used to power microcontroller or some other components
Jumper J1 - Enable Motor A, place jumper on to enable, remove jumper to disable
Jumper J2 - Enable Motor B, place jumper to on enable, remove jumper to disable
Jumper J3 - Enable on-board 5V logical power supply. If your input power supply is outside of 7V-12V range, remove this jumper and provide 5V externally to terminal 7
Pin IN1-4 - Control pins that control the direction of the motors, connect to microcontroller
A heatsink is attached to the LN298N chip for better heat dissipation.
Usage:
Technical details:
Useful document: