HS-F25-PL Stepper Motor Driver Module

HS-F25-PL Stepper Motor Driver Module

1. Introduction

2. Schematic

ULN2003 stepper motor driver module-HS-F25-PL schematicClick to view

Module Parameters

Pin Name

description

G

GND (Negative Power Input)

V

VCC (Positive Power Input)

IN1

Motor Signal Pin 1

IN2

Motor Signal Pin 2

IN3

Motor signal pin 3

IN4

Motor signal pin 4

  • Supply voltage: 5V

  • Power signal connection method: 6P DuPont wire

  • Stepper motor connection method: PH1.5-4P terminal

  • Installation method: Screw fixed / Lego construction

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

#include <Stepper.h>

Stepper mystepper(2048,2,3,4,5);

void setup(){
  mystepper.setSpeed(10);
}

void loop(){
  //控制步进电机正转一圈反转一圈

  //设置步数与移动步数相等,代表刚好转一圈;移动步数前数值为正代表顺时针转动;负数代表逆时针转动。
  mystepper.step(2048);
  delay(200);
  mystepper.step((-2048));
  delay(200);

}

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

待更新...

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

Image pending update...

8. Setting up the Test Environment

Arduino UNO Test Environment Setup

Prepare Components:

  • UNO-R3 Development Board *1

  • UNO-R3 P Expansion Board *1

  • USB TYPE-C DATA CABLE *1

  • Stepper motor driver module (HS-F25-PL) *1

  • 6P Dupont wire *1

  • PH1.5-4P wire

Circuit wiring diagram:

ESP32 Test Environment Setup

Prepare Components:Pending update...

Circuit wiring diagram:Pending update...

9, Video tutorial

Arduino UNO video tutorial:Click to view

ESP32 Python Video Tutorial:Click to view

10, Test results

Arduino UNO test results:

After programming the program, it can be observed that the motor rotates one revolution, pauses slightly, and then reverses one revolution.