$ 1 5.000000000000001E-7 6.724437240923179 50 5.0 50
172 768 368 800 368 0 6 0.01 0.01 0.0 0.0 0.5 Voltage
r 848 336 848 400 0 0.01
g 848 400 848 416 0
l 656 224 720 224 0 4.7E-5 1.1424579216893314
d 656 272 656 224 1 0.3
c 720 272 720 224 0 0.0022 -2.131877625920294
162 848 224 848 272 1 2.1024259 1.0 0.0 0.0
159 480 224 512 224 0 0.01 1.0E10
R 144 224 112 224 0 0 40.0 15.0 0.0 0.0 0.5
150 496 352 496 272 0 2 0.0
w 512 224 656 224 0
w 496 240 496 272 0
g 656 272 656 288 0
l 720 224 784 224 0 4.7E-6 1.017274131199679
c 784 224 784 272 0 4.7E-5 2.112582196613325
w 784 224 848 224 0
r 768 368 688 368 0 10000.0
c 688 368 688 480 0 2.2E-6 0.008681254288512305
g 688 480 688 496 0
a 624 352 512 352 0 15.0 -15.0 1000000.0
w 848 336 624 336 0
w 848 336 848 272 1
r 624 368 624 480 0 100000.0
g 624 480 624 496 0
w 624 368 688 368 0
a 320 352 432 352 0 15.0 0.0 1000000.0
c 320 288 224 288 0 1.8E-10 0.5144001826132245
r 320 288 432 288 0 100000.0
w 432 288 432 352 0
w 320 336 320 288 0
w 320 368 320 416 0
r 320 416 432 416 0 100000.0
w 432 416 432 352 0
r 320 416 224 416 0 100000.0
w 432 352 480 352 0
r 176 336 176 416 0 47000.0
r 176 416 176 496 0 47000.0
c 224 416 224 496 0 2.1999999999999998E-4 0.13076111194300727
g 176 496 176 512 0
w 176 416 224 416 0
w 144 224 176 224 0
w 176 224 480 224 0
w 176 224 176 336 0
w 224 416 224 288 0
g 224 496 224 512 0
g 720 272 720 288 0
g 784 272 784 288 0
w 432 288 432 176 0
w 512 48 512 32 0
w 512 32 176 32 0
w 176 32 176 224 0
t 464 64 512 64 0 1 -14.843168833097234 -0.6447190762854645 100.0
t 464 128 512 128 0 -1 0.1568311669027659 -0.6447190762854645 100.0
r 432 176 432 96 0 1000.0
w 432 96 464 96 0
w 464 96 464 128 0
w 464 96 464 64 0
d 512 32 576 32 1 0.805904783
d 576 32 640 32 1 0.805904783
c 576 32 576 96 0 9.999999999999999E-6 13.496166052807856
w 576 96 512 96 0
w 512 96 512 80 0
w 512 112 512 96 0
g 512 144 512 160 0
c 640 32 640 144 0 1.0E-6 25.736795068834795
g 640 144 640 160 0
z 704 144 704 32 1 0.805904783 16.0
g 704 144 704 160 0
r 640 32 704 32 0 680.0
O 768 32 816 32 1
c 768 32 768 144 0 1.0E-6 16.069480834640004
g 768 144 768 160 0
w 768 32 704 32 0
o 15 64 0 289 1.3701039886888295 1.7537331055217023 0 -1
o 32 8 0 43 20.0 9.765625E-5 1 -1
The current shunt is still on the low side even though the power device is a n-channel MOSFET. With limited other components it could be replaced with a NPN darlington, like the TIP122, in my original circuit.N channel is probably a non starter. There is a reason Wook and I are going with p channel. Basically the amps (the comparators) sense near their ground connection. It doesn't work the other way well. Even op amps have this restriction, and you will need a high speed op amp for it to work. Speed comes with comparators as a given.
I made the 0.1Ω current sense resistor. It drew 0.85A with 0.1V across it, which puts it at 0.118Ω.
I cut 12 ¼" of 30 gauge wire wrap wire, then folded it until it was just under ½" long, then shrank some heat shrink tubing around it.
Less than 0.1Ω (such as 0.01Ω) is also going to be a problem, since you are approaching the resistance of the leads and wires within the circuit.
That's precisely why I want to use an n-channel FET. But current sensing is on the low side and this seems to work well. Why can't you do current sensing on the low side with MOSFETs?Well, another of the reasons a P-ch version was attractive is that high-side current sensing can get a bit hairy. Commonly used comparators can "see" down to ground, but don't handle inputs within ~1.5v of +V very well; they don't see them at all.
The idea was to make a fairly easy circuit where most of the stuff could be obtained locally, and at the same time, it would be pretty efficient.
But, I just don't have a P-ch MOSFET on hand that really satisfies all of the requirements of this project - and I completely forgot to check my favorite local electronic goodies store to see if they had anything suitable. Most of what they carry is surplus from electronic manufacturers. I've found some N-ch logic level MOSFETs, but not many.
P-ch works OK for low-power stuff, but once you start getting into more than a few amps current, N-ch is really the way to go. Otherwise, you wind up with a really large gate charge penalty; about 2.5 times as much as an equivalent N-ch MOSFET.
Trouble is, if you have the current shunt between the source terminal of the N-ch MOSFET and GND, you'll only "see" the current while the MOSFET is on. This results in a rapid escalation of current until something emits smoke.The current shunt is still on the low side even though the power device is a n-channel MOSFET. With limited other components it could be replaced with a NPN darlington, like the TIP122, in my original circuit.
If the current shunt is directly connected to the comparator ground then shouldn't the resistance of the connecting wires only affect efficiency, not accuracy? I have a burned out meter with a 0.01 ohm shunt in it, I desoldered it and soldered some wires on it, so I'll see how it goes.
The current sense shunt would need to be in the LED's current path. You might be forgetting about the "flywheel" diode that keeps the current flowing through the inductor and LEDs when the MOSFET is off. The sense shunt needs to be in that loop somewhere.That's precisely why I want to use an n-channel FET. But current sensing is on the low side and this seems to work well. Why can't you do current sensing on the low side with MOSFETs?
Ahh, for what?I was thinking of a TL072/82/92 dual op-amp. Does anyone know if this would work well?
The current sensing portion needs to report to the current control/switching portion what the actual current flow is through the load at any given point in time.I suspected the loop (freewheeling diode, inductor and capacitor) could be an issue. Would the 0.01 ohm low side shunt work if all grounds (on the power side) were connected through this?
I'm a complete noob at SMPS design so sorry if what I say is making sense.
by Duane Benson
by Dale Wilson
by Duane Benson
by Aaron Carman