Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > Electronic Projects Design/Ideas/Reviews


Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution.

Reply
 
Thread Tools Display Modes
Old 8th November 2007, 12:46 AM   (permalink)
Default Help with low constant current generator

Hi,

I am trying to design an accurate, stable constant current generator with currents 0.1 mA to 3-4mA. I am trying to do this with digital voltage control PWM. Ideally would have 8 bit to 10 bit resolution, or at least 0.1mA/per %duty cycle. Current load would be 600 ohms to 10 Kohms, so higher voltages need to be generated. Current would be selected in 0.1mA increments, then a PIC would output a corresponding PWM duty cycle. I need this current to remain the same or close despite a change in load. Voltage can vary as necessary.

This will run from battery power 9V or so. Can also run from a wall wart.

I am currently looking at the Fairchild FAN5606 Serial LED Driver with Current-Regulated, Step-Up DC/DC Converter. It has a 5mA limit using only 1 of the DAC inputs. I am not sure what the resolution is on the DAC. Seems like 100 steps?

I would like to use a PIC and a voltage drop resistor as feedback, but I can just send a PWM controlled voltage to the IC.

Any help generating such small currents with these loads is appreciated.
Attached Files
File Type: pdf datasheet1.pdf (196.7 KB, 15 views)

Last edited by anestho1; 8th November 2007 at 12:52 AM.
anestho1 is offline   Reply With Quote
Old 8th November 2007, 01:07 AM   (permalink)
Default

Could you explain a little better why you need a constant current source of this nature for? There's probably a bettery way to approach this if you define better what you're trying to do.
__________________
"Because I be what I be. I would tell you what you want to know if I
could, mum, but I be a cat, and no cat anywhere ever gave anyone a
straight answer, har har."
Sceadwian is offline   Reply With Quote
Old 8th November 2007, 01:19 AM   (permalink)
Default

I am making a nerve stimulator. To depolarize a nerve, we need constant current. I can manage the pulse width with a PIC MCU. It will be used for nerve blocks. The load will be the needle in muscle, fat, nerve sheath..etc and the skin surface electrode.
anestho1 is offline   Reply With Quote
Old 8th November 2007, 01:29 AM   (permalink)
Default

For 4 mA into 10k, it's 40 volts (160 mW). A PWM controlling a step-up converter is certainly practical, depending on your frequency response. Is the switching rate a problem? Might be 25 kHz. Maybe filter it....
mneary is offline   Reply With Quote
Old 8th November 2007, 01:41 AM   (permalink)
Default

If I just use a step-up converter, I'll also need to use a feedback voltage drop resistor to accurately control the current. I am not sure on the op-amp to use and the component values.
anestho1 is offline   Reply With Quote
Old 8th November 2007, 01:51 AM   (permalink)
Default

I would prefer to use an IC for the constant current generator. Something that accepts analog voltage or digital PWM as input, and outputs a constant current despite the load (within limits). I can then use a PIC to manage the current and display. I am a much better programmer than circuit designer.
anestho1 is offline   Reply With Quote
Old 8th November 2007, 02:02 AM   (permalink)
Default

How about this IC? tps61042. It can switch up to 30V. Not quiet as high, but I really only need up to 2mA as a definite. It has both analog and PWM input for brightness control (current control).

What do you think? will this work?
Attached Files
File Type: pdf tps61042.pdf (716.3 KB, 14 views)

Last edited by anestho1; 8th November 2007 at 02:10 AM.
anestho1 is offline   Reply With Quote
Old 8th November 2007, 09:10 AM   (permalink)
Default

So is this doable with an IC or a circuit?
anestho1 is offline   Reply With Quote
Old 8th November 2007, 03:13 PM   (permalink)
Default

I see basically 2 possibilities, since I do not want to do the switching with the PIC.

1) Have a self-contained circuit that will do constant current based on the voltage presented. A voltage controlled current source. It has its own mechanism for responding to changing loads for any given current. The PIC only selects the required current with PWM or analog voltage.

2) Have a current source, but do the Rsense with the PIC and adjust the voltage with PWM to match the current to the load.

It must be able to be run from a battery source 3V-9V, so a DC-DC converter is necessary.

I searched google and metacrawler but could not find anything that will work in my current range with a high impedence load.
anestho1 is offline   Reply With Quote
Old 8th November 2007, 04:40 PM   (permalink)
Default

Here's a block diagram of one possibility.
Attached Images
File Type: png PWM controlled current source block diagram.PNG (25.0 KB, 16 views)
__________________
Ron

Roff is offline   Reply With Quote
Old 8th November 2007, 11:49 PM   (permalink)
Default

Could you fill in some of the values please? Also the op-amp in the box. Are you saying that it is not necessary?
anestho1 is offline   Reply With Quote
Old 9th November 2007, 01:21 AM   (permalink)
Default

Quote:
Originally Posted by anestho1
Could you fill in some of the values please? Also the op-amp in the box. Are you saying that it is not necessary?
I can fill in all fairly easily except the boost converter. That might take a while.
This circuit doesn't have any feedback to the PIC, so the PWM has to have a stable and known peak voltage, e.g. 5.0 volts. It could be modified for feedback, but your feedback loop, which would include your software, would have to compensate for the lag in the lowpass filter. I personally think that a stable supply for your PIC is a simpler solution.
You don't need the second op amp if it is OK for the 45V supply to be the return (common) lead for your load, which I presume is a human. Since you have a floating supply, that should be OK, although you might want to connect +45V to earth ground if you use a wall wart. What is your PWM frequency (you may have already said)?
__________________
Ron

Roff is offline   Reply With Quote
Old 9th November 2007, 11:09 PM   (permalink)
Default

How much of a lag are we talking about? I have not decided on the PWM frequency. Its going to be hardware run, so I can do it fairly fast.
anestho1 is offline   Reply With Quote
Old 10th November 2007, 12:56 AM   (permalink)
Default

The base current of the transistor is also counted towards as part of the actual constant current being metered.

The use of a P-Ch MOSFET or at least a darlington for the current control transistor might make the calibration a little easier.

Just a thought....
__________________
L.Chung
eblc1388 is online now   Reply With Quote
Old 10th November 2007, 02:18 AM   (permalink)
Default

Quote:
Originally Posted by anestho1
How much of a lag are we talking about? I have not decided on the PWM frequency. Its going to be hardware run, so I can do it fairly fast.
The lag is due to the lowpass filter that changes the PWM to a DC voltage. The filter lag is inversely proportional to the cutoff frequency. For example, if your PWM frequency is 1kHz, and you want 60dB ripple rejection, then the cutoff frequency of your filter would have to be about 30Hz. The lag would be about 7.5 milliseconds (this all assumes a 2 pole Butterworth filter). Raising the frequency lowers the delay proportionally.
Eblc1388 is right about the MOSFET. I'll change that on the next iteration.
__________________
Ron

Roff is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
Expert Stabilised Power Supply with Current Limiting mechie Electronic Projects 36 11th March 2008 07:16 PM
Current source GagoX Electronic Projects Design/Ideas/Reviews 13 12th January 2008 06:32 PM
Honeywell accelerometer constant current supply csuszo Electronic Projects Design/Ideas/Reviews 0 19th October 2007 06:37 PM
Current and Conductivity ElectroMaster Electronic Theory 1 2nd February 2007 12:49 PM
Resistors Marks256 General Electronics Chat 52 3rd August 2006 01:00 AM



All times are GMT. The time now is 05:56 PM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.