DIY Buck/Boost Converter (Flyback) || How to step up/down DC voltage efficiently
HTML-код
- Опубликовано: 29 сен 2024
- Project file on the free design tool: easyeda.com/Gr...
Previous video: • Fix It!: Ceiling Lamp ...
Buck Converter video: • DIY Buck Converter || ...
Boost Converter video: • DIY Boost Converter ||...
ATtiny Programming Shield: • Electronic Basics #3: ...
Facebook: / greatscottlab
Twitter: / greatscottlab
Support me for more videos: www.patreon.co...
Project information (schematic, code, ....) on Instructables:
www.instructabl...
Thanks to EasyEDA for sponsoring this video.
Check out their free circuit design tool here: easyeda.com
Parts list (Amazon.de on Instructables, affiliate links):
Aliexpress:
1x ATtiny85: s.click.aliexp...
1x MCP602: s.click.aliexp...
1x 7805 5V regulator: s.click.aliexp...
1x IRLZ44N: s.click.aliexp...
1x 100kΩ Potentiometer: s.click.aliexp...
1x 0.03mH Inductor: s.click.aliexp...
1x 1N5819 Schottky Diode: s.click.aliexp...
2x Screw Terminals: s.click.aliexp...
2x 100nF Capacitor: s.click.aliexp...
1x 100µF, 1x 220µF Capacitor: s.click.aliexp...
2x 10kΩ, 2x 5.1kΩ, 2x 20kΩ, 1x10Ω Resistor: s.click.aliexp...
Ebay:
1x ATtiny85: rover.ebay.com/...
1x MCP602: rover.ebay.com/...
1x 7805 5V regulator: rover.ebay.com/...
1x IRLZ44N: rover.ebay.com/...
1x 100kΩ Potentiometer: rover.ebay.com/...
1x 0.03mH Inductor: rover.ebay.com/...
1x 1N5819 Schottky Diode: rover.ebay.com/...
2x Screw Terminals: rover.ebay.com/...
2x 100nF Capacitor: rover.ebay.com/...
1x 100µF, 1x 220µF Capacitor: rover.ebay.com/...
2x 10kΩ, 2x 5.1kΩ, 2x 20kΩ, 1x10Ω Resistor: rover.ebay.com/...
In this project video I will show you how a buck/boost converter (flyback) works and how you can easily build one that can step up and step down DC voltage efficiently.
Music:
2011 Lookalike by Bartlebeats
Killing Time, Kevin MacLeod (incompetech.com)
but how do i boost my duck
pm me can you to install do solar panel of charger,
Just found your channel today and subscribed, I will need to see all your old movies now :) Thanks for sharing them with us.... Note: not all of us have an +11K euro oscilloscope, 500 Euro multimeter, etc.... I assume this is not only an hobby for you.
pm me can you to install do solar panel of charger,
Could an inverting buck-boost be used as a "constant wattage" dc supply?
Could you build a Uninterruptible Power Supply, for a 12v router for example, so it can run of a lead acid battery if the power goes out?
Marius Ammann I would also like to see a schematic or video of a UPS that outputs 12v dc. It seems really inefficient to use an inverter UPS when you only want to provide battery backup to devices that work off of 12v dc
Yextus in this case there is no circuit that charges the battery
And some kind of circuit that can quickly change from mains to battery power, once the power goes out
Thats quite easy. Your router plug will have the voltage and current requirement written on the power adapter. Mine runs at 9v 0.5A. Take a buck-boost converter or a voltage regulator and hook it to the battery. Adjust the voltage to your requirement and buy a plug which will suit your router power port. When power goes out, simply pull out the adapter from router and attach your DIY adapter. Hope it helps :)
Kirtik Soni, you could simplify it further, if you trickle charge a lead acid battery while the mains supply is there, then when the supply drops out, the battery will continue to supply power to the regulator. Just make sure the battery does not discharge through its charger when the supply fails, by using an isolatoon diode.
+GreatScott!
Some questions:
1. How did you measure the inductance of a coil? (equipment)
2. Can there be an IC which uses MOD function? i.e. which gives value of the voltage irrespective of polarity
3. Can there be an IC which inverses the voltage value? i.e. +5.5 V to -5.5 V
4. What is the maximum current rating of the circuit you built?
Btw, I am a student of Elec. Engg and a huge fan of your video channel.
A full-wave rectifier, or an operational amplifier setup the right way, IIRC.
I did not understand. Elaborate please.
1. Got mine off eBay. Search for lc200a. Cheap and measures a very wide range of inductance. For 3, you can use a boost converter to boost the 5.5 V to 11V. Connect your target circuit with its ground to the power's 5.5V, the target circuit's +5.5V connected to the power's 11V and the target's -5.5V connected to the power's ground.
Thanks for info.,
Keval Pandya he uses a transistor tester to measure inductance of a coil. Btw all the best for ur engineering
That's awesome! i never thought that inverting buck converter can function as a boost converter as well, but is it possible to replace the opamp by optocoupler as a feedback to the ATtiny?
Yes it is, but the voltage won't be so stable after it. Btw you don't have to use a microcontroller, I have built a buck-boost converter using an op amp, an optocoupler and a 555 timer as a control chip.
@@__MINT_ you can input straight the 555 pwm to the mosfet? And how do you apply control with those?
@@davidfelipecastroarias8137 You have to connect the optocoupler between pins 8 & 7 of 555 with a resistor in series, gate of the mosfet is connected to the output of 555 via for example 10ohm resistor. Then, diode of the optocoupler can be driven by TL431 or an opamp, by varying the current flowing through it, you change the duty cycle. I have already built several converters this way, and they work flawlessly
Plz make a simple but powerful step up Booster circuit
Amazing tutorial GreatScott ("',), I am building a wind turbine and I'd like to know if i can use this circuit to charge a 12V battery (through a diode) from the fluctuating voltage of the wind generator ?
My hunch is yes, but should regulate to get higher than 12V to charge
OK, this might be a dumb question but why not use an LM-317T ? wouldn't the feedback keep the output swings in check?
great scott, great video
Can you tell me what I need so it can handle 5 amps at 19 volt?
Hi GreatScott!
I have some interesting question to discuss with you!
if we can build the buck/boost converter into one circuit then why there are still some people who build the buck or the boost converter circuit separately?
Didnt he state this at the end of the video? That the efficiency was lower than two seperate circuits?
Can the converter automatically regulate the voltage, even the input-voltage is changing????
Yes, that was the point of this build.
savage
I am 100% Sure That Great Scott Will Go really really Far.
Best wishes man. :))
He is near one million subscribers now.
He's at 1 million now.
@leafonabreeze 1.19
1.25
@@joa4935 1.47
But the electrons are really flowing from the negative to the positive side of the capacitor. Not from positive to positive. I really don't like "conventional current" it makes everything more difficult. I wish everyone could just agree that electrons and current flow from negative to positive.
We can blame Ben Franklin.
As long as you understand the situation you should have no problems.
Im not building anything, no fking clue what hes talking about...still love to watch these videos. :D
hes talking about buck rogers and the temple of doom
The main problem with switching power supply is the noise ( the impulsive ripple which can reach very high values ) do you think you can make a video about that, maybe analyzing the best low pass filter yo make it more " linear "? :D
it would be interesting to see output on harmonic analyzer
An approach to solve this is to set the output voltage 2-3 V higher than what you want, and the use a linear regulator/LDO in series. They have very little noise. So the linear regulator would be a post-regulator, and the buck/boost would be a pre-regulator.
@@thephlophers That would be with a regulating LDO like the LM317, keep the same deal of a little above wanted voltage and drop the rest with the LDO, now, how to control both at once is another story...
Best one yet. Brilliant video. It really helps the visual learners when you laid out the components on the diagram. My son finally got it! This really put all the pieces together in a great package. It is a wee bit fast, but honestly no issue since you can pause and play as needed. Well done!
pm me can you to install do solar panel of charger,
You seem to have your passion, friend. And you're damn good at it.
pm me can you to install do solar panel of charger,
I accidentally read Fuck/Boost Converter because Buck was above Flyback😂😂
I can say that the rather low efficiency of ur circuit is due to the 7805 linear regulator used to power the attiny with 5 volts.
You could use a smaller Buck converter module for that but that'll totally destroy the diy aspect.
Great work as allways
Would it be possible to use the Buck/Boost Converter for a solar cell to actually create a regulated constant output voltage? I'm asking since I'm actually interested in loading LiPo cells over a solar cell with a non MPPT BatteryCharger IC I have laying around. I know that you already showed a possible way to charge a LiPo cell with a CNXXXX-IC but I actually want to use the Buck/Boost Converter for other projects too and since it has a probrammable ATtiny85 it would be also usefull to implement other functions too.
Yes, you could even do your own MPPT
Hi Great Scott, can you make a video about a UPS design for providing battery backup for DC devices such as routers, switches, access points etc? Kind of like a battery charger circuit combined with a SMPS
Well, I think the low efficiency is because the capacitor always discharges through R4 and R3 in off time, and although the value of R3 and R4 are high, the capacitance of C4 is very low, so a considerable loss per cycle contributes in an overall reduction in efficiency.
can you explain more about this, why the capacitor can discharge for r3 r4 during close cycle. thank u
03:43 "a small load of a milliohm"
What can we use as an alternative Mcp602 ?
bidirectional dc-dc converter please 😊
There's a serious question nobody ever seem to answer. Say you have a class A/B audio amp and you only run it at half the level for the best audio possible and you need a certain voltage, how do we get rid of all of that noise and ripple? Do you use a resister between the pos and neg? If so how do we figure out what value?
Could you do a video of FET (triode) vs. Transistor please?
Anyone knows how to calculate parts for a desired voltage? I want to create a boost converter from 12VDC to 300-400VDC, but dunno how to calc the parts for it :(
If you're at something like medium electronics skill, then search for switching power supply
They switch a DC voltage with a mosfet and feed it to a transformer that steps it up.
But think about what you're trying to do, do you really need such high voltages? There might be a safer and more efficient way.
Btw yes i know that this was posted a year ago :) i still hope it helped
For such a converter, the coil would have to has a high inductance, so it would create quite a power losses. In general, non-isolated converters are less efficient while their input to output voltage ratio is high. It's better to use a transformer in order to make a push-pull inverter, and for example tl494 as a control chip, when it comes to such converters.
Can you provide videos, projects can be made from parts derived from projects and a penalty old electronic
Scot. sometimes you soooo fast it is even hard to click pause at the right time.
Please do a mobile phone charger from 12 volt 8 w solar pannel
Since I'm already pursuing EE, your videos and its depth of knowledge are always ready to put me in action. Thanks for your existence.
pm me can you to install do solar panel of charger,
Hello Great Scott!
Im just wondering about MCP602. Can I use an alternative for that like LM358 instead of that. Stores here dont have any of it. Or could you suggest aside from LM358?
It would be a great help ;) thanks :D
Very nice video. Now I know, how are the China boost converters exactly working. Thanks for it!
Great Scott! Please answer this.
Can i use arduino uno directly instead of ATtiny85. If so, do I need to change the program?
Please guide me to do it. Thank you.
Great video as always. I like how your videos are structured, it explain things at the beginning, then do the practical stuff. As usual, your video give me better understanding on electronics.
pm me can you to install do solar panel of charger,
"it is mentionable" => "it is worth mentioning" if im not mistaken the first doesnt exist XD
dict.leo.org/ende/index_de.html#/search=mentionable&searchLoc=0&resultOrder=basic&multiwordShowSingle=on&pos=0
Sure it does.
Otherwise you couldnt have "unmentionable".
It would be all lonely without its opposite..
Mentionable just isnt used as much as unmentionable.
Why you didn't use astable multivibrator with feedback?
Maybe I will make an extra video.
You could probably use a LM339 comparator! I did that to make a flyback driver.
Now that's a video I'd like to see.
A microcontroller is much more flexible, you can make a PID, PI-controller etc, with programmable gains. I personally love the ATtiny85, and i think it was a great choice; small 8-DIP, cheap, easy to program.
konradmannen That is true, but generally it is better to use proper circuitry for power supply designs. It is easy to use a micro, but far better to use an analog feedback loop, like all the purpose designed chips on the market do. There are guides online explaining how to engineer a decent switching supply, going into depth about things like bode plots and transfer functions.
Nice Video as always ! 👌😀
Thanks ;-)
what pens do you use
thanks
👍👈👉✌😐😕😶😯😟😦😧😎😘
fineliner
100 views in first 50sek
Hi. Very nice video, GreatScott! As always.
I have a doubt, though: i may be wrong, but isn't "flyback" the name given to the "transformer" in a buck-boost converter topology? As long as i know, you implemented a buck-boost converter only. The flyback converter should have a transformer between circuits, shouldn't it?
Well I also have another question how high is the actual Vpp? I guess it's around 100mV?
Not sure... You can probably cut off down to 80 mVpp or even 40 mV of ripple with high enough switching frequencies.
anybody help me!!
i want to make 100uh inductor but how many turns must i do
good video!, but, why wouldnt you use a Voltage regulator to keep 12 stable volts instead of the buck/boost converter?
A linear voltage regulator has a dropout voltage. So it could work with voltages of (for example) 12.6V and above. A linear regulator can also not step up voltage and they are not efficient.
its less efficient and the linear voltage regulator can't regulate unless the voltage supplied to it is a few volts greater than the desired voltage
Thanks!
Great job!
I got a question. Where should i connect the Load in the N-Mosfet circuit? Is there a way to turn-off the circuit if i drive it with a micro?
Nice video! Why didn't you try a building a SEPIC step up/down converter?
This is not a flyback converter; this is an ordinary buck/boost converter. They perform similar functions but do so in very different ways.
Great video and explanation. Thank you, I really appreciate it. I wonder in the same time if ATTINY85 could be replaced with something else and increase the efficiency through that solution?
4:58 You don't even need an OP-AMP! Just create a voltage devider between the +5v rail and the output, read the voltage and scale it in software😎
Works just as well and saves time, money, space and power!
The output is inverted
@@baoxuezhang3300 Yes, but if you make the devider so that even at the max negative output it does not go below 0v on the analog input it works fine!
@@nielsdaemenhow though? The “voltage divider” you are describing is capable of inverting voltages, and that is no different to an op-amp
@@nielsdaemen acutually, I checked, and yes, you could in theory use a voltage divider for suck a task, the problem is that the voltage divider would load the output, thus decreasing output stability.
I have 3 wires on both side (12Vin and 5Vout, USB-C). Two of them positive (red B+ and yellow ACC) one of them negative (black). For park mode on my dash cam, I give 5V on B+ wire, and 0 V on ACC wire. If I start the engine of my car I give 5V on B+ wire, and 5V on ACC wire to let my camera know, I started the engine, and it should be switched to normal mode. If I stopped the engine I give 0V on ACC wire and my cam switches its mode to parking mode, and so on.. Would you make a buck converter with two positive input and one negative input AND two positive output and one negative output?
PS.: If I tried to use the original buck converter of the cam, it stopped recording in a period of time due (car) battery protection.
scott's a genius , hmm what's his IQ , scott is nikola tesla.
could we use LM358 or any other op-amp for the same purpose because MCP602 Isn't available in my region, if yes then what modifications do i need? please reply ASAP....! because i've been stuck at making my own one for a lab bench power supply!
A very good vedio but how can we contact you sir for share your problem if we try to make buck boot converter on higher voltage ⚡ input 100 volt DC to 350 volte DC output 350 volt about 12 amps
hello guy. can i ask you, what is this
" TCCR0A = 2
Hi . regardless of the project and the design can i replace the ( MOSFET and the coil and the diode ) with higher quality that can give me from 24V input 20amp max an output (12V 40A or near it ) up to ( 48v 10amp or near it ) ? you know that i have a transformer 24V 20amp and i need a boost/buck converter that gives me 12V 40amp up to 48v 10amp
I hope you can help me. I have 7 3500 mAh 26650s in series. This makes a nominal 24 v battery at 3500 mAh. Now I put 2 cells of 24 v in parallel, this makes 7Ah battery. If I add a buck converter and drop the voltage to 12 volts does the wattage stay at 168 or does the buck cause the wattage to drop down to 87 watts.
I get the error "TCCR1 is not declared in the scope" when compiling with arduino v1.6.7. i see more people are having this issue
found it, had to install the attiny hardware package, my bad
Apologies but may I know how do you install the attiny hardware package?
I am ignorant in electronics can someone help me develop an adjustable power supply starting from 220 V (home network) that can replace the 18 V / 2AH (DEVALT) drill bater?
I have a general question, Can a dc-dc step up module be used to maintain a solar panels output at 12v 2.5amps, when panels out drops significantly? My solar panel is 12v 50watts one and I see the output fluctuates when I connect a 19v,3amp laptop charger(around 60watts), I wonder if one of these step up modules can help
So this is the reason why a 5V 20mA LED won't blow up when connected to 5V rail of ATX PSU, however, will blow up, when connected to 5V 3A battery?
please please please
.
.
.
.
.
.
.
.design a buck boost converter for 50 V input and 10- 60 V output and current rating of 10 A max
+GreatScott! Am I the only one to notice that your oscilloscope costs FOURTEENTHOUSAND EUROS? I mean, what the heck that costs as much as a car.
I know that you probably won't answer this question but I really need some help. I'm trying to learn how to solder up protoboard only having a schematic is reference and I'm having a hard time visualizing the proper connections. Do you know any tutorials that may help me I'm obviously very new at this. I I am a robotics engine but I have mainly dealt with mechanical design. I mean I can feel my way around a circuit board and offer to troubleshoot but have never had a lot of experience with board level design. I really need this extra tutelage. Any help that you could or anyone could give me would be greatly appreciated
Do I need flyback functionality if I want to use this as battery charger? If I had it wouldn't it just increase amperage until something breaks. Also if I want higher power does it mean that I need to spec every component to that voltage and amperage I would be using.
Can't you Just save the main circuito, and for the switching parte, use a quartz oscillator? (That's not an advice, that was and actual question)
HI scott can you do a tutorial on how to make a cheap regulated power supply that can deliver low voltage like max 12v down to 0v with 1 amp, with a lm317 plzz i think it would be the best for beginners cause the lm317 is very common and most beginners like me xD want to power circuits like logical gates with loads attached to relays or transistors.
I already watch the video from the diy psu but the components like the main buck boost isnt available in my country and its very expensive to buy from online stores.
hope you take this in count, this channel is amazing, my best regards dude.
mannn you're soo good but you're sooo in a hurry you find a problem you say "but" and figure out a solution that you make it look so obvious --witch isn't--- and carry on :/
It'll be nice if you take you're time and level down with us normal people and explain how you diagnose problems in the first place, and why that exact solution....
how many Amps this circuit can handle?
is 5 Amp capable?
Hi, I made a small wind turbine and I am getting voltages of around 1.5V-5V, how can I step up to 12V to charge a battery? thanks
Argh. Building a voltage regulator out of a processor? What next, build a lawn mower out of a race bike, or a pickup truck out of a helicopter?
استاذ ممكن شرح طريقة تخفيض تيار ٨٠٠ فولت DC الى قيمة اقل ٥٠٠ او ٤٠٠ فولت DC مع المحافظة على امبير الدخل ولكم جزيل الشكر
Can u make a bidirectional DC DC converter using two switching MOSFETs?
Wonder if this was asked already, but, simple. How much times researching average count of your project?
How about Boost/Buck? The guy who just invented the reverse topology, solve all the problems of buck/boost.
Your videos changed my life! I wouldn't be where I am at this point if it weren't for these amazing tutorials.
pm me can you to install do solar panel of charger,
Udaya🔋🔋🔋🔋
Can I use this with a car battery 12v 65amp to power my audio amplifier which uses 24v 5amp to work please reply
So the efficiency would be better if you use the Non-Inverting Version since you use two curcuits with an efficiency of 95/90 %?
This dude is Einstein the second :) keep up the good work!
if i want to make a buck- boost converter of 100W for regulating voltage of a solar panel to a battery, how i rate my different components to handle that power?
Please I'm trying to recreate this, can anyone help me with switching frequency and size of the load resistance?
How to step down secondary coil voltage to 1000v in flyback tranformer???
Man, I would've like to know how to make this very project without Microcontroler...
How can we adjust duty cycle......
Which components we need to adjust duty cycle????
Can anyone tell me what’s purpose of circuit on the left part of schematic (Which has 7805 and capacitor)
In this circuit can I input lower than 12V voltage and still get higher voltage than 12V
Hi there, if I want to build one with a rated current output of 10A, the coil, mosfet and schottky need to be able to withstand it or do I need to reinforce more components? Thanks
Great tutorial :D
Ficraft Skowyrsyn
I decided to try the same circuit using a single cell lipo but I m gettjng ridiculously high voltage at lowest duty cycle, do I need to change the inductor ?
Good after noon Sir Im trying to make a AC to Dc buck converter for a led 32 Samsung any hints
I kinda understand it and is attempting to make it but the fact that the style of doing it is too modern and me as a flat broke student who didn't have those programming thing cannot make it.. i wish there are some methods used to make it even without those programming and some sort use of those expensive things...
IF you wanted to improve efficiency could you set them up as separate circuits and use a mosfet to control which circuit needs to be used? do you understand what i mean?
Could any one not it for buck above 12v and boost below 12v a major mistake 😂😂😂
Hi, great video! Could you do an add-on on how to control the output voltage using the PWM of an Arduino?
FYI, the module you've shown is most likely a SEPIC, not a buck-boost. Buck-boost uses just one choke. Correct me if I'm wrong.
is it DC-DC Converters? and what should i do if i wanna make 320v on output?
Great video. Do you plan on making higher powered flyback circuits?
Not yet.
When using this in a flashlight, I guess it is smarter to rather use two LiIon Cells in series and a buck converter, right? But then, charging is more complicated...
same here. I need a 30A flyback circuits.
Great video! I love these videos because they pack so much information into a relatively short video. Keep up the great work!
pm me can you to install do solar panel of charger,