If you need assistance, please send an email to forum at 4hv dot org. To ensure your email is not marked as spam, please include the phrase "4hv help" in the subject line. You can also find assistance via IRC, at irc.shadowworld.net, room #hvcomm.
Support 4hv.org!
Donate:
4hv.org is hosted on a dedicated server. Unfortunately, this server costs and we rely on the help of site members to keep 4hv.org running. Please consider donating. We will place your name on the thanks list and you'll be helping to keep 4hv.org alive and free for everyone. Members whose names appear in red bold have donated recently. Green bold denotes those who have recently donated to keep the server carbon neutral.
Special Thanks To:
Aaron Holmes
Aaron Wheeler
Adam Horden
Alan Scrimgeour
Andre
Andrew Haynes
Anonymous000
asabase
Austin Weil
barney
Barry
Bert Hickman
Bill Kukowski
Blitzorn
Brandon Paradelas
Bruce Bowling
BubeeMike
Byong Park
Cesiumsponge
Chris F.
Chris Hooper
Corey Worthington
Derek Woodroffe
Dalus
Dan Strother
Daniel Davis
Daniel Uhrenholt
datasheetarchive
Dave Billington
Dave Marshall
David F.
Dennis Rogers
drelectrix
Dr. John Gudenas
Dr. Spark
E.TexasTesla
eastvoltresearch
Eirik Taylor
Erik Dyakov
Erlend^SE
Finn Hammer
Firebug24k
GalliumMan
Gary Peterson
George Slade
GhostNull
Gordon Mcknight
Graham Armitage
Grant
GreySoul
Henry H
IamSmooth
In memory of Leo Powning
Jacob Cash
James Howells
James Pawson
Jeff Greenfield
Jeff Thomas
Jesse Frost
Jim Mitchell
jlr134
Joe Mastroianni
John Forcina
John Oberg
John Willcutt
Jon Newcomb
klugesmith
Leslie Wright
Lutz Hoffman
Mads Barnkob
Martin King
Mats Karlsson
Matt Gibson
Matthew Guidry
mbd
Michael D'Angelo
Mikkel
mileswaldron
mister_rf
Neil Foster
Nick de Smith
Nick Soroka
nicklenorp
Nik
Norman Stanley
Patrick Coleman
Paul Brodie
Paul Jordan
Paul Montgomery
Ped
Peter Krogen
Peter Terren
PhilGood
Richard Feldman
Robert Bush
Royce Bailey
Scott Fusare
Scott Newman
smiffy
Stella
Steven Busic
Steve Conner
Steve Jones
Steve Ward
Sulaiman
Thomas Coyle
Thomas A. Wallace
Thomas W
Timo
Torch
Ulf Jonsson
vasil
Vaxian
vladi mazzilli
wastehl
Weston
William Kim
William N.
William Stehl
Wesley Venis
The aforementioned have contributed financially to the continuing triumph of 4hv.org. They are deserving of my most heartfelt thanks.
Registered Member #211
Joined: Sun Feb 19 2006, 05:33PM
Location:
Posts: 27
Hi folks! I am currently researching a project I will be building in the near future, an automated battery analysis rig, datalogging with a micro and probably a PC. The type of micro will probably be a PIC, but it is somewhat unimportant, the part I am stuck on is how to make a micro controlled current source and sink. So far I have the following ideas: Analogue port to logic level FET gate, resistive current sense into analogue port. A very similar setup using a BJT and base resistor could be used. A simple control loop in pseudo; IF Icharge < Itarch increment gate voltage (or base) IF Icharge > Itarch decrement gate voltage (or base) Of course with this simplicity the state will rapidly just bounce up and down by a minute amount but it keeps the current constant. I searched for current source ICs, but they are sub mA range, where I will need at most, 1.1A. Most of this circuit: http://www.discovercircuits.com/DJ-Circuits/100ma-current-source.htm seems like an epic waste of parts. There is http://www.maxim-ic.com/appnotes.cfm/an_pk/3464 but it does not lend itself to external control. I must be able to measure the load voltage. Being able to measure load current is useful for open circuit detection.
Can anyone think of a better way to control current from a micro? Many thanks, Pete
Registered Member #1232
Joined: Wed Jan 16 2008, 10:53PM
Location: Doon tha Toon!
Posts: 881
My choice would be to connect an I²C DAC to the pic to produce a programmable variable voltage, then use something similar to the circuit you linked to, to convert that to a large variable current source.
Another similar active current source circuit is shown here in figure 10:
If you don't mind a bit of residual ripple on the constant current, you could do away with the DAC, and use one of the PIC's built in PWM channels. Heavily smoothing the PWM output should give you a nice smooth reference for you active current source.
You could also make a current-mode controlled switching converter that would do the job more efficiently if you wanted to go down that route!
This site is powered by e107, which is released under the GNU GPL License. All work on this site, except where otherwise noted, is licensed under a Creative Commons Attribution-ShareAlike 2.5 License. By submitting any information to this site, you agree that anything submitted will be so licensed. Please read our Disclaimer and Policies page for information on your rights and responsibilities regarding this site.