Arduino Shield L298P Motor Driver with GPIO
|
Rigol DSG836A - RF Signal Generator...
ARD L298PBUZZ
5 Item Items
In stock
Warning: Last items in stock!
Availability date:
Arduino Shield L298P Motor Driver with GPIO
This Motor Driver Shield based on L298P motor driver IC is capable of driving two brushed motor, with speed, direction, start and stop simultaneously. With two full H-bridge circuit, this motor driver shield can also drive bipolar or unipolar stepper motor.
Besides the L298P driver IC, it comes with tones of header pins and female header for GPIO of Arduino. The ADC pins of Arduino main board are being extended to SVG (Signal Voltage Ground), RC servo alike header pins. Making it simple for you to connect to sensor module with the extra pin of GND and 5V.
Not to forget there are two types of Bluetooth module, mainly the HC05 or HC06. Another type bluetooth connector is seldom being utilized.
This multi-featured motor shield based around the L298P driver chip fits onto Arduino Uno or other Arduino UNO compatible boards.
The Arduino's 5V is brought up to the shield and is available on:
This ensures that they have good clean 5V power independent of what the motors are doing.
The Arduino's 3.3V is brought up to the shield and is available on the 2 Bluetooth connectors.
Arduino main board can be powered separately using the normal USB or DC power connector or alternatively, it can also be powered from this Shield. To select this power path, there is a jumper near the electrolytic cap labeled ‘OPT’. When this jumper is removed, the Arduino must be powered separately. When the jumper is installed, the power from the motor VMS power connector is connected to the Vin pin on the Arduino which feeds the Arduino on-board 5V regulator. To use this option, the motor power input must be at least 6.5VDC and less than 12VDC to feed the regulator. If powering the Arduino off the shield, the DC power jack on the Arduino should not be used to avoid a power conflict, but the USB can be used.
The motor power comes in on the 2-pos screw terminal. The VMS is the positive motor voltage which can range from 4.8 to 24VDC. If you are using this input to power the Arduino by installing the ‘OPT’ jumper, the maximum input voltage on this terminal should be limited to 12V to avoid overheating the Arduino regulator.
This motor power is fed to a 5V regulator that is mounted to the bottom of the shield. This 5V feeds the white servo connector(near to buzzer). This isolates any servo electrical noise from getting back into the main 5V that powers the logic. For this 5V regulator to function, the VMS voltage must be at least 6.3V and limited to 12VDC max to avoid heat to the 5V regulator.
Note: If you have the OPT jumper in place and USB connected, but there is no power on the VMS motor connector, it will try to use the USB power to power the DC motors. This should be avoided.
If you have the OPT jumper in place and power coming on the DC Jack on the Arduino, it will work but the DC motor noise will be coupled into the 5V logic power supply and may cause eradicate behavior and so it is not really recommended. In general, if you are using the motors, you should plan to bring the motor power in on the VMS power connector for the most stable operation.
The L298P contains two full H-Bridge drive channels that provide full speed and direction control. The 2 DC motor drive channels can operate at voltages from 4.8 – 24V and at currents of up to 2.0A (peak) and 1.0A continuous per channel.
You can also have 2 motors share a motor drive channel as long as the combined current stays within the 2A and you don’t mind the motors turning the same direction and speed. This is typically the case when you have a 4 wheel drive robotic vehicle and the 2 wheels on each side operate at the same speed and direction.
The L298P motor driver uses Arduino pins D10, D11, D12 and D13 for motor control. Pins 10 & 11 are PWM pins and connect to the chip EN pins to provide speed control by modulating the enable input. D10 controls speed of motor A and D11 controls speed of motor B.
Pins 12 & 13 are connected to the IN inputs to provide direction control. Pin 12 controls direction of motor A and Pin 13 controls direction of motor B. Usually there are 2 pins used to determine the direction of rotation for each motor, but this shield has an inverter that provides an inverted version of the signal to the two pins. This reduces the number of pins used on the Arduino, but it does remove the ability to do dynamic braking which usually isn’t an issue for most projects. Reducing the speed control pins to a PWM value of zero will get things stopped.
The motor connections are via a 4-way screw terminal block with 2 terminals for each motor that are labeled MOTORA and MOTORB.
The +/- pins for each motor are not labeled, so it is somewhat arbitrary how your wire them and relative to what you consider forward vs reverse motor operation. Basically if the motor goes in the opposite direction than you expect, simply reverse the wiring for that motor.
These motor connection points are also mirrored on a 4-pin female header for a little more flexibility.
These motor drive leads also have yellow and green LEDs attached to them. Their brightness will vary depending on the strength of the PWM signal.
Servo motors are 3 wire devices. They require 5V, Ground and a PWM signal to set its position. The shield uses D9 for the PWM signal. One nice feature of these modules is that it has a dedicated 5V regulator to power the servo to prevent electrical noise from getting back into the main 5V logic power.
Servos are typically used to turn a small steering wheel or to rotate a sensor, such as an ultrasonic rangefinder for obstacle avoidance.
To use the servo, you will need to have a minimum of 6.5VDC on the main motor power connector for the regulator to operate.
If you are not using a servo, D9 as well as this dedicated 5V is available for other uses.
All of the I/O is brought up to stackable female headers on the shield except for the IOREF and the two I2C pins hear the USB connector so it can support a daughter shield as long as it does not conflict with the pins in use. In addition, many of these pins are broken out to other headers for easy hookup.
The shield uses the following pins which remain available if you are not using that function:
There are two Bluetooth connectors on the board. The first connector is a 4-pin header that brings out 3.3V power, ground, TX and RX. This type of connector is compatible with HC05 or HC06 Bluetooth modules and perhaps some others. The Receive pin has a 1K/2K voltage pider to level shift the TX output of the Arduino to be 3.3V compatible which is a nice feature.
1 x 4 Bluetooth ‘BT2’ Female Header (Black)
The other Bluetooth header is a 12-pin male header. The TX, RX 5V and ground are hooked up to this header. The only 12-pin Bluetooth connectors are generally associated with automobiles, so this connector does not seem to be of much use. The pin spacing is also 2mm rather than the standard 2.54mm
A common robotic interface is Ultrasonic Rangefinders such as the HC-SR04. These work by sending out a ping of ultrasonic sound and timing how long it takes for the ping to come back. The board has a dedicated 4-pin header to connect the sensor.
1 x 4 Ping Male Header (Yellow)
A common issue when hooking sensors up to an Ardino is that many require Ground/VCC connections as well as an analog input or digital I/O. This board brings out the A0-A5 pins to a row of headers that also provide separate power and ground points for each A0-A5 pin, in SVG format. The white headers are the signal lines, the red headers provide 5V and the black headers provide ground.
The A0-A5 pins can be used either for analog inputs or as digital I/O, so both types of sensors can be supported.
3 x 6 Header (White/Red/Black)
There is also a 3-pin blue header that that brings out 5V, ground and D2 that can be used for a digital sensor or other remote connection
1 x 3 Header (Blue)
And for good measure, there is a 5-pin header that brings out D3, D5, D6, 5V and Ground. This puts 3 PWM outputs along with power and ground on a single connector which can be handy for a number of things like driving an RGB LED, common cathode or anode type is supported
1 x 5 Header (Blue)
The buzzer is wired to D4. It is active HIGH
The shield has a extra reset button located on it for easy access.
Compatible | Arduino Uno |
27,14 €
0,11 €
Kitronik 5109 - Kitronik Micro USB to 5V breakout
3,89 €
0,14 €
0,71 €
Original Arduino® ABX00087 - Arduino UNO R4...
33,30 €
0,42 €
Original Arduino® A000067 - AVR ATMEGA2560...
58,00 €
Original Arduino® A000066 - Arduino Uno R3,...
26,40 €
28,68 €