Five USB-C PD trigger boards and what voltage you really get
First new post on the new address. Small boards that negotiate a fixed voltage from a USB-C PD charger are very practical for powering bench projects: one 65 W charger replaces a drawer of wall adapters. They cost 6–25 zł. I had five different ones and wanted to know if I can trust them, before one of them goes into something that doesn’t like surprises.
The boards:
| Chip | Setting | Price | |
|---|---|---|---|
| A | CH224K | DIP switch | 9 zł |
| B | CH224K | fixed by resistor | 6 zł |
| C | HUSB238 | fixed by resistor | 11 zł |
| D | “ZY12PDN” style, with a button and LED | menu | 24 zł |
| E | unknown, marking sanded off | solder jumpers | 7 zł |
All set to 12 V. The chargers: a 65 W GaN charger that offers 5/9/12/15/20 V, a 20 W phone charger with only 5 and 9 V, and a 45 W laptop charger with 5/9/15/20 V (no 12 V). The list of voltages a charger offers I read from its label, which I trust only partially, but the results below agree with it.
What do you get if 12 V is not offered
Voltage without load, in volts:
| Board | 65 W (has 12 V) | 20 W (5/9 V) | 45 W (no 12 V) |
|---|---|---|---|
| A | 12.06 | 5.08 | 5.07 |
| B | 12.11 | 5.10 | 5.08 |
| C | 11.93 | 9.02 | 9.03 |
| D | 12.02 | 9.05 | 9.04 |
| E | 12.18 | 5.11 | 15.12 |
A and B fall back to 5 V. C and D take the next lower voltage, 9 V. Both behaviours are fine, your device just doesn’t start or starts weaker.
E is the problem. With the laptop charger it took 15 V when I asked for 12. Probably it requests “the closest one” and 15 is closer than 9. I have no PD sniffer, so I can’t see the messages, only the result. Nothing broke because I always measure the output before I connect anything, and I recommend that to everybody. Board E is now in the box with a label “NO”.
Under load
With the 65 W charger, the electronic load at the output, 1 m of the cable that came with the charger:
Voltage at the output of each board, load from 0 to 3 A. Board E drops off above 2.25 A.
| Board | 0 A | 1 A | 2 A | 3 A |
|---|---|---|---|---|
| A | 12.06 | 11.86 | 11.65 | 11.45 |
| B | 12.11 | 11.90 | 11.70 | 11.49 |
| C | 11.93 | 11.72 | 11.52 | 11.31 |
| D | 12.02 | 11.75 | 11.48 | 11.21 |
| E | 12.18 | 11.79 | 11.40 | 10.19 |
A, B and C all drop about 0.2 V per amp. Of that, 0.16 Ω is the cable (I measured the loop, VBUS and GND together, with 4-wire on the 34401A), the rest is connectors and the board traces. D has an extra MOSFET in series for its on/off function, that is the additional 0.07 Ω. E is worse everywhere and above 2.25 A the voltage collapses. My guess is it asks the charger for less current than the others and the charger limits it, but again, without a sniffer it’s a guess.
With a thicker 0.5 m cable the drop of board A at 3 A was 0.38 V instead of 0.61 V. If 12 V at 3 A matters, the cable matters more than the choice between A, B and C.
The measuring part
The electronic load I set by hand, but for reading the voltage I used a Pico with a divider into the ADC, so I could log while changing the load. Calibrated once against the 34401A at 12 V:
from machine import ADC
import time
adc = ADC(26)
# divider 100k / 10k, so 3.3 V at the ADC = 36.3 V at the input
K = (100 + 10) / 10 * 3.3 / 65535
CAL = 1.0121 # from comparison with the 34401A at 12.000 V
def volts(n=64):
s = 0
for _ in range(n):
s += adc.read_u16()
return s / n * K * CAL
while True:
print("%.3f" % volts())
time.sleep(0.5)
The RP2040 ADC is not great (there are known non-linearity steps), but averaged and calibrated at one point it was within 15 mV of the 34401A over 10–12.5 V, enough for this.
Conclusion
For my bench: board A, the CH224K with a DIP switch, because I can see the setting without a multimeter. The 6 zł board B is the same chip and works equally well when the voltage never changes. And whatever board: measure before you connect.
Questions or corrections: marek@peplow-labs.info. There are no comments here, but I read the mail.