Dual motor driver board HS-F09

Dual motor driver board HS-F09

1. Introduction

2. Schematic

Dual Motor Drive Module-HS-F09B SchematicClick to view

Module Parameters

Pin Name

description

G

GND (Negative Power Input)

V

VCC (Positive Power Input)

B2

Motor B signal pin

B1

Motor B signal pin

A2

Motor A signal pin

A1

Motor A signal pin

  • Power Supply Voltage: 3.3V / 5V

  • Connection Type: 2.54mm Header

  • Installation Method: Double Screw Fixed

4, Circuit Board Size

5 of Arduino IDE example program

Attention: If prompted with an error message about the library file during program upload, please import the library file first!
Arduino IDE Library Download and Import Tutorial:
Click to view

Example program (UNO development board):

 int PWM= 0;

void left() {
  analogWrite(5, PWM);
  analogWrite(6, 0);
}

void right() {
  analogWrite(10, PWM);
  analogWrite(11, 0);
}

void setup(){
  Serial.begin(9600);
  pinMode(5, OUTPUT);
  pinMode(6, OUTPUT);
  pinMode(A0, INPUT);
  pinMode(10, OUTPUT);
  pinMode(11, OUTPUT);
}

void loop(){
  //็”ตๆœบ้ฉฑๅŠจๆฟA1๏ผŒA2ๅผ•่„šๆŽฅD5๏ผŒD6๏ผ›
  //็”ตๆœบ้ฉฑๅŠจๆฟB1๏ผŒB2ๅผ•่„šๆŽฅD9๏ผŒD10๏ผ›
  //็”ตไฝๅ™จๆจกๅ—ๆŽฅA0๏ผ›

  PWM = analogRead(A0) / 4;
  left();
  right();
  Serial.println(PWM);

}

6, ESP32 Python Example (for Mixly IDE/Misashi)

Choose the development board Python ESP32 [ESP32 Generic(4MB)] and upload in code mode

Attention: If prompted with an error message about the library file during program upload, please import the library file first!
Download and import tutorial for Mixly IDE ESP32 library:
Click to view

Example program (ESP32-Python):

import machine

def left():
    pwm12.duty_u16(PWM)
    pwm13.duty_u16(0)

def right():
    pwm14.duty_u16(PWM)
    pwm15.duty_u16(0)




adc32 = machine.ADC(machine.Pin(32))
pwm12 = machine.PWM(machine.Pin(12))
pwm13 = machine.PWM(machine.Pin(13))
pwm14 = machine.PWM(machine.Pin(14))
pwm15 = machine.PWM(machine.Pin(15))
PWM = 0
while True:
    PWM = adc32.read_u16()
    left()
    right()

7, Mixly example program (graphical language)

Example program (UNO development board):Click to download
Attention: If prompted with an error message about the library file during program upload, please import the library file first!
Download and import tutorial of Mixly IDE Arduino library:Click to view

Example Program (ESP32 Development Board):Click to download
Attention: If prompted with an error message about the library file during program upload, please import the library file first!
Download and import tutorial for Mixly IDE ESP32 library:
Click to view

8. Setting up the Test Environment

Arduino UNO Test Environment Setup

Prepare Components:

  • UNO-R3 PRO Development Board *1

  • USB TYPE-C DATA CABLE *1

  • Dual motor drive module (HS-F09C) *1

  • Rotary potentiometer module (HS-S28A) *1

  • PH2.0 terminal motor *2

  • 1P female to female DuPont wire *3 pieces or 3P female to female DuPont wire *1 piece

  • 1P female to female Dupont wire *4 pieces or 2P female to female Dupont wire *2 pieces

  • 3V~5V battery box *1

Circuit wiring diagram (HS-FO9C version):

Circuit wiring diagram (HS-FO9A version):

ESP32 Test Environment Setup

Prepare Components:Pending update...

Circuit wiring diagram:Pending update...

9, Video tutorial

Video tutorial:Click to view

10, Test results

Arduino UNO test results:

After connecting the device wires, burn the above program to the development board, open the battery box switch, and rotate the potentiometer to adjust the motor speed.