1. บทนำ
This manual provides comprehensive instructions for the Aideepen ST-Link V2 Programming Unit and the accompanying Dual H-Bridge DC Stepper Motor Driver modules. It covers product overview, setup procedures, operating guidelines, specifications, and troubleshooting to ensure proper and efficient use of these components in your electronic projects.

This image displays the complete product package, including the purple ST-Link V2 programming unit, five red Dual H-Bridge motor driver modules, and a set of jumper wires for connections.
2. สินค้าหมดview
2.1 ST-Link V2 Programming Unit
The ST-Link V2 is a compact in-circuit debugger and programmer for STM8 and STM32 microcontrollers. It supports both SWD (Serial Wire Debug) for STM32 and SWIM (Single Wire Interface Module) for STM8, facilitating debugging and program downloading. The unit also supports automatic firmware upgrades.
คุณสมบัติที่รองรับ:
- Full range of STM32 SWD debugging interface support.
- Full range of STM8 SWIM download debugging support.
- Automatic firmware upgrades.
Supported Software Versions:
- ST-LINK Utility 2.0 ขึ้นไป
- STVD and above
- STVP 3.2.3 ขึ้นไป
- IAR EWARM V6.20 ขึ้นไป
- IAR EWSTM8 V1.30 ขึ้นไป
- KEIL RVMDK V4.21 ขึ้นไป
ST-Link V2 Interface Definition:
The ST-Link V2 features a 4-wire interface for easy connection. The pin definitions are clearly marked on the unit's housing.

An image of the ST-Link V2 programmer with its pinout clearly numbered and labeled, providing a visual guide for connecting to target devices.
- ร.ส.ท.: Reset pin
- สวีดิโอ: Serial Wire Debug Data Input/Output
- ก.ย.ด.: พื้น
- ก.ย.ด.: พื้น
- ว่ายน้ำ: Single Wire Interface Module
- สวคลค: Serial Wire Clock
- 3.3โวลต์: 3.3 Volt Power Output
- 3.3โวลต์: 3.3 Volt Power Output
- 5.0โวลต์: 5.0 Volt Power Output
- 5.0โวลต์: 5.0 Volt Power Output
2.2 Dual H-Bridge DC Stepper Motor Driver Module
The Dual H-Bridge motor driver module is designed to control two DC motors or one 4-wire two-phase stepper motor. It utilizes an imported original chip with a built-in low on-resistance MOS switch for efficient operation.

A view of five individual Dual H-Bridge motor driver modules, showcasing their compact design and components, including the main driver chip and capacitors.
3. คำแนะนำในการตั้งค่า
3.1 Connecting the ST-Link V2
To connect the ST-Link V2 to your target microcontroller, use the provided jumper wires. Ensure correct pin alignment according to the interface definition provided in Section 2.1. Connect the SWDIO, SWCLK, RST, and GND pins to the corresponding pins on your target board. Provide power to the target board either externally or via the 3.3V/5.0V pins from the ST-Link V2, if supported by your setup.

ภาพระยะใกล้ view of the ST-Link V2 programming unit, highlighting its pinout and showing how jumper wires are typically connected for debugging or programming.
3.2 Connecting the Dual H-Bridge Module
The Dual H-Bridge module requires connections for power supply, motor outputs, and control signal inputs. Refer to the diagram below for proper wiring.

A schematic diagram illustrating how to connect the Dual H-Bridge module, showing connections for supply voltage (2V~10V), I/O control signals (IN1-IN4), and two independent DC motors (Motor-A, Motor-B).
- ปริมาณอุปทานtage: Connect a DC power source between 2V and 10V to the '+' and '-' terminals.
- การเชื่อมต่อมอเตอร์: Connect Motor-A to the 'MOTOR-A' terminals and Motor-B to the 'MOTOR-B' terminals.
- อินพุตสัญญาณควบคุม: Connect your microcontroller's I/O pins to IN1, IN2, IN3, and IN4. The signal voltage range for these inputs is 1.8V-7V.
- IN1 and IN2 control Motor-A.
- IN3 and IN4 control Motor-B.
4. คู่มือการใช้งาน
4.1 Using the ST-Link V2
Once connected, the ST-Link V2 can be used with compatible development environments such as IAR, KEIL, ST-LINK Utility, STVD, and STVP. Install the necessary drivers and software on your computer. Refer to the specific software documentation for detailed instructions on debugging, programming, and firmware updates for your STM8 or STM32 microcontroller.
4.2 Controlling Motors with the Dual H-Bridge
The Dual H-Bridge module controls DC motors based on the logic levels applied to its IN1-IN4 pins. The following table outlines the control modes for each motor:

A table illustrating the control logic for the Dual H-Bridge module, showing input combinations (IN1, IN2, IN3, IN4) for various motor operations like Forward, Reversion, Standby, and Brake for both Motor-A and Motor-B.
| DC มอเตอร์ | โหมด | IN1 | IN2 | IN3 | IN4 |
|---|---|---|---|---|---|
| MOTOR-A | ซึ่งไปข้างหน้า | 1/พีดับเบิลยูเอ็ม | 0 | ||
| การย้อนกลับ | 0 | 1/พีดับเบิลยูเอ็ม | |||
| สแตนด์บาย | 0 | 0 | |||
| เบรค | 1 | 1 | |||
| MOTOR-B | ซึ่งไปข้างหน้า | 1/พีดับเบิลยูเอ็ม | 0 | ||
| การย้อนกลับ | 0 | 1/พีดับเบิลยูเอ็ม | |||
| สแตนด์บาย | 0 | 0 | |||
| เบรค | 1 | 1 |
บันทึก:
- "1" represents a high level; "0" represents a low level; "PWM" indicates a pulse width modulated wave, used to adjust the duty cycle to change speed.
- IN1 and IN2 control MOTOR-A; IN3 and IN4 control MOTOR-B. These two motor controls are completely independent.
- INx anti-input common conduction function: if a pin is floating, it is equivalent to a low input.
5. การบำรุงรักษา
To ensure the longevity and reliable operation of your ST-Link V2 and H-Bridge modules, follow these general maintenance guidelines:
- ควรเก็บอุปกรณ์ไว้ในที่แห้ง ห่างจากความชื้นและอุณหภูมิที่สูงหรือต่ำเกินไป
- Avoid exposing the modules to static electricity. Handle them by the edges or use anti-static precautions.
- Periodically inspect connections for any loose wires or damage.
- Clean the modules gently with a soft, dry cloth if dust accumulates. Do not use liquids or harsh chemicals.
6 การแก้ไขปัญหา
If you encounter issues with your ST-Link V2 or H-Bridge modules, consider the following troubleshooting steps:
- ปัญหาการเชื่อมต่อ: Double-check all wiring for correct pin assignments and secure connections. Ensure power supply is within the specified voltagช่วงอี
- ST-Link V2 Not Detected: Verify that the ST-Link V2 drivers are correctly installed on your computer. Try a different USB port or cable. Ensure the target microcontroller is powered.
- Programming/Debugging Errors: Confirm that your development environment (IAR, KEIL, etc.) is configured for the correct microcontroller and ST-Link V2. Check for firmware updates for the ST-Link V2.
- Motor Not Responding: Check the power supply to the H-Bridge module and the motors. Verify that the control signals (IN1-IN4) from your microcontroller are correct according to the operating table. Ensure motors are properly connected.
- มอเตอร์ร้อนเกินไป: Ensure the motor current does not exceed the H-Bridge module's capabilities. Reduce load or operating time if necessary.
7. ข้อมูลจำเพาะ
7.1 ST-Link V2 Programming Unit
- Supported Microcontrollers: STM32 (SWD interface), STM8 (SWIM interface)
- อินเทอร์เฟซ: USB 2.0 full speed
- ปริมาณการส่งออกtage: 3.3V, 5.0V (selectable via pins)
- เฟิร์มแวร์: Automatic upgrade support
7.2 Dual H-Bridge DC Stepper Motor Driver Module
- Driver Chip: Imported original chip with low on-resistance MOS switch
- ประเภทมอเตอร์: Drives two DC motors or one 4-wire two-phase stepper motor
- ปริมาณอุปทานtage: 2V ถึง 10V DC
- สัญญาณควบคุมความดังtage: 1.8V ถึง 7V
- อินพุตควบคุม: IN1, IN2 (for Motor-A); IN3, IN4 (for Motor-B)
8. การรับประกันและการสนับสนุน
For warranty information or technical support, please refer to the product packaging or contact Aideepen customer service directly through their official channels. Keep your purchase receipt as proof of purchase.





