Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Costant current with Atmel 89C52

Status
Not open for further replies.

milem

Newbie level 6
Joined
Mar 11, 2008
Messages
14
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,382
I need schematic to kontrol current with microkontroler.

It is used to charge kapacitors and then with window komparator (from 1V to 2.5V) generate impuls who is proprtional with time of charge kapacitor.

Any idea is welcome!
 

Hi,
What is the current range, Steps of Change and Accuracy required?
Regards,
Laktronics
 

Range is to maximum about 4mA.
And maximum steps are 7. (One port 7 for selecting current and 1 for empting cpacitor).
 

Hi,
Check if Analog Devices ADN8810 suits you. Google for 'Programmable Current source' for more products.

Regards,
Laktronics
 

Sorry I can't use them!
I must use only transistors to get
current and must have Voltage on capacitor biger than 3V!

I have found one current source with PNP transistor and Zener diode.

Now, problem is how to regulate current!
 

as the diff between the charging voltage and cap voltage get reduced, respectively charging current will also reduced .


but you can use dac / resistor network for for maintain the same diff between it !

or charge it from the ramp like w/f / saw tooth w/f.



30_1205251290.gif
 

this ciruit is not a constent current source but voltage source.
 

That circuit I have, only diference is I use zener diode, not two standard diodes.

Only problem with your circuit is that current always go trough condenzator.
Then when circuit going to empty condenzator trough another NPN transistor
connected between + and - pin of condenzator with 100 ohms resistor.
Posible thing will be breakout that transistor.

Do you have any idea how to build circuit who stop current flow when empting
condenzator. Then, when charging condenzator you kontrol how much current
will go trough.

I have idea that I can use one NPN transistor, to control current like in picture!

What you think about that!

http://obrazki.elektroda.pl/
Regards!

[size=2][color=#999999]Added after 4 minutes:[/color][/size]

Sorry, i think link is not working!

This is picture!
 

Hi,
The way you have put the diodes, q1 will not get base bias to conduct. If you are planning to use it as a switch to cut of collector current, then one input will do to Q1's base.
In my circuit, you can even short the collector output to ground, without any problem. So, when you use an NPN with a 100 ohm resistor to discharge the cap, the capacitor will get discharged to 0.4V (100 ohm x 4mA). If you want still less voltage use a 47 ohm resistor to discharge, the NPN intially will have to sink a current of 3V÷47 ohms ≈ 60mA, which a 2N2222 type transistor can easily take. With 2N2222, you can even go down to 10 ohm discharge resistance, with a resistor drop of only 40mV. You have to also provide higher base current to the NPN to make it sturate.Anyhow, with a typical Vcesat of 0.3V, there is no point in worrying further about this end discharge voltage.

Regards,
Laktronics
 

I know that diodes are wrong orientation!
I forgot to change in circuit!
I agree with your comment, also I get these results!

I try my design, and change some details and I have found right design
who will work like I think.I can regulate current from couple nA to 2.3mA (in simulation for now).

I write that I need 4mA but real I change to max 2mA and something less!
Then I can use resistor at 100ohms.

And i change levels of voltage of comparator from 1V to 2.5V. Reason is that
I have also some current from comparator that bring voltage, in no working state,
to around 0.3V.

I need in couple days test circuit in real world and i will try my design and your!

Then I will decide what I will use. I think your is better, but I will see!

Thanks anyway!
:D

Added after 2 hours 26 minutes:

What do you think about this schematic!
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top