Lib-electronic-components meanwell

Mean Well Part Number Reference

install
source · Clone the upstream repo
git clone https://github.com/Cantara/lib-electronic-components
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/Cantara/lib-electronic-components "$T" && mkdir -p ~/.claude/skills && cp -r "$T/.claude/skills/manufacturers/meanwell" ~/.claude/skills/cantara-lib-electronic-components-meanwell && rm -rf "$T"
manifest: .claude/skills/manufacturers/meanwell/SKILL.md
source content

Mean Well Part Number Reference

MPN Structure Overview

Mean Well part numbers follow a consistent format:

SERIES-WATTAGE-VOLTAGE[SUFFIX]

Examples:

  • RS-25-5
    = RS series, 25W, 5V output
  • LRS-350-24
    = LRS series, 350W, 24V output
  • HLG-150H-24A
    = HLG series, 150W (H=high efficiency), 24V, type A dimming

Product Lines

AC-DC Enclosed Power Supplies

SeriesDescriptionPower RangeFeatures
RSEconomy Enclosed15-150WBasic single output
LRSSlim Enclosed35-600WLow profile, high efficiency
SEHigh Power Enclosed200-1500WPFC, high power
NESSingle Output15-350WClassic design
SPSingle Output with PFC75-750WPower factor correction

DC-DC Converters

SeriesDescriptionPower RangeInput Range
SDEnclosed DC-DC15-1000WVarious input ranges
DDRDIN Rail DC-DC15-480W9.2-72V input options

LED Drivers

SeriesDescriptionPower RangeFeatures
LPVConstant Voltage20-150WIP67 plastic case
HLGHigh Bay40-600W3-in-1 dimming, IP65/67
ELGConstant Current/Voltage75-240WTimer dimming
PLNConstant Current20-100WIP64 plastic case
PWMPWM Output40-200WPWM dimming output
LCMModular25-60WMulti-output configurable

DIN Rail Power Supplies

SeriesDescriptionPower RangeWidth
HDRUltra Slim15-150W1-3 DIN units
EDREconomy75-150W2-3 DIN units
MDRMiniature10-100W1-2 DIN units
NDRSlim75-480W2-4 DIN units
DRStandard75-480W2-4 DIN units

MPN Decoding

Enclosed AC-DC: RS-25-5

RS - 25 - 5
|    |    |
|    |    +-- Output voltage (5V)
|    +-- Power rating (25W)
+-- Series identifier

LED Driver: HLG-150H-24A

HLG - 150 H - 24 A
|     |   |   |  |
|     |   |   |  +-- Dimming type (A=1-10V, B=3-in-1, blank=non-dim)
|     |   |   +-- Output voltage (24V)
|     |   +-- H = High efficiency
|     +-- Power rating (150W)
+-- Series identifier (High Bay LED driver)

DC-DC Converter: SD-25C-12

SD - 25 C - 12
|    |  |   |
|    |  |   +-- Output voltage (12V)
|    |  +-- Input range (A=9.2-18V, B=19-36V, C=36-72V, D=72-144V)
|    +-- Power rating (25W)
+-- Series identifier

DIN Rail: DDR-60G-24

DDR - 60 G - 24
|     |  |   |
|     |  |   +-- Output voltage (24V)
|     |  +-- Input range (G=9-18V wide range, L=18-75V wide range)
|     +-- Power rating (60W)
+-- Series identifier (DIN Rail DC-DC)

Output Voltage Codes

Standard output voltages across most series:

CodeVoltageCommon Applications
3.33.3VLogic circuits
55VTTL, USB devices
1212VLEDs, motors, fans
1515VOp-amp supplies
2424VIndustrial, PLCs
3636VLED strips
4848VTelecom, PoE

HLG Dimming Types

SuffixDimming MethodControl Signal
(blank)Non-dimmableN/A
AAnalog1-10V or 10V PWM
B3-in-11-10V, PWM, or resistance
AB3-in-1 + AuxSame as B with aux output
DDALIDALI protocol
DADALI-2DALI-2 protocol

Handler Implementation Notes

Pattern Matching

Mean Well patterns use the format:

^SERIES-[0-9]+(?:[A-Z])?(?:-[0-9]+)?(?:[A-Z]+)?$

The handler uses explicit series matching for reliability.

Package Code Extraction

Returns wattage with "W" suffix:

handler.extractPackageCode("RS-25-5")  // Returns "25W"
handler.extractPackageCode("LRS-350-24")  // Returns "350W"

Output Voltage Extraction

Extracts voltage after second hyphen:

handler.extractOutputVoltage("RS-25-5")  // Returns "5V"
handler.extractOutputVoltage("HLG-150H-24A")  // Returns "24V"

Series Extraction

Returns the series prefix:

handler.extractSeries("RS-25-5")  // Returns "RS"
handler.extractSeries("HLG-150H-24A")  // Returns "HLG"

Supported ComponentTypes

ComponentType.POWER_SUPPLY
ComponentType.POWER_SUPPLY_AC_DC
ComponentType.POWER_SUPPLY_DC_DC
ComponentType.POWER_SUPPLY_MEANWELL
ComponentType.POWER_SUPPLY_AC_DC_MEANWELL
ComponentType.POWER_SUPPLY_DC_DC_MEANWELL
ComponentType.LED_DRIVER
ComponentType.LED_DRIVER_MEANWELL

Replacement Rules

Two Mean Well parts are considered replacements if:

  1. Same series (e.g., both RS)
  2. Same output voltage
  3. Replacement has equal or greater wattage

Example: RS-50-5 can replace RS-25-5 (same series, same voltage, higher wattage)


Helper Methods

The handler provides additional utility methods:

// Check if LED driver
handler.isLEDDriver("HLG-150H-24A")  // true
handler.isLEDDriver("RS-25-5")  // false

// Check if DIN rail
handler.isDINRail("HDR-30-24")  // true
handler.isDINRail("RS-25-5")  // false

// Check if DC-DC converter
handler.isDCDC("SD-25C-12")  // true
handler.isDCDC("RS-25-5")  // false

// Get product description
handler.getProductType("RS-25-5")  // "Economy Enclosed Switching Power Supply"
handler.getProductType("HLG-150H-24A")  // "LED Driver with Dimming"

Test Patterns

Valid AC-DC MPNs

RS-25-5
RS-50-12
RS-100-24
LRS-50-5
LRS-100-12
LRS-200-24
LRS-350-24
LRS-600-48
SE-200-24
SE-450-24
SE-600-24
NES-25-5
NES-50-12
NES-350-48

Valid LED Driver MPNs

LPV-20-12
LPV-35-24
LPV-60-12
LPV-100-24
HLG-40H-12
HLG-80H-24
HLG-150H-24A
HLG-240H-48B
HLG-320H-24
ELG-75-24
ELG-100-48
ELG-150-C500

Valid DC-DC MPNs

SD-25A-12
SD-25B-24
SD-25C-12
SD-50A-24
SD-100B-12
DDR-15G-12
DDR-30L-24
DDR-60G-24
DDR-120D-24

Valid DIN Rail MPNs

HDR-15-5
HDR-30-12
HDR-60-24
HDR-100-24
EDR-75-12
EDR-120-24
EDR-150-48
MDR-10-5
MDR-20-12
MDR-40-24
MDR-60-24
NDR-75-24
NDR-120-24
NDR-240-48

Related Files

  • Handler:
    manufacturers/MeanWellHandler.java
  • Component types: POWER_SUPPLY_MEANWELL, POWER_SUPPLY_AC_DC_MEANWELL, POWER_SUPPLY_DC_DC_MEANWELL, LED_DRIVER_MEANWELL
  • Test:
    handlers/MeanWellHandlerTest.java
  • Manufacturer enum: MEAN_WELL in ComponentManufacturer.java

Learnings & Edge Cases

  • HLG series has optional "H" suffix for high efficiency models before voltage
  • LED drivers with dimming have letter suffix (A, B, AB, D, DA)
  • DC-DC converters use letter codes for input voltage range (A, B, C, D, G, L)
  • Some series have identical wattage/voltage with different features (e.g., RS vs NES)
  • DIN rail width is not encoded in MPN, must reference datasheet
  • IP rating for LED drivers varies by series (LPV=IP67, HLG=IP65/67)
<!-- Add new learnings above this line -->