Author Topic: Does this switch mode buck convertor design look OK?  (Read 3299 times)

0 Members and 1 Guest are viewing this topic.

Offline mosafetTopic starter

  • Contributor
  • Posts: 32
  • Country: 00
Does this switch mode buck convertor design look OK?
« on: January 19, 2019, 11:32:41 pm »
I'm playing around with a switch mode power supply design. This is just experimentation on my part nothing important. I'm just learning electronics.

Does this design look OK? I'm about to etch a PCB for it. It uses a STM32 for as the driver. Yes, I know a dedicated SMPS chip would work easier/better but I love my software and microcontrollers. I currently have it running open-loop on a breadboard and it seems to work. I didn't have room to hook up the SENSE yet.

Only problem I ran across is once I accidentally reset the MCU while it was running driving a 1K ohm load and I heard a "snap" (ie. something may have arced). No damage that I could find. What could have caused that? I believe the driver MOSFET went from 50% duty at 500kHz to either solid off or on when the MCU reset. I think it turned the MOSFET on solid 100% (in theory that was OK though).

Edit: to attach larger schematic picture. Change subject from SMPS to "buck converter" :P
« Last Edit: January 20, 2019, 01:06:04 am by mosafet »
 

Offline ogden

  • Super Contributor
  • ***
  • Posts: 3731
  • Country: lv
Re: Does this SMPS design look OK?
« Reply #1 on: January 20, 2019, 12:04:58 am »
I'm playing around with a switch mode power supply design. This is just experimentation on my part nothing important. I'm just learning electronics.

Does this design look OK?

No. It has many problems. Sorry, but SMPS *design* is one of the worst possible projects for beginner. Either 1:1 copy some proven design (including PCB) or reconsider your project completely. You may want to read ST application note AN4449. Also you may want to just buy STM32F334 Discovery kit, play with it first.
 

Offline mosafetTopic starter

  • Contributor
  • Posts: 32
  • Country: 00
Re: Does this SMPS design look OK?
« Reply #2 on: January 20, 2019, 12:32:54 am »
No. It has many problems. Sorry, but SMPS *design* is one of the worst possible projects for beginner. Either 1:1 copy some proven design (including PCB) or reconsider your project completely. You may want to read ST application note AN4449. Also you may want to just buy STM32F334 Discovery kit, play with it first.

I forgot to mention that I build everything from scrap parts so buying stuff is more of a long term goal when I have money.

Just saying "many problems" is not very helpful. What problems? I read the note and I don't see the problems. I don't need boost, only buck and my circuit is similar. This isn't powering a heart monitor...  :-//

I always learn this way. If you tackle something hard you gain much more in my experience. Sometimes you have to blow stuff up to learn. I'm careful to not do anything dangerous to myself. Parts on the other hand, not so much. :)

I already designed and have running a separate boost converter to boost 5V to 500V and I weld with it...
 

Offline Doctorandus_P

  • Super Contributor
  • ***
  • Posts: 4671
  • Country: nl
Re: Does this SMPS design look OK?
« Reply #3 on: January 20, 2019, 12:46:44 am »
Your schematic is posted in a too low resolutioin and I won't bother looking at it closely.

A few things I can say though:
If you want to build your SMPS properly and do the algorithms in software, then put a decent MOSfet driver chip between the uC and the FET.

There are also a multitude of SMPS supplys available from Ali / Ebay / Banggood / China / Etc nowadays for low prices.
It's hard to beat those with a home built design.
For example take the USD 25 DPS5005, which delivers up to 50V and 5A.
It's also got an STM32 in it, and if you want to toy with software you can have a look at the opendps project, which is on github as an alternative firmware for this thing.
 

Offline ogden

  • Super Contributor
  • ***
  • Posts: 3731
  • Country: lv
Re: Does this SMPS design look OK?
« Reply #4 on: January 20, 2019, 12:55:29 am »
Just saying "many problems" is not very helpful. What problems?

