# DIY DC/DC Boost Calculator

## Overview

For many small projects, it's cheaper and easier to DIY a boost converter than to buy a specialty chip. DIY converters are usually not as efficient but they're quick & cheap!

![](https://cdn-learn.adafruit.com/assets/assets/000/009/049/medium800/components_boostsch.png?1396881606)

The above schematic section shows how I designed a 30-60V vacuum fluorescent tube display driven from a microcontroller pin.

Tubes such as VFDs, Nixies, Decatrons, etc. require high voltage to light the gas in the tube. In order to reduce cost, we use a microcontroller to make a boost converter and avoid paying $5 for a separate chip. We can do this because we don't need a precision output and the current draw is mostly constant. The boost regulator is run open-loop and there is no feedback resistor divider as it isn't necessary, as long as the input voltage is within a reasonable range

The microcontroller runs at 8MHz so the 8-bit PWM output is 31250 Hz. The inductor and output capacitor is calculated below. The diode is a standard Schottky type, but make sure you specify one that can handle the full voltage difference and peak current. The switch just has to be able to handle the max voltage plus some for safety. Note that this design is meant for 'static' output currents, not for variable current draw designs. There is no feedback and it's very approximate! This is not for precision electronics!

The boost circuit works by connecting the power inductor **L1** to ground that current can flow through it by turning on **Q2**. After a little bit of time, we disconnect the inductor from ground (by turning off **Q2** ) this means that there is no longer a path for the current in L1 to flow to ground. When this happens, the voltage across the inductor increases (this is the electric property of inductors) and charges up **C6**. When the voltage increases to the level we want it to be (30V+) we turn on **Q2** again which allows the current in **L1** to flow back to ground. If we do this fast enough, and **C6** large enough, the voltage on **C6** is smoothed out and we get a nice steady high voltage

The timing of turning off/on **Q2** allows us to modify the output voltage. Normally there is a feedback resistor to the microcontroller but it is not here because we are running it open-loop. To drive **Q2,** this uses the PWM output from the microcontroller and adjust the duty cycle to vary brightness.

These sorts of designs can be easily made with a 555, once you have the PWM output, connect it up to **Q2**!

# DIY DC/DC Boost Calculator

## The Calculator

For this simple calculator, enter in the freqency, voltage ranges and current ranges and the duty cycle, inductor and current requirements will be displayed!
## Related Guides

- [Four Channel Audio Passive Stereo Mixer](https://learn.adafruit.com/four-channel-audio-passive-stereo-mixer.md)
- [Programming SPI flash with an FT232H breakout](https://learn.adafruit.com/programming-spi-flash-prom-with-an-ft232h-breakout.md)
- [3D-Printed Solder Paste Dispenser Hand Switch ](https://learn.adafruit.com/3d-printed-solder-paste-dispenser-hand-switch.md)
- [Adafruit QSPI DIP Breakout Boards](https://learn.adafruit.com/adafruit-qspi-dip-breakout-boards.md)
- [Modern Replacements for DHT11 and DHT22 Sensors](https://learn.adafruit.com/modern-replacements-for-dht11-dht22-sensors.md)
- [Rotary Encoder in CircuitPython](https://learn.adafruit.com/rotary-encoder.md)
- [Step Switch Party](https://learn.adafruit.com/step-switch-party.md)
- [Adafruit nOOds Überguide](https://learn.adafruit.com/noods-uberguide.md)
- [Power Supplies](https://learn.adafruit.com/power-supplies.md)
- [Digital Circuits 4: Sequential Circuits](https://learn.adafruit.com/digital-circuits-4-sequential-circuits.md)
- [Arduino Yun Temboo Twitter Tracker](https://learn.adafruit.com/arduino-yun-temboo-twitter-tracker.md)
- [Mini Pan-Tilt Kit Assembly](https://learn.adafruit.com/mini-pan-tilt-kit-assembly.md)
- [DIY On/Off JST Switch Adapter](https://learn.adafruit.com/on-slash-off-switches.md)
- [Transistors 101](https://learn.adafruit.com/transistors-101.md)
- [Playing sounds and using buttons with Raspberry Pi](https://learn.adafruit.com/playing-sounds-and-using-buttons-with-raspberry-pi.md)
