

This IC is using two different voltages.L298N does not have built in protection diodes we usedexternal diodes to prevent the IC from getting damaged.


The output for motor A is obtained from out1 out2 pins and similarly for motor Boutput is obtained from out3 out4 pins. To drive both the motors by using H bridges, both enable bits are set high. While using as a bridge circuit, ENA selects bridge A and ENB selects bridge B. ENA can select two amplifiers A1, A2 and similarly ENB can select two amplifiers B1, B2.

INPUTS: Four inputs are provided to the four power amplifiers of L298N.What we want to do is to change the polarity of motors so they can run in either direction depending upon logic. We will use H bridge motor diver IC L298N and two DCmotors. ENB=0v, Low logic (Amplifier B1 and B2 off).ENB=5v, High logic (Amplifier B1 and B2 on).ENA=0v, Low logic (Amplifier A1 and A2 off).ENA=5v, High logic (Amplifier A1 and A2 on).Both enable pins can be used at the same time which makes all for outputs active at the same time.All the four inputs and Enable pins work on 5v TTL logic which makes the connection easy with microcontrollers. Current sense pins can be tied to ground but we can also insert low value resistor and its voltage reading is proportional to current. They can be 1N5819 schottky diodes or 1N4001 rectifier diodes.Įach bridge is provided with enable pins (ENA, ENB) and current sense pins (CSA, CSB). To avoid that voltage spikes there should be some internal parasitic or Flywheel diodes. Pair of H Bridge is used to control a bi-polar stepper motor.īasically L298N is used to drive inductive or magnetic loads, so there can come voltage spikes in output. One H bridge is used to switch the polarity in controlling direction of DC motor. Two of them form H-bridge A while other two form H-bridge B. L298N consists of four independent power amplifiers.