You have problem with converter topology and mosfet driver, not to mention missing capacitor after rectifier.

This is buck converter, not what you are "designing":

https://en.wikipedia.org/wiki/Buck_converter
 

Offline mosafetTopic starter

  • Contributor
  • Posts: 32
  • Country: 00
Re: Does this SMPS design look OK?
« Reply #5 on: January 20, 2019, 01:01:17 am »
Your schematic is posted in a too low resolutioin and I won't bother looking at it closely.

A few things I can say though:
If you want to build your SMPS properly and do the algorithms in software, then put a decent MOSfet driver chip between the uC and the FET.

There are also a multitude of SMPS supplys available from Ali / Ebay / Banggood / China / Etc nowadays for low prices.
It's hard to beat those with a home built design.
For example take the USD 25 DPS5005, which delivers up to 50V and 5A.
It's also got an STM32 in it, and if you want to toy with software you can have a look at the opendps project, which is on github as an alternative firmware for this thing.

Sorry, I didn't realize how low it was. Here is a giant one (also will edit OP).

Yes, a dedicated driver is great but I'm working lower level than that. People are too spoiled just buying everything in one black box these days. The DMP2035 I'm driving the FET with can do 20V at like 5A but I'm only doing a fraction of that. I can see perfect FET activation on the 'scope.
 

Offline mosafetTopic starter

  • Contributor
  • Posts: 32
  • Country: 00
Re: Does this switch mode buck convertor design look OK?
« Reply #6 on: January 20, 2019, 01:10:00 am »
You have problem with converter topology and mosfet driver, not to mention missing capacitor after rectifier.

This is buck converter, not what you are "designing":

https://en.wikipedia.org/wiki/Buck_converter


Thanks.  :-+ Updated subject. Looking in to the driver. All I know is it works fine but maybe under some conditions bad?

No switch mode example I have seen uses a capacitor right after the rectifier. They have it after the coil like I do.
 

Offline mosafetTopic starter

  • Contributor
  • Posts: 32
  • Country: 00
Re: Does this switch mode buck convertor design look OK?
« Reply #7 on: January 20, 2019, 01:19:43 am »
I would like to add a shunt so I can measure the current but I don't know if I will be able to get enough resolution on the ADC without an amplifier. I don't want to add even more parts, haha. Hmmm. I guess I could use a relatively large resistance shunt since I don't need 50V out of this thing. I will experiment.
« Last Edit: January 20, 2019, 01:24:33 am by mosafet »
 

Offline ogden

  • Super Contributor
  • ***
  • Posts: 3731
  • Country: lv
Re: Does this switch mode buck convertor design look OK?
« Reply #8 on: January 20, 2019, 01:23:10 am »
You have problem with converter topology and mosfet driver, not to mention missing capacitor after rectifier.

This is buck converter, not what you are "designing":

https://en.wikipedia.org/wiki/Buck_converter


Thanks.  :-+ Updated subject. Looking in to the driver. All I know is it works fine but maybe under some conditions bad?

No switch mode example I have seen uses a capacitor right after the rectifier. They have it after the coil like I do.





Source: http://www.learnabout-electronics.org/PSU/psu31.php
 
The following users thanked this post: mosafet

Offline mosafetTopic starter

  • Contributor
  • Posts: 32
  • Country: 00
Re: Does this switch mode buck convertor design look OK?
« Reply #9 on: January 20, 2019, 01:26:44 am »
Source: http://www.learnabout-electronics.org/PSU/psu31.php

Cool, thanks! I'll put that in. It actually was something I thought of doing before but like I said, the examples I have don't ever show that and I wonder if it's actually necessary. I only see 40mV ripple on my final output. I can see why it would be good to have it though because the half sine waves might get chopped at varying angles leading to instability when under high load.

In case anyone is wondering, I'm using a 60W incandescent light bulb as a load. It pulls about 30W at 55V DC output.
« Last Edit: January 20, 2019, 01:38:57 am by mosafet »
 

