We’re suckers for any project that’s nicely packaged, but an added bonus is when most of the components can be sourced cheaply and locally. Such is the case for this little laser light show, housed in electrical boxes from the local home center and built with stuff you probably have in your junk bin.
When we first came across [replayreb]’s write-up and saw that he used hard drives in its construction, we assumed he used head galvanometers to drive the mirrors. As it turns out, he used that approach in an earlier project, but this time around, the hard drive only donated its platters for use as low mass, first surface mirrors. And rather than driving the mirrors with galvos, he chose plain old brushed DC motors. These have the significant advantage of being cheap and a perfect fit for 3/4″ EMT set-screw connectors, designed to connect thin-wall conduit, also known as electromechanical tubing, to electrical boxes and panels. The motors are mounted to the back and side of the box so their axes are 90° from each other, and the mirrors are constrained by small cable ties and set at 45°. The motors are driven directly by the left and right channels of a small audio amp, wiggling enough to create a decent light show from the laser module.
We especially like the fact that these boxes are cheap enough that you can build three with different color lasers. In that case, an obvious next step would be bandpass filters to split the signal into bass, midrange, and treble for that retro-modern light organ effect. Or maybe figuring out what audio signals you’d need to make this box into a laser sky display would be a good idea too.
For all its simplicity, the arcade classic Asteroids was engaging in the extreme, with the ping of the laser, the rumble of the rocket, the crash of crumbling space rocks, and that crazy warble when the damn flying saucers made an appearance. Atari estimates that the game has earned operators in excess of $500 million since it was released in 1979. That’s two billion quarters, and we’ll guess a fair percentage of those coins came from the pockets of Hackaday’s readers and staff alike.
One iconic part of Asteroids was the vector display. Each item on the field was drawn as a unit by the CRT’s electron beam dancing across the phosphor rather than raster-scanned like TV was at the time. The simple graphics were actually pretty hard to create, and with that in mind, [standupmaths] decided to take a close look at the vector display of Asteroids and try to recreate it using a laser.
To be fair, [Seb Lee-Delisle] does all the heavy lifting here, with [standupmaths] providing context on the history and mathematics of the original vector display. [Seb] is a digital artist by trade, and has at the ready a 4-watt RGB laser projector for light shows and displays. Using the laser as a replacement for the CRT’s electron beam, [Seb] was able to code a reasonably playable vector-graphic version of Asteroids on a large projections screen. Even the audio is faithful to the original. The real treat comes when the laser is slowed and a little smoke added to show us how each item is traced out in order.
Motors are everywhere; DC motors, AC motors, steppers, and a host of others. In this article, I’m going to look beyond these common devices and search out more esoteric and unusual electronic actuators that might just find a place in one of your projects. In any case, their mechanisms are interesting in their own right! Join me after the break for a survey of piezo, magnetostrictive, magnetorheological, voice coils, galvonometers, and other devices. I’d love to hear about your favorite actuators and motors too, so please comment below!
Piezo actuators and motors
Piezoelectric materials sometimes seem magic. Apply a voltage to a piezoelectric material and it will move, as simple as that. The catch of course is that it doesn’t move very much. The piezoelectric device you’re probably most familiar with is the humble buzzer. You’d usually drive these with less than 10 volts. While a buzzer will produce a clearly audible sound you can’t really see it flexing (as it does shown above).
To gauge the motion of a buzzer I recently attempted to drive one with a 150 volt piezo driver, this resulted in a total deflection of around 0.1mm. Not very much by normal standards!
For some applications however resolution is of primary interest rather than range of travel. It is here that piezo actuators really shine. The poster-boy application of piezo actuators is perhaps the scanning probe microscope. These often require sub-nanometer accuracy (less than 1000th of 1000th of 1 millimeter) in order to visualize individual atoms. Piezo stacks are ideal here (though hackers have also used cheap buzzers!).
Sometimes though you need high precision over a larger range of travel. There are a number of piezo configurations that allow this. Notably Inchworm, “LEGS”, and slip-stick actuators.
The PiezoMotor LEGS actuator is shown to the above. As noted, Piezos only produce small (generally sub-millimeter) motion. Rather than using this motion directly, LEGS uses this motion to “walk” along a rod, pushing it back and forth. The rod is therefore moved, in tiny nanometer steps. However, piezos can move quickly (flexing thousands of times a second). And the LEGS (and similar Inchworm actuator) allows relatively quick, high force, and high resolution motion.
The tablecloth trick (yes this one’s fake, the kid is ok don’t worry. :))
Another type of long travel piezo actuator uses the “stick-slip phenomenon”. This is much like the tablecloth magic trick shown above. If you pull the cloth slowly there will be significant friction between the cloth and this crockery and they will be dragged along with the cloth. Pull it quickly and there will be less friction and the crockery will remain in place.
This difference between static and dynamic friction is exploited in stick-slip actuators. The basic mechanism is shown in the figure below.
When extending slowing a jaw rotates a screw, but if the piezo stack is compressed quickly the screw will not return. The screw can therefore be made to rotate. By inverting the process (extending quickly, then compressing slowly) the process is reversed and the screw is turned in the opposite direction. The neat thing about this configuration is that it retains much of the piezo’s original precision. Picomotors have resolutions of around 30 nanometer over a huge range of travel, typically 25mm, they’re typically used for optical focusing and alignment and can be picked up on eBay for 100 dollars or so. Oh and they can also be used to make music. Favorites include Stairway to Heaven, and not 1 but 2 versions of Still Alive (from Portal). Obligatory Imperial March demonstration is embedded here:
There are numerous other piezo configurations, but typically they are used to provide high force, high precision motion. I document a few more over on my blog.
Magnetostriction is the tendency of a material to change shape under a magnetic field. We’ve been talking about magnetostriction quite a lot lately. However much like piezos it can also be used for high precision motion. Unlike piezos they require relatively low voltages for operation and have found niche applications.
Magnetorheological (MR) fluids are pretty awesome! Much like ferrofluids, MR fluids respond to changes in magnetic field strength. However, unlike ferrofluids it’s their viscosity that changes.
This novel characteristic has found applications in a number of areas. In particularly the finishing of precise mirrors and lens used in semiconductor and astronomical applications. This method uses an electromagnet to change the viscosity of the slurry used to polish mirrors, removing imperfections. The Hubble telescope’s highly accurate mirrors were apparently finished using this technique (though hopefully not that mirror). You can purchase MR fluid in small quantities for a few hundred dollars.
While magnetic motors operate through the attraction and repulsion of magnetic fields, electrostatic motors exploit the attraction and repulsion of electric change to produce motion. Electrostatic forces are orders or magnitude smaller that magnetic ones. However they do have niche applications. One such application is MEMS motors, tiny (often less than 0.01mm) sized nanofabricated motors. At these scales electromagnetic coils would be too large and specific power (power per unit volume) is more important than the magnitude of the overall force.
Voice coils and Galvanometers
The voice coil is your basic electromagnet. They’re commonly used in speakers, where an electromagnet in the cone reacts against a fixed magnet to produce motion. However voice coil like configurations are used for precise motion control elsewhere (for example to focus the lens of an optical drive, or position the read head of a hard disc drive). One of the cooler applications however is the mirror galvanometer. As the name implies the device was originally used to measure small currents. A current through a coil moved a rod to which a mirror was attached. A beam of light reflect off the mirror and on to a wall effectively created a very long pointer, amplifying the signal.
These days ammeters are far more sensitive of course, but the mirror galvanometer has found more entertaining applications:
High speed laser “galvos” are used to position a laser beam producing awesome light shows. Modern systems can position a laser beam at kilohertz speeds, rendering startling images. These systems are effectively high speed vector graphic like line drawing systems, resulting in a number of interesting algorithmic challenges. Marcan’s OpenLase framework provides a host of tools for solving these challenges effectively, and is well worth checking out.
In this article I’ve tried to highlight some interesting and lesser known techniques for creating motion in electronic systems. Most of these have niche scientific, industrial or artistic applications. But I hope they also also offer inspiration as you work on your own hacks! If you have a favorite, lesser known actuator or motor please comment below!
Mirror galvanometers were originally developed in the 17th century to precisely measure very small changes in current. Unlike other instruments of the day, a mirror galvanometer could clearly show minute current variations by translating tiny movements of the mirror into large movements of the light reflected off of the mirror. Before clean electrical amplification became possible, this was the best means of measuring tiny differences in current. True mirror galvanometers are very sensitive instruments, but hobby servos can be used as a low-fidelity alternative, like with this project on Hackaday.io created by [robives].
Using a mirror galvanometer is by far the most common technique for laser projection shows – it’s really the only way to move the laser’s beam quickly enough to create the visual illusion of a solid line in real time. A mirror galvanometer works by using coils to attract magnets attached to the mirror, allowing the angle of the mirror to change when current is applied to the coils. This movement is extremely small, but is amplified by the distance to the projection surface, meaning the laser’s beam can move huge distances in an instance. If you’ve ever seen a laser show, it almost certainly used this technique. But driving galvos requires a beefy DAC, so we can’t blame [robives] for wanting to keep it digital.
[robives’s] project side-steps the need for galvanometers by using glow-in-the-dark vinyl and a UV laser. The result is a laser beam trail which lasts much longer, which means that solid lines are visible without the need for high-speed galvos. A build like this lets you experiment with laser projections without dealing with sensitive mirror galvos, and instead use components that you probably already have sitting on your workbench.
A ‘meter is one of the most important tools on any electronics bench. After you’ve exhausted your five senses trying to figure out what’s happening in a circuit, firing up the old ‘meter is usually the next step. Meters are largely digital nowadays, but their analog ancestors are still widely available. We have a chemist and inventor named [Edward Weston] to thank for the portability and ubiquity of DC measuring equipment.
After immigrating to the United States from England with the degree in medicine his parents wanted him to earn, [Edward Weston] asserted that he was more interested in chemistry. His career began in electroplating, where he soon realized that he needed a reliable, constant current source to do quality plating. This intense interest in power generation led him to develop a saturated cadmium cell, which is known as the Weston cell. Its chemistry produces a voltage stable enough to be used for meter calibration. The Weston cell is also good for making EMF determinations.
Within a few years, he co-founded the Weston Electrical Instrument Corporation. The company produced several types of meters along with transformers and transducers known for their portability and accuracy. In 1920, [Weston & Co.] created this 1920 educational film in cooperation with the United States Navy as part of a series on the principles of electricity.
The viewer is invited to consider the importance of measurement to civilization, most notably those fundamental measurements of length, mass, and time. [Weston] positions his electrical measuring instruments at this level, touting them as the international favorite. We get the full tour of a Weston meter, from the magnet treated for permanence to the specially designed pole pieces that correctly distribute lines of magnetic force. What education film about electromagnetism would be complete without an iron filings demonstration? This one definitely delivers.
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.
So you’re a boxer, and you’re weighing in just 80 micrograms too much for your usual weight class. How many eyelashes do you need to pluck out to get back in the ring? Or maybe you’re following the newest diet fad, “microcooking”, and a recipe calls for 750 micrograms of sugar, and you need to know how many grains that is. You need a microgram scale.
OK, we can’t really come up with a good reason to weigh an eyelash, except to say that you did. Anyway, not one but two separate YouTube videos show you how to build a microgram balance out of the mechanism in a panel meter. You know, the kind with the swinging pointer that they used to use before digital?
Panel meters are essentially an electromagnet on a spring in the field of a permanent magnet (a galvanometer). When no current flows through the electromagnet, the spring pulls the needle far left. As you push current through the electromagnet, it is attracted to the fixed permanent magnet, fighting the spring, and tugs the pointer over to the right. More current equals more pull.