Electronics > Projects, Designs, and Technical Stuff

High voltage constant current source

(1/3) > >>

heliophagus:
Greetings! I have a small design conundrum. I need to deliver a controlled 0-5 mA current through a high enough resistance that a 200 V driving EMF may be required. I will need to specify the current, within perhaps 10% accuracy, via a microcontroller which will probably require optical isolation. Do you have any suggestions for approaching this problem? I have researched and googled this extensively and have yet to find a really good solution.

Doctorandus_P:
First there is not much difference between a current source and a current sink.

You could argue that a current source pushes current into something, and a current sink pulls it out on the other end, but in the end the electrons run in circles and it's the same.

Once you realize that, then you can build a standard current sink, with a current measurement shunt, a variable voltage reference (start with a potendio meter, later use filtered PWM, or a DA converter)

The rest is an opamp to compare the voltage over your current mearuement shunt with your setpoint from the potentiometer, and control a switch.

It does not matter much whether you use a NPN transistor or N-channel MosFET, as the opamp will compensate for most of the differences of these semiconductors.

A MosFET can regulate to lower output voltages, but you need some voltage drop over the shunt anyway.
A NPN transistor will always have a voltage drop between Collector and Emitter, even when driven into saturation and under light collector currents.

Transistors tend to have lower leakage currents compared with MosFET's.

With this "standard" current sink you will face a few problems.
The first is to get it stable.

Your 200V input requirement does not add much special to the current sink, you just need a 200V (unregulated) voltage source, and  of course need a MosFET or NPN transistor that can withstand those voltages.

The voltage over the current shunt, and therefore also the opamp input will be low, and the output of the opamp will be around 600mV higer than the Shunt voltage (for NPN bipolar transistor) or 2 to 5V higher for a N-channel MosFET.

You can start experimenting from a lower output voltage, for example a 30V lab power supply to get the control loop stable.

If you make sure the microcontroller is solidly grounded, and your 200V supply is fused properly then the whole thing is already starting to look somewhat safe.

But when messin' with higher voltages a bit of extra isolation is advisable. So use a floating power supply for your microcontroller, and ad a few optocouplers for communication.

I2C is a bit complicated for optocouplers, because information goes in two directions through the wires.
Both SPI and UART are easy to do with optocouplers, but UART only needs one optocoupler for each direction.

Another important issue is how to turn the thing on.
If your "device" is not connected yet between the 200V and the current sink, then the setpoint is very likely to be higher then the voltage over the shunt, (Which is 0,0V because there is no current) and the opamp will turn your controlling device fully open, and then, if you give it 200V though your test setup the opamp needs time to react and you will have a high current spike first.


Doctorandus_P:
Another approach that may be suitable is to use a transformer from a small wallwart SMPS module in reverse.

Put one side of such a transformer on a 12V or so DC voltage source, and connect a MosFET between the other side of the primary winding to GND.

You can drive a MosFET directly from a PWM output pin of a microcontroller.
Then, on the high voltage side of the transformer you will get a pulsed DC voltage, which is easy to rectify with a diode and capacitor.

If you go this way, the hardware is very simple (for this low power device) but there is no inherent stabilisation.
This means you have to build that into your microcontroller.

By controlling the transformer in such a simple way, you are not really transforming voltage nor current. It's probably easier as thinking of it as the PWM duty cycle controls the amount of power you put in the transformer, and most of that energy will come out at the other end.

Vovk_Z:
I have to ask first does it have to be DC current or AC? One polarity or maybe bi-polar?
Anyvay, 5 mA and 200 V doesn't look difficult. That is 1W or 1 VA.

jbb:
If you just need it done, you could probably buy a Source Measure Unit (SMU). But it’d be expensive.

Navigation

[0] Message Index

[#] Next page

There was an error while thanking
Thanking...
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod