
Megastar
Strong match for mounting style, pitch, and electrical ratings. Footprint verification is required.
HC-XH-4AWT is a 4-pin, 2.5mm pitch, right-angle SMT header. Finding a substitute requires matching the SMT footprint and electrical ratings.
SMT footprints vary between manufacturers; through-hole parts require a new PCB layout.
Key ratings (3A, 250V) are common for this connector type and easily matched.
Direct replacement for HC-XH-4AWT should use only Datasheet verified or Strong match candidates; many approved options still require engineering review.
ZX-HA2.54-4PWT is the strongest candidate, matching the SMT mount and electricals. Footprint verification is mandatory for a drop-in replacement.
The primary risk is mechanical incompatibility. Most alternatives have a different mounting style (Through-Hole vs. SMT) requiring a PCB redesign.

Megastar
Strong match for mounting style, pitch, and electrical ratings. Footprint verification is required.
| Feature / factor | HC-XH-4AWT | ZX-HA2.54-4PWT | XH-4PWB | Alt 3 | Compatibility / risk |
|---|---|---|---|---|---|
| Package | 4-pin SMT Header | 4-pin SMT Header | Through Hole | 4-pin SMT Header / Through Hole — Candidate is right-angle SMT, matching target.; XH-4PWB: Requires PCB redesign for through-hole pins. | |
| Pitch | 2.5mm | 2.5mm | 2.5mm | 2.5mm — matched; XH-4PWB: matched | |
| Current | 3A | 3A | - | 3A — matched | |
| Voltage | 250V | 250V | - | 250V — matched | |
| Temperature | -25°C to +85°C | -25°C to +85°C | - | -25°C to +85°C — matched | |
| Orientation | Right Angle | - | Right Angle | Right Angle — Orientation matches target. | |
| Electrical | 3A / 250V | - | 3A / 250V | 3A / 250V — matched |
Verified drop-in options for HC-XH-4AWT are limited in the current batch. Review candidates marked Strong match or Datasheet verified, and validate package, pinout, and electrical limits before committing a BOM change.