A violet laser beam is shown expanding outward from a diode in a darkened room and illuminating the back of a man's hand.

Driving A Laser At 200 Volts For Nanoseconds

If there’s one lesson to be learned from [Aled Cuda]’s pulsed laser driver, it’s that you can treat the current limits on electronic components as a suggestion if the current duration is measured in nanoseconds.

The components in question are a laser diode and an NPN transistor, the latter of which operates in avalanche mode to drive nanosecond-range pulses of high current through the former. A buck-boost converter brings a 12 volt power supply up to 200 volts, which then passes through a diode and into the avalanche transistor, which is triggered by an external pulse generator. On the other side of the transistor is a pulse-shaping network of resistors and capacitors, the laser diode, and a parallel array of low-value resistors, which provide a current monitor by measuring the voltage across them. There is an optoisolator to protect the pulse generator from the 200 volt lines on the circuit board, but for simplicity’s sake it was omitted from this iteration; there is some slight irony in designing your own laser driver for the sake of the budget, then controlling it with “a pulse generator we don’t mind blowing up.” We can only assume that [Aled] was confident in his work.

The video below details the assembly of the circuit board, which features some interesting details, such as the use of a transparent solder mask which makes the circuit layout clear while still helping to align components during reflow. The circuit did eventually drive the diode without destroying anything, even though the pulses were probably 30 to 40 watts. A pulse frequency of 360 hertz gave a nice visual beating effect due to small mismatches between the pulse frequency of the driver and the frame rate of the camera.

This isn’t the first laser driver to use avalanche breakdown for short, high-power pulses, but it’s always good to see new implementations. If you’re interested in further high-speed electronics, we’ve covered them in more detail before.

Continue reading “Driving A Laser At 200 Volts For Nanoseconds”

Open-Source Random Numbers

Whether it’s a game of D&D or encrypting top-secret information, a wide array of methods are available for generating the needed random numbers with high enough entropy for their use case. For a tabletop game this might be a single die but for more sensitive applications a more robust method of generating random numbers is needed. Programmers might reach for a rand() function of some sort, but these pseudorandom numbers don’t cut the mustard for encryption. For that you’ll need a true random number generator (RNG), and this open-source hardware RNG uses one of the better methods we’ve seen.

The device, called RAVA, is based on a property found in many electronic devices called avalanche breakdown. Avalanche breakdown occurs when a high voltage (in this case approximately 25V) is applied in the reverse bias direction, with this device using a pair of Zener diodes. When this high voltage is applied, an “avalanche” of electrons occurs which allows the diodes conduct in the opposite direction that they would when they are forward biased. This isn’t a constant current flow, though; there are slight variations over time which can be amplified and used as the random number generator. The noise is amplified over a series of op amps and then fed to an ATmega32U4 microcontroller which can provide the user with 136.0 Kbit/s of random data.

Unlike other random number generators, this device is based on a method generally accepted to be truly random. Not only that, but since it’s based on discrete hardware it can be accessed directly for monitoring and replacement in case of faults, unlike other methods which are more “black boxes” and are more opaque in their processes which are thus harder to audit. We also appreciate it’s open-source nature as well, and for some more information on it be sure to check out the paper on it in IEEE. If you’re looking for something to generate random numbers but will also bring some extra flair to the next game night, take a look at this radioactive dice replacement.