Re: Adjust your laser's output on the fly(digital
Benm said:
[quote author=erdabyz link=1231947558/0#17 date=1232189891]Hey guys i have a nwe way to do it, using PWM.
We'll have 2 normal potentiometers, one adjusted to max current value for each laser, and the other adjusted so that, if both are in paralell, the "sum" of resistance is the threshold lasing value. One mosfet to connect or disconnect the paralel potentiometer. And PWM to whitch fast between them.
As simple as that.
Why do you want to switch between full power and treshold, not just between full power and zero?
Running the laser at treshold in the 'off' periodes does nothing useful - in fact, it dissipates power only resulting in higher diode temperatures at anything below full on.
I've built laser drivers with PWM control - they work fine. 1024 levels should not be any problem if you supply the pwm from a microcontroller. A simple PIC controller could drive it over the full range and still hold a few 100 Hz pwm speed (providing you can switch in 3 instructions or so, at 1/1024 worst case and 1 MHz instruction rate (4 MHz clock).
[/quote]
it's because that way the diode never stops lasing, so switching effects would be less noticeable in spirometers or things like that.
And, as there's going to be two potentiometers, you could adjust for example if you want 0 or max, threshold or max, 1024 levels between 90 and 120mA, two fixed positions...
It's a flexible design.
I was thinking about using a PIC12F615, small one with hardware 10 bit PWM module, and at 4mhz, it can have 10bit resolution at max 400Hz (i think) which is more than enought