Skip to content
Notifications You must be signed in to change notification settings

Keyaan-07/USB-PD-Power-Supply

Folders and files

NameName
Last commit message
Last commit date

Latest commit

037d33a · · Jul 11, 2025

History

80 Commits
May 29, 2025
May 29, 2025
Jun 3, 2025
Jun 4, 2025
Jun 4, 2025
Jul 11, 2025
Jun 4, 2025
Jun 4, 2025

Repository files navigation

USB-PD-Power-Supply

Sometimes it happens that when playing with electronics, we need more than 5V or 9V. USB PD Power Supply Solves this issue.
By using USB PD Protocol, it can negotiate more than 5V from the USB PD charger. It can give voltage outputs as supported by the PD charger from 5V to 20V and it also supports the new USB PPS protocol which allows us set the voltage according to our own needs. For Example, if some device needs 18V, PPS can do the task and it could supply voltage..

USB PD Power Supply can use both PD and PPS to cupply voltage. The microcontroller is the OG RP2040, which communications with the AP33772SDKZ USB PD negotiator IC to negotiate voltage levels. The Voltage and max current settings are controllable using the two rotary encoders present on the PCB.

How the heck do you assemble this thing?

First of all, you start with the gerber and upload it to your desired pcb manufacturer, I am gonna use PCB Power. Now you order the PCB and all the components, and you wait, after they arrive, you cook(assemble) the PCB. Then what you do is that you upload the code and start using, 3D printed case is optional but you could download the files for that too! Flash firmware(firmware to come in a few days) on RP2040 using thonny or other software and boom your USB-PD-Power-supply is ready

Why I chose to make this Project

I chose to make this project mainly because of the power issues i face. A few days ago, I wanted to power a coil for an electromagnet, i was not able to power it because of power supply from the Power bank (5V) was not enough, so i had the idea of making this because my dad's phone has a USB PD Charger so i could use that charger to power electronics that require higher voltage. That type of a project would be too simple, so i also added two rotary encoders and make a dedicated power supply.

Images

image
image

image


image
image

BOM - Bill Of All Materials:

ITEM NAME ITEM PRICE FUNCTION URL
PCB Manufacturing(5 units) $29.20 Main PCB https://pcbpower.com
PCB Components $32.12 All the PCB Components https://lcsc.com
PCB Stencil $27.25 Stencil for Assembly of PCB https://pcbpower.com
OLED and Headers + M3 screws and inserts, Solder Paste $9.13 Displays voltage and current levels, assembly body, and solder https://roboticsdna.in/product/1-3-inch-iic-128x64-oled-display-module-4-pin-blue/ ,  sp; https://roboticsdna.in/product/m3-x-6mm-brass-heat-set-threaded-round-insert-nut-25-pcs/ ,  sp; https://roboticsdna.in/product/m3-6mm-ss-25-pieces/ ,  sp; https://roboticsdna.in/product/2-54mm-1x20-right-angle-female-header-strip-2/ ,   ;  https://roboticsdna.in/product/original-mechanic-30g-solder-paste/
3d parts $7.98 3d parts https://3ding.in/
Total $105.68

Note: There are a few resistors and capacitors, which had very high minimum order quantity(MOQ), about 100 pieces so i had to forcefully include those, which i will be utilising in my next highway projects. And tbh the prices were very less(about $0.002 per piece) so i think it is alright

PCB Components Breakdown:

