I had a need for a circuit that can convert 12-24 volts to 5 volts for logic at a few hundred mA, and I wanted to build it with parts that I have on hand. Some of the hysteretic buck converter circuits I've seen use a supply voltage and temperature stable reference, like an LM336, to regulate the output voltage. Unfortunately, I don't have any of those, but I do have some funky-junky 4.7 volt zeners!
I found that using them with a few extra components and the right start-up circuit, one can hijack the output of the 5V post regulator to use as the reference once the circuit is running. Hopefully the output of the regulator will be more stable with regards to temperature and supply voltage changes than just using the zener.
That's a neat way to use the internal 1.25 volt reference of the LM317 as the reference - I didn't think of that. How's the ripple on the output? I'll give that one a try.
On a sunny day (Wed, 20 Apr 2011 07:51:08 -0400) it happened Bitrex wrote in :
Not much, do not remember the exact value, I have 150 uF on the output in my case:
formatting link
I see now I used 230 uH. It is only digital logic so the ripple is not that critical. I found that LM317s from different manufacturers behave very differently. In once case I had to leave out that feedback capacitor, you may have to experiment with that value. That does something to the frequency and then determines the value of L. I added some turns to some old filter core to get the 230 uH:
formatting link
It is reliable, been working OK for about a year 24/7.
The other neat thing about that circuit is that when Vin pulls down to the output voltage, as it does to turn on Q1 when the comparator trips and the internal pass transistor turns on, the voltage at Vin still has to power the the internal comparator. Looks like it will still operate down to a pretty low voltage.
I can't seem to get it to work in simulation, at least with the LM317 model that I'm using. If anyone else wants to try model here's the circuit and model, I'll attempt to attach the component symbol too:
Version 4 SHEET 1 880 680 WIRE -176 -48 -320 -48 WIRE -48 -48 -176 -48 WIRE 352 -48 48 -48 WIRE 384 -48 352 -48 WIRE 528 -48 464 -48 WIRE 704 -48 528 -48 WIRE 704 80 704 -48 WIRE -176 112 -176 -48 WIRE -96 112 -176 112 WIRE -80 112 -96 112 WIRE 0 112 0 16 WIRE 48 112 0 112 WIRE 224 112 208 112 WIRE 320 112 304 112 WIRE 528 112 528 -48 WIRE 528 112 320 112 WIRE 528 128 528 112 WIRE -320 144 -320 -48 WIRE -96 224 -96 112 WIRE 128 224 128 192 WIRE 128 224 48 224 WIRE 192 224 128 224 WIRE 320 224 320 112 WIRE 320 224 272 224 WIRE 48 304 48 288 WIRE 128 304 48 304 WIRE 192 304 128 304 WIRE 352 304 352 -48 WIRE 352 304 272 304 WIRE 352 320 352 304 WIRE 128 336 128 304 WIRE 192 352 192 304 WIRE 208 352 192 352 WIRE 272 352 272 304 WIRE -320 416 -320 224 WIRE -96 416 -96 288 WIRE -96 416 -320 416 WIRE 128 416 -96 416 WIRE 352 416 352 384 WIRE 352 416 128 416 WIRE 528 416 528 192 WIRE 528 416 352 416 WIRE 704 416 704 160 WIRE 704 416 528 416 SYMBOL lm317 128 128 R0 SYMATTR InstName U1 SYMBOL polcap -112 224 R0 WINDOW 3 24 64 Left 0 SYMATTR Value 47µ SYMATTR InstName C1 SYMATTR Description Capacitor SYMATTR Type cap SYMATTR SpiceLine V=35 Irms=170m Rser=1 Lser=0 mfg="Nichicon" pn="UPG1V470MPH" type="Al electrolytic" SYMBOL res 112 320 R0 SYMATTR InstName R1 SYMATTR Value 100 SYMBOL res 112 208 R0 SYMATTR InstName R2 SYMATTR Value 4.7k SYMBOL cap 32 224 R0 SYMATTR InstName C2 SYMATTR Value 0.01µF SYMBOL res 288 288 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 -22 -2 VTop 0 SYMATTR InstName R3 SYMATTR Value 15k SYMBOL cap 272 336 R90 WINDOW 0 0 32 VBottom 0 WINDOW 3 32 32 VTop 0 SYMATTR InstName C3 SYMATTR Value 300p SYMBOL schottky 368 384 R180 WINDOW 0 24 72 Left 0 WINDOW 3 -99 34 Left 0 SYMATTR InstName D1 SYMATTR Value 1N5819 SYMATTR Description Diode SYMATTR Type diode SYMBOL res 320 96 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 55 VTop 0 SYMATTR InstName R4 SYMATTR Value 0.25 SYMBOL res 288 208 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R5 SYMATTR Value 240 SYMBOL ind 480 -64 R90 WINDOW 0 5 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName L1 SYMATTR Value 220µH SYMBOL pnp -48 16 R270 SYMATTR InstName Q1 SYMATTR Value KSA473 SYMBOL res 16 96 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R6 SYMATTR Value 22 SYMBOL current 704 80 R0 WINDOW 123 0 0 Left 0 WINDOW 39 0 0 Left 0 SYMATTR InstName I1 SYMATTR Value 0.2 SYMBOL voltage -320 128 R0 WINDOW 123 0 0 Left 0 WINDOW 39 0 0 Left 0 SYMATTR InstName V1 SYMATTR Value 24 SYMBOL polcap 512 128 R0 WINDOW 3 24 64 Left 0 SYMATTR Value 100µ SYMATTR InstName C4 SYMATTR Description Capacitor SYMATTR Type cap SYMATTR SpiceLine V=10 Irms=170m Rser=1 Lser=0 mfg="Nichicon" pn="UPG1A101MPH" type="Al electrolytic" TEXT -352 -208 Left 0 !.tran 0.1 startup
*LM317 Adjustable Voltage Regulator
*Adjustable Voltage Regulator pkg:TO-220 3,1,2
*Connections:
I can't seem to get it to work in simulation. :( If anyone else wants to try, here's the circuit and the model and symbol for the LM317 I'm using. I'll try attaching the files too.
Version 4 SHEET 1 880 680 WIRE -176 -48 -320 -48 WIRE -48 -48 -176 -48 WIRE 352 -48 48 -48 WIRE 384 -48 352 -48 WIRE 528 -48 464 -48 WIRE 704 -48 528 -48 WIRE 704 80 704 -48 WIRE -176 112 -176 -48 WIRE -96 112 -176 112 WIRE -80 112 -96 112 WIRE 0 112 0 16 WIRE 48 112 0 112 WIRE 224 112 208 112 WIRE 320 112 304 112 WIRE 528 112 528 -48 WIRE 528 112 320 112 WIRE 528 128 528 112 WIRE -320 144 -320 -48 WIRE -96 224 -96 112 WIRE 128 224 128 192 WIRE 128 224 48 224 WIRE 192 224 128 224 WIRE 320 224 320 112 WIRE 320 224 272 224 WIRE 48 304 48 288 WIRE 128 304 48 304 WIRE 192 304 128 304 WIRE 352 304 352 -48 WIRE 352 304 272 304 WIRE 352 320 352 304 WIRE 128 336 128 304 WIRE 192 352 192 304 WIRE 208 352 192 352 WIRE 272 352 272 304 WIRE -320 416 -320 224 WIRE -96 416 -96 288 WIRE -96 416 -320 416 WIRE 128 416 -96 416 WIRE 352 416 352 384 WIRE 352 416 128 416 WIRE 528 416 528 192 WIRE 528 416 352 416 WIRE 704 416 704 160 WIRE 704 416 528 416 SYMBOL lm317 128 128 R0 SYMATTR InstName U1 SYMBOL polcap -112 224 R0 WINDOW 3 24 64 Left 0 SYMATTR Value 47µ SYMATTR InstName C1 SYMATTR Description Capacitor SYMATTR Type cap SYMATTR SpiceLine V=35 Irms=170m Rser=1 Lser=0 mfg="Nichicon" pn="UPG1V470MPH" type="Al electrolytic" SYMBOL res 112 320 R0 SYMATTR InstName R1 SYMATTR Value 100 SYMBOL res 112 208 R0 SYMATTR InstName R2 SYMATTR Value 4.7k SYMBOL cap 32 224 R0 SYMATTR InstName C2 SYMATTR Value 0.01µF SYMBOL res 288 288 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 -22 -2 VTop 0 SYMATTR InstName R3 SYMATTR Value 15k SYMBOL cap 272 336 R90 WINDOW 0 0 32 VBottom 0 WINDOW 3 32 32 VTop 0 SYMATTR InstName C3 SYMATTR Value 300p SYMBOL schottky 368 384 R180 WINDOW 0 24 72 Left 0 WINDOW 3 -99 34 Left 0 SYMATTR InstName D1 SYMATTR Value 1N5819 SYMATTR Description Diode SYMATTR Type diode SYMBOL res 320 96 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 55 VTop 0 SYMATTR InstName R4 SYMATTR Value 0.25 SYMBOL res 288 208 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R5 SYMATTR Value 240 SYMBOL ind 480 -64 R90 WINDOW 0 5 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName L1 SYMATTR Value 220µH SYMBOL pnp -48 16 R270 SYMATTR InstName Q1 SYMATTR Value KSA473 SYMBOL res 16 96 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R6 SYMATTR Value 22 SYMBOL current 704 80 R0 WINDOW 123 0 0 Left 0 WINDOW 39 0 0 Left 0 SYMATTR InstName I1 SYMATTR Value 0.2 SYMBOL voltage -320 128 R0 WINDOW 123 0 0 Left 0 WINDOW 39 0 0 Left 0 SYMATTR InstName V1 SYMATTR Value 24 SYMBOL polcap 512 128 R0 WINDOW 3 24 64 Left 0 SYMATTR Value 100µ SYMATTR InstName C4 SYMATTR Description Capacitor SYMATTR Type cap SYMATTR SpiceLine V=10 Irms=170m Rser=1 Lser=0 mfg="Nichicon" pn="UPG1A101MPH" type="Al electrolytic" TEXT -352 -208 Left 0 !.tran 0.1 startup
*LM317 Adjustable Voltage Regulator
*Adjustable Voltage Regulator pkg:TO-220 3,1,2
*Connections:
It keeps C5 charged up to the 5 volts from the output I'm using as the reference. C5 does slowly discharge when Q3 switches off and the voltage across D1 goes to ~ -0.6 volts.
The LM*39/93 comparator series have open collector outputs, they need a pullup to define the HIGH output level.
C2
R4 and R3 set the hysteresis for the hysteretic converter, just like a Schmitt trigger. Because the Darlington inverts, the inputs to the comparator are actually reversed, the - input is + and vice versa.
An op amp as inexpensive as a dual comparator like the LM393 probably wouldn't function in the circuit as well because of its more limited slew rate.
That resistor should probably be more like 22k so U1 sinks about a mA when the Darlington turns on. Too large and it will slow down the rise and fall times of the square wave.
ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here.
All logos and trade names are the property of their respective owners.