Simple discrete two transistor boost converter. - Page 1
Forum section: electronics / projects

author: Refrigerator
author_rank: Super Contributor
timestamp: February 25, 2017, 12:11:03 pm
content: I like my circuits discrete and as a bit of a challenge for myself i came up with a DC-DC boost converter that uses only two transistors.Yes, i know, that's a MOSFET, not a BJT but it's a transistor nonetheless, aFieldEffectTransistor, if you will.The MOSFET could easily be replaced with a BJT, you would only need to increase R1 to 1K to do so, but the current output would be much lower.Also this circuit is rather sensitive to the input voltage, the particular circuit above is designed to boost from a lithium cell to many voltages set by a zener diode D2.Lowering R3 increases the frequency, same goes for C1, but you can't make them too low otherwise the circuit won't work.To make the circuit work with higher input voltage increase R1.I did make this circuit on some perf board but i couldn't find where i put my 2N3904s so i used a BC547, which worked out fine.Load regulation is not bad, with some random zener i found the circuit gives me 5.65V no load and 5.5V at 1A, and operates at about 100kHz.MOSFET is not too important as long as it has a gate voltage of 3V or less it will be fine.I'll attach the LTspice file if anyone wants to play with this circuit.

author: Zero999
author_rank: Super Contributor
timestamp: February 25, 2017, 07:29:52 pm
content: I've cleaned up the schematic. No one can read that spider's web.See attached.The simulation gives an efficiency of around 87%. In real life it will be poorer. Did you do any measurements/calculations?I think it MOSFET is more important than you realise. It needs to have a low gate charge, otherwise the efficiency will fall.

author: Richard Head
author_rank: Frequent Contributor
timestamp: February 25, 2017, 09:06:37 pm
content: How does the MOSFET switch off?

author: Zero999
author_rank: Super Contributor
timestamp: February 25, 2017, 09:15:40 pm
content: Quote from: Richard Head on February 25, 2017, 09:06:37 pmWhen Q2 turns on, it shorts the gate to the source.

author: Jay_Diddy_B
author_rank: Super Contributor
timestamp: February 25, 2017, 10:39:03 pm
content: Hi,I don't think this circuit will start reliably.If I add some resistance in series with the source V1, it doesn't start to oscillate.I think you need to try on the bench.Regards,Jay_Diddy_B

author: Refrigerator
author_rank: Super Contributor
timestamp: February 26, 2017, 08:32:04 am
content: Quote from: Jay_Diddy_B on February 25, 2017, 10:39:03 pmI did try it on the bench and it had problems starting at low voltages. It would start boosting at 2V but with very low efficiency up to 3.3V or so, from 3.3V to 4.2V it works without any issues.I did put a 33µF tantalum on the input near the inductor.Might be a good time to fire up my scope and make some screenshots.

author: Richard Head
author_rank: Frequent Contributor
timestamp: February 26, 2017, 10:09:07 am
content: When Q2 turns on, it shorts the gate to the source.Agreed but before the BJT can turn on the MOSFET has to switch off to allow the inductor to fly.Self oscillating topologies are normally implemented using a saturating core or some mechanism that switches the MOSFET off when a certain current has been reached.Also, another winding is normally used to switch the MOSFET on and off faster.

author: Richard Head
author_rank: Frequent Contributor
timestamp: February 26, 2017, 10:24:58 am
content: This is an isolated flyback but a boost converter can be implemented easily I'm sure.

author: Refrigerator
author_rank: Super Contributor
timestamp: February 26, 2017, 12:38:37 pm
content: I did some testing on my circuit.Idle it uses 51mA, but it has a green clear LED on the output with a 220series resistor that uses some current.The MOSFET used was salvaged from a dell server motherboard, here's the datasheet:http://pdf.datasheetcatalog.com/datasheet/fairchild/ISL9N312AD3.pdfIn my circuit R3 = 100k, C1 = 470p.To test the output on higher load i put a 6.8resistor across the output, with an 18650 cell on the output through a 0.22current shunt because my meter fuse was blown.Input current was 1.55A @ 3.23V input voltage.Output current was 0.808A @ 5.5V output voltage.Efficiency comes out to be about 88.8%Quote from: Hero999 on February 25, 2017, 07:29:52 pmThen i must be dreamingI've attached two screenshots of the DC-DC at idle on the drain of the MOSFET, you can see how it regulates and you can also take a look at how nice the the waveform is.I forgot to take screenshots of the loaded DC-DC but they didn't look that different just that the duty cycle was higher.EDIT: looks like the first screenshot got chopped off but there's nothing too important just a few more cycles and some slight ringing.

