AndrewC, Why not just use a transistor and a couple of resistors?
Dave Purola,
N8NTA
AndrewC, Why not just use a transistor and a couple of resistors?
Dave Purola,
N8NTA
To invert the signal or drive the leds ? These are Luxeon leds running at high power. They work best on constant current sources and buckpuks are great for driving them.
If I can do it with a simple line of code why add external parts ? Actually, my led drivers only go up to 1000mA and my leds can take 1500mA so I may just make my own constant current drivers (two transistors and a couple of resistors per channel) in which case 5V will be ONThis particular project is for lighting a macrophotography stage - while focussing / adjusting I use the leds at constant low power but for actual exposures switch to a single high power pulse. Three channels for left, right and backlight.
AndrewC, I dont know what constant current has to do with inverting the control signal?
Dave Purola,
N8NTA
Question (maybe more of a comment) concerning taking pictures and using PWM to drive LEDs for lighting...
Won't your PWM frequency have to be REALLY high to keep the camera's shutter from seeing the flickering?
LEDs, unlike incandescent light bulbs, can actually turn on and off at those high speeds, whereas an incandescent light bulb will glow during the off time.
I'm thinking that even with a really fast shutter on a camera, the film (or CCD, or whatever) is going to see that 'flickering' caused by the PWM driven LEDs.
Well you know the bit where I say "but for actual exposures switch to a single high power pulse" .......Actually if you have an exposure time longer than say 10 PWM cycles it wouldn't matter. The advantage of a single high power flash is to freeze motion.
Dave: the point being that if I stick with the OEM drivers I have, I need to invert the signal. If I make my own constant current sources I don't need to invert the signal but need to add some extra components - so the choice is to add some components to invert the signal, or add some components so as not to have to invert the signal. Or I was hoping to find a magic instruction that inverted a PIC o/p pin.
Darrel: 1023 - you know I keep missing zeroesSame happens with registers, I keep thinking Pin1 or Bit1 is the first one. Duh !
Bookmarks