Тёмный
5VLogic
5VLogic
5VLogic
Подписаться
All kinds of DIY Electronics Projects and More!
Building and Testing a Half Bridge SMPS
5:21
4 месяца назад
Комментарии
@ryleebrownfox
@ryleebrownfox 4 дня назад
i was right to search for a 555 timer with feedback. thank you
@markojovanovic165
@markojovanovic165 5 дней назад
Great video! Straight to the the point and without bull poo-poo. But i need a 1mHz , how do i make one of those? How can we make +3 and -3 V for opAmps with as little components?
@5VLogic
@5VLogic 4 дня назад
Thanks, Do you mean a Megahertz or a millihertz. Both are on the extreme side of the spectrum. For 1MHz I think it's gonna be tough, I recommend using a different circuit, maybe if you have a fast switching comparator you can pull it off but I definitely can't guarantee... The RC value is going to be about 10^-6 so like 1kOhm and 1nF I believe. Still, I'd opt for a different circuit; crystal or LC if you're feeling adventurous. For 1mHz the RC constant would be 10^3 so like 1MOhm and 1mF. Also you'll have to wait more than 16 minutes for one period... I want to remind that these values are very approximate. For dual power supplies you need some sort of dual power supply... ;) Simplest might be two batteries in series and then regulated with two linear legulators.
@markojovanovic165
@markojovanovic165 3 дня назад
@@5VLogic *MHz mega hertz.
@styrishrodrigues
@styrishrodrigues 12 дней назад
Great information, thanks buddy! ❤
@Torogol85
@Torogol85 12 дней назад
The LM358 is a general purpose op-amp, not a voltage comparator. This whole circuit works gracefully because the 358 is capable of impersonating a voltage comparator, and save the day unscathed. This is a nice, simple circuit which I would like to build, but I think I'll replace the LM358 with an actual comparator, like the LM393 (dual comp). Its open collector outputs require using a pull-up resistor
@5VLogic
@5VLogic 11 дней назад
Good observations 👍
@ahmedalshalchi
@ahmedalshalchi 12 дней назад
Nice design idea but it is not commercially acceptable ... I recommend you use HT7704 series which will finish all without headache ..
@TriodeLuvr
@TriodeLuvr 12 дней назад
For those asking about values - I built this using 47KΩ and .015uF at the input. The timing circuit consists of a 10uF capacitor with a 10K pot. I added a 91Ω fixed resistor in series with the pot to limit minimum pulse width. These values provide an adjustable pulse width of approximately 400uS to 130mS. I recommend use of a 10-turn pot for easier adjustment. All the formulas needed to ascertain values are in the NE555 data sheets, but I found it easier to model this in LTSPICE and adjust values by trial and error for the exact range needed. Hopefully the values I used will give you a starting point.
@TriodeLuvr
@TriodeLuvr 13 дней назад
Thanks, this works well. I needed a simple pulse generator with separate frequency and pulse width controls that don't interact. I put your circuit into SPICE and massaged the values to get the range I needed, then triggered it with a separate NE555 astable oscillator. Perfect!
@10e999
@10e999 13 дней назад
Such a cool channel ! You have a new subscriber !
@shawon265
@shawon265 13 дней назад
Isn't it possible to swap the flip-flop with another op-amp? Maybe a positive feedback circuit or something? It'd be hall cool if it can be done just on 1 quad op-amp ic
@5VLogic
@5VLogic 13 дней назад
Yeah, that's a good point, I thought about it, because it would have been cool, but I couldn't think of an actual way to pull it off.
@88farrel
@88farrel 13 дней назад
I like your funny word magic man
@Rouverius
@Rouverius 14 дней назад
Cool. Wonder how the other flipflop could be used. Maybe to have two different light levels settings?
@alexstone691
@alexstone691 15 дней назад
Please tell me where you got that light, i found one at flea market but it had a white base but no marking whatsoever
@5VLogic
@5VLogic 14 дней назад
I think from IKEA, but not sure, it was probably a gift
@SusanAmberBruce
@SusanAmberBruce 15 дней назад
There are plenty of purpose built ic's for touch sensors 😅 and very cheap
@aerena
@aerena 15 дней назад
It would be nice if you share circuit diagram.
@4bSix86f61
@4bSix86f61 15 дней назад
Im glad this isn't some indian guy building a circuit off google and calling it a day, The explanation was great. Subbed.
@f33net
@f33net 15 дней назад
Usually, there is a strong enough 50/60 Hz potential on the human body to simply detect it. And this will require 4 transistors, not 4 chips. 😉
@BillAnt
@BillAnt 15 дней назад
Some people can actually feel the 50/60Hz when holding the metal body of a phone or other devices plugged into a charger. Myself included, it's a weird feeling sort of like a very low constant electrocution.
@f33net
@f33net 15 дней назад
@@BillAnt That's not what you're talking about. And you will not feel 50/60 Hz from chargers, there are none there, the conversion frequency is much higher. :)
@BillAnt
@BillAnt 14 дней назад
@@f33net - Whatever it is, I can feel it on some devices. It may be the buck-converter's frequency, but there's definitely something there.
@robstamm60
@robstamm60 11 дней назад
​@@f33netYou can actually get capacitive coupling of mains voltage into the shielding of isolated chargers - sometimes the voltage differential can even be high enough to be painful when touching the shielding.
@concretesloth2968
@concretesloth2968 11 дней назад
@@BillAnt is it like a tingling/vibrating sensation when u rub a metal surface connected to a plug?
@tonys9860
@tonys9860 15 дней назад
Have you tried touching the gate of the MOSFET to turn the light on and off? Without the other circuitry?
@BillAnt
@BillAnt 15 дней назад
The MOSFET may be sensitive, but you need to hold a constant logic level, otherwise it would flicker, or worse burn out.
@__MINT_
@__MINT_ 15 дней назад
Was the problem with triggering the circuit by interference solved? I've made a very similar thing a few years ago, and had the exact same problem. Now I think that I'd add a one way low pass filter (slow charge, fast discharge via a diode) at the comparator's input, so that very short pulse wouldn't be enough to create a clock pulse. Touching it creates very long pulse compared to the one created by interference
@5VLogic
@5VLogic 15 дней назад
I think so but can't be sure because I haven't tested It thoroughly. The low pass filter is definitely a good idea, I should try that.
@Sctronic209
@Sctronic209 16 дней назад
Very nice.
@bob_mosavo
@bob_mosavo 16 дней назад
Thanks 👍
@sebplayer
@sebplayer 17 дней назад
I tried whit a 12 v dual rail supply, all resistors 10k and a 1 mocrofarad non polarized capacitor and i was also us ig lm324 quad opamp (only one amp) but it wasent working ... Any idea why?
@sebplayer
@sebplayer 17 дней назад
Nevermind it worked really nice and clears explanations. I like this channel a lot:quality content every time
@sebplayer
@sebplayer 17 дней назад
Ow do yo make the pulse whidt equal on both levels?
@5VLogic
@5VLogic 16 дней назад
Thank you, it's always great to get positive feedback and to know someone actually tries to reproduce the projects! If you're trying to get a 50% duty cycle and aren't getting one, it's probably the output of the opamp that's better at sourcing current than sinking it (or viceversa). You could use a potentiometer with two diodes, like in the 555 PWM classic online/RU-vid schematics. Hope that helps!
@samueldavies646
@samueldavies646 20 дней назад
amazingly explained!
@5VLogic
@5VLogic 19 дней назад
Thank you!
@cannapolis9009
@cannapolis9009 Месяц назад
I really don’t see how you get 24 V on the top of the capacitor. Seems to me that you were simply putting ~12 V on both sides when the upper Mosfet turns on.
@stss2260
@stss2260 Месяц назад
any chance you can make a buck version... and dare i say maybe a buck boost as well???
@5VLogic
@5VLogic Месяц назад
Good suggestions, thanks
@erfanblaze4524
@erfanblaze4524 Месяц назад
Thank you With the tips you gave, the program works well There is only one problem that it reads all the inductors, but it has a problem with small smd inductors like size 1206 and it doesn't show a number! I mean, where does the problem come from?
@5VLogic
@5VLogic Месяц назад
Hi, I'm glad you were successful in building the project! Although I don't have any SMD inductors to test, I'm relatively sure it's because they have high series resistance. Being so small they have to pack a high number of turns in there, and the wire has to be very thin. This means that the energy is lost quickly before it has time to oscillate enought to give a reading. I think the program discards measurements with less than 4 oscillations maybe(?), it's been a while... Also I don't know the value of your inductors, but low values are also not read, for similar reason, not enough energy is stored in them to oscillate enough and the Q factor is also lower, creating the same result. You could measure series resistance with an ohm-meter to verify the hypothesis if you'd like.
@trongbangnguyen6706
@trongbangnguyen6706 2 месяца назад
You can provide file.hex I use windows so I can't use avr gcc. thank you.
@5VLogic
@5VLogic 2 месяца назад
Hi, it's already available on GitHub, link in the description.
@trongbangnguyen6706
@trongbangnguyen6706 2 месяца назад
@@5VLogic The description link does not have a .hex file but only an exe.ihex file. I don't flash it your way, so I need the file .hex
@5VLogic
@5VLogic 2 месяца назад
Ok, I updated the repo, try it now and let me know if there are any problems.
@trongbangnguyen6706
@trongbangnguyen6706 2 месяца назад
I don't want you to change the name, I want a .hex file that can be loaded directly with the NEO programmer tool without avdure or similar, I don't use linux, I have ch341 avr and nep SPI programmer.
@trongbangnguyen6706
@trongbangnguyen6706 2 месяца назад
I don't want you to change the name, I want a .hex file that can be loaded directly with the NEO programmer tool without avdure or similar, I don't use linux, I have ch341 avr and nep SPI programmer.
@mervdoda3072
@mervdoda3072 2 месяца назад
Thanks for the advice. My TDS320 is working great!
@erfanblaze4524
@erfanblaze4524 2 месяца назад
Hello I do the circuit according to the circuit I closed the video and checked it several times, I also used the hex file that you put in the new one It only says "open" on the LCD But the problem is that when connecting the inductor in the circuit, the board makes a connection and draws 1 ampere! Please guide 😢
@erfanblaze4524
@erfanblaze4524 2 месяца назад
When connecting the inductor to the circuit, it draws up to 1 amp and heats up the bd137 transistor and writes >open< on the LCD.
@5VLogic
@5VLogic 2 месяца назад
@@erfanblaze4524 Hi, it's very difficult helping people through the internet debug circuits, but what I can do is give a few pointers and recommendations: 1) Check your transistor, if it's truly a BD137 and not a PNP. 2) Check the overall wiring. If you have and oscilloscope, probe all voltages around the transistor (the base in particular). 3) See if compiling your code and using my .ihex file gives the same result, if not there could be a problem in the code (potentially mine as well, although I don't think so). 4) Check the integrity of the arduino and it's pins, try an other GPIO to be sure, or test the one you're using with an LED to confirm it's working properly. Ideally check that it's capable of both sourcing and draining current. 5) Try swapping the transistor, in case it was bad or it got damaged. A MOSFET should work fine, but use a series resistor to limit the drain-source current. Place it on the drain side, not the source because it won't turn on properly. Unfortunately if the problem is hard for someone working on it in person, it's REALLY hard for someone over the internet. The general approach I recommend is to progressively excluding all possible faults and faulty components, one at a time by testing or swapping them. I really hope that helps, good debugging!
@erfanblaze4524
@erfanblaze4524 2 месяца назад
My circuit worked correctly and the problem was using the software >avrdudess< to put the hex code on the arduino nano, when I connected it directly to the atmega328 with the stk500 programmer and programmed the hex code, the problem was solved and the circuit worked correctly. he does Anyway, thank you very much for your advice 🥰🙏
@erfanblaze4524
@erfanblaze4524 2 месяца назад
​@@5VLogicMy circuit worked correctly and the problem was using the software >avrdudess< to put the hex code on the arduino nano, when I connected it directly to the atmega328 with the stk500 programmer and programmed the hex code, the problem was solved and the circuit worked correctly. he does Anyway, thank you very much for your advice
@erfanblaze4524
@erfanblaze4524 2 месяца назад
There is only one problem that it reads all the inductors, but it has a problem with small smd inductors like size 1206 and it doesn't show a number! I mean, where does the problem come from?
@erfanblaze4524
@erfanblaze4524 2 месяца назад
Hello What compiler did you use? And the hex code was generated?
@5VLogic
@5VLogic 2 месяца назад
Hi, I use avr-gcc as a compiler and avr-objcopy for the hex file. My makefile (and the whole project) is on GitHub and you can check it out and/or download everything there (link in description). In my case I run everything on Linux, but I think it should work on all OSs if the necessary utilities are installed.
@erfanblaze4524
@erfanblaze4524 2 месяца назад
​@@5VLogic thank you I compiled with avr -stdio and put the hex into the arduino nuno And I closed the circuit and it says open on the LCD, and when I connect the inductor to the circuit, the board makes a connection! Maybe the problem is with my compiler, please upload hex file 🙏
@5VLogic
@5VLogic 2 месяца назад
Finally got it done, hopefully it's correct because I stopped working on this project since I turned it into the LC meter in my following video, but it should work. I'll upload the hex file for that one too in case you'd like to try it.
@erfanblaze4524
@erfanblaze4524 2 месяца назад
@@5VLogic tank you 🥰
@user-hu7iw5cp9j
@user-hu7iw5cp9j 2 месяца назад
Perfect! Thank you!
@user-hu7iw5cp9j
@user-hu7iw5cp9j 2 месяца назад
Thank you so much! Very useful experience
@electrovoltmce
@electrovoltmce 3 месяца назад
It's just a simple opinion - it's not a tip - what if you completely eliminate what's in the middle - and the part of the wiring that is outside (those external outputs that can be seen in this video) should be completely covered by the magnetic core - in theory - that voltage transfer from the primary to the secondary is done by magnetizing the core as strongly as possible - by making that hole in the middle - you make a "magnetic field obligation" towards the outside of the coil - it's just a simple opinion.
@bussi7859
@bussi7859 3 месяца назад
Use a 4 layer PCB or even better use copper sheet only, 1 turn per layer, increase the frequency to 350kHz. I made this kind o transformers professionally the size you are using is good for over 300W.
@LegoTechnicsRule
@LegoTechnicsRule 3 месяца назад
How did you get the dead time between the two signals?
@5VLogic
@5VLogic 3 месяца назад
The IC TL494 assures dead times.
@Unnikrishnan99-24
@Unnikrishnan99-24 3 месяца назад
Sir, I designed a 24V half-bridge SMPS with an IR2153 IC. I'm getting a 24V output, but when I connect a load, the voltage drops to around half of 24V. What is the problem, and how can I fix it?
@5VLogic
@5VLogic 3 месяца назад
The voltage across the primary is always half of the input supply so I can assume 12V is correct. The over-voltage with no load can be caused by rectification of the ringing oscillations from switching transients. It's just me taking a guess though.
@Unnikrishnan99-24
@Unnikrishnan99-24 3 месяца назад
​@@5VLogic Thank you your reply. Transformer input voltage is 150-160VDC, but decreasing input volt also.
@jimsvideos7201
@jimsvideos7201 3 месяца назад
If two layers are good, would many layers be better still?
@5VLogic
@5VLogic 3 месяца назад
Yes definitely, although one should keep in mind that the inner layers are more prone to overheating because they're not in contact with the air. Also, they're more expensive.
@gregandark8571
@gregandark8571 3 месяца назад
The only issue on pcb planar transformers is the high parasitic capacitance. Pls correct me if I'm wrong.
@5VLogic
@5VLogic 3 месяца назад
Yes I forgot to mention it but the other reason I made the single layer PCB was to reduce the parasitic capacitance across the primary. In general also between primary and secondary it can be somewhat high depending on the distance they have between them.
@gregandark8571
@gregandark8571 3 месяца назад
Also! Instead of a single trace you can draw double trace to decouple by a little the parasitic capacitance, but i don't know if this technique worth the effort.
@Etrehumain123
@Etrehumain123 3 месяца назад
Thank you
@user-jz8gd2bi7g
@user-jz8gd2bi7g 3 месяца назад
Very very nice video
@danielzimmer1436
@danielzimmer1436 4 месяца назад
Nice video! What I hate about breadboards is that when you have a problem you never know if it’s the design’s fault or the breadboard’s 😑
@ivolol
@ivolol 4 месяца назад
Next video, feeding back a response voltage to the PWM using a TL431 to keep a set output voltage with varying load?
@tiagoferreira086
@tiagoferreira086 4 месяца назад
Nice! Keep in mind that flyback transformes cores have an air gap, and that's no good for forward converters, it may be influencing the behavior of your circuit and influence efficiency for sure.
@5VLogic
@5VLogic 4 месяца назад
I forgot to mention that I ground down the ferrites to remove the gap, it's not the most beautiful solution but it works well. The important thing is that the primary inductance is sufficient, which is what the gap effects.
@tiagoferreira086
@tiagoferreira086 4 месяца назад
@@5VLogicIt doesn't need to be pretty, it only needs to work :) the only issue possible with sanding is it may not be 100% gapless due to flatness imperfections, but it wont make a huge diference anyway.
@teguhsakura
@teguhsakura 4 месяца назад
Hi 5 Volt, thanks for the video. please, share your gerber file to github. btw, can you make video how to write code on Vim and compile it. i have been using arduio ide, so i want to try learn something new. thanks before
@5VLogic
@5VLogic 9 дней назад
Hi, Sorry for the super late reply, I guess your comment flew under the radar. I'll keep you suggestion in mind, but since I'm not that knowledgeable on this topic it might have to wait. Also not many people use vim and Linux unfortunately so I'm not sure the video would do well. Still, thanks
@teguhsakura
@teguhsakura 9 дней назад
@@5VLogic thats fine, your welcome
@__MINT_
@__MINT_ 4 месяца назад
Good job! I wonder if instead of trial and error method for choosing the range, you could use an ADC to track the very first points on a charge curve. Since it is linear in this region, you would instantly have a decent approximation
@5VLogic
@5VLogic 4 месяца назад
That's a good idea, I should try it
@PCBWay
@PCBWay 4 месяца назад
Great video! Awesome build 😍
@5VLogic
@5VLogic 4 месяца назад
Thanks, you guys!
@vinnysworkshop
@vinnysworkshop 4 месяца назад
Brilliant work! This will DEFINATELY be my next Arduino project!
@arupde6320
@arupde6320 4 месяца назад
upload videos like that
@incxxxx
@incxxxx 4 месяца назад
Without EXTERNAL comparator no way, it can be only waste of time. But your code is valuable and can learn much how to write properly.
@xedtronicsph3877
@xedtronicsph3877 4 месяца назад
What are the Ranges of the Inductor and Capacitor it can test
@5VLogic
@5VLogic 4 месяца назад
About 5 uH minimum to an unknown maximum of mHs. 10 or 20 pF to tens of mF
@xedtronicsph3877
@xedtronicsph3877 4 месяца назад
@@5VLogic thanks bruh, you deserved a lot, i want to learn programming like you do, Hope for more bruh
@SusanAmberBruce
@SusanAmberBruce 4 месяца назад
good job, thanks for sharing