author: Berni
author_rank: Super Contributor
timestamp: February 26, 2017, 12:48:16 pm
content: I had my own go at it and this is what i came up withIts similar to the "jule theif" cirucit or the photoflash boost circuit. But i used the other transistor to give it a regulated output so that it can power an actual circuit with varying current consumption.Here are the simulation results of it with the input voltage swept from 3V down to 1V and it keeps on working fine, providing roughly 5V at 100mA from it.The efficiency is probably not great tho but it does offer a lot of features for a tiny component count.

author: Refrigerator
author_rank: Super Contributor
timestamp: February 26, 2017, 03:42:19 pm
content: I made some more screenshots of my circuit under load.First screenshot is of the circuit at idle. I included this since the other one didn't have the full set of pulses visible.Second one is on the drain of the MOSFET with the 6.8resistor on the output.The third one is the voltage on the output with the 6.8load.Also here are some pics of my prototype.Now i have to find where to put this thing i made. I'd quite fancy myself a power-bank.

author: T3sl4co1l
author_rank: Super Contributor
timestamp: February 26, 2017, 04:50:39 pm
content: If you allow a coupled inductor, it is possible to do in one transistor. This is a traditional blocking oscillator, with rectifiers handling the power, and zeners controlling off time (usually).If not, then two transistors are required. One inverts the other, so that, as is necessary for all oscillators, negative and positive feedback can be applied in the circuit. The negative feedback is at DC, so that the amplifiers can always settle into a bias where the loop gain is large, and thus begin oscillating. Positive feedback is at AC, so the oscillation grows over time.Note that the MOSFET circuit breaks this rule, which is why it is unreliable: there is no feedback mechanism to adjust the first transistor's collector current to around the MOSFET's gate threshold voltage (where the loop will have AC gain, and be able to take off).Using a BJT, this is okay, because the first transistor is biased such that its collector sits at a bit more than 1*Vbe. It acts as a crude current mirror, where both collector currents are set by Vbe (and some by hFE), and their area and doping ratios.Note that these circuits cannot possibly incorporate useful control or protective features, like undervoltage lockout, auto-restart in case the oscillation is quenched, or current limiting. (The blocking oscillator can be current-limited by adding a transistor in the emitter circuit, which turns off the main switching transistor when its emitter current rises too high.)Tim

author: T3sl4co1l
author_rank: Super Contributor
timestamp: February 26, 2017, 04:55:34 pm
content: I've played this game myself; this is an example I'm pretty comfortable with:My goal was to ask: if we add a minimum of transistors, how much functionality can be introduced as a result?This circuit behaves similar to the venerable UC3842, incorporates variable frequency control, though lacks a wide supply operating range (due to the lack of current sources/sinks, which would gobble up many transistors, quickly!), or UVLO.It uses a separate oscillator core, so the frequency does not depend upon the output transistor's switching waveform.The part I'm most disappointed in, is the pulse inverter (bottom left), which is necessary to retrigger the timer. There's probably a better way to solve that.Note: I don't consider TL431 an IC. I prefer to think of it as an ideal BJT.Tim

author: Refrigerator
author_rank: Super Contributor
timestamp: February 26, 2017, 06:13:44 pm
content: Cool circuit.In my case i wanted to make a high power DC-DC converter, preferably with high efficiency while using as few components as possible.I might put together another prototype that would look a little cleaner and maybe be slimmer for a power-bank project. I do have a few TP4056 modules with under-voltage protection that i would use together with this boost converter.Might be a good time to make a constant current load because the 6.8resistor gets hot in a hurry, makes testing this circuit cumbersome.

author: Zero999
author_rank: Super Contributor
timestamp: February 27, 2017, 06:44:59 pm
content: Quote from: Richard Head on February 26, 2017, 10:09:07 amLook at C1. There are other ways for getting the circuit to oscillate than the blocking oscillator topology you're probably familiar with.

