I've come across DC boost converter and told myself - why not to try it as well? So I started building a simple circuit which includes BD243C NPN Transistor, ATTiny13A programmed to give some pulse to the Base of the transistor, 16 uH inductor, 82 uF 450 wv electrolytic capacitor and IN4007 diode to prevent current flowing from capacitor back to the circuit.
I calculated the needed duty cycle to have 30V on the output from 5V input which was around 0.83. Then I wanted the pulse width (10 ms period), I got the result of 8,333 ms. The remaining 1,667 ms should indicate the time there's no pulse happening.
So where is the problem? When I powered my circuit using 5V battery, voltage rises to 7V, if I wanted to have for example 10V, I would have to wait for almost an hour to have 10V on the output and if I wanted more, I would have to wait more than one hour. I don't know exactly where the problem is.
Before when I tried this circuit for the first time with 1ms period and I wanted 10V on the output from 5V, it worked. According to calculations, I had 10V on the output, which was okay, but it took like 10 minutes to have 10V, but it was at least someting for a start. And with 10ms, it doesn't even charge up to 10V, not even to 30V.
Would be nice if anyone gave me an advice what should be fixed.
Thanks in advance