

The XH-M604 is a DC-DC buck converter module designed to step down voltage from a higher input level to a lower, stable output voltage. This module is highly efficient and widely used in power supply circuits for various electronic applications. Its compact design and adjustable output voltage make it suitable for powering microcontrollers, sensors, and other low-voltage devices.








Below are the key technical details of the XH-M604 module:
| Parameter | Specification |
|---|---|
| Input Voltage Range | 4.5V to 28V |
| Output Voltage Range | 0.8V to 20V (adjustable via potentiometer) |
| Maximum Output Current | 2A (continuous), 3A (peak) |
| Efficiency | Up to 92% |
| Switching Frequency | 150 kHz |
| Dimensions | 45mm x 20mm x 14mm |
The XH-M604 module has the following pin layout:
| Pin Name | Description |
|---|---|
| VIN | Positive input voltage terminal (connect to the higher voltage source). |
| GND | Ground terminal (common ground for input and output). |
| VOUT | Positive output voltage terminal (connect to the load or device to be powered). |
Connect the Input Voltage:
VIN pin.GND pin.Adjust the Output Voltage:
VOUT pin to ensure it matches your desired value.Connect the Load:
VOUT pin.GND pin.Power On:
VOUT and GND pins, as this may damage the module.The XH-M604 can be used to power an Arduino UNO from a 12V power source. Below is an example circuit and Arduino code:
VIN and GND pins of the XH-M604.VOUT pin of the XH-M604 to the 5V pin of the Arduino UNO.GND pin of the XH-M604 to the GND pin of the Arduino UNO.// Example code to blink an LED connected to pin 13 of the Arduino UNO
// Ensure the XH-M604 is providing a stable 5V to the Arduino UNO
void setup() {
pinMode(13, OUTPUT); // Set pin 13 as an output
}
void loop() {
digitalWrite(13, HIGH); // Turn the LED on
delay(1000); // Wait for 1 second
digitalWrite(13, LOW); // Turn the LED off
delay(1000); // Wait for 1 second
}
No Output Voltage:
Output Voltage is Incorrect:
Module Overheats:
Load Device Not Powering On:
Q1: Can the XH-M604 step up voltage?
No, the XH-M604 is a buck converter and can only step down voltage.
Q2: Is the output voltage stable under varying loads?
Yes, the XH-M604 provides a stable output voltage as long as the input voltage and current are within the specified range.
Q3: Can I use the XH-M604 to charge batteries?
Yes, but ensure the output voltage and current are suitable for the specific battery type and charging requirements.
Q4: What happens if I exceed the maximum current rating?
Exceeding the current rating may cause the module to overheat or fail. Use a load within the specified limits.
By following this documentation, you can effectively use the XH-M604 module in your projects and troubleshoot common issues.