usb-pd-supply

USB-C cable goes in, DC barrel 2.1mm connector goes out. The output voltage is selectable (depends on the Power Delivery profiles your power supply supports).

hardware

The output of the HUSB238 is connected to the input of the LM2596S to get a stable voltage of about 4V (set through the trimpot). This 4V voltage is used to power the Pico through its GND and VSYS pins (pins 33 and 39).

The I2C of the HUSB238 is connected to Pico pins 6 (SDA) and 7 (SCL).

fritzing

Software

It’s an Arduino project using platformio. It uses Adafruit libraries to connect to the HUSB238 and the display boards.

The software will show a list of voltages and the available current. Via the buttons on the display board the user can select the desired voltage.

1

Cad

Cad files are available here:

  • a Fritzing sketch

  • the start of an enclosure project USB PD Supply v1.f3z which I abandoned

  • a finished "round box" enclosure. It’s simply a plate to put on top of the lid of a Danish Cookies tin, and an extra plate to hold the display in place.

2
3