Offline ogden

  • Super Contributor
  • ***
  • Posts: 3731
  • Country: lv
Re: Does this switch mode buck convertor design look OK?
« Reply #10 on: January 20, 2019, 11:29:57 am »
Source: http://www.learnabout-electronics.org/PSU/psu31.php

Cool, thanks! I'll put that in. It actually was something I thought of doing before but like I said, the examples I have don't ever show that and I wonder if it's actually necessary.

Sure. Upstream power source is usually omitted. Example design of the automobile wheel does not necessarily include drawing of the engine or other parts of the automobile power train.

Actually you shall pay even more attention to buck converter topology. Notice that buck converter have common ground, high side switch transistor:



Circuit of your converter does not look like that.

Quote
In case anyone is wondering, I'm using a 60W incandescent light bulb as a load. It pulls about 30W at 55V DC output.

55VDC seems like 100% duty cycle for your buck converter which essentially means - it is not operating. You shall test at lower output voltage, like 12V.
« Last Edit: January 20, 2019, 11:37:44 am by ogden »
 

Offline mosafetTopic starter

  • Contributor
  • Posts: 32
  • Country: 00
Re: Does this switch mode buck convertor design look OK?
« Reply #11 on: January 20, 2019, 03:07:20 pm »
Actually you shall pay even more attention to buck converter topology. Notice that buck converter have common ground, high side switch transistor:



Circuit of your converter does not look like that.

Right because you can use either a high-side or low-side design. That is a high-side circuit. Mine is using low-side because it's slightly easier to control the gate. This is fine if the load can float.

Quote
55VDC seems like 100% duty cycle for your buck converter which essentially means - it is not operating. You shall test at lower output voltage, like 12V.

Right, I was just giving that out as the max value (100%). At other voltages the wattage is less. It works.

I also noticed that my schematic as drawn here is wrong. I did the breadboard first and messed up the MOSFET driver section when drawing the schematic. I'm considering other driver options if I can scrounge the parts. I really dislike P-FET's. :)
« Last Edit: January 20, 2019, 03:09:12 pm by mosafet »
 

Offline ogden

  • Super Contributor
  • ***
  • Posts: 3731
  • Country: lv
Re: Does this switch mode buck convertor design look OK?
« Reply #12 on: January 20, 2019, 03:23:06 pm »
Right because you can use either a high-side or low-side design. That is a high-side circuit. Mine is using low-side because it's slightly easier to control the gate. This is fine if the load can float.

You may use low side buck for current supply like LED driver, but not for voltage supply which needs voltage monitor. Ground of your supply is not tied to ground of the microcontroller - how you can (correctly) measure output voltage?  :-//

Quote
I was just giving that out as the max value (100%). At other voltages the wattage is less. It works.

I also noticed that my schematic as drawn here is wrong. I did the breadboard first and messed up the MOSFET driver section when drawing the schematic.

Then fix your schematic and re-post it!  :rant:

Driver you are showing, with 10k pull-down resistor, is not able to switch power mosfet at high frequencies at all. If you say it is working then - could you please show 30% PWM duty-cycle voltage waveforms of power mosfet gate, output (virtual) ground and positive terminals?
 
The following users thanked this post: mosafet

Offline mosafetTopic starter

  • Contributor
  • Posts: 32
  • Country: 00
Re: Does this switch mode buck convertor design look OK?
« Reply #13 on: January 20, 2019, 03:52:27 pm »
You may use low side buck for current supply like LED driver, but not for voltage supply which needs voltage monitor. Ground of your supply is not tied to ground of the microcontroller - how you can (correctly) measure output voltage?  :-//

OK, yes, I see the problem and I was not using the sense yet. Now THIS is why I asked if it looked OK because this is obviously something I need to fix. I'll re-sort it and rework the FET driver for high-side. More complexity :( :)
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf