Hi Guys,
Using Dave's uSupply as inspiration, I've designed a 20V, 2A variable power supply. This is my biggest project to date, and I'd appreciate any feedback at all you can offer. Even if the design is completely messed up, I've had a lot of fun and learnt a lot so far
The design is broken into a bunch of blocks. I'll go over each one in turn with justification over why I picked certain components over others (which a lot of the time was because I had them on hand...)
The design will be fed from mains via a transformer with an 18VAC output. This passes through the fuse, bridge recitifier and is filtered, giving around 26V output. The ripple is load dependent but I calculated max of around 1V. I used four 10,000uF caps vice one single big one for two reasons. Firstly, it was cheaper, and secondly I thought it might give me a bit of redundancy if one fails.
There are two secondary chip regulated supplies, being 5V and 3.3V. The 5V is fed from 26V as I wanted all the low power devices to power up before the main supply (more on that later). The 3.3V is used to drive the uC and peripherals.
Along with the 3.3V supply, I've made a simple linear 4.096V supply. The ADR4540 is a 4.096V reference that I have excess of here. C8 and C15 provide supply buffering. D1/Q1/R2/R3 is a simple 100mA constant current source. This is fed into the gate of the MOSFET. The AD818 compares the output voltage to the reference, and D2 allows it to sink current only. So the basic idea is the constant current supply is fed into the MOSFET, then sunk when not required. I think this is more complicated than it needs to be (my original design ran the ADR4540 into a unity gain amp) but I'm also interested to test out the principle of this circuit (it's based on something similar by Walter Jung).
Most of the uC circuitry is standard. It will be run on 3.3V, including the i2c line. P2 is a NewHaven display which is controlled via i2c. There are two rotary encoders (current and voltage) and two switches (reset and enable). The capacitor bank on the RHS is for filtering the 4.096V IC's (ADC, DACs, OpAmps).
U8 and U9 are two i2c DACs. I've got excess of these at home, hence the choice. One is to set the reference voltage for current (0 - 4V => 0 - 2A) and the other for the output voltage (0 - 4V => 0 - 20V). The ADC is to return the signals back to the uC so I can display set and actual voltage/current. It's a 4 channel i2c because that's what I had lying around.
The bulk of the power supply is in the top right. It's a three stage topology, with a pre-regulator, current control and MOSFET voltage control. I wanted to use a pre-regulator for two reasons, firstly to remove the ripple from the 26V line and secondly so I could use the enable port to switch the supply on/off. This means the unit will always start/restart with enable low, hopefully stopping initial voltage spikes. The output of the pre-regulator should be around 23.5V.
The current control is achieved with a simple 0.01ohm shunt and a differential amplifier. It has a high gain on it (50) to convert the shunt current into the 0 - 4V range. Like Dave's design, this sinks the MOSFET gate when the current is higher than the set value.
Voltage control is again reasonably standard, with a resistor divider converting 0-20V into 0-4V. This is also tapped off to be read by the ADC.
That's all I can think of at the moment - I'm holding off on the board layout until I'm convinced that the design is workable in it's current state. I'd love to hear any feedback or criticism that any of you have. Like I said this is my biggest project to date, and I don't know what I don't know... so help me learn
Regards,
Brad