Ask HN: Programmable Lasers?
I am looking for lasers that I can program myself. I can't find much information on lasers which can be programmed, and even less on how to write software for it. I see theres a few software solutions already but I want to programmatically control the lights.
Anyone can shed some light on this?
44 comments
[ 0.23 ms ] story [ 196 ms ] threadIf you're talking about some bigger devices, then you probably want more interesting electronics and a lot of info about laser safety...
I am lot more interested in the software side of this, so Im hoping I don't have to rig together a bunch of individual lasers together.
The rest would be beam steering. Geometric optics and servos. I remember reading some on scanner optics, which would help you. Just think angles instead of UPC codes.
Programming the servo's would please you, but you first need the beam steering gear, and also the on/off, and interfaces for both aspects.
I don't know of any OTC/KISS stuff.
https://www.lighting-geek.com/product/cartoon-animation-lase...
https://www.ktvlights.com/products/8-eyes-red-laser-light-dm...
or
https://www.wayfair.com/YXSUN--9-Eyes-RGB-Moving-Spider-Beam...
I can't find any specifications at all. I was hoping for an interface like "move laser 1, +50 x", "turn laser 2 off". They come with DMX interface, but all the commands that I see are just setting preprogrammed effects.
There is sophisticated software for projecting any animation, so I assume there is some software like this somehwere.
From the software point of view, perhaps laser projection TV technology might be better suited to what you want to achieve.
Laser projection TV is boring. I've got one, and it's more or less the same as any other tv. Hook up an HDMI and go. It doesn't give you a laser light show, even if it is technically laser, light, and a show. Technically they're pretty boring too, they're lcd or dlp projector with a laser instead of an incandescent light source.
The OP clearly wants an x-y servo mirror / galvonometer setup plus some way to modulate the laser. Some people experiment with scanning mirrors in one dimension, but then you end up with a rasterized display and not the smooth curves or a true laser show.
Building your own unit is possible, but you'll need electronics and mechanical engineering skills. Even micro-mirror devices require lots of electronics.
Another alternative is a laser projector that uses the ILDA standard - it supplies a bunch of analog channels over a DB-25 connector. With a projector and an ILDA DAC (typically connected via USB), you could write code to generate all the signals to drive the scanner + control the laser color. That'd mean generating 10 signals at audio-ish rates, so pick your language accordingly.
FWIW, there seem to be a handful of packages for the openFrameworks coding toolkit specifically for talking to ILDA ports, for instance:
https://github.com/memo/ofxIlda
+ a Helios DAC which comes with some nice software for interacting with IDLA.
https://github.com/Grix/helios_dac
The "Ultra" Lasercube in another comment (https://www.laseros.com/) is 7W. "Normal", is 1.2W. People already say it's dangerous. The input spec says it's 65W wall. Hopefully that's what's going on here.
If that's actually 100W out, that's so far in "Severe" eye hazard. That's more like laser cut materials severe.
https://www.lasersafetyfacts.com/laserclasses.html
Hawk:
> Red 200mW 635nm
> Green 200mW 532nm
> Blue 600mW 450nm
> Rated Power 100W
LaserCube:
> Blue 445nm / 1300mW
> Green 520nm / 800mW
> Red 635nm / 400mW
> Power 2500mW
https://www.lighting-geek.com/product/hawk-1w-programmable-l...
https://x-laser.com/products/lasercube-wifi-by-wicked-lasers
You can get a cheap "RGB" laser projector on eBay for ~200 [2]. It will have red, green, and blue lasers, and the interface will be willing to combine them 7 ways. A more expensive laser will have "analog" mixing for closer to true RGB. It will also likely have no documentation, and might be weird. I have one of these.
For something with better documentation, supported API, and lots of active development, check out Lasercube [3]. It has WiFi, a documented API, a Github repo with a client, and the base software is also really cool. This is my next planned upgrade.
Be careful: Most of these lasers put out 500+ mW and will instantly destroy your eyes if you make a mistake and stop scanning. It's not an exaggeration. Find out what wavelengths your laser outputs and get certified glasses to wear when working on it.
[1]: https://www.ilda.com/resources/StandardsDocs/ILDA_ISP99_rev0...
[2]: https://www.ebay.com/sch/i.html?_from=R40&_nkw=ilda+rgb&_sac...
[3]: https://www.laseros.com/
There's also the Unity raw which seems like a neat product with the similar specs at half the price. https://unitylasers.eu/products/unity-raw-1-7
Node in a docker on WSL?
+ If you just want to play around with software, TouchDesigner has a free tier and is very powerful.
+ Buy the cheapest "DJ laser projector" and play around programming it using DMX/MIDI.
+ Then you will have a better understanding of your actual interest in programming laser light shows versus your interest in the-idea-of-programming-laser-light-shows.
+ A habit of working on a new adult interest develops over months and years. Having low investment hardware on hand will let your project advance at a natural pace.
Good luck.
Programming using preprogrammed effects via DMX is not a bad idea though as a start.
There are also a lot of commercial offerings, like Quickshow and others: https://photonlexicon.com/forums/showthread.php/19036-WHAT-i...
Seems like that's a forum all about lasers and lights.
I am interested in writing my own software for creating visual patterns so not interested in Quickshow, Pengolier, etc so something like laserboy that lets you write ilda frames directly is what I was looking for.
I wanted the same thing (to programmatically control a laser) so I took an existing library (oriented around drawing of frames) and hooked into it in a way that I could send an limitless stream of points to it.
Generally, the search term you want to search for is "ILDA". ILDA compatible lasers have a standard connector on the back to set the X/Y position of the laser as well as the intensity of the color components.
For semiconductor lasers under 5W, the control systems are fairly trivial given the fiber-optic network card industry makes fully integrated current controlled high-speed drivers.
Every student should read this at least once:
"Sam's Laser FAQ" ( http://www.lasersam.org/sam/lasersam.htm )
As there is a lot of hard to find information regarding how these devices are made, and safe handling to prevent cooking your eyes/internal-flesh.
Note when handling IR, be aware many of these optics are poisonous to handle with your bare hands given they have slight solubility in moisture.
There are also pre-made true RGB/White laser modules with PWM control (under $150), but are limited to under 5mW due to US import rules. i.e. unless you are a legitimate company/lab/university importing parts, than you have customs issues building your project.
Have fun, and take the lab safety advice seriously... A pirate eye-patch only looks cool to other people, but makes the world two dimensional. =3
https://www.laseros.com/
https://github.com/Wickedlasers/libLaserdockCore
You can see it here in action cutting artworks in the context of the Art Basel [1].
[1] https://youtu.be/46w2XLHd9vs?si=_MnFKGgOiWBnmXj0
You're looking for a coherent answer, I assume.
If all you want to do is make fancy custom laser shows then buy a laser and some control software.
[1] https://www.laseros.com
[2] https://github.com/Wickedlasers/libLaserdockCore
https://youtu.be/W8FKTQcN4M4?si=7wUexeJavkFiqHzI
You can use laser diodes just like you would a regular LED in an Arduino/rPi setup. They're basically the same thing electrically. Be aware, using those standard laser diodes in public, especially for an event or show, is against the law because of the risk of blinding someone. If you want to do a laser light show or something, you need to use the sub 5 milliwatt kind they have at concerts and such, and you need a permit.
About 10 years ago a buddy of mine built a home-made RGB laser projector, using a red, green and blue lasers, and dichroic mirrors, and managed to drive it with MAME to run battlezone and some other vector games. The laser projector itself is quite dangerous, and we're probably lucky we didn't end up blind, so I wouldn't really advise doing this.
Battlezone: https://www.youtube.com/watch?v=S2JKr-Vkz8A
SEGA Star Trek: https://www.youtube.com/watch?v=VBALyh1hw5Y
Short clip of the home-made laser projector: https://www.youtube.com/watch?v=-aV0RRmO4gI
Simple rotating cubes demo: https://www.youtube.com/watch?v=OHbsrLW-iag
Running Word War vi via the laser projector: https://www.youtube.com/watch?v=cek1QaNc0Kk
If you look in the Word War vi source, here: https://github.com/smcameron/wordwarvi/blob/master/wordwarvi... and search for "openlase", you can see how it uses the open lase library.
Here's a fork of MAME hacked up to use the laser projector:https://github.com/jv4779/openlase-mame