Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
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.
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.
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.
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?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.