Welcome
Username or Email:

Password:


Missing Code




[ ]
[ ]
Online
  • Guests: 61
  • Members: 0
  • Newest Member: omjtest
  • Most ever online: 396
    Guests: 396, Members: 0 on 12 Jan : 12:51
Members Birthdays:
No birthdays today

Next birthdays
05/07 a.gutzeit (64)
05/08 wpk5008 (35)
05/09 Alfons (37)
Contact
If you need assistance, please send an email to forum at 4hv dot org. To ensure your email is not marked as spam, please include the phrase "4hv help" in the subject line. You can also find assistance via IRC, at irc.shadowworld.net, room #hvcomm.
Support 4hv.org!
Donate:
4hv.org is hosted on a dedicated server. Unfortunately, this server costs and we rely on the help of site members to keep 4hv.org running. Please consider donating. We will place your name on the thanks list and you'll be helping to keep 4hv.org alive and free for everyone. Members whose names appear in red bold have donated recently. Green bold denotes those who have recently donated to keep the server carbon neutral.


Special Thanks To:
  • Aaron Holmes
  • Aaron Wheeler
  • Adam Horden
  • Alan Scrimgeour
  • Andre
  • Andrew Haynes
  • Anonymous000
  • asabase
  • Austin Weil
  • barney
  • Barry
  • Bert Hickman
  • Bill Kukowski
  • Blitzorn
  • Brandon Paradelas
  • Bruce Bowling
  • BubeeMike
  • Byong Park
  • Cesiumsponge
  • Chris F.
  • Chris Hooper
  • Corey Worthington
  • Derek Woodroffe
  • Dalus
  • Dan Strother
  • Daniel Davis
  • Daniel Uhrenholt
  • datasheetarchive
  • Dave Billington
  • Dave Marshall
  • David F.
  • Dennis Rogers
  • drelectrix
  • Dr. John Gudenas
  • Dr. Spark
  • E.TexasTesla
  • eastvoltresearch
  • Eirik Taylor
  • Erik Dyakov
  • Erlend^SE
  • Finn Hammer
  • Firebug24k
  • GalliumMan
  • Gary Peterson
  • George Slade
  • GhostNull
  • Gordon Mcknight
  • Graham Armitage
  • Grant
  • GreySoul
  • Henry H
  • IamSmooth
  • In memory of Leo Powning
  • Jacob Cash
  • James Howells
  • James Pawson
  • Jeff Greenfield
  • Jeff Thomas
  • Jesse Frost
  • Jim Mitchell
  • jlr134
  • Joe Mastroianni
  • John Forcina
  • John Oberg
  • John Willcutt
  • Jon Newcomb
  • klugesmith
  • Leslie Wright
  • Lutz Hoffman
  • Mads Barnkob
  • Martin King
  • Mats Karlsson
  • Matt Gibson
  • Matthew Guidry
  • mbd
  • Michael D'Angelo
  • Mikkel
  • mileswaldron
  • mister_rf
  • Neil Foster
  • Nick de Smith
  • Nick Soroka
  • nicklenorp
  • Nik
  • Norman Stanley
  • Patrick Coleman
  • Paul Brodie
  • Paul Jordan
  • Paul Montgomery
  • Ped
  • Peter Krogen
  • Peter Terren
  • PhilGood
  • Richard Feldman
  • Robert Bush
  • Royce Bailey
  • Scott Fusare
  • Scott Newman
  • smiffy
  • Stella
  • Steven Busic
  • Steve Conner
  • Steve Jones
  • Steve Ward
  • Sulaiman
  • Thomas Coyle
  • Thomas A. Wallace
  • Thomas W
  • Timo
  • Torch
  • Ulf Jonsson
  • vasil
  • Vaxian
  • vladi mazzilli
  • wastehl
  • Weston
  • William Kim
  • William N.
  • William Stehl
  • Wesley Venis
The aforementioned have contributed financially to the continuing triumph of 4hv.org. They are deserving of my most heartfelt thanks.
Forums
4hv.org :: Forums :: General Science and Electronics
« Previous topic | Next topic »   

Digital benchtop power supply design

1 2 
Move Thread LAN_403
cjk2
Tue Dec 01 2009, 12:41AM Print
cjk2 Registered Member #51 Joined: Thu Feb 09 2006, 04:17AM
Location:
Posts: 263
I suppose I am getting a little more serious about electronics now and I feel I need some good test equipment. I just went out and bought an Instek DDS function generator and now I want a nice benchtop switching power supply. I have seen these online for sale, but they seem to run atleast $300 for what I want, and these supplies don't have digital control (you can not "type in" what voltage/current you want).

I figure it might be worth my while to try to design a good smps to meet my needs. Something in the range of 0-50v and 0-5a seems about right. While I have seen many linear power supplies online, few have digital control and even fewer use PWM. Maybe the reason that the kind of supply I want is so expensive is because it is very hard to design one?

