

The MDR-20-5 is a compact and reliable DIN-rail-mounted power supply manufactured by Meanwell. It delivers a stable 5V DC output with a maximum current of 4A, making it suitable for a wide range of industrial and automation applications. Its robust design includes built-in protections against short circuits, overloads, and overvoltage, ensuring safe and efficient operation in demanding environments.








| Parameter | Value |
|---|---|
| Manufacturer | Meanwell |
| Model Number | MDR-20-5 |
| Input Voltage Range | 85-264 VAC / 120-370 VDC |
| Output Voltage | 5V DC |
| Maximum Output Current | 4A |
| Output Power | 20W |
| Efficiency | 78% (typical) |
| Operating Temperature | -20°C to +70°C |
| Dimensions | 22.5mm x 90mm x 100mm |
| Mounting Type | DIN Rail |
| Protections | Short-circuit, Overload, |
| Overvoltage | |
| Certifications | UL, CE, TUV, EAC, CB |
The MDR-20-5 features screw terminal connections for input and output. Below is the pin configuration:
| Pin Number | Label | Description |
|---|---|---|
| 1 | L | AC Line Input |
| 2 | N | AC Neutral Input |
| 3 | +V | Positive DC Output (5V) |
| 4 | -V | Negative DC Output (Ground) |
The MDR-20-5 can be used to power an Arduino UNO. Below is an example wiring and code snippet:
// Example code to blink an LED using Arduino UNO powered by MDR-20-5
const int ledPin = 13; // Pin connected to the onboard LED
void setup() {
pinMode(ledPin, OUTPUT); // Set the LED pin as an output
}
void loop() {
digitalWrite(ledPin, HIGH); // Turn the LED on
delay(1000); // Wait for 1 second
digitalWrite(ledPin, LOW); // Turn the LED off
delay(1000); // Wait for 1 second
}
| Issue | Possible Cause | Solution |
|---|---|---|
| No output voltage | Incorrect input wiring | Verify AC input connections (L and N). |
| Input voltage out of range | Ensure input voltage is within 85-264 VAC. | |
| Overload or short circuit on output | Check and remove excessive load or shorts. | |
| Output voltage fluctuates | Insufficient ventilation | Ensure proper airflow around the unit. |
| Load exceeds maximum rating | Reduce the load to within 4A. | |
| Power supply overheats | High ambient temperature | Operate within the specified temperature. |
| Poor ventilation | Improve airflow or reposition the unit. |
Can the MDR-20-5 be used with DC input?
What happens if the load exceeds 4A?
Is the MDR-20-5 suitable for outdoor use?
Can I use the MDR-20-5 to power multiple devices?
By following this documentation, users can safely and effectively integrate the MDR-20-5 into their projects and systems.