
Technical details
- 22 mm × 22 mm square
- 4× ⌀2.7 mm Mounting Holes
- 800 mA continuous, 2.5 A peak
- Selectable Power Supply (External or Internal) through Resistor
- VExt 2.5 – 9 V (external pad or backplane 5 V via jumper)
- 1.8 V, 3.3 V, 5.0 V IO
- Arduino IDE Compatible
- MicroPython Compatible
- MicroBlocks Compatible
Drag to rotate
Pinout & connections
Arduino example
#define MOTOR_A1 14
#define MOTOR_A2 41
#define SPEED 200 // PWM value (0-255)
void setup() {
pinMode(MOTOR_A1, OUTPUT);
pinMode(MOTOR_A2, OUTPUT);
}
void loop() {
// Forward
analogWrite(MOTOR_A1, SPEED);
digitalWrite(MOTOR_A2, LOW);
delay(2000);
// Stop
digitalWrite(MOTOR_A1, LOW);
digitalWrite(MOTOR_A2, LOW);
delay(500);
// Backward
digitalWrite(MOTOR_A1, LOW);
analogWrite(MOTOR_A2, SPEED);
delay(2000);
// Stop
digitalWrite(MOTOR_A1, LOW);
digitalWrite(MOTOR_A2, LOW);
delay(500);
}