Id Designator MPN Footprint DNP MOQ Price Quantity Designation Amount LCSC Part No. Supplier and ref
1 Q1,Q2 BSS138 SOT-23 No Yes 0.0571 10 BSS138 0.571 C82045 https://www.lcsc.com/product-detail/MOSFETs_onsemi-BSS138LT1G_C82045.html?s_z=n_bss138
2 C21,C1,C2,C22 GRM21BR61H106KE43L C_0805_2012Metric No Yes 0.0509 100 10u 5.09 C440198 https://www.lcsc.com/product-detail/Multilayer-Ceramic-Capacitors-MLCC-SMD-SMT_Samsung-Electro-Mechanics-CL21A106KBYQNNE_C2932476.html
3 R17,R10,R9,R20,R18,R19,R7,R6,R8,R11 RC0402FR-7W5K1L R_0402_1005Metric No Yes 0.0057 100 5.1k 0.57 C278598 https://www.lcsc.com/product-detail/Chip-Resistor-Surface-Mount_PANASONIC-ERJ2RKF5101X_C278598.html
4 C14,C15 GJM1555C1H150FB01D C_0402_1005Metric No Yes 0.021 20 15p 0.42 C441742 https://www.lcsc.com/product-detail/Multilayer-Ceramic-Capacitors-MLCC-SMD-SMT_Murata-Electronics-GJM1555C1H150FB01D_C441742.html
5 J5 generic PinHeader_1x04_P2.54mm_Vertical Yes Yes 0 1 Conn_01x04_Socket_external 0 -
6 R2,R1,R5,R16 ERJPA2F1001X R_0402_1005Metric No Yes 0.027 20 1k 0.54 C427241 https://www.lcsc.com/product-detail/Chip-Resistor-Surface-Mount_PANASONIC-ERJPA2F1001X_C427241.html
7 Q4,Q3 AON7672E TRANS_AONR21307 No No 0.7665 5 AON7672E 3.8325 C176755 https://www.lcsc.com/product-detail/MOSFETs_Alpha-Omega-Semicon-AON7262E_C176755.html
8 C12,C18,C4,C8,C13,C3,C7,C9,C6,C5,C17 GRM155R61H104JE14D C_0402_1005Metric No Yes 0.0074 100 100n 0.74 C426067 https://www.lcsc.com/product-detail/Multilayer-Ceramic-Capacitors-MLCC-SMD-SMT_Murata-Electronics-GRM155R61H104JE14D_C426067.html
9 J1 TYPE-C16PIN USB_C_Receptacle_XKB_U262-16XN-4BVC11 No Yes 0.0656 10 USB_C_Receptacle_USB2.0_14P_RP2040 0.656 C393939 https://www.lcsc.com/product-detail/USB-Connectors_SHOU-HAN-TYPE-C16PIN_C393939.html?s_z=n_USB_C_Receptacle_XKB_U262-16XN-4BVC11
10 C10,C11,C16 GRM155R61H105KE05D C_0402_1005Metric No Yes 0.0247 20 1u 0.494 C1518208 https://www.lcsc.com/product-detail/Multilayer-Ceramic-Capacitors-MLCC-SMD-SMT_Murata-Electronics-GRM155R61H105KE05D_C1518208.html
11 J4 generic PinHeader_1x03_P2.54mm_Vertical Yes Yes 0 1 Conn_01x03_Pin_SWD 0 -
12 R13 RCS040210K0FKED R_0402_1005Metric No Yes 0.0278 50 10k 1.39 C3020235 https://www.lcsc.com/product-detail/Chip-Resistor-Surface-Mount_Vishay-Intertech-RCS040210K0FKED_C3020235.html
13 D1,D2 16-213/GHC-YR1S1N/3T LED_0402_1005Metric No Yes 0.0526 20 LED 1.052 C2980183 https://www.lcsc.com/product-detail/LED-Indication-Discrete_Everlight-Elec-16-213-GHC-YR1S1N-3T_C2980183.html?s_z=n_LED
14 U1 RP2040 QFN-56-1EP_7x7mm_P0.4mm_EP3.2x3.2mm No No 1.1274 2 RP2040 2.2548 C2040 https://www.lcsc.com/product-detail/Microcontrollers-MCU-MPU-SOC_Raspberry-Pi-RP2040_C2040.html?s_z=n_rp2040
15 J2 TYPE-C16PIN USB_C_Receptacle_XKB_U262-16XN-4BVC11 No No 0.0656 0 USB_C_Receptacle_USB2.0_14P 0 C393939 https://www.lcsc.com/product-detail/USB-Connectors_SHOU-HAN-TYPE-C16PIN_C393939.html?s_z=n_USB_C_Receptacle_XKB_U262-16XN-4BVC11
16 Y1 ABM8-272-T3 Crystal_SMD_3225-4Pin_3.2x2.5mm No No 0.3856 2 Crystal_GND24 0.7712 C20625731 https://www.lcsc.com/product-detail/Crystals_Abracon-LLC-ABM8-272-T3_C20625731.html?s_z=n_abm8
17 D3,D4 ESDS314DBVR SOT-23-5 No Yes 0.2348 5 ESDS314DBVR 1.174 C1847859 https://www.lcsc.com/product-detail/ESD-and-Surge-Protection-TVS-ESD_Texas-Instruments-ESDS314DBVR_C1847859.html?s_z=n_ESDS314DBVR
18 TH1 NCP15XH103F03RC R_0402_1005Metric No Yes 0.0104 1 10k @ 25C 0.0104 C209959 https://www.lcsc.com/product-detail/NTC-Thermistors_TDK-NTCG103JF103FT1_C209959.html
19 D5 16-213/GHC-YR1S1N/3T LED_0402_1005Metric_Pad0.77x0.64mm_HandSolder No Yes 0.0526 0 LED 0 C2980183 https://www.lcsc.com/product-detail/LED-Indication-Discrete_Everlight-Elec-16-213-GHC-YR1S1N-3T_C2980183.html?s_z=n_LED
20 R14 ERJPA2J100X R_0402_1005Metric No Yes 0.0201 20 10 0.402 C427198 https://www.lcsc.com/product-detail/Chip-Resistor-Surface-Mount_PANASONIC-ERJPA2J100X_C427198.html
21 J6 6.94108E+11 BarrelJack_Wuerth_6941xx301002 Yes Yes 0 0 Barrel_Jack 0
22 SW3 EC11E1820402 RotaryEncoder_Alps_EC11E-Switch_Vertical_H20mm No Yes 1.548 1 RotaryEncoder_Switch_Current 1.548 C361167 https://www.lcsc.com/product-detail/Rotary-Encoders_ALPSALPINE-EC11E1820402_C361167.html
23 R4,R3 ERJ2GEJ270X R_0402_1005Metric No Yes 0.0039 100 27 0.39 C278580 https://www.lcsc.com/product-detail/Chip-Resistor-Surface-Mount_PANASONIC-ERJ2GEJ270X_C278580.html
24 IC1 AP33772DKZ-13 AP33772SDKZ13FA01 No No 1.6472 2 AP33772SDKZ-13-FA01 3.2944 C5244513 https://www.lcsc.com/product-detail/AC-DC-Controllers-and-Regulators_Diodes-Incorporated-AP33772DKZ-13_C5244513.html?s_z=n_AP3377
25 SW2 EC11E1820402 RotaryEncoder_Alps_EC11E-Switch_Vertical_H20mm No Yes 1.548 1 RotaryEncoder_Switch_Voltage 1.548 C361167 https://www.lcsc.com/product-detail/Rotary-Encoders_ALPSALPINE-EC11E1820402_C361167.html
26 U3 W25Q128JVSIM SOIC-8_5.23x5.23mm_P1.27mm No Yes 1.1083 5 W25Q128JVS 5.5415 C2613930 https://www.lcsc.com/product-detail/NOR-FLASH_Winbond-Elec-W25Q128JVSIM_C2613930.html?s_z=n_W25Q128JVS
27 R12 PA0402FRL570R005L R_0402_1005Metric No Yes 0.0679 5 5m 0.3395 C723468 https://www.lcsc.com/product-detail/Current-Sense-Resistors-Shunt-Resistors_YAGEO-PA0402FRL570R005L_C723468.html
28 J3 generic PinHeader_1x04_P2.54mm_Vertical Yes Yes 0 0 Conn_01x04_Socket_OLED 0
29 U2 AMS1117S-3.3 SOT-89-3 No Yes 0.1057 5 AMS1117s-3.3 0.5285 C917152 https://www.lcsc.com/product-detail/Voltage-Regulators-Linear-Low-Drop-Out-LDO-Regulators_JSMSEMI-AMS1117S-3-3_C917152.html?s_z=n_ams1117s
30 R15 ERJPA2J101X R_0402_1005Metric No Yes 0.0374 20 100 0.748 C427204 https://www.lcsc.com/product-detail/Chip-Resistor-Surface-Mount_PANASONIC-ERJPA2J101X_C427204.html
31 SW1 PTS810SJK250SMTRLFS SW_SPST_PTS810 No No 0.6744 2 SW_Push 1.3488 C221896 https://www.lcsc.com/product-detail/Tactile-Switches_C-K-PTS810SJK250SMTRLFS_C221896.html?s_z=n_C221896

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages