1. Introduktion
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. Produktet er slutview
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.
Understøttede funktioner:
- 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 og nyere
- STVD and above
- STVP 3.2.3 og nyere
- IAR EWARM V6.20 og nyere
- IAR EWSTM8 V1.30 og nyere
- KEIL RVMDK V4.21 og derover
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.
- RST: Reset pin
- SWDIO: Serial Wire Debug Data Input/Output
- GND: Jord
- GND: Jord
- SVØMME: Single Wire Interface Module
- SWCLK: Serial Wire Clock
- 3.3V: 3.3 Volt Power Output
- 3.3V: 3.3 Volt Power Output
- 5.0V: 5.0 Volt Power Output
- 5.0V: 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. Opsætningsvejledning
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.

Nærbillede 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).
- Forsyning Voltage: Connect a DC power source between 2V and 10V to the '+' and '-' terminals.
- Motorforbindelser: Connect Motor-A to the 'MOTOR-A' terminals and Motor-B to the 'MOTOR-B' terminals.
- Styresignalindgang: 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. Betjeningsvejledning
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 MOTOR | MODE | IN1 | IN2 | IN3 | IN4 |
|---|---|---|---|---|---|
| MOTOR-A | Forward | 1/PWM | 0 | ||
| Tilbageførsel | 0 | 1/PWM | |||
| Standby | 0 | 0 | |||
| Bremse | 1 | 1 | |||
| MOTOR-B | Forward | 1/PWM | 0 | ||
| Tilbageførsel | 0 | 1/PWM | |||
| Standby | 0 | 0 | |||
| Bremse | 1 | 1 |
Note:
- "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. Vedligeholdelse
To ensure the longevity and reliable operation of your ST-Link V2 and H-Bridge modules, follow these general maintenance guidelines:
- Keep the devices in a dry environment, away from moisture and extreme temperatures.
- 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. Fejlfinding
If you encounter issues with your ST-Link V2 or H-Bridge modules, consider the following troubleshooting steps:
- Forbindelsesproblemer: Double-check all wiring for correct pin assignments and secure connections. Ensure power supply is within the specified voltage rækkevidde.
- 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.
- Motor overophedning: Ensure the motor current does not exceed the H-Bridge module's capabilities. Reduce load or operating time if necessary.
7. Specifikationer
7.1 ST-Link V2 Programming Unit
- Supported Microcontrollers: STM32 (SWD interface), STM8 (SWIM interface)
- Interface: USB 2.0 full speed
- Udgang Voltage: 3.3V, 5.0V (selectable via pins)
- Firmware: Automatic upgrade support
7.2 Dual H-Bridge DC Stepper Motor Driver Module
- Driver chip: Imported original chip with low on-resistance MOS switch
- Motortype: Drives two DC motors or one 4-wire two-phase stepper motor
- Forsyning Voltage: 2V til 10V DC
- Styresignalvolumentage: 1.8V til 7V
- Kontrolindgange: IN1, IN2 (for Motor-A); IN3, IN4 (for Motor-B)
8. Garanti og support
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.