author: Refrigerator
author_rank: Super Contributor
timestamp: February 27, 2017, 09:36:48 pm
content: Quote from: Richard Head on February 26, 2017, 10:09:07 amThe MOSFET is not fully on at startup, both Q2 and M1 are floating.Firstly, the MOSFET lets a little bit of current flow thus reducing the voltage at the drain, which then couples to the base of Q2 through C1 and decreases current through Q2, thus increasing the voltage at the gate of M1, this then decreases the voltage at the drain of M1 even more and the cycle goes on until the MOSFET is fully on.When the voltage at the gate of M1 stops decreasing both Q1 and M1 start floating, this then causes the voltage at the drain of M1 to increase, this voltage couples through C1 to the base of Q2 and increases the current through Q2, which then decreases the current through M1 and causes the voltage on the drain of M1 to increase, this goes on until the MOSFET is off, causing a very sharp voltage spike at the drain of M1.That current spike goes through D1 and charges C2.

author: BrianHG
author_rank: Super Contributor
timestamp: February 28, 2017, 07:04:13 am
content: My simplest boost converter was an 8 pin dip pic connected to a logic level mosfet, then to a power inductor. Basically your first circuit with the MCU in place of the 2N3904 & it's tuned timing circuit and no longer needs the zener diode as I used the MCU's ADC to regulate the output. Ok, this had that 1 50cent MCU, but I was able can program the thing to a fixed frequency select output voltage via software & it worked from 5v to 2.5v. However, your design doesn't have any software to deal with...As for a 2 transistor boost device, I've only ever played with xenon flash tube devices which was a simpler version of T3sl4co1l design but had a 2nd separate transformer for the HV trigger.For 1 transistor solutions, I've only seen these in battery powered fluorescent flashlights, which also had transformers with a return coil to drive the base.

author: SingedFingers
author_rank: Frequent Contributor
timestamp: February 28, 2017, 07:15:45 am
content: This is a low current design I have stolen a couple of times which can be built on:http://lea.hamradio.si/~s53mv/spectana/sa/sa13.gifFrom:http://lea.hamradio.si/~s53mv/spectana/sa.htmlI've used it, post regulated as the sweep voltage drive for a varactor tuned oscillator. Nice and quiet for a switcher.

author: technix
author_rank: Super Contributor
timestamp: March 03, 2017, 12:25:34 am
content: For the lowest component count, you can connect the power through an inductor to an CMOS MCU's PWM pin, and pull the output from its power pin, with filtering caps there.The CMOS ESD protection diodes will provide the MCU with initial power. The PWM gives it the required oscillation for boost operation. If your MCU offers an internal voltage reference for the ADC, you can implement feedback in software by measuring this reference voltage against supply voltage (which is the output of the boost converter.)You need to make sure your MCU can start with the input voltage minus a diode drop, the switched current does not exceed the MCU's I/O current handling ability, and the output voltage does not exceed the MCU's maximum supply voltage.You can use an external totem pole MOSFET pair (or NMOS + diode) to increase the power handling capability, this time connect the PWM output to the gates of the totem pole.

author: Refrigerator
author_rank: Super Contributor
timestamp: March 03, 2017, 01:25:35 pm
content: Quote from: technix on March 03, 2017, 12:25:34 amThat's way too much hassle for just one simple boost converter.MCUs cost more, then i need to protect the MCU, for high efficiency i need fast edges so i would need a totem pole output buffer for the MCU.Then comes the code and many calculations to get it working just right.I'd rather just open LTspice and half hour later have a boost converter that works just as well.

author: T3sl4co1l
author_rank: Super Contributor
timestamp: March 03, 2017, 02:06:53 pm
content: Nah, you can do quite a lot with an MCU -- and they're quite cheap (what, have you never been shopping for 8051s before?).As long as you don't need much current, of course. Ports are only rated for low 10's of mA.What's nice, at least, is you get free synchronous rectification: instead of toggling the port between active-low and Hi-Z, toggle active-high and low. This also means it works both ways, so you can boost up the supply, or buck it down.The main downside is the same as any other overly simple method: no current control.Tim