Anyway, I wanted to have a stab at it, so here is my design using at TL494, some ADC's and some DAC's. The DAC's set the comparison voltage that the 494 sees for current and voltage feedback. The ADC's are optional but allow for the microcontroller to know in real time what the current and voltage output of the power supply is. I intend to use an AVR micro to control the DAC's so that the user's voltage and current requirements can be met. I would also like to use a cheap LCD module to display the voltage output, current output, and current limit in real time.

My design uses dfferential voltage sensing so that the voltage drop across the current sense resistor does not cause voltage errors that grow with current output.

I have several questions for those more experienced than me:

1. Am I likely to have problems trying to achieve very low output voltages due to the fact that I am trying to use single supply opamps and their outputs will never really get to 0v? How close can a good rail to rail opamp get? Within say 10mv or so?
2. How good is a TL494 at dealing with very small input voltages? If i want my powersupply to output 1v for example, I will be feeding 50mv into the inputs of the opamp inside the 494. I believe I am concerned with the common mode input range here and the error at very small input voltages?
3. Is this design workable or possibly fundamentally flawed?

Maybe an expert knows how a real digitally controlled smps works and can shed some light on their design for me!

1259628113 51 FT0 Smps Idea 1
Back to top
rp181
Tue Dec 01 2009, 01:04AM
rp181 Registered Member #1062 Joined: Tue Oct 16 2007, 02:01AM
Location:
Posts: 1529
Hey,
I have no idea how the digital SMPS work, but I have one of these:
Link2 (30W version)
and i can take some pictures of the internals if you want.
From memory, it seems it uses multi point tapped transformer, and an H-bridge. A relay is used to switch between high power and low power modes, the high power mode being below 16 volts, up to 2.4 amps. low power mode is up to 32v and 1.2 amps.
Another nice feature is the fan is always on low, until the current exceeds a certain threshold (300ma for this). Temperature would be better for protection, but this is nice for keeping a constant temperature.
Back to top
Proud Mary
Tue Dec 01 2009, 01:20AM
Proud Mary Registered Member #543 Joined: Tue Feb 20 2007, 04:26PM
Location: UK
Posts: 4992
Have you noticed you've asked one of those typical 4HV unanswerable questions - as you haven't specified the requirements of the load,
you have no rational basis whatever for your power supply design. smile Do you need 10W, 1kW, 1MW - you leave it up to your readers to imagine what your requirements are, and respond in the same imaginary vein.

Back to top
cjk2
Tue Dec 01 2009, 01:28AM
cjk2 Registered Member #51 Joined: Thu Feb 09 2006, 04:17AM
Location:
Posts: 263
The requirements of my load? Whatever I feel like hooking it up to that day! Perhaps a resistive load that I want a constant current through? or maybe a flyback driver? or perhaps a magnetic levitator even!

A ripple of 50mv or so would be nice as well but likely not required. Oops, I should have said it in my post as well, the supply should output 0-50v at 0-5a with digital control.

rp181: I hate to have you tearing your nice power supply apart just to snap me a few pictures unless you really want to. Does your power supply display a current limit on the screen, or the actual current your load is drawing?
Back to top
Proud Mary
Tue Dec 01 2009, 01:53AM
Proud Mary Registered Member #543 Joined: Tue Feb 20 2007, 04:26PM
Location: UK
Posts: 4992
cjk2 wrote ...

The requirements of my load? Whatever I feel like hooking it up to that day! Perhaps a resistive load that I want a constant current through? or maybe a flyback driver? or perhaps a magnetic levitator even!

A ripple of 50mv or so would be nice as well but likely not required. Oops, I should have said it in my post as well, the supply should output 0-50v at 0-5a with digital control.

rp181: I hate to have you tearing your nice power supply apart just to snap me a few pictures unless you really want to. Does your power supply display a current limit on the screen, or the actual current your load is drawing?

Well, know you've formulated your answer - a variable supply offering 0 - 50V @ 0 - 5A, with a maximum ripple of 50mV, why do you need the help and advice of anyone else? smile
Back to top
cjk2
Tue Dec 01 2009, 02:06AM
cjk2 Registered Member #51 Joined: Thu Feb 09 2006, 04:17AM
Location:
Posts: 263
Well, know you've formulated your answer - a variable supply offering 0 - 50V @ 0 - 5A, with a maximum ripple of 50mV, why do you need the help and advice of anyone else?

For the same reason that just because I want a car that can go 200mph does not mean I know how to build one. Just because I know what I want does not mean I know how to get there.


I am interested in learning how a "real" digitally controlled power supply works, maybe someone here has built or has worked on them before and can enlighten me. I am also interested in any input about the feasibility of building a power supply based on the design I posted. Thankfully, I find this kind of work very interesting. maybe I will just have to play with at TL494 for a while and see how it behaves!






Back to top
rp181
Tue Dec 01 2009, 02:11AM
rp181 Registered Member #1062 Joined: Tue Oct 16 2007, 02:01AM
Location:
Posts: 1529
Someone like me doesn't just not take something apart cheesey Its quite a clean mechanical design, ile go take some pics now.
EDIT: camera charging, will get the pics up tonight.
The screen works as follows:
When turned on, there is text saying "OUTPUT OFF" as well as the current set current and voltage
When the output turns on, a side pixel indicates HI or LO mode.
During operation, the supply shows the current being drawn, and the voltage for that current. If the load draws more current then it is set to, it automatically switches to CC, and shows the voltage being used to get to that current. If you want to set the voltage or current in operation, or see what its at, a button can be pressed to see the current, then voltage, and changed accordingly. Hope that makes sense.
The supply has an RS232 interface, so that may lend to the complexity.
The discerning sections seem to be
half bridge (two sinks, each with one FET, and what looks like a diode)
Power conditioning, line filter, and output of the transformer
Display control
main microcontroller
firmware IC

EDIT (again): here are the pics.
Front panel
4148452451 B2ff5e3665
Overview(note: this pic came out very well, and you can see the part no. on most all of the IC's, if you want the 10MP version, pm me your email and ile send it over)
4148452429 8863a32f8d
One side of the bridge (?)
4148452435 A5996526c4
Firmware IC next to microcontroller (if they are not the same)
4148452459 42f023246d
Main board (power control?)
4148452437 B133181c7f
Back to top
cjk2
Tue Dec 01 2009, 02:34PM
cjk2 Registered Member #51 Joined: Thu Feb 09 2006, 04:17AM
Location:
Posts: 263
Thanks very much for sharing. I take it that supply uses linear regulation because I don't see any big inductors that would be used in a filter. I wonder if those fets are being used in some sort of chopper or (more likely by the size of the heat sinks) are being used in linear mode.

I suppose I will play around with the 494 when time permits and see how it behaves with the low input voltages, etc. I have also requested some ADC's and DAC's from maxim so when (if) they arrive I might just have a go at building something similar to my original circuit to see how it behaves.

It looks like I will need to do some reading on stability, frequency compensation, etc.

Thanks for the input so far.
Back to top
GeordieBoy
Tue Dec 01 2009, 03:37PM
GeordieBoy Registered Member #1232 Joined: Wed Jan 16 2008, 10:53PM
Location: Doon tha Toon!
Posts: 881
> It looks like I will need to do some reading on stability, frequency compensation, etc.

Definitely. I'd particularly look at the control theory / stability / frequency compensation stuff. Also look into how you will test your PSU when you've designed and built it. Things like line and load regulation tests are essential, and load-step testing and s/c recovery are very important tests too.

For example if the load on your +5V supply suddenly goes from 10A down to 1A, does the voltage overshoot by only 100mV or as much as 2 volts!?!? How long does it take to recover before the output is back within "spec"?

It's also worth bearing in mind how cheap the far-east manufactured workbench supplies are these days. If you just want something to use rather than spending 6 months learning about SMPSUs and loop compensation, then buy one and start using it today in the knowledge that someone else has already done the tedious reading and difficult calculations for you! smile

-Richie,
Back to top
cjk2
Tue Dec 22 2009, 02:50AM
cjk2 Registered Member #51 Joined: Thu Feb 09 2006, 04:17AM
Location:
Posts: 263
An update on all of this:

I have decided to build a slightly more traditional power supply to start. I am planning to build a switching supply with current and voltage feedback with an AVR controlled display to show voltage and current information. I want to use a voltage mode controller like an SG3525, MC33025, or UC3825 to control this supply. I will use pots like a normal bench top supply does to set max voltage and current.

I intend to document my progress here and eventually work my way up to a fully digital design if time permits. Lets get started then!

First, Is there an easy way to figure out how many volts per turn my core can take without saturating? I have a function generator, inductance meter etc. If it turns out to be hard to get a real number, ill probably just use 5v per turn or so.

Second, If i wanted an unused core, say ETD39 and bobbin, where could I buy one? All of the suppliers I have seen only sell large quantities or charge a $25 export fee, etc.

Now for some pics!
1261450201 51 FT80450 Gdt1

1261450201 51 FT80450 Gdt2

1261450201 51 FT80450 Setup1

1261450201 51 FT80450 Scope1
Back to top
1 2 

Moderator(s): Chris Russell, Noelle, Alex, Tesladownunder, Dave Marshall, Dave Billington, Bjørn, Steve Conner, Wolfram, Kizmo, Mads Barnkob

Go to:

Powered by e107 Forum System
 
Legal Information
This site is powered by e107, which is released under the GNU GPL License. All work on this site, except where otherwise noted, is licensed under a Creative Commons Attribution-ShareAlike 2.5 License. By submitting any information to this site, you agree that anything submitted will be so licensed. Please read our Disclaimer and Policies page for information on your rights and responsibilities regarding this site.