I don't have much experience with Arduino but wanted to ask for some advice for a side project I'm doing. I currently have a 850nm wavelength laser diode and wanted to know if it was at all possible to create a driver circuit that pulsed my laser for a length of less than 66 nanoseconds with a pulse frequency of 800 Hz or greater. I'm attempting to shine the resulting laser through a piece of plastic/glass and get absorbed by a contained material.
@cedarlakeinstruments has a good point. You will almost certainly need to buy a commercial laser diode driver module to meet those specs.
Also, the low end Arduinos are slow, for example, the Arduino Uno R3 has a machine cycle time of 16.5 ns, which requires programming at the machine code level to generate a 66 ns pulse.
But the diode in the Amazon linke already has some sort of current limiting built in and is intended for every low power steady state operation, not pulsed.
Mentioned earlier that the Amazon diode I bought didnt come with much info but supposedly 3V and "less than 5mW". Would buying a 12V 1W laser make this much easier for me?
The shortest pulse that can be generated with an UNO R3 is 62.5ns.
void fireLaser() {
bitSet(PORTD, 2); // make pin 3 high
bitClear(PORTD, 2); // make pin 3 low
}
In this case, as the PORT registers are placed in the lower portion of the address space, these instructions will be compiled to opcodes that will be executed in 1 clockcycle. You can use micros() or a hardware timer to trigger the calling of this function.
If you are serious about this project, you need to estimate how much laser power, at what pulse length is required to do what you want. Then buy a laser diode (and driver) that meets or exceeds those specs, from reputable suppliers.
I think with the budget I have now, I'll try a smaller scale demo for a proof of concept. Spec Sheet This diode can supposedly output 2,000mW at 1 microsecond pulses. The supplier seems to be a solid laser cutting company. Should I still consider buying a premanufactured driver or can I now attempt to build one through an Arduino with the lower pulse length requirement?
Yes. They involve technically advanced designs and require decent understanding of electronic principles for operation. The diode should be mounted in a matching, precision machined heat sink assembly.
Some laser diodes have have a 3rd connection which works as a "sensor" to monitor light output. It's used in a feedback loop so can get maximum output and the laser doesn't burn itself out.
Any laser diode can be pulsed but not all laser drivers can be pulsed. Since they are "constant current", the circuit that tries to maintain that constant current can sometimes "fight against" pulsing.
There is a circuit called a One Shot that could be used to generate the 66nS pulse. Then you could just "hit it" at 800Hz from the Arduino.
If you don't know this, power is calculated as Power = Voltage x Current. So for example, if the laser is rated for 2V, you'd need to set the current for 1 Amp.
And I assume you know that even if the laser has a visible wavelength, you won't be able to see such a short pulse and it may be difficult to "detect". (You may not know if it's working.)
Originally, I wanted a 66ns pulse since it would induce the photoacoustic effect between the 850nm wavelength laser and an experimental material, but I've opted for a higher pulse duration to save on costs.