USB-C PSU 0-20 V 0-4 A - Page 1
Forum section: electronics / projects

author: Micurie
author_rank: Newbie
timestamp: January 07, 2019, 11:11:55 pm
content: Hi all,I was inspired by Dave's µSupply and the new USB-C power delivery standard. So I decided to design my own "USB-C PSU", powered by a USB-C wall adapter or anything which can deliver USB-C power. Depending on the USB-C power capabilities, the single channel PSU should deliver up to 80 W (20V, 4A) in a 25x60x150 mm³ case. It should be a modular supply, so you can stack two or more together, to reach more current or higher voltage. One can use a single USB-C supply for stacked modules if power is sufficient, or use one wall adapter for each module.The specs I aim for are:- 0-20 V output voltage- 0-4 A @ 16 - 20 V- 0-5 A @ 10 - 16 V- 0-6 A @ 0 - 10 V (all assuming a 20V 5A 100W USB-C supply)- low noise (have to test for that)- Resolution: 5 mV, 1 mAI attached the schematic, which I describe in more detail:- USB-C power delivery:I used this approach in a previous project, works just fine.- Display and encoders:I use a two-board construction, with pushable rotary encoders (for current and voltage selection), the "output on/off" switch, an output-on-status-LED and a 128x32 px OLED display (it's tiny: CFAL12832D-B fromwww.crystalfontz.com).- Local regulation:Just a few linear regs to power all the logic stuff- USB current monitorThis section deals with the stackable option; The ATMEGA328 always chooses the highest power profile available from the USB-C power source. So the maximum current rating of the supply is known; The actual current is measured with U9, a CS30C current sens opamp with gain 100. This info is used to limit the maximum power the user can dial in. The ATMEGA328 also computes the remaining current available for another PSU which might be present at the top of this one (connected via P102), done via an analog signal (1 A usable per V). If the PSU does not detect it's own USB-C power source, it gets the remaining available current (and its main power, of course) from a PSU at the bottom via connector "P103". If, on the other hand, the PSU detects its own power source, Q3 and Q4 (back-to-back PFETS) go hi-Z and disconnect power from the bottom. After all that, we should have Vcc available.- DC/DC converter + filterThis is a software controlled DC/DC SEPIC switching converter based on the LTC1370: a "Tracking converter". Its set value is always approx. 1.5V above the voltage setpoint (= Dropout voltage of the linear regulators). I threw in two LC filters after that, maybe I'll get away with one - only testing will tell.- Linear regulation and DAC:This section was also havily inspired by Dave's µSupply series, as you can see. I use the same MAX4080 current opamp and two LT3083 regulators in parallel. I implemented the minimum load for the LTC3083 differently: I use three resistive loads switched in by software to assure regulation. I know, Dave's solution with a current source was more elegant, but I decided earlier, that instead of a ADC to precisiley measure the output voltage, I'd use the INA226 (U13), because it's cheaper. This chip also measures current AFTER the minimum load resistors.For low voltage values (when the DC/DC converter goeas below 5V), the TLV2170 (U15) and the INA226 need an alternative power sourcec, thats were D3 and D4 come in an power the devices from the +5V rail.The DAC is a LTC2612 (14 bit) for now, with a 4.096 V reference, resulting in a voltage resolution of 5 mV/bit.- Main logic:I chose the ATMEGA32u4, it has USB built in, so the supply can be remote controlled via USB.I would appreciate any feedback on this design.Cheers!

author: SiliconWizard
author_rank: Super Contributor
timestamp: January 08, 2019, 01:21:53 am
content: Nice idea.At first sight - isn't something missing?The USB current monitor: there is nothing but a voltage divider (as I take it, to be able to measure VBUS minus the shunt drop) after the current shunt (R19). Shouldn't it go to the rest of the circuit?I can't see where VCC comes from either (but I may have overlooked something). So shouldn't there be a VCC label on the other end of R19?A related question/remark: if I correctly suppose that VCC is VUSB after the current shunt, it could get well under 12V, but it's feeding a 78M12. I haven't used those 78xx regulators in ages, I don't remember how they behave in that case, but I remember they had a rather large dropout voltage. Or maybe you're never asking for less than 12V from VBUS (through FUSB302 I suppose)?

author: Micurie
author_rank: Newbie
timestamp: January 08, 2019, 01:36:11 am
content: Yes, you're right: the other end of R19 should be connected to Source of Q2, instead of VBUS. Thank you - fixed.78M12: Yes, I planned for 20V USB-C power adapters. But it's a good point, since I don't use 12 V anywhere anyway, I should change it to a 9V reg, making the supply usable even with a 36W (12V 3A) adapter.Updated version attached.

author: SiliconWizard
author_rank: Super Contributor
timestamp: January 08, 2019, 02:35:11 am
content: Alright!Another thing I just noticed: R22 should be connected to the cathode of D2 instead of V_SW I think.

author: mvs
author_rank: Frequent Contributor
timestamp: January 08, 2019, 09:01:04 am
content: Quote from: Micurie on January 07, 2019, 11:11:55 pmIt is just ordinary boost converter at the moment... You can find example schematic of SEPIC topology at page 13 in LTC1370 Datasheet.Quote from: Micurie on January 07, 2019, 11:11:55 pmUSB should be isolated from supply. USB operation (like connect/disconnect) may also affect operation of supply.More common solution is to use dedicated USB-UART bridge + isolator like ADUM1201.