Last year, [Alvaro] built a laser turret robot for the DEFCONBOTs competition. It worked pretty well, but this year, he decided to step it up a notch. Now instead of moving the entire robot laser array, he’s using galvanometers to move only the laser — he’s essentially built a mini laser projector.
A galvanometer is basically a very sensitive ammeter that moves — it can also be used as a very precise electro-mechanical actuator, for say, moving a tiny mirror. As you can imagine, you can actually build home-made galvanometers — but it’s really not that easy. Instead, [Alvaro] opted to order a few laser show controllers on eBay, and hack his way to a solution — we approve.
Wiring up the galvanometers and making some circuitry for them was the easy part. The tricky part is automating the system.
You see before when the laser was attached to the camera, it was pretty simple. The laser shoots where the camera shoots. Any simple image recognition software would work. But now that the two are independent, it’s not that simple. If you could mount everything precisely, you could use trig to calculate laser angles and the resulting locations, but the problem is… mounting everything precisely:
If I was a machining/CAD wizard, I could mount the laser, galvanometers, and camera precisely enough that I could use some math to calculate angles/depths and figure out where the laser is going.
As I mentioned previously though, I am no CAD wizard, and my mechanical skills are… lacking. With no mechanical solution to the problem, I had to start getting creative with software.
His software solution is pretty cool. It requires calibration by creating a grid of pre-defined points, but from there, the possibilities are pretty endless. Take a look.
And now some ping pong balls as targets.
And finally — a moving train.
Anyone remember that laser targeting mosquito system? Why aren’t those in production yet! Get on it [Alvaro]!
Thanks for this! Just a question: can you also use a brushless outrunner from a gimbal as activator?
Yes, most likely. It will be to slow for a real lasershow projector, but for just aiming the beam under software control it should work fine. I guess you could even use a stepper motor as galvo if you don’t care about speed. You have closed loop control via the camera after all.
You want as little inertia as possible. i.e. air core.
Elm-chan made his own projector from scratch here: http://elm-chan.org/works/vlp/report_e.html It is a good read for DIY and not the usual buy buy buy type.
– I made a pair ‘way back when’ from hard drive actuators. grind the arms off that hold the read/write heads, and put a mirror near the axis/pivot.
Wooo!!! Go Alvaro!
now make it detect & kill flying insects inside the house, and take my $$$
Or raucous crows outside in trees at 5 in the morning.
It doesn’t seem to track targets when they move…also, would need a more powerful (and more dangerous) laser ;-)
Excellent way to properly take care of business is to give an attractive, irresistible sound. After short delay for folks to look, then LASE ON! :)
I want this to shoot down cat on kitchentable with water, when not at home 👍😅😁
Or is the laser not required for this? Only recognition software?