KS0435 Keyestudio Motor Drive Shield V2

From Keyestudio Wiki
Jump to: navigation, search
Keyestudio quick connectors Motor Drive Shield V2


Overview

There are many ways to drive the motor. Our robot uses the most commonly used L298P solution.
L298P is an excellent high-power motor driver IC produced by STMicroelectronics. It can directly drive DC motors, two-phase and four-phase stepping motors. The driving current up to 2A, and output terminal of motor adopts eight high-speed Schottky diodes as protection.

We have designed the motor driver shield V2 based on the L298P circuit.
The stackable design can make it be plugged directly into the Arduino, reducing the technical difficulty of using and driving the motor.
Direct stack the motor driver shield onto UNO R3 board, after the BAT is powered on, turn the Slide switch ON, to supply the power for both keyestudio motor driver shield V2 and UNO R3 board.

For simple wiring, the motor driver shield comes with anti-reverse PH2.0- (2P/3P/4P/ 5P) interfaces. When connecting the motor, power supply and sensor modules, you just need to plug in directly.

The Bluetooth interface on the motor driver shield is fully compatible with keyestudio HM-10 Bluetooth module. When connecting, just plug HM-10 Bluetooth module into the corresponding interface.

At the same time, the motor drive shield has brought out extra digital and analog ports in 2.54mm pin headers, so that you can continue to add other sensors for experiments extension.
The motor drive shield can access to 4 DC motors, defaulted by jumper connection. The motor connector A and A1, connector B and B1 are separately in parallel.
The 8 jumpers can be applied to control the turning direction of 4 motors.
For instance, if change the 2 jumpers near the motor A connector from horizontal connection to vertical connection, the turning direction of motor A is opposite to the original rotation direction.


thumb


Technical Details

  • Logic part input voltage: DC5V
  • Driving part input voltage (limit): DC 6-18V
  • Driving part input voltage (recommended): DC 7-12V
  • Logic part working current: <36mA
  • Driving part working current: <2A
  • Maximum power dissipation: 25W (T=75℃)
  • Working temperature: -25℃~+130℃
  • White connector: PH2.0- (2P/3P/4P/ 5P)
  • Dimensions: 66mm*55mm*18mm
  • Weight: 25.2g


PINOUT Diagram


thumb


Hookup Guide


thumb


Test Code

void setup(){
  pinMode(4, OUTPUT);
  pinMode(2, OUTPUT);
}

void loop(){
  digitalWrite(4,HIGH);
  analogWrite(5,100);
  digitalWrite(2,HIGH);
  analogWrite(9,100);
  delay(2000);
  digitalWrite(4,LOW);
  analogWrite(5,100);
  digitalWrite(2,LOW);
  analogWrite(9,100);
  delay(2000);
  digitalWrite(4,LOW);
  analogWrite(5,100);
  digitalWrite(2,HIGH);
  analogWrite(9,100);
  delay(2000);
  digitalWrite(4,HIGH);
  analogWrite(5,100);
  digitalWrite(2,LOW);
  analogWrite(9,100);
  delay(2000);
  analogWrite(5,0);
  analogWrite(9,0);
  delay(2000);
}


Test Result

Done wiring, stack the motor drive shield onto the UNO control board; connect UNO to computer’s USB port with USB cable to upload the code.
Upload success, turn the Slide switch ON; 2 motors will simulate the smart car movement. Turn forward for 2 seconds, backward for 2 seconds, and then rotate to left for 2 seconds, rotate to right for 2 seconds, stop for 2 seconds, alternately and circularly.



Resource

https://drive.google.com/open?id=1upaMVPVRjMjo9RGnhfdJh01JSdnL4EUN



Get One Now

  • [ Official website]