![l298n motor driver pdf l298n motor driver pdf](http://www.14core.com/wp-content/uploads/2015/07/L298N-Driving-2-DC-Motor-on-Pulse-with-modulation-1.jpg)
There are many model of l298n boards in the market, see the photo below for examples.
#L298n motor driver pdf manual#
It can also be interfaced with simple manual switches, TTL Logic gates and relays. It is excellent for robotics applications and well fit to a microcontroller. This module has ease to connect and drive a dc motor or stepper motor allows you to easily and intently control two motor up to 2A each in both direction or one stepper motor.
![l298n motor driver pdf l298n motor driver pdf](https://www.robotpark.com/image/cache/data/PRO/71148/71148-1-1200x630w.jpg)
Additional supply input is provided so that the logic works at lower voltage. The emitters of the lower transistors of each bridge are connected together and the corresponding external terminal can be use for the connection of external sensing resistor. Two enabled inputs are provided to enable or disable the device independently of the input signals.
#L298n motor driver pdf full#
It is a high voltage and high current full dual bridge driver designed to accept standard TTL logic level and drive inductive loads such as relays, solenoids and DC stepper motor. The l298 is an integrated monolithic circuit in a 15 lead multi-watt and power S020 package. Two DC motors and an Arduino Uno are connected as described above, along with an external power supply.The L298 H Bridge is base on l298 Chip manufacture by ST Semiconductor. This is what we've done with the DC motor demonstration sketch. However, if you need to control the speed of the motors, the PWM signal from the digital pin connected to the enable pin can take care of it. And they can be turned off with a LOW to the same pin(s). However, the motors will not turn until a HIGH is set to the enable pin (7 for motor one, 12 for motor two). For example for motor one, a HIGH to IN1 and a LOW to IN2 will cause it to turn in one direction, and a LOW and HIGH will cause it to turn in the other direction. The motor direction is controlled by sending a HIGH or LOW signal to the drive for each motor (or channel). Then connect D10 to module pin 7 (remove the jumper first) and D5 to module pin 12 (again, remove the jumper). In our example we have two DC motors, so digital pins D9, D8, D7 and D6 will be connected to pins IN1, IN2, IN3 and IN4 respectively. PWM pins are denoted by the tilde ("~") next to the pin number, for example:įinally, connect the Arduino digital output pins to the driver module. Now you will need six digital output pins on your Arduino, two of which need to be PWM (pulse-width modulation) pins. Don't forget to connect Arduino GND to pin 5 on the module as well to complete the circuit. This can be fed to your Arduino's 5V pin to power it from the motors' power supply. If you supply is up to 12V you can leave in the 12V jumper (point 3 in the image above) and 5V will be available from pin 6 on the module. Next, connect your power supply - the positive to pin 4 on the module and negative/GND to pin 5. Otherwise, you may need to swap them over when you set both motors to forward and one goes backward! If you're using two motors for a robot (etc) ensure that the polarity of the motors is the same on both inputs. First, connect each motor to the A and B connections on the L298N module. To control one or two DC motors is quite easy.
![l298n motor driver pdf l298n motor driver pdf](https://i.pinimg.com/736x/d1/17/56/d11756ce8d691345e61ecfcf6419d62b.jpg)
Connect to PWM output for DC motor speed control.
![l298n motor driver pdf l298n motor driver pdf](https://content.instructables.com/ORIG/F2T/UD84/IVHQKUI3/F2TUD84IVHQKUI3.jpg)
Leave this in place when using a stepper motor.
#L298n motor driver pdf how to#
Furthermore, if you're completely new to the world of Arduino we highly recommend you review a copy of "Arduino Workshop", and if you have questions, ask in our customer forum.įirst, we'll run through the connections, then explain how to control DC motors then a stepper motor. These L298 H-bridge dual motor controller modules are inexpensive and available from the Tronixlabs Australia store. There is also an onboard 5V regulator, so if your supply voltage is up to 12V you can also source 5V from the board. This allows you to control the speed and direction of two DC motors, or control one bipolar stepper motor with ease. The L298N H-bridge module can be used with motors that have a voltage of between 5 and 35V DC. In this tutorial, we'll explain how to use our L298N H-bridge Dual Motor Controller Module 2A with Arduino.