Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 23rd October 2007, 09:04 AM   (permalink)
Smile MCU control Contant Current Source

I need to design a constant current source/ or current limitter, from a fix 24V, control current from 0 to 0.5A max.

I need it control by PIC MCU, any idea on how to do it?

Currently, what I think off is using I2C + Digital Pot + Mosfet.

Any other suggestion?
VictorPS is offline  
Old 23rd October 2007, 09:21 AM   (permalink)
Default

You don't need a digital pot, although that is one solution, all you need is a D2A, and a simple R2R ladder would be fine (and cheap).

Even cheaper, you could use PWM, there are application notes at MicroChip about using PWM as an analogue output.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 23rd October 2007, 09:41 AM   (permalink)
Default

You also need to decide how to maintain the current constant.

Either via active feedback loop where PIC reads the actual load current value and compensate, OR via analogue control where the PIC generates a fixed voltage reference proportional to the required current and the hardware compares this reference with the actual load current and control the current accordingly.
__________________
L.Chung
eblc1388 is offline  
Old 23rd October 2007, 11:48 AM   (permalink)
Default

Sorry, is my fault not state clearly, let me add on more info.

That constant current is use to control LED, a light source for camera, so I cannot use PWM which flickering, so a linear constant current must use. (as I know, may be there is other method)

Also, I may need to control at least 4ch, and max up to 32 ch, each channel is different brightness/ current source.

My idea is use V to I , so choose to use MOSFET or BJT as current control.
The input V can be DAC, but DAC is not cheap, so I choose D-Pot.

The resolution I need is about 8bit, or 256 steps.

I will consider Nigel Suggestion, using R2R, generate using 8bit shift register like CD4094, with this, I can have many ch too.

Thank you,

Last edited by VictorPS; 23rd October 2007 at 11:52 AM.
VictorPS is offline  
Old 24th October 2007, 01:13 AM   (permalink)
Default

Why would you need 32 channels for a camera light source? PWM is fine for cameras, you just use a frequency much higher than the shutter speed. PWM is going to be simpler to implement than a mosfet controlled current source. For PWM all you need is a single resistor for each LED to limit current, and a then you change the PWM to lower the light level from it's max limit.
__________________
"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  
Old 24th October 2007, 01:54 AM   (permalink)
Default

it is use for industrial machine, for vision inspection test, each test need at least 4 channel light source at different angle, for quad test, it will need 16channel.


For knowledge, how to generate high freq PWM for multiple channel? I am using PIC MCU, or any external PWM generator IC I can use to generate very high Freq PWM?
VictorPS is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
constant current source steelerfan11 Electronic Projects Design/Ideas/Reviews 6 4th July 2007 10:45 PM
Generation n Divsn of Const. Current Source naveensmk Electronic Projects Design/Ideas/Reviews 0 12th June 2007 06:29 AM
Introduction to High Brightness LEDs and Thermal Management Ocelaris Electronic Projects Design/Ideas/Reviews 3 17th March 2007 06:35 AM
Current and Conductivity ElectroMaster Electronic Theory 1 2nd February 2007 01:50 PM
IGBT current control circuit kpsam Electronic Projects Design/Ideas/Reviews 3 27th February 2003 06:19 PM



All times are GMT. The time now is 08:50 PM.


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

eXTReMe Tracker