author: technix
author_rank: Super Contributor
timestamp: March 04, 2017, 04:53:16 am
content: Quote from: Refrigerator on March 03, 2017, 01:25:35 pmSTC15W401AS is a 8051-compatible MCU with built-in PWM and ADC, sadly no built in reference or high current handling. It costs 20 US cents each. It comes with internal RC oscillator and POR so it runs on its own. It can with from 2.7V up to 5.5V. You can clock it up to 35MHz. It's minimal package is SO-16.TL431 is your run of the mill bandgap reference chip. Hook one to STC15W401AS's ADC pin with external pull-up. You now got the reference voltage. STC15W401AS always reference its SAR ADC to its supply. Here goes the digital feedback path. It's minimal package is SOT-23AO4606 is a MOSFET complimentary pair in SO-8 package. It can switch 5A current. Connect the gates together to one PWM pin of STC15W401AS. Connect the drains together to one end of the power inductor. Ground the source pin of the NMOS. Tie the source pin of the PMOS to the power pin of STC15W401AS and the reservoir cap.You have only used 2 pins out of 14 on the MCU. You can hook the other side of the inductor to another ADC pin (through a resistor) for a crude gas gauge. The MCU also have hardware UART so you can make this module speak to another device.This circuit contains 6 packages, costs less than a dollar. Yet you get a synchronous rectifying bidirectional DC-DC converter, battery gas guage, with digital interface and runs your own code out of it. You can even use the remaining pins to implement other features for your system.

author: SingedFingers
author_rank: Frequent Contributor
timestamp: March 04, 2017, 08:09:50 pm
content: Those STC15W401AS's look pretty nice at that price point.Can you recommend a basic dev kit for these at all?

author: Refrigerator
author_rank: Super Contributor
timestamp: March 04, 2017, 10:30:06 pm
content: @technixThat does look like a pretty inexpensive MCU, i might order some to play around with.But for now i have to make myself a constant current load to test the circuit i made.

author: BrianHG
author_rank: Super Contributor
timestamp: March 05, 2017, 04:55:25 am
content: I like the PIC12F1571, or newer, 1.8v thru 5.5v operation on one 8 pin IC, internal bandgap voltage reference, AD/PWM/internal OSC, available in DIP8, SO8, 39 cents US...

author: technix
author_rank: Super Contributor
timestamp: March 05, 2017, 05:08:09 am
content: Quote from: SingedFingers on March 04, 2017, 08:09:50 pmSadly STC themselves does not offer kits. You can buy DIP variants of the chips though for easier breadboarding.And you can spin for a few of their highest end IAP15W4K61S4 in DIP-40. That chip is largely code compatible with STC15W401AS but it offers on-chip debugging (Only their IAP15F2K61S2, IAP15L2K61S2, IAP15W4K58S4, IAP15W4K61S4 and STC8 series support on-chip debug.)

author: dchauran
author_rank: Newbie
timestamp: June 04, 2020, 05:43:20 pm
content: Just registered to say thinks for sharing this! I needed a small, low power boost converter, and didn't have the ICs to use with a conventional design, plus a very low part count. This is great because it works with common parts that everyone probably has laying around.I used a 4n20 fet, because it's what I had. I also only had a 68k resistor, so I used that in place of the 70k, and finally I didn't have a 100u ceramic cap, so I used a 100u electrolytic, since I assume the only purpose was for output filtering. I also added a 1k resistor and led to verify the output. I am using this to boost 4.5v to 7.5v to drive a small LNA for a software defined radio, and the circuit is small enough that it fits in the footprint of the lna board. Took me a while to figure out the right layout - I am a novice, and have no experience with layout software, so I had to lay it out in my head and build it on protoboard.

author: stevetob67
author_rank: Contributor
timestamp: June 06, 2020, 02:39:05 am
content: Reading stuff like this from you guys makes me realise just how much a noob I really am

author: Refrigerator
author_rank: Super Contributor
timestamp: June 13, 2020, 12:40:23 pm
content: Quote from: dchauran on June 04, 2020, 05:43:20 pmAlmost any type of capacitor works on the output, also don't forget a capacitor on the input (~47µF) this helps increase the efficiency of the converter.Low ESR caps are best for this stuff, you can often tell them apart by their golden lettering.Get LTspice if you don't have it already, it's free and super fun to play around with. You can simulate most of these circuits before building them.Also old motherboards are great for switching MOSFETs and inductors for DIY DC-DC converters.Old DELL motherboards for the pentium 4 processors tend to have through hole versions of SMD MOSFETs that can be used in breadboards and are also easier to desolder than their SMD counterparts.

author: Refrigerator
author_rank: Super Contributor
timestamp: June 13, 2020, 12:45:06 pm
content: Quote from: stevetob67 on June 06, 2020, 02:39:05 amReminds me of that time i was a noob as well

author: Abdul Haseeb
author_rank: Newbie
timestamp: July 11, 2021, 08:35:33 am
content: Is there anyone who can help me in understanding the circuit operations. I need help like how BJT works in here and how it is empowering MOSFET's gate terminal and how they are charging the inductor.Any help would be highly appreciated.