Professional Documents
Culture Documents
by GreatScottLab
In this project I will show you how a buck/boost converter ( yback) works and how you can easily build one that can
step up and step down DC voltage e ciently. Le t ' s g e t s t a rt e d!
After watching the video you should have the basic knowledge to create your own buck/boost converter. The next
steps though will contain additional information to make your life easier.
https://youtu.be/ZiD_X-uo_TQ
2x 100nF Capacitor: Am a z o n. de :
https://s.click.aliexpress.com/e/_dU4FEsB
Here you can nd the schematic and pictures of the circuit that I created. Feel free to use them as a reference. You
can also nd the schematic on EasyEDA: https://easyeda.com/GreatScott/ATtiny_Buck_Boost_C...
//www.yout ube.com/embed/9LjfkjwMqXI
Download
https://www.instructables.com/ORIG/FZE/1LU4/IU2NFBF2/FZE1LU4IU2NFBF2.ino
…
Step 5: Success!
Awesome! You did it! You just created your own behind the scenes information:
buck/boost converter!
http://www.youtube.com/user/greatscottlab
https://www.facebook.com/greatscottlab
You can also follow me on Facebook, Twitter and
Google+ for news about upcoming projects and
hello guys , can someone explain to me where i must connect the voltage regulater part
Is it possible that 2 new ATTINY85 from Reichelt are bricked out of the box?
hey , i built the same exact circuit as in the sketch with the same components and i uploaded the
code to the attiney85 ,,, but it didnt work
i received an output voltage of 5volts at my 20kohms load and the potentiometer was not changing
the outpout voltage ,, am thinking that the problem is with the defined pwm inputs and the pot input
in the code ,
any suggestions to help make it work?
The code has seem to be changed, I am unable to replicate the same results as with the previous
code... may I have the older code uploaded?
Is there a way to add current control to this also? I am Novice Newb please help
How about a list of specs such as input/output voltage range, output current, etc?
I can't seem to produce a 1-2A based on this specs, I am only able to get 0.3A at most to charge a
smartphone, any solutions on this?
hey scott, does this circuit can works with input 2-7v,and constant output voltage as 5.5v? i want
some advice from you.....i am waiting for your answer please?
you need at least 6 to 7 volts input in order for the 7805 to be able to regulate it down to 5 volts to
power the MCU. however, if you power it up with the aforementioned voltages you can use it as a
step-down converter to have a 5v5 output.
if we would replace the 1n5819 diode with a 1n5822 diode, wouldn't it be possible to draw up to 3
A ? (ofc if we take into account that our power inductor can handle this)
Sir, can you added also the calculation for getting the component in the later video. Especially
using inductor and resistor and capacitor when making something like buck / boost converter.
Thanks ^^
1. in your shematic R9 not a resitor is it load ?
2. 100nF ceramic cap. you use only on of them at finished photo or i coudnt see it but shematic &
bom 2 of them
3.attiny 85 whats the options for programing bod % ldo enable/disabled, 8mhz (int/ext) ?
1. R9 is the load, not a resistor.
A differential amplifier will make sure that the Arduino always reads the voltage potential between
the positive and the negative output. That op amp is being used as an differential amplifier.
Not really.
hey i executed the program and there seems to be an error in the line 12. it says 'TCCR1 was not
declared in this scope'. I dont want to bother you with the programming questions, but i tried
understanding this code and there are some terms I dont understand. these are the errors it
showed when i executed it in the arduino uno.
BuckBoostConverter:12: error: 'TCCR1' was not declared in this scope
BuckBoostConverter:12: error: 'PWM1A' was not declared in this scope
BuckBoostConverter:13: error: 'PWM1B' was not declared in this scope
'TCCR1' was not declared in this scope
please just replace these codes with "TCCR0B = TCCR0B & 0b11111000 | 0x01;" because i had
same problem firstly
Hi there, after replacing the code you have given I was given another error message:
Arduino: 1.8.4 (Windows 10), Board: "Arduino/Genuino Uno"
C:\Users\Master John\Downloads\FZE1LU4IU2NFBF2\FZE1LU4IU2NFBF2.ino:1:0: warning:
"F_CPU" redefined
#define F_CPU 8000000
^
Hi, your videos are amazing! I tried to make this version of buck-boost converter. I replace the
MCP602 with LM358, and I use Arduino Mega 2560 board, it works well. But I think this converter
is not buck-boost, it is buck only.
Because the output voltage is never been higher than the input voltage.
You said that the specification is "Input: 6V-30V Output: 0-20V Output Current: 1-2A."
The input voltage is always higher than the output voltage.
Regards
You misunderstand the specs :
Input 6v-30v : let's assume it's 7.4V (2 li-ion batteries in serie)
output : 0-20V : let's assume it's 12V.
So, the output voltage is higher than the input voltage.
Apologize, I just misunderstood. I think it was my fault, my circuit didn't work well.
Thanks for your response.
interesting project! I was thinking of beefing it up and adding an LCD into an enclosure so it
becomes a bench power supply. Do you see any challenges that might prevent me from doing
that?
One thing I have noticed that you always use Arduino (I've never used it) and almost never Atmel
Studio/gcc to write your codes. I think using C would be more educational and informative. but
always thank you for the great ideas :)
Do you think I could use this to run a circuit on exactly 3v from an 18650 lipo?
No
how many watts can handle? I'd like to make one for a 120 W load
I'm very much interested in this project I'm going to start the work but the only thing is that mcp602
Op-amp is not available but I have Lm358 can it be used
https://www.instructables.com/id/Super-Efficient-Buck-Convertor-5V-1A-Arduino-Power/