

The XY-LPWM is a versatile PWM (Pulse Width Modulation) controller module designed for controlling the speed of DC motors, the brightness of LEDs, and other applications requiring precise power management. By adjusting the duty cycle of the PWM signal, the module enables efficient control of connected devices without significant energy loss. Its compact design and ease of use make it a popular choice for hobbyists and professionals alike.








Below are the key technical details of the XY-LPWM module:
| Parameter | Specification |
|---|---|
| Input Voltage Range | 5V to 30V DC |
| Output Voltage Range | 0V to Input Voltage |
| Output Current | Up to 5A |
| PWM Frequency | 1 kHz to 150 kHz (adjustable) |
| Duty Cycle Range | 0% to 100% |
| Control Interface | Potentiometer for duty cycle control |
| Dimensions | 48mm x 24mm x 11mm |
The XY-LPWM module typically has the following pin layout:
| Pin Name | Description |
|---|---|
| VIN | Positive input voltage terminal (5V to 30V DC) |
| GND | Ground terminal for input voltage |
| VOUT | Positive output voltage terminal (PWM-controlled output) |
| GND | Ground terminal for output voltage |
The XY-LPWM module can be used with an Arduino UNO to control the brightness of an LED. Below is an example code snippet:
// Example: Controlling LED brightness using Arduino and XY-LPWM module
// Connect the Arduino PWM pin (e.g., D9) to the VIN pin of the XY-LPWM module.
// Connect the LED to the VOUT pin of the XY-LPWM module.
int pwmPin = 9; // Define the PWM pin on Arduino
void setup() {
pinMode(pwmPin, OUTPUT); // Set the PWM pin as an output
}
void loop() {
for (int dutyCycle = 0; dutyCycle <= 255; dutyCycle++) {
analogWrite(pwmPin, dutyCycle); // Gradually increase brightness
delay(10); // Small delay for smooth transition
}
for (int dutyCycle = 255; dutyCycle >= 0; dutyCycle--) {
analogWrite(pwmPin, dutyCycle); // Gradually decrease brightness
delay(10); // Small delay for smooth transition
}
}
No Output Voltage:
Overheating:
PWM Signal Not Working with Microcontroller:
Q: Can the XY-LPWM module be used with AC loads?
A: No, the XY-LPWM module is designed for DC loads only. Using it with AC loads may damage the module.
Q: How do I adjust the PWM frequency?
A: Some versions of the XY-LPWM module include a trimmer or jumper for frequency adjustment. Refer to the specific module's datasheet for detailed instructions.
Q: Can I use the module to control multiple devices simultaneously?
A: Yes, as long as the total current drawn by the devices does not exceed 5A. Ensure proper wiring and cooling for stable operation.
Q: Is the module compatible with 3.3V microcontrollers?
A: The module's input voltage range starts at 5V, so it may not work directly with 3.3V microcontrollers. Use a level shifter or a 5V power source for compatibility.