Problems building Boost Converter... - Page 1
Forum section: electronics / beginners

author: skillz21
author_rank: Frequent Contributor
timestamp: September 03, 2017, 06:12:35 am
content: HiI am trying to build a boost converter (hoping you figured that out by now). Here is my Arduino sketch.const int sensorPin = A0;const int pwmPin = 3;int potvalPre;int potval;void setup(){pinMode(3, OUTPUT);Serial.begin(9600);}void loop(){potvalPre = analogRead(sensorPin);potval = potvalPre / 4;Serial.println(potval);analogWrite(3, potval);}So... I'm using the standard boost converter circuit, with a 15 nano farad capacitor, 30n06l as the switch. my problem is, the voltage range is from about 4.8v to 5.2v.... What's going on? This voltage range is not with the smooth turning of the potentiometer... How do I fix it? BTW, with a load (led) the voltage doesn't change at all.... figured I'd try to fix that later.... thx for your help.

author: skillz21
author_rank: Frequent Contributor
timestamp: September 03, 2017, 06:17:23 am
content: Ok, im scared i was just playing around with the wires... all of a sudden something started buzzing and the voltage shot up to 60v..... luckily the capacitor i'm using is rated for 400v..... plz help i have no idea what i'm doingEdit: i think i broke the mosfet

author: skillz21
author_rank: Frequent Contributor
timestamp: September 03, 2017, 06:37:08 am
content: Okay then... same code, when the duty cycle is between 99% and 1% (i am assuming, I don't have an oscilloscope) the voltage goes straight up to 65 volts and the mosfet (assuming again, i'm not sure whether a capacitor or an inductor could buzz) starts buzzing... What is going on? please help...Edit: it's actually the inductor buzzing... why?Edit: i tried a coil, it buzzes, could you use it as a speaker?

author: skillz21
author_rank: Frequent Contributor
timestamp: September 04, 2017, 06:34:10 am
content: Any ideas?

author: Whales
author_rank: Super Contributor
timestamp: September 04, 2017, 07:19:44 am
content: QuoteThe general circuit topology might be standard, but we need to know the exact details of how you have hooked everything up. Please draw a full schematic, including how you are powering it and attaching the Arduino.QuoteWhich voltage? The output? I presume you are powering your circuit with 5V, so that means it's not boosting at all.QuoteAre you using a resistor on the LED?QuoteIs the pot sampling the booster's output voltage, or is it a completely separate (ie run off 5V)? If the latter then you have made an 'open loop' booster that will work, but it won't maintain a "constant" output voltage, instead varying depending on load. If the former: you have done your feedback the wrong way around (positive instead of negative) and you'll need to make sure you "smooth" the signal being analogRead() by the Arduino, or it will just be random numbers due to the 500Hz switching.Also note that the default Arduino PWM speed (analogWrite() PWM speed) is 500hertz. Your boost converter will run much better at much higher frequencies (I'm aim for somewhere into the tens to hundreds of kilohertz).QuoteYes. That's all a common speaker is, plus a paper diaphragm and some stuff to support it.You'll be hearing the 500Hz PWM being made by your Arduino.

author: skillz21
author_rank: Frequent Contributor
timestamp: September 04, 2017, 10:36:35 am
content: HiSo, yes, the voltage range is the output and I am powering it from my computer. I am also using a resistor on the LED. I attached the schematic. And a picture of the inductor... because I don't know the value of it. Also, how did I manage to get the output up to 60v?ThxPS, the inductor image is a bit blurry, I used my webcam, let me know if you need a clearer picture, also, ignore all the unnecessary components in the background, including the Nano. Oh yeah, it's also upside down.... sorry.

author: skillz21
author_rank: Frequent Contributor
timestamp: September 05, 2017, 09:03:25 am
content: What do you guys think?

author: Neilm
author_rank: Super Contributor
timestamp: September 05, 2017, 07:02:43 pm
content: The picture you have posted shows the value of the inductor - 220uH.I would guess that the voltage went up to 60V either as it started running at the correct speed for the circuit or your load fell off. It might be that you have to drive the circuit slighly differently to build the voltage up. I have built boost circuits for outputs of 150V for a low voltage insulation tester.One thing you have not said is what voltage you actually want out of boost converter.I would suggest you use a simulation tool (TinaTI, LTspice etc) to simulate what you actually want before you build it.

author: Whales
author_rank: Super Contributor
timestamp: September 06, 2017, 02:19:52 am
content: Quote from: Neilm on September 05, 2017, 07:02:43 pmThere's a few things here that would be hard to simulate for beginners, especially if you're just using parts you have handy rather than ones you can find good spice models for. Anyway, the circuit's already made, and changing stuff in the model wouldn't be any harder/easier than changing it in real life; so I don't see any many advantages to modelling it.(1) You don't have any capacitive decoupling next to your microcontroller or the pot. The voltage on both is likely going to oscillate around as the current draw of the boost circuit changes. A big (eg 100uF) capacitor would be useful.(2) The 60V is likely the voltage that your diode fails at. The way you have designed your boost circuit: if you have no load attached to the output of the booster it will keep boosting the voltage forever (or atleast until something fails).

author: skillz21
author_rank: Frequent Contributor
timestamp: September 06, 2017, 06:45:39 am
content: But there is no variation in the output voltage, even when i turn the potentiometer.... why?

author: Whales
author_rank: Super Contributor
timestamp: September 06, 2017, 10:05:10 am
content: What voltage is it stuck at now?

author: skillz21
author_rank: Frequent Contributor
timestamp: September 06, 2017, 12:23:05 pm
content: I haven't made any changes yet.... but I was asking why it's just stuck at 60v and not changing as I turn the potentiometer... I can hear the inductor vibrating at different frequencies, but there is no difference in the output voltage...

author: krystian
author_rank: Contributor
timestamp: September 06, 2017, 12:35:31 pm
content: Maybe its boosting because frequency is too low. PWM on Adruino is around 340Hz (?). Even small pulse width is enough to fully charge the coil. You can change pwm frequency by changing register values on MCU or write your own software pwm with delays or asm("NOP") function. And you need to calculate parts of your converter. Easiest way of doing that is to use online dc/dc converter calculator .

author: Whales
author_rank: Super Contributor
timestamp: September 07, 2017, 10:56:52 am
content: Your boost circuit can onlychargethe capacitor on the output side. It cannot drain it.It other words: no matter what position the pot is in, you are still operating the same transistor + inductor + diode combo. This 3 part combo can only push energy from the left side of your diagram to the right. No current can flow backwards through the diode, so the voltage on the output capacitor never reduces.You need to connect a load to fix this. The load will drain the output capacitor, dropping the voltage.Make sure to look up how capacitors work if you're not familiar with how they charge and discharge.

author: skillz21
author_rank: Frequent Contributor
timestamp: September 10, 2017, 08:58:49 am
content: but i followed the usual boost converter schematic... what did i do wrong?

author: Whales
author_rank: Super Contributor
timestamp: September 10, 2017, 10:56:48 pm
content: "Building" and "controlling" a power supply are two very different things. You have only done the former.I've mentioned possible solutions are few times:(1) Load(2) Negative feedbackYou need to do some of your own research.