Well I assembled my circuit on breadboard and now added some of the controls
It works pretty well, although with some minor issues, like the driver transistors for the FET's getting a bit warm. Which is odd cos they are spec'd for the job and aren't even exceeding the power rating.
I basically set the load supply low to limit the power as at this point I don't want to overload it and cause some damage!
I've tweaked a few things, the display amp is now an LT1014, instead of an LM324, as I thought I may as well since I have a handful of them, keeps BOM count down I guess. But I'm pleased with how its coming out!
So: I have moved into the new house and all (but a few boxes of crap) have been unpacked.
I made a start on my new work space and already I am getting my hands dirty; The Mini is getting its gearbox removed again and am sending it off to a company that specialises in gearboxes! They actually quoted me a reasonable price if I dropped the box myself! Will mention them if they do a good job!
At least this time my tools are steps away rather than 100m away and don't have to lug them from the top of the garden to the end of the driveway! Also: nice smooth tarmac rather than bloody pebble driveway, bliss on my back! So given these benefits, this took me 2 hours! Plus I knew where everything went!
CC Project update
So the next logical step after simulating the circuit was to build it up and test it:
I butchered the old breadboard of its parts and plonked a new one on the side and began to build the main CC source part of my design:
This schematic has the changes I made from test findings
U5 output was connected directly to a 10k trim pot instead of all the pin headers for the SET/EN switch. The wiper of the trimmer was then connected to all of the non-inverting inputs of U3:A through D.
The black a red wires dangling off to the right are load supply connections and also the varistor is not fitted for this prototype test.
I cut a piece of 2mm aluminium and bolted the MOSFETs to them each with their own insulating pad and colet. I wanted the MOSFETs to be a thermal equilibrium with each other so one didn't run away with itself.
As such, I wasn't going to exceed a load current of 1A or a load voltage of 5V, I wanted to keep the power as low as possible. I just wanted to see if it worked first before punishing it!
Testing
Upon initial power on I found that I had the LT1014 op-amp wired in the wrong way! Idiot! No harm done, just got a little warm. Fixed that.
The other think that was getting warm was the emitter resistors: R25 - R28. As there was no load supply attached, and therefore no voltage feedback, the transistor was being driven fully by the op-amp and thus nearly the full supply was across the 100R resistors. Although not an issue for the small load currents for this test, but definitely and issue when it comes to testing bigger currents! I worked out they need to be 2W or at least 1.5W. Another change to the list!
A steady 2.5V out of the voltage reference: Good stuff!
I then did a load test on a bench supply: 3.3V and set the current limit to 250mA. The idea was to slow wind the trimmer up till I reached the limit, least then know it worked. But it didn't: power on, instant supply trip. I had wired the FETs in wrong now! Facepalm 2.0!
Re-wired the FETs right way this time, repeated above and same result...ok so one of the FET's are possibly poorly? removed the shunt resistors one by one till the fault cleared and replaced that FET.
The next day I came back, different work station (single supply not dual supply this time) so I hooked the supply for Vcc to the load and expected it to work as expected: nice linear increase in current as I increased the voltage at the non-inverting inputs of the op-amps: it did and didn't
I decided to wind the current limit up to 1A for this test. The Vcc was taking 400mA (quite high), so I wanted to allow some head-room. This supply also had a moving needle meter. It went up to about 200mA then jumped up to about 500mA, crapping my pants thinking I had accidentally induced some runaway, I back the trimmer down and yet it started to go down linearly, yet when it reached approx. 200mA, it stayed there, even as the trimmer reached the end of its travel. OK weird! I decided to leave it and come back later.
I then went to another dual supply, MNM display again. hooked up the Vcc (12V) and hooked the other supply up to the load source and this time set the voltage to 3.5V and wound the trip all the way past 1A. I basically wanted to repeat the last test and rule out using the single supply, I suspected this was the cause.
Powered on both supplies and observed a nice steady linear control of the current on the load supply. I set the load so the display read 200mA and sure enough the shunt voltage on each was within at least 1mV of 50mV.
50mV over 1R = 50mA; 4 x 50mA = 200mA!
Bang on!
I then wound the trimmer up so that there was 250mV across one shunt resistor and sure enough the needle on the display deflected toward 1A nice a smoothly throughout!
Conclusions and Plans
So it works at a glance. I'm going to do some more accurate testing:
observe how linear the current increases (assuming the trimmer I have is not log! Best check that first)
introduce a method of observing the transient response as in the simulation and observe the transient current.
observe the emitter voltage as well and see what if there's anything interesting I can see.
So far then I am pleased that it works up to this point. After the testing above I'm planning to then move onto developing the over-temp protection and physically sizing the heatsink by buying it in!
So I managed to breadboard up a simple constant current source from a schematic and CAD up my enclosure (whilst at the same time learn how to use Autodesk inventor) and make some end covers for it (also at the same time train up on works laser cutter).
The initial test proved my design did need some tweaking, and thanks to ease of CAD, these where amended on the schematic easily. Also to weeded out some crap components!
The Circuit
So the circuit is pretty basic but enough to constitute a constant current source with a little overload alarm/indicator.
Brief Run-down of the specs
Must be mostly constructed of recycled, scavenged or spare parts found lying around in spares boxes/collections.
Must be mostly THP components and populated on a single sided PCB
Must manage up to 7A load current at 30V maximum input voltage. Current must be fully adjustable from 0 to 7A.
There must be a display showing the set and driven current to a resolution of 0.1A (100mA)
must have over-temp warning for the driver circuit either audible or visible
must have an set/enable switch for turning the load on and off prior to adjustment or for quick disengage of load (in those situations where you realised you overloaded your DUT!)
driver electronics must run off a minimum of 12V supply, with input protection against reverse polarity supply and fused
DUT input must be protected against over-voltage (greater than 30V DC)
Spend no more than £20 on any parts that must be bought.
First iteration
I got the inspiration for this design from PauloRenato - its a pretty good design though, and also employs the same ethos as the design I want to construct.
Below is the first schematic revision and highlighted circuits are fitted to the breadboard:
So I used an adjustable reference source (TL431 adjustable voltage reference) to set a voltage of about 7.0V to the Current Set pot(goes off board on J2). The reason for a voltage ref? well why not, if you have it use it! I could have used a 9V1 Zener, but that would require potting it down and then there's the voltage/Temp issues with a Zener (as with any semiconductor junction), so with a voltage ref, there's more stability.
J3 & J4 are for the SET/ENABLE switch, but for testing on the bread board I just connected the wiper of the set pot to the non-inverting input of U1:A (first op-amp on U1). U1 is a LM324: cheap, readily available and are pretty much here to stay.
U1:B is a buffer for the LCD DMM. The LCD I chose was the DVM-210, main cos it had no units on the display meaning the reading could be translated into amps without confusion, it was small and had a backlight, which I intended to use as a over-temp indicator. It required a 0-200mV input for the DMM and required 9V to operate. So the output of the buffer had to be potted down to give a 0-200mV output from a 0-7V output, with the ability to trim/zero the meter reading.
I omitted VR2 and connected a 1R 5W resistor where J1 pins 2 and 3 are. This acts as the load resistor. Q1 & Q2 are the driver MOSFET's. They are FDP6670AL N-channel MOSFETS with some pretty good specs, albeit are they are becoming harder to find. The reason for the MOSFET pair is that the current load is split between the 2, thus halving the amount of power each FET is trying to dissipate.
U4 is a 555 timer which flashes the back light on the LCD when the over-temp detector circuit activates it. Its a slow flash at about 3Hz.
Also the input power protection was not needed and I also hit my first design snag. I had no 7809 voltage regulators (D'oh!) so I had to tweak the design and utilise an LM317 and a few resistors to get 9V. Below is the second revision of the schematic:
Rev02 of schematic - 9V reg from LM317 highlighted in green
Testing
Testing the voltage reference output was the easy bit. Turn on power and stick a volt meter across its output and GND: 6.99V - Spot on! Job's a good 'un!
Next I tested the 9V out of the LM317: 9.05V - Good enough!
I tested the balance of load through each MOSFET to ensure each one was getting their equal share of the load. I placed an ammeter in series with the drain of Q2 and hooked it up to load a bench PSU. I set the PSU voltage to about 3V and tweaked the set-point pot till the ammeter on the PSU read about 1A, which means you would expect 0.5A through the ammeter. And you would be right, except after a while the current started to go down slowly! After some head scratching I put this down the the combination of the voltage lost over the meter impedance and the Vds of Q2, along with the affects of temperature due to power dissipated in Q2. So it did work, but it's worth noting the affect of this measurement.
Then things started to go a little awry from this point! I hooked 9V power the display and tried out the alarm circuit by connecting the reset pin on the 555 to Vcc & GND and sure enough the backlight flashed.
However I could not get the blasted thing to give a sensible reading from the DMM, I kept getting negative values. At full scale on the set-point I got -7.00 on the display. As I approached 0A on the setpoint I got 0.56?! I tried zero it using RV1 and trying again but still negative, I thought I must have hooked it up the wrong way, but swapping the leads made things worse, and the voltage between the + and - DMM terminals remained at a steady 1.0V! WTF?! In the end I ditched it, not before dismantling it to see if there was anything stupid going on and then chucking it. I still have no idea what was going on there, the manual for these DMM's are pants and offered no detailed explanation of the internal circuitry, so I went on amazon and found me a china special 0-99V display for the low low price of £2.17! - and guess what? With VR1 & R6 removed, along with removing the LM317 circuit and hooking the display directly to Vcc, the bloody thing worked! up yours VoltCraft!
All I had to do to get it to flash was connect the power for the display to the output of the 555 timer to turn it on and off. simple and effective, the 555 can easily source the current required for this display. It did flash a bit fast now so I had increase C7 to slow it down to a little under 1Hz. There is a very small delay when the display is powered on and showing the set current, something I can live with.
I then proceeded to test the accuracy of the display against a Fluke 77 (old fluke!). I set a bench supply to a low-ish voltage to minimise heat from power dissipation (about 2V). I set the setpoint to 200mA on the display and took a reading of the voltage across the 1R shunt resistor and the current off the bench PSU:
OK so it's about 37mA out, but with the 0.1 degree of resolution and a single turn set pot I can't conclusively say that it's bang-on. Another at 0.5A (500mA):
This looks promising! The needle is pretty much half its full deflection of 1A and the Fluke says 526mV across the shunt! One more at an 1A:
That's pretty good! For now I'm satisfied that the display is not so far out for 100mA resolution. It's not uber precise or accurate, but best I could have hoped for from mostly scavenged and collected bits!
CADding!
With the basic circuit done, it needs something to live in. I found an old extruded aluminium enclosure in my spares box. It used to house some control electronics for a pump. its perfect for PCB's as its has guide slots. All it needs is some end panels for the front and back.
New job new things to learn so I decided to CAD up the enclosure shell into Autodesk Inventor CAD:
The best and simplest way to CAD this was to measure up all the dimensions of the profile of the enclosure, and then extrude them out. This way if I were to use the same enclosure I can just call up the outline and extrude to whatever length I want! Be useful for work related projects!
The end plates were a simple case of drawing them directly as part of an assembly so they fit the contour of the enclosure and then cut through the holes for fixtures and engravings:
From these parts I exported some DXF's and managed to find some scrap 3mm acrylic and cut them out on the laser cutter, plus some self tapping screws to bolt them to the enclosure and hey pesto:
I know the rating on the front is wrong, but I was between projects and got my spec's mixed up! The grill on the front allows ample air flow for the fan on the rear. there is a section of the fan grill where the centre of the fan blocks the centre of the grill and also doesn't match the CAD image, this is cos I amended the CAD after I realised the redundant cut outs and didn't bother re-cutting the panel.
What's next
Well the rest of the circuit! Testing the Fan control circuit, the temp control circuit and sourcing some more parts as well as getting the gerbers for the PCB done and milled out on the isolation router.
Amongst some of the parts I found these heatsinks, which'll be perfect for this design and enclosure.