15 ms·
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?
- viraptor 2y agoI'm assuming you're talking about very basic, low power, pointer style lasers. If that's the case, it's time to go into very basic electronics. You're basically replacing the switch in that with some lines connected to your i2c/gpio/whatever. It's not going to be different from turning on an LED. Laser you can program == cheap laser pointer, taken apart, switch replaced. If you're talking about some bigger devices, then you probably want more interesting electronics and a lot of info about laser safety...
- andoando 2y agoSorry I should have clarified. I am thinking of lasers for light shows. Doesn't have to be industrial level, small low powered ones would be fine. 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.
- k310 2y agoYou may be thinking of beam directors, rather than the lasers themselves, aside from turning them on and off as desired. Solid state lasers are good, if they have the power you need (and yes, understand and practice laser safety) 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.
- andoando 2y agoI am thinking of stuff this https://www.lighting-geek.com/product/cartoon-animation-laser/ https://www.lighting-geek.com/product/cartoon-animation-lase... https://www.ktvlights.com/products/8-eyes-red-laser-light-dmx-control-laser-beam-stage-effect-bar-moving-head-light-for-dj-bar-disco-wedding-party?variant=42997944680579¤cy=USD&utm_medium=product_sync&utm_source=google&utm_content=sag_organic&utm_campaign=sag_organic&gad_source=1&gclid=CjwKCAjwyo60BhBiEiwAHmVLJSNoia9gwlT8a9LHkDwyfsMgFhTM7VlHnfEerKpQ3y3zV3ekCk3KSRoC_mQQAvD_BwE https://www.ktvlights.com/products/8-eyes-red-laser-light-dm... or https://www.wayfair.com/YXSUN--9-Eyes-RGB-Moving-Spider-Beam-Laser-Light-Profession-DMX-DJ-Party-Stage-Lighting-W100314-L1004-K~YSUN1528.html?refid=GX685159892792-YSUN1528&device=c&ptid=354573581943&network=g&targetid=aud-1616885063939:pla-354573581943&channel=GooglePLA&ireid=160815364&fdid=1817&gad_source=1&gclid=CjwKCAjwyo60BhBiEiwAHmVLJXC_uquFwrlI_GXSP1EZmb6MY5PeWLPyOHNBa3Q3YJagNb1Kx8v-tBoCm7oQAvD_BwE 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.
- GianFabien 2y agoIf you want animation, then DMX-512 is inadequate. You are looking at frame-buffer to beam director(s) conversion. That would be specific to the hardware you have. The systems that I have come across are proprietary and designed to be rented-out out to event organizers. From the software point of view, perhaps laser projection TV technology might be better suited to what you want to achieve.
- toast0 2y ago> 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.
- TylerE 2y agoNo one actually uses lasers for light shows any more. Far too dangerous. They're just LEDs and some theatre fog.
- deleted 2y ago[deleted]
- GianFabien 2y agoTry searching for DMX-512, the industry standard protocol for controlling all manner of lighting devices. Since you are more interested in the software side, you could look at a product such as: https://djcity.com.au/product/laserworld-el-400rgb-laser https://djcity.com.au/product/laserworld-el-400rgb-laser which you can then control using a USB-to-DMX512 dongle. Building your own unit is possible, but you'll need electronics and mechanical engineering skills. Even micro-mirror devices require lots of electronics.
- al2o3cr 2y agoYou can get inexpensive "programmable" lasers that are controlled by DMX, but that protocol isn't fast enough (250kb/s) to do anything besides pick preprogrammed patterns. If you're up for some hacking / reverse engineering, maybe you could replace the control electronics for one of these. 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 https://github.com/memo/ofxIlda
- andoando 2y agoThanks. I have my eye set on this https://www.lighting-geek.com/product/hawk-1w-programmable-laser-light/ https://www.lighting-geek.com/product/hawk-1w-programmable-l... + a Helios DAC which comes with some nice software for interacting with IDLA. https://github.com/Grix/helios_dac https://github.com/Grix/helios_dac
- TylerE 2y agoYour remaining eye?
- araes 2y agoSaw the 100W programmable, target-able, aim-able, pattern form-able laser and was whoa... 100. Seems like it might be 100:1 power though. The "Ultra" Lasercube in another comment (https://www.laseros.com/ 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 https://www.lasersafetyfacts.com/laserclasses.html
- itishappy 2y ago
- brudgers 2y ago[Random advice from the internet on starting your project] + 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.
- andoando 2y agoThanks. Ive been thinking about the programming interface for this for years now, but up until now I just worked with controlling pixels on a monitor. Im more interested in writing an interface for this than making cool light shows. Programming using preprogrammed effects via DMX is not a bad idea though as a start.
- doctorhandshake 2y agoI second the TouchDesigner advice. Not only is it powerful, it has a large and growing community that is second to none in my experience when it comes to helping out with any question or issue.
- solardev 2y agoHave you seen https://laserboy.org/ https://laserboy.org/? There are also a lot of commercial offerings, like Quickshow and others: https://photonlexicon.com/forums/showthread.php/19036-WHAT-is-the-BEST-Laser-show-software-PHOENIX-Fiesta-Moncha-ishow-Mamba-black https://photonlexicon.com/forums/showthread.php/19036-WHAT-i... Seems like that's a forum all about lasers and lights.
- andoando 2y agoYeah I found thet through one of the links someone else posted. 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.
- personality0 2y agohttps://www.laserworld.com/en/ https://www.laserworld.com/en/
- sharphall 2y agoPlugging my small project: https://github.com/sharph/nanometer https://github.com/sharph/nanometer 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.
- Joel_Mckay 2y agoIn general, it depends on the type and power class level of your project. 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 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
- chewmieser 2y agoAre you looking for more DIY on the hardware side or more of a commercial offering? Wicked Lasers has a pretty neat "laser cube" that has APIs available for it. https://www.laseros.com/ https://www.laseros.com/ https://github.com/Wickedlasers/libLaserdockCore https://github.com/Wickedlasers/libLaserdockCore
- willcipriano 2y agoHad that on my wish list for a long time. Useless for me, but so cool.
- wslh 2y agoWe mounted a laser in a plotter, I think you can find the pieces common. You can see it here in action cutting artworks in the context of the Art Basel [1]. [1] https://youtu.be/46w2XLHd9vs?si=_MnFKGgOiWBnmXj0 https://youtu.be/46w2XLHd9vs?si=_MnFKGgOiWBnmXj0
- CoastalCoder 2y ago> Anyone can shed some light on this? You're looking for a coherent answer, I assume.
- Gabriel_Martin 2y agoThis is the kind of bright and focused clarifying question that will help OP get their answer, well done.
- icambron 2y agoHelps keep everyone on the same frequency
- mensetmanusman 2y agoSpeaking of this, the government should build some crazy Rube Goldberg laser that lets a user dial in frequency bands of high fluency output as much as technically possible. Not sure what it could be for, but it would be fun to have (eg asml euv near one end, IR and far IR lasers at the other end).
- MattPalmer1086 2y agoIndeed, it was most stimulating.
- CoastalCoder 2y agoGlad it resonated with you!
- 4d4m 2y agoILDA is the standard you'll want to use - check out Pangolin
- tensor 2y agoLaserCube[1] makes entry level lasers and has an open core [2]. There are also libraries that people have made that can interface directly with its wifi/ethernet protocol. However, programming lasers is not nearly as simple as doing 2d raster operations. 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 https://www.laseros.com [2] https://github.com/Wickedlasers/libLaserdockCore https://github.com/Wickedlasers/libLaserdockCore
- asfarley 2y agoI did this with a serial-controlled relay once https://youtu.be/W8FKTQcN4M4?si=7wUexeJavkFiqHzI https://youtu.be/W8FKTQcN4M4?si=7wUexeJavkFiqHzI
- blitzar 2y agosharks with laser beams attached to their heads or a giant laser beam on the moon? Is this for The Alan Parsons Project?
- _0ffh 2y agoThese here are meant for experimental physics applications, but they have a simple interface via USB-UART-bridge https://labs-electronics.com/your-products/ https://labs-electronics.com/your-products/
- CephalopodMD 2y agoI once took an led string with naked leads, cut off the leds, and soldered on red laser diodes in their place. Then I could control it with an Arduino. I used it to make a laser harp! 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.
- smcameron 2y agoThere's openlase https://github.com/marcan/openlase https://github.com/marcan/openlase with which you can use the audio output through amplifiers to control galvos of a laser projector. 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 https://www.youtube.com/watch?v=S2JKr-Vkz8A SEGA Star Trek: https://www.youtube.com/watch?v=VBALyh1hw5Y https://www.youtube.com/watch?v=VBALyh1hw5Y Short clip of the home-made laser projector: https://www.youtube.com/watch?v=-aV0RRmO4gI https://www.youtube.com/watch?v=-aV0RRmO4gI Simple rotating cubes demo: https://www.youtube.com/watch?v=OHbsrLW-iag https://www.youtube.com/watch?v=OHbsrLW-iag Running Word War vi via the laser projector: https://www.youtube.com/watch?v=cek1QaNc0Kk 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.c 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 https://github.com/jv4779/openlase-mame