A Gameport Joystick To USB-MIDI Converter

These days, live music performance often involves electronic synthesizers and computers rather than traditional instruments played by hand. To aid in his own performances, [alekappa] built a special interface to take signals from a joystick and convert them to MIDI messages carried over USB.

The build is simple and straightforward, using a Teensy LC to interface with a simple gameport joystick. With a smattering of simple components, it’s easy to read the outputs of the joystick with only a little debounce code needed to ensure the joystick’s buttons are read accurately. Similarly, analog axes are read using the analog-to-digital converters onboard the microcontroller.

This data is then converted into control changes, note triggers and velocity levels and sent out over the Teensy LC’s USB interface. A mode switch enables changes to the system’s behaviour to be quickly made. The device is wrapped up in a convenient housing nabbed from an old Gameport-to-USB converter from many years ago.

It’s a neat project and we’re sure the joystick allows [alekappa] to add a new dimension to his performances on stage. We’ve seen other great MIDI controllers, too, from the knitted keyboard to the impressive Harmonicade. If you’ve got your own mad musical build under construction, don’t hesitate to drop us a line!

DJ Hero Controller Gets A New Gig

Fans of the Guitar Hero etc. franchise may be interested to hear about Spin Rhythm XD, a similar rhythm game which uses a jog wheel for much of the chase-down-the-notes action. Although it can be played with a keyboard and mouse, the ideal input is a professional DJ MIDI controller — imagine two capacitive “turntables” the size of 45s, and a lot of buttons, knobs, and sliders.

Like most of us, [Dave] doesn’t have one of those. But what he does have is an old DJ Hero controller made for the Wii. It’s a lot like the big boy version of a DJ MIDI controller as far as the inputs go, except that the turntable isn’t capacitive.

Since the Wii brain is just sending I²C over a funny-looking connector, [Dave] was able to replace the Wiimote with a Teensy LC, and write new firmware for the controller inputs using a breakout board built for another project.

[Dave] tried to use as many of the DJ Hero controller’s inputs as he could, so in addition to mapping the wheel and wheel buttons to the main game controls, he wired up the joystick, effects knob, and buttons to navigate through the game menus. The game’s designers had the forethought to map these to keyboard keys, so it was pretty easy to do. He can even use dual turntables and mix or isolate them with the crossfader. Slide past the break to check out the build video, and stick around for a full-length song demo.

Are these games a little too frantic for you? Turn those ‘tables into an Etch-A-Sketch instead.

Continue reading “DJ Hero Controller Gets A New Gig”

Power Glove Takes Over Quadcopter Controls

Gerrit and I were scoping out the Intel booth at Bay Area Maker Faire and we ran into Nolan Moore who was showing of his work to mash together a Nintendo Power Glove with an AR Drone quadcopter. Not only did it work, but the booth had a netted cage which Nolan had all to himself to show off his work. Check the video clip below for that.

The control scheme is pretty sweet, hold your hand flat (palm toward the ground) to hover, make a fist and tilt it in any direction to affect pitch and roll, point a finger up or down to affect altitude, and point straight and twist your hand for yaw control. We were talking with Nolan about these controls it sounded sketchy, but the demo proves it’s quite responsive.

The guts of the Power Glove have been completely removed (that’s a fun project log to browse through too!) and two new boards designed and fabbed to replace them. He started off in Eagle but ended up switching to KiCAD before sending the designs out for fabrication. I really enjoy the footprints he made to use the stock buttons from the wrist portion of the glove.

A Teensy LC pulls everything together, reading from an IMU on the board installed over the back of the hand, as well as from the flex sensors to measure what your fingers are up to. It parses these gestures and passes appropriate commands to an ESP8266 module. The AR Drone 2.0 is WiFi controlled, letting the ESP8266 act as the controller.

Turning A Teensy Into A U2F Key

Last month, GitHub users were able to buy a special edition Universal 2nd Factor (U2F) security key for just five bucks. [Yohanes] bought two, but wondered if he could bring U2F to other microcontrolled devices. he ended up building a U2F key with a Teensy LC, and in the process brought U2F to the unwashed masses.

Universal 2nd Factor is exactly what it says on the tin: it doesn’t replace your password, but it does provide a little bit of extra verification to prove that the person logging into an account is indeed the person that should. Currently, Google (through Gmail and Google Drive), Github, Dropbox, and even WordPress (through a plugin) support U2F devices, so a tiny USB key that’s able to provide U2F is a very useful device.

After digging into the U2F specification [Yohanes] found the Teensy LC would be a perfect platform for experimentation. A U2F device is just a USB HID device, which the Teensy handles in spades. A handy library takes on ECC for both AVR and ARM platforms and [Yohanes’] finished U2F implementation is able to turn the Teensy LC into something GitHub was selling for $5.

It should be noted that doing anything related to security by yourself, with your own code is dumb and should not be considered secure. Additionally, [Yohanes] didn’t want to solder a button to his Teensy LC, so he implemented everything without a button press, which is also insecure. The ‘key handle’ is just XOR encryption with a fixed key, which is also insecure. Despite this, it’s still an interesting project and we’re happy [Yohanes] shared it with us.

Full Size Custom Claw Machine Built With Parts On Hand

You know how it goes – sometimes you look at your social calendar and realize that you need to throw together a quick claw machine. Such was the dilemma that [Bob Johnson] found himself in during the run-up to the Nashville Mini Maker Faire, and he came up with a nice design that looks like fun for the faire-goers.

Seeking to both entertain and enlighten the crowd while providing them with sweet, sweet candy, [Bob] was able to quickly knock together a claw machine using mainly parts he had on hand in the shop. The cabinet is nicely designed for game play and to show off the gantry mechanism, which uses aluminum angle profiles and skate bearings as custom linear slides. Plenty of 3D printed parts found their way into the build, from pillow blocks and brackets for the stepper motors to the servo-driven claw mechanism. A nice control panel and some color-coded LED lighting adds some zip to the look, and a Teensy LC runs the whole thing.

Like [Bob]’s game, claw machines that make it to Hackaday seem to be special occasion builds, like this claw machine built for a kid’s birthday party. Occasion or not, though, we think that fun builds like these bring the party with them.

Continue reading “Full Size Custom Claw Machine Built With Parts On Hand”

Scanning Electron Microscope Images And Animations Pulled By Impressive Teensy LC Setup

When you’ve got a scanning electron microscope sitting around, you’re going to find ways to push the awesome envelope. [Ben Krasnow] is upping his SEM game with a new rig to improve image capture (video link) and more easily create animated GIFs and videos.

The color scheme of the SEM housing gives away its 80s vintage, and the height of image capture technology back then was a Polaroid camera mounted over the instrument’s CRT. No other video output was provided, so [Ben] dug into the blueprints and probed around till he found the high-resolution slow scan signal.

To make his Teensy-LC happy, he used a few op-amps to condition the analog signal for the greatest resolution and split out the digital sync signals, which he fed into the analog and digital ports respectively. [Ben] then goes into a great deal of useful detail on how he got the video data encoded and sent over USB for frame capture and GIF generation. Reading the ADC quickly without jitter and balancing data collection with transmission were tricky, but he has established a rock-solid system for it.

Continue reading “Scanning Electron Microscope Images And Animations Pulled By Impressive Teensy LC Setup”