Getting Started
Starter Kit
Controller Board
Electronic Module

1.Product Introduction

../../_images/DC_Motor_Driver_Module-1.png

The DC Motor Driver Module is an electronic component that controls the DC motor, which controls the rotation direction and speed of the motor by controlling the input signal. There are two control pins on the drive module, one to control clockwise rotation (IN +) and the other to control counterclockwise rotation (IN-). By applying different level signals (high or low levels) to these pins, the motor has clockwise rotation and counterclockwise rotation that can be achieved.

Application reference: small robots, intelligent cars, fans and other projects.

2.Parameter Specification

Parameter Value//Description
Operating voltage 3.3V-5V
Output current 200mA
Operating temperature -10°C~+50°C
Size 3.2cm*2.4cm
../../_images/DC_Motor_Driver_Module-2.png

3.Wiring Diagram

Hint

Expansion board is attached to esp32 controller board.

../../_images/DC_Motor_Driver_Module-3.png
DC Motor Driver Module ESP32
IN- Digital Pin 16
IN+ Digital Pin 17
VCC 5V
GND GND

4.Sample Code

 1void setup(){
 2  pinMode(17, OUTPUT);//Set pin 17 to output mode
 3  pinMode(16, OUTPUT);//Set pin 16 to output mode
 4}
 5
 6void loop(){
 7  digitalWrite(17,HIGH);
 8  digitalWrite(16,LOW);//Motor clockwise rotation
 9  delay(1000); 
10  digitalWrite(17,LOW);
11  digitalWrite(16,LOW);//Motor stop
12  delay(1000); 
13  digitalWrite(17,LOW);
14  digitalWrite(16,HIGH);//Motor contrarotate
15  delay(1000);
16  digitalWrite(17,LOW);
17  digitalWrite(16,LOW);//Motor stop
18  delay(1000);
19}

5.Test Result

When you successfully connect the line according to the wiring diagram and successfully upload the correct program, the motor cycle can turn clockwise for 1 second, stop for 1 second, then turn counterclockwise for 1 second, and stop for 1 second.

../../_images/DC_Motor_Driver_Module-4.png

6.Related Resources

7.Get One Now

B2B Business: info@acebott.com

© Copyright ACEBOTT All Rights Reserved.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.