EEVblog Electronics Community Forum
Electronics => Beginners => Topic started by: newtekuser on August 08, 2024, 10:57:13 pm
-
I have a board that is USB powered, literally just tapping into VBUS without any downstream devices that need actual USB support, so don't care about protocol compliance etc.
However, I am in a situation where the board draws up to 100mA on start-up from all caps I have on the PCB, which sometimes causes issues with the operation of the device on start-up.
I would like to add a soft-start circuit to limit the in-rush current to around 20mA which is the idle power draw of my device.
Possible solution #1:
https://imgur.com/Jb2PK9C (https://imgur.com/Jb2PK9C)
Do I add my 100uF bulk capacitor before or after the mosfet? My intuition says before since I want the charge time of the capacitor to be slowed down.
Possible solution #2:
https://www.ti.com/lit/an/slva670a/slva670a.pdf (https://www.ti.com/lit/an/slva670a/slva670a.pdf)
1. For the discrete option, how do I calculate component values?
2. For the voltage regulator option, what options would you recommend? I found NCP330 mosfet. The data sheet shows a sample application in Figure 1., but in my case I can't control the Enable pin so, maybe just tie it to VBUS instead?
https://www.onsemi.com/pdf/datasheet/ncp330-d.pdf (https://www.onsemi.com/pdf/datasheet/ncp330-d.pdf)
Possible solution #3:
Section 2.4.2 Bulk capacitance vs. inrush current – USB peripheral devices
https://www.ftdichip.com/Support/Documents/AppNotes/AN_146_USB_Hardware_Design_Guidelines_for_FTDI_ICs.pdf (https://www.ftdichip.com/Support/Documents/AppNotes/AN_146_USB_Hardware_Design_Guidelines_for_FTDI_ICs.pdf)
Same question as earlier, do I add my bulk capacitor before or after the mosfet?
My desire is to go with an integrated solution, but the discrete option works too as I'm not space constrained.
-
https://www.ti.com/lit/an/slva670a/slva670a.pdf (https://www.ti.com/lit/an/slva670a/slva670a.pdf)
1. For the discrete option, how do I calculate component values?
That idea relies on the gate capacitance of the MOSFET - so the value of R_SR depends entirely on the MOSFET you use. It just uses RC-charging of the gate capacitor to slow down the turn on of the MOSFET. Since the gate capacitance of a MOSFET is usually very small (typically in the 10s of pF) you need a R_SR in the megaohm range to get an appreciable RC time constant.
You can be less dependent on the MOSFET's gate capacitance (and use a smaller R_SR) by adding your own capacitor as shown in this Falstad simulation:
(Falstad simulation link) (https://www.falstad.com/circuit/circuitjs.html?ctz=CQAgjCAMB0l3BWcMBMcUHYMGZIA4UA2ATmIxAUgoqoQFMBaMMAKADMQU88RcAWTt04JCIPhDDQkMSChYAnQT35LeeAVTDxICzvmGi0y9VGRwWAdz3GBXG1Eu9ItkWpeidVowfCEqKVx0AJV9-V2YUHyoqPlpTaKkWAGdVbBM7MWxIzRA2AEMAGyS6FgBzVT4sisINB0U09zdebA8zMqbsFo7CHmiWAGNOWJ8UYZUE7QgYWMISGoJnBBRR7GlYSFYvfQDDYZ2HLz3XTEj9zyGqFQzxlgB7EGIQGtNYsih1jaWEPAw8YkhCAF3toyIQRED-A9eCwgA)
The scope display at the bottom shows the current through the 100R load resistor. Pressing the switch will show how the current ramps up (and down when the switch is opened.)
-
Do I add my 100uF bulk capacitor before or after the mosfet? My intuition says before since I want the charge time of the capacitor to be slowed down.
What do you mean by "before" or "after"? As you say, you want the cap to be affected by the soft-start circuitry so in the schematic below it should on the VCC_SWITCHED bus.
[attach=1]
-
2. For the voltage regulator option, what options would you recommend? I found NCP330 mosfet. The data sheet shows a sample application in Figure 1., but in my case I can't control the Enable pin so, maybe just tie it to VBUS instead?
It is possible you can leave it unconnected. From the datasheet:
[attach=1]
Note where it says "The high side MOSFET is automatically turned on if the Vin voltage is applied thanks to internal pull up connected between Vin and EN pin."
-
Thanks ledtester. Would you recommend going with the solution/circuit using the IRLML6402TRPBF, or the solution/circuit using the NCP330?
-
Would this work if I used the NCP330 this way?
-
I'm not sure how much this will help, but when I was designing my own soft-starter circuit, I used the following links below. I'm not all that experienced or intuitive unlike the other users here, so it took me some time to understand how it works and how to play around with it in simulation. But using those guides as a rough guideline, I incorporated them into my design as a slow starter. It worked for me, but I modified it a bit by replacing the NPN with an NMOS, and I added a resistor across the PMOS like what you did in your circuit.
https://circuitcellar.com/cc-blog/issue-304-eq-answers/ (https://circuitcellar.com/cc-blog/issue-304-eq-answers/)
https://www.onsemi.com/pub/Collateral/AND9093-D.PDF (https://www.onsemi.com/pub/Collateral/AND9093-D.PDF)