Please can somebody take a look at the attached GIF and tell me if it would work? I have no idea how to calculate the maximum switching frequency based on the transistors or mosfets, so if I could have some guidance that would be much appreciated. Logic and PIC side of things I'm completely happy with, but I don't really understand the analogue side of things.
I've tried to design a constant current power supply after looking at a few designs on the web. I want around 600mA, but in reality anything from 500mA to 700mA is fine. I want to control the brightness of a set of LEDs via a logic output from a PIC, and want the "flicker" fast enough so as not to be perceptable either to the eye and ideally not to a webcam either, hence I am trying to get somewhere near 1kHz if that's possible, as at a duty cycle of 10% I can see the "off" period still being undetectable. The only power supply available to me is a 12V 5A supply, hence supplying 2 or 3 LEDs in series (also to reduce parts) rather than each individually. In total, there could be 16 LEDs (4 of each colour R,G,B and W).
Edit: (A) and (V) are where I will put my test meter for testing. XSG is a signal generator (it will be the output from the PIC).
I've tried to design a constant current power supply after looking at a few designs on the web. I want around 600mA, but in reality anything from 500mA to 700mA is fine. I want to control the brightness of a set of LEDs via a logic output from a PIC, and want the "flicker" fast enough so as not to be perceptable either to the eye and ideally not to a webcam either, hence I am trying to get somewhere near 1kHz if that's possible, as at a duty cycle of 10% I can see the "off" period still being undetectable. The only power supply available to me is a 12V 5A supply, hence supplying 2 or 3 LEDs in series (also to reduce parts) rather than each individually. In total, there could be 16 LEDs (4 of each colour R,G,B and W).
Edit: (A) and (V) are where I will put my test meter for testing. XSG is a signal generator (it will be the output from the PIC).
Attachments
Last edited: