CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Creating a programmable current load

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
dima2882



Joined: 13 Jul 2005
Posts: 25
Location: Maryland

View user's profile Send private message

Creating a programmable current load
PostPosted: Tue Jan 24, 2006 9:15 am     Reply with quote

Hi all,
I'm trying to use the PIC in an application that tests a commercial DC-DC converter at diffrent loads. I wanted to avoid using load resistors and instead have the PIC use a digital trimmer, like the MCP42010, to control a FET circuit that pulls a specified current from the DC-DC and loads it down. I want the circuit to be sensetive to variations in its supply, so that a low voltage out of the DC-DC causes lower current loads. Does anyone know what that kind of circuit might look like? Any suggestions are appreciated.
-Dima
ruediw
Guest







Re: Creating a programmable current load
PostPosted: Tue Jan 24, 2006 10:17 am     Reply with quote

dima2882 wrote:
Hi all,
I'm trying to use the PIC in an application that tests a commercial DC-DC converter at diffrent loads. I wanted to avoid using load resistors and instead have the PIC use a digital trimmer, like the MCP42010, to control a FET circuit that pulls a specified current from the DC-DC and loads it down. I want the circuit to be sensetive to variations in its supply, so that a low voltage out of the DC-DC causes lower current loads. Does anyone know what that kind of circuit might look like? Any suggestions are appreciated.
-Dima


I would create a voltage controled current source (sink).
And control this from a D/A-Converter attached to the PIC.
You may build this current source with little component count:

OP-Amp with a fiew resistors and a transistor. Type and cooling of the transistor depends on the voltage and current you want to test.

HTH
Ruediw
dima2882



Joined: 13 Jul 2005
Posts: 25
Location: Maryland

View user's profile Send private message

PostPosted: Tue Jan 24, 2006 10:34 am     Reply with quote

I'm actually looking to sink quite a few amps. The DC-DC needs to be walked over its range of 0-7A. I'm a bad analog guy :( If anyone has more details, I'd love to know!

Last edited by dima2882 on Tue Jan 24, 2006 12:43 pm; edited 1 time in total
Humberto



Joined: 08 Sep 2003
Posts: 1215
Location: Buenos Aires, La Reina del Plata

View user's profile Send private message

PostPosted: Tue Jan 24, 2006 12:33 pm     Reply with quote

You'll need to generate a Digital to Analog voltage with an output from 0 to 5VDC.
To do it, you can start from the typical applications found in datasheets
(DAC0808 / MC1508 or similar). Once you get running the D/A Converter, you can
control a voltage controled current source/sink like this one.

http://www.elecdesign.com/Files/29/9018/Figure_01.gif
http://www.elecdesign.com/Articles/Index.cfm?AD=1&ArticleID=9018


Humberto
kender



Joined: 09 Aug 2004
Posts: 768
Location: Silicon Valley

View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger

PostPosted: Tue Jan 24, 2006 2:18 pm     Reply with quote

In the circuit shown below the op-amp with a feedback will drive the MOSFET in such a way that the voltage at the negative input will be the same as the on the positive input, which you are driving with a DAC. The voltage on the negative input is I*R1 - proportional to the current.
Code:


                                      to the circuit you are loading
                                                   |
                    |\ U1                          |
 DAC or PWM+LPF     | \                            |
--------------------|+ \                       ||--   Q1
                    |   \----------------------||     MOSFET rated for 7A
                    |   /       |              ||--
                 ---|- /       --- C1              |
                 |  | /        --- 100pF           |
                 |  |/          |                  |
                 |              |                  |
                 ----------------------------------
                                                   | 
                                                   /
                                                   \  R1
                                                   /  Current-sense resistor
                                                   \  should be able to dissipate I^2*R
                                                   /  1%
                                                   \
                                                   |
                                                  ___
                                                  /// GND
                                                   
SherpaDoug



Joined: 07 Sep 2003
Posts: 1640
Location: Cape Cod Mass USA

View user's profile Send private message

Re: Creating a programmable current load
PostPosted: Tue Jan 24, 2006 3:41 pm     Reply with quote

dima2882 wrote:
I want the circuit to be sensetive to variations in its supply, so that a low voltage out of the DC-DC causes lower current loads.


So you don't want just a current sink. You want something more like a simulated resistor. That is a little more complicated, but if you already have a uP the easiest way is probably to just measure the voltage and calculate the current it should draw. Then use the current sink others have described to draw the current you calculated.
_________________
The search for better is endless. Instead simply find very good and get the job done.
kender



Joined: 09 Aug 2004
Posts: 768
Location: Silicon Valley

View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger

Re: Creating a programmable current load
PostPosted: Tue Jan 24, 2006 5:08 pm     Reply with quote

SherpaDoug wrote:
dima2882 wrote:
I want the circuit to be sensetive to variations in its supply, so that a low voltage out of the DC-DC causes lower current loads.


So you don't want just a current sink. You want something more like a simulated resistor. That is a little more complicated, but if you already have a uP the easiest way is probably to just measure the voltage and calculate the current it should draw. Then use the current sink others have described to draw the current you calculated.


If you can sample the voltage fast enough, then Doug's method is the easiest.
If you are less tolerant to the delay, Humberto's circuit would work best.
Humberto wrote:
http://www.elecdesign.com/Files/29/9018/Figure_01.gif

To add digital control to it, you migh alternatively replace R1 and/or R2 with a digital POT.
dima2882



Joined: 13 Jul 2005
Posts: 25
Location: Maryland

View user's profile Send private message

PostPosted: Wed Jan 25, 2006 7:21 am     Reply with quote

Yes, Doug's simulated resistor concept is exactly what I'm looking for. I will try to implement this in a 40 MHz PIC and external A/D, that should be fast enough. Thanks for all your help.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group