As an Amazon Associate we earn from qualifying purchases.
A boost converter raises a lower DC voltage to a higher one. Pairing it with an Arduino lets you control the output in software, and simulating it in Proteus lets you test the idea before you buy parts or risk a MOSFET. This article explains how an Arduino-based boost converter works, how to set it up in Proteus, and what to check when the simulated output looks wrong.
The video below shows the simulation running. The sections after it cover the theory and the setup steps.
How a boost converter works
A basic boost converter uses four main parts: an inductor, a switch (usually a MOSFET), a diode and an output capacitor. The switch turns on and off many thousands of times per second.
- Switch on: current builds up in the inductor and the diode blocks the output, so the capacitor supplies the load.
- Switch off: the inductor releases its stored energy. Its voltage adds to the input voltage, pushes current through the diode and charges the capacitor.
In an ideal converter running in continuous conduction, the output voltage is Vout = Vin / (1 − D), where D is the duty cycle (the fraction of each period the switch is on). A duty cycle of 0.5 gives roughly double the input voltage. Real circuits give a little less because of losses in the diode, switch and inductor, so the formula is a starting point rather than an exact answer.
What the Arduino does in this circuit
The Arduino generates the PWM signal that drives the MOSFET. It can also read the output voltage and adjust the duty cycle so the output stays near a target value. That gives you the basic parts of a feedback-controlled converter:
- A PWM output pin drives the MOSFET gate.
- A voltage divider scales the output down so it stays within the Arduino analog input range (0 to 5 V on a standard Uno).
- The sketch compares the measured voltage with a setpoint and raises or lowers the duty cycle.
If you want to compare this with a simpler approach, the 555 based boost converter generates the switching signal with a timer IC instead of a microcontroller, but it has no easy way to adjust the output in software.
Parts to place in Proteus
Proteus does not ship with a ready-made boost or buck converter block, and the same applies if you are searching for a buck converter Proteus library. You build the power stage from basic components. For a boost converter you will typically need:
- An Arduino board model (added through a third-party library if your Proteus version does not include one)
- A DC source for the input voltage
- An N-channel MOSFET, ideally a logic-level type, or a MOSFET with a gate driver
- A fast diode, such as a Schottky type
- An inductor and an output capacitor
- A resistive load
- Two resistors forming a voltage divider for feedback
- A DC voltmeter and an oscilloscope for checking results
The inductor and capacitor values depend on your input voltage, target output, load current and switching frequency. Pick them from standard boost converter design equations, then adjust them in the simulation until the ripple looks acceptable.
Setting up the simulation step by step
1. Build the power stage
Connect the inductor from the positive input to the MOSFET drain. Connect the diode anode to that same node and its cathode to the output. Place the capacitor and load across the output, and tie the MOSFET source to ground.
2. Connect the Arduino
Wire a PWM-capable pin to the MOSFET gate, through a driver if the MOSFET needs more than 5 V to turn on fully. Make sure the Arduino ground and the power stage ground are common. Connect the output voltage divider to an analog input pin.
3. Write and compile the sketch
The sketch sets the PWM pin as an output, reads the analog input, converts it back to the real output voltage using the divider ratio, and updates the duty cycle. In the Arduino IDE, use the option to export the compiled binary, then load the resulting HEX file into the Arduino model in Proteus.
4. Run and measure
Start the simulation and watch the output on the voltmeter and oscilloscope. Check the gate signal first, then the voltage at the MOSFET drain, then the output. If you follow the same approach for a specific target, the 24V to 40V boost converter simulation shows a worked example of stepping a higher voltage up.
Choosing the PWM frequency
The default PWM frequency on many Arduino Uno pins is only a few hundred hertz, which is low for a boost converter. A low frequency needs a much larger inductor and capacitor. Most designs change the timer settings to get a switching frequency in the tens of kilohertz. Higher frequencies allow smaller components, but they increase switching losses and make the simulation slower to run.
Keep the duty cycle within sensible limits as well. Pushing it toward 100% in a real converter gives very high currents and poor efficiency, so limit the maximum value in your code.
Common problems and fixes
- Output equals input minus a diode drop: the MOSFET is probably not switching. Check the gate signal and the common ground.
- Output voltage is far too high: the feedback divider may be wrong or the sketch may not limit the duty cycle.
- Large ripple: increase the output capacitor, the inductor or the switching frequency.
- Simulation runs very slowly: lower the frequency, simplify the circuit or increase the simulation time step.
- Arduino pin voltage exceeds 5 V: recheck the divider ratio before the signal reaches the analog input.
Going further
Once the open-loop circuit works, add a controller that holds the output steady when the load or input changes. You can study the control behavior separately using closed loop control in MATLAB Simulink, then bring a simplified version into your Arduino sketch. The same switching ideas also appear in buck-boost MPPT with Arduino for solar battery charging.
Keep in mind that a simulation hides real-world effects such as inductor saturation, MOSFET switching spikes and layout noise. Treat Proteus as a way to confirm the logic and rough values, then verify on real hardware with proper current and voltage ratings.
FAQ
Can Proteus simulate a boost converter with an Arduino?
Yes. You build the power stage from discrete components, add an Arduino model, and load the compiled HEX file. The simulation then shows the PWM signal and the resulting output voltage.
Is there a buck converter library for Proteus?
Proteus does not include a dedicated buck or boost converter part by default. The usual method is to build the converter from a MOSFET, diode, inductor and capacitor, which also helps you see how each part affects the output.
Why does my simulated output not match the formula?
The formula Vout = Vin / (1 − D) assumes ideal parts. Diode drops, switch resistance, inductor behavior and load current all change the result, so some difference is normal.
Can I use the Arduino to regulate the output voltage?
Yes. Scale the output down with a voltage divider, read it on an analog pin and adjust the PWM duty cycle in the sketch until the measured voltage matches your setpoint.