KS0435 Keyestudio Motor Drive Shield V2: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:


[[image:0416图片1.png|thumb|550px|right|Keyestudio quick connectors Motor Drive Shield V2 ]]
[[image:KS0435-1.png|thumb|550px|right|Keyestudio quick connectors Motor Drive Shield V2 ]]


<br>
<br>
Line 20: Line 20:
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. <br>
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. <br>


<br>[[File:0411-图片2.png|600px|frameless|thumb]]<br>
<br>[[File:KS0435-2.png|600px|frameless|thumb]]<br>


<br>
<br>
Line 36: Line 36:
<br>
<br>
== PINOUT Diagram ==
== PINOUT Diagram ==
<br>[[File:0411-图片2.png|600px|frameless|thumb]]<br>
<br>[[File:KS0435-4.png|600px|frameless|thumb]]<br>


<br>
<br>
== Hookup Guide==
== Hookup Guide==
<br>[[File:0411-图片2.png|600px|frameless|thumb]]<br>
<br>[[File:KS0435-5.png|600px|frameless|thumb]]<br>


<br>
<br>
Line 85: Line 85:
<br>
<br>
== Resource ==  
== Resource ==  
*Download the datasheet here: <br>
*Download the datasheet here: <br>
https://drive.google.com/open?id=1vzMTO0OgvUjdv7L3ClCY9B-2jQdhPmGt





Revision as of 13:38, 1 July 2019

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 button 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: 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

  • Download the datasheet here:



Get One Now

  • [ Official website]
  • [ Get one now on aliexpress store]