1. Introduzione
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. Prodotto finitoview
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.
Funzionalità supportate:
- Full range of STM32 SWD debugging interface support.
- Full range of STM8 SWIM download debugging support.
- Automatic firmware upgrades.
Versioni software supportate:
- Utilità ST-LINK 2.0 e versioni successive
- STVD and above
- STVP 3.2.3 e versioni successive
- IAR EWARM V6.20 e versioni successive
- IAR EWSTM8 V1.30 e versioni successive
- KEIL RVMDK V4.21 e versioni successive
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
- Terra: Terra
- Terra: Terra
- NUOTARE: Single Wire Interface Module
- SCCLK: 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. Istruzioni per l'installazione
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.

Avvicinamento 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).
- Volume di fornituratage: Connect a DC power source between 2V and 10V to the '+' and '-' terminals.
- Collegamenti del motore: Connect Motor-A to the 'MOTOR-A' terminals and Motor-B to the 'MOTOR-B' terminals.
- Ingresso del segnale di controllo: 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. Istruzioni per l'uso
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.
| MOTORE A CORRENTE CONTINUA | MODALITÀ | IN1 | IN2 | IN3 | IN4 |
|---|---|---|---|---|---|
| MOTOR-A | Inoltrare | 1/PWM | 0 | ||
| Reversibilità | 0 | 1/PWM | |||
| Stand-by | 0 | 0 | |||
| Freno | 1 | 1 | |||
| MOTOR-B | Inoltrare | 1/PWM | 0 | ||
| Reversibilità | 0 | 1/PWM | |||
| Stand-by | 0 | 0 | |||
| Freno | 1 | 1 |
Nota:
- "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. Manutenzione
To ensure the longevity and reliable operation of your ST-Link V2 and H-Bridge modules, follow these general maintenance guidelines:
- Conservare i dispositivi in un ambiente asciutto, lontano da umidità e temperature estreme.
- 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. Risoluzione Dei Problemi
If you encounter issues with your ST-Link V2 or H-Bridge modules, consider the following troubleshooting steps:
- Problemi di connessione: Double-check all wiring for correct pin assignments and secure connections. Ensure power supply is within the specified voltage gamma.
- 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.
- Il motore non risponde: 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.
- Surriscaldamento del motore: Ensure the motor current does not exceed the H-Bridge module's capabilities. Reduce load or operating time if necessary.
7. Specifiche
7.1 ST-Link V2 Programming Unit
- Supported Microcontrollers: STM32 (SWD interface), STM8 (SWIM interface)
- Interfaccia: USB 2.0 full speed
- Volume di uscitatage: 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
- Tipo di motore: Drives two DC motors or one 4-wire two-phase stepper motor
- Volume di fornituratage: da 2 V a 10 V CC
- Segnale di controllo Voltage: da 1.8 V a 7 V
- Ingressi di controllo: IN1, IN2 (for Motor-A); IN3, IN4 (for Motor-B)
8. Garanzia e supporto
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.





