Welcome to Laser Pointer Forums - discuss green laser pointers, blue laser pointers, and all types of lasers

LPF Donation via Stripe | LPF Donation - Other Methods

Links below open in new window

ArcticMyst Security by Avery

Arduino PWM for TTL drivers

Johnyz

0
Joined
Jul 19, 2010
Messages
421
Points
0
I want to fade a laser (both red and bluray) using PWM from ATMega8 or 168 with Arduino bootloader. I am looking at the O-like/Aixiz TTL driver, they say it accepts 5V on 0V off at up to 5 kHz. ATMega outputs PWM (basically a square wave like TTL), at 490 Hz. It should work together, am I right? I could also use a DAC and Eudaimonium's analog driver. How good would that be?
 
Last edited:





Rafa

0
Joined
Feb 4, 2010
Messages
437
Points
0
It should work.
But remember: You just can't feed the driver directly with the digital pins.
You have to use a transistor as a switch. If you don't use it, you will fry the arduino.
And also don't feed the transistor with the 5V output of the arduino, use a external supply for not frying the regultaor of the arduino.
 

Johnyz

0
Joined
Jul 19, 2010
Messages
421
Points
0
It's not a real Arduino, just an ATMega8 with the bootloader. The driver has a input for the actual power, and a input for the modulation. As said, the whole thing is going to be on a external 5V regulator. Any NPN will do, right?
 

Rafa

0
Joined
Feb 4, 2010
Messages
437
Points
0
Any BJT will work fine.

But if is a direct 5V TTL input you can conect the arduino directly to the TTL input.
Maybe you should put a resistor, but I'm not sure, that depends on the driver.
 




Top