Good Vibrations In 3D-Printed Clay

An engineer with a 3D printer wants everything to be rigid and precise. Wobble induced by flex in the z-axis feedscrews, for instance, makes telltale wavy patterns in the surface that match exactly the screw pitch. Nobody likes those, right? Certainly not an engineer!

good_vibrations-shot0008_thumbnailBut one man’s surface irregularity is another man’s ornamentation. The details we have are sparse, but from looking at the video (also inlined below the break) it’s clear enough: [Olivier van Herpt] and [Ricky van Broekhoven] stuck a vibrating woofer underneath the print bed of their ceramic printer, and use it to intentionally ruin their smooth surface. And they do so to great artistic effect!

We’re not suggesting that you give up entirely on your calibrations, but we do appreciate a little out-of-the-box thinking from time to time. But then our internal engineer raises his head and we wonder if they’re linking the pitch of the woofer to the feed rate of the print head. Your thoughts in the comments?

Continue reading “Good Vibrations In 3D-Printed Clay”

Aquire Awesome Audio For BeagleBone

[Henrik Langer] put his powerful audio acquisition and output board up on Hackaday.io, and we thought we’d point it out to you. It’s one of those projects that used to be pro audio just a few years back, but is doable (and affordable) DIY today: dual stereo inputs and four(!) stereo outputs, all sampled at 24 bits and up to 192 kHz. It’s configured as a BeagleBone cape, and comes with a customized Linux distribution for the ‘Bone.

What would you do with such a thing? It’s essentially a recording studio in your pocket, with a computer attached. The video (linked below the break) demonstrates using the device as a real-time stereo delay effect unit, but that’s only making use of one channel. Between effects, recording, and then all sorts of much-better-than-CD quality sound synthesis and playback possibilities, it’s an open-ended audio playground.

And all that from what is essentially a (very well-done) breakout board for a fancy DAC/ADC chip from Analog Devices: the AD1938. We’d love to have one of these on our desktop. Check out [Henrik]’s GitHub for the PCB and build instructions and BOM and everything else you’d need to get started. Very nice job!

Continue reading “Aquire Awesome Audio For BeagleBone”

Barcodes That Hack Devices

[virustracker] has been playing around with barcodes lately, and trying to use them as a vector to gain control of the system that’s reading them. It’s a promising attack — nobody expects a takeover via barcodes. The idea isn’t new, and in fact we’ve seen people trying to drop SQL attacks in barcodes long ago, but [virustracker] put a few different pieces together and came up with a viable attack.

The trick is that many POS terminals and barcode readers support command characters in their programming modes. Through use of these Advanced Data Formatting (ADF) modes, [virustracker] sends Windows-Key-r, and then cmd.exe, ftps a file down, and runs it. Whatever computer is on the other side of the barcode scanner has just been owned. ADF even supports a delay function to allow time for the command window to pop up before running the rest of the input.

The article details how they got their payload from requiring more than ten individual barcodes down to four. Still, it’s a suspicious-looking attack to try to pull off where other people (think cashiers) are looking. However, we have many automated machines in our everyday life that use barcodes. How many of these are vulnerable is an open question. [virustracker] suggests lottery machines, package-delivery automats, and even hospitals.

The defense is simple, and it’s the same as everywhere else: disable the debug and configuration modes in your production systems, and sanitize your input. Yes, even the barcodes.

Embed With Elliot: Audio Playback With Direct Digital Synthesis

Direct-digital synthesis (DDS) is a sample-playback technique that is useful for adding a little bit of audio to your projects without additional hardware. Want your robot to say ouch when it bumps into a wall? Or to play a flute solo? Of course, you could just buy a cheap WAV playback shield or module and write all of the samples to an SD card. Then you wouldn’t have to know anything about how microcontrollers can produce pitched audio, and could just skip the rest of this column and get on with your life.

Harmonic distortion down ~45db on an Arduino
~45db signal to noise ratio from an Arduino

But that’s not the way we roll. We’re going to embed the audio data in the code, and play it back with absolutely minimal additional hardware. And we’ll also gain control of the process. If you want to play your samples faster or slower, or add a tremolo effect, you’re going to want to take things into your own hands. We’re going to show you how to take a single sample of data and play it back at any pitch you’d like. DDS, oversimplified, is a way to make these modifications in pitch possible even though you’re using a fixed-frequency clock.

The same techniques used here can turn your microcontroller into a cheap and cheerful function generator that’s good for under a hundred kilohertz using PWM, and much faster with a better analog output. Hackaday’s own [Bil Herd] has a nice video post about the hardware side of digital signal generation that makes a great companion to this one if you’d like to go that route. But we’ll be focusing here on audio, because it’s easier, hands-on, and fun.

Continue reading “Embed With Elliot: Audio Playback With Direct Digital Synthesis”

Remote-Controlled Eyebrows For Your Birthday

We’re not sure that [Alec]’s dad actually requested remote-controlled eyebrows for his birthday, but it looks like it’s what he got! As [Alec] points out, his father does have very expressive eyebrows, and who knows, he could be tired of raising and lowering them by himself. So maybe this is a good thing? But to us, it still looks a tiny bit Clockwork Orange. But we’re not here to pass judgement or discuss matters of free will. On to the project. (And the video, below the break.)

20160208_105209

An ATmega328 (otherwise known as cheap Cloneduino Alec wrote that the 328 was from a real Arduino) is trained to run motors in response to IR signals. An L293D and a couple of gear motors take care of the rest. Sewing bobbins and thread connect the motors to the eyebrows. And while it’s not entirely visible in the photo, and veers back into not-sure-we’d-do-this-at-home, a toothpick serves as an anchor for the thread and tape, secured just underneath the ‘brows for maximum traction.

We have to say, we initially thought it was going to be a high-voltage muscle-control hack, and we were relieved that it wasn’t.

Continue reading “Remote-Controlled Eyebrows For Your Birthday”

VHS-Tape-Plasma Mirror Drives Tiny Particle Accelerator

When you think of a particle accelerator, you’re probably thinking of tens of kilometers of tube buried underground, at high vacuum, that uses precisely timed electromagnetic fields to push charged particles like electrons up to amazing speeds (and energies). However, it’s also possible to accelerate electrons in other ways, and lasers are a good bet. Although a laser-based particle accelerator can push electrons very effectively for a few centimeters, they top out at a relatively low maximum “speed” of a couple billion electron-volts, as opposed to the trillions of eV that you can get out of a really big traditional accelerator.

If only you could repeat the laser trick again, “hitting” the already-moving electrons from behind with another beam, you could boost them up to even higher energies. Doing so would take something like a one-way mirror that lets the electrons pass through, but that you could then bounce a laser beam off of. In a fantastic mixture of science and mother-of-invention-style hacking, these scientists from Lawrence Berkeley National Labs use plain-old VHS tape to make plasma mirrors to do just that. Why VHS tape? Because it’s cheap, flexible, and easy to move through the apparatus at high speeds.

The device works like this: a first laser beam passes through a jet of ionized gas and pulls some electrons with it. These electrons are then focused into a beam and pass through some (moving) VHS tape. The electrons punch a hole through the tape. In their wake they leave a hot plasma of mid-90s TV shows you never got around to watching. The second laser beam is then bounced off this plasma mirror and further accelerates the electron beam from behind. In principle, you could repeat this second stage enough times to build up the energy you needed, but for now the crew is working to characterize their single-stage beam. Getting the timing right on the second-stage beam is, naturally, non-trivial.

Anyone who has spent some time in a science lab knows that there are millions of these tiny get-it-done-quick hacks behind the scenes, but it’s nice to see one take center stage as well. If you’ve got stories of great lab hacks that you’d like to see us cover, post up in the comments!

Thanks [Bruce] for the tip, via Science Daily.

Another Use For Old Hard Drive Parts: Anemometer

So you’ve just taken apart a hard drive, and you’re looking at all the pieces on your desktop. You’re somehow compelled to use them all in different projects. Why not pull out that very high quality bearing that keeps the platters spinning at high RPMs and build this simple anemometer with it? That’s what [Sergei Bezrukov] did, and it looks like a perfect el cheapo project.

The build is fairly low-tech and entirely sufficient. The cups are made from plastic containers that used to contain pantyhose. A Hall-effect sensor and a magnet take care of measuring the rotations, feeding its signal into a PIC that calculates the wind speed from the revolution rate. The rest of the housing is PVC, with some other miscellaneous parts found at the hardware store.

To calibrate the device, [Sergei] made a second hand-held unit that he could (presumably) drive around in a car to get a baseline wind speed, and then note down the revolution rate. Once you’ve got a good reference, holding the portable unit up to the permanent one transfers the calibration.

But the star of the show, that lets the anemometer spin effortlessly, is the sweet bearing that used to spin a hard-drive platter. If you haven’t played with one of these bearings before, you absolutely should. We just ran a post on taking apart a hard drive for its spare-parts goodness so you have no excuse. If you’re feeling goofy, you can mount one onto a board, step on it with the ball of your foot, and spin. They’re quality bearings, and you’ll be surprised how quickly you can spin as you pull your arms in.

Thank [Matt] for the tip!