Hackaday Links: March 21, 2012

Don’t get your dirty fingers on the glass

[Poke] sent in a video of him using Android devices with a wiimote and PS3 controller. The build uses the Joystick2Touch and the USB Joystick Center app. Root is required, but this will be very useful when tv-sized Android devices start showing up.

Wonderful restoration work

[John] sent in an Instructable on restoring an ancient typewriter. It’s almost beautiful seeing all those delicate metal parts so finely cleaned and reassembled.

Proof of the Big Bang is in one of these articles

[Paleotechnoligist] has been reading the technical journals from Bell Labs. These people were the Google of the 20th century and did some amazing stuff. Here’s the math for getting to the moon and a thing about “cellular telephony.”

Oooohhh extruded aluminum

[Richard Sum] sent us a pic of his new 3D printer kit he’ll be offering soon. Very professional looking.

Flying like a three dollar bill

[Yannick] and [SaakNeMah] sent in this video of a guy strapping on bird wings, running down a field, and then flying for about 100 meters. The project is Human Birdwings and it’s gotten an amazing amount of press coverage. We’re calling fake on this for three reasons: the wings didn’t produce lift, the camera angles are all wrong (only applicable if there was a single flight), and this guy would be a gazillionaire if his wings actually worked. Argue amongst yourself in the comments; we’d love to be proven wrong.

C64 Joystick Adapter

[Marcus Gritsch] wanted to do his retro gaming using retro hardware… or at least using some retro hardware. Although he was playing his Commodore 64 games in an emulator, he figured that using an original controller would boost the nostalgia quite a bit. This is a vintage Competition Pro joystick that has buttons and a joystick of a similar quality to arcade hardware and a DE-9 connector. He managed to connect new to old by building his own USB to C64 joystick adapter.

His project started out by breadboarding a circuit based on a PIC 24FJ64GB002 microcontroller. This does all of the work, having native USB support, and no problem reading and translating the signals from the old hardware which are simply conductors for each internal switch that pull to ground when actuated. Once working, he soldered everything to some protoboard; a connector at each end, the chip itself, a voltage regulator, and some passive components. It’s a, robust build that should give him years of emulated fun.

Open Source Makes This USB Arcade Controller Build A Breeze

[Jamie] built his own USB connected arcade controller. We’ve been seeing a lot of these lately, and they usually involve soldering buttons to a keyboard PCB. But [Jamie] decided to go a different route and use his own microcontroller. This method always gets a bit hairy when it comes to deciding how to connect it to a computer. Dealing with the USB stack used to be quite tricky, but the LUFA project is slowly taking the pain out of the process.

The Lightweight USB Framework for AVRs is an open source project that handles the hard work associated with USB capable AVR microcontrollers. [Jamie] knew that they already had a sample implementation of a hardware joystick. He’s not using one of the supported boards and so wasn’t able to just compile and go. But porting the code to work with his minimus board was simple enough. With the code in place, the physical build was quite simple. The buttons and joystick were mounted on the surface of an overturned drawer. Each is connected to one pin of the controller board and to ground. LUFA makes sure that the device enumerates as a joystick, and [Jamie] was gaming in no time.

Arcade Controller In A Box

[Alex] wanted to play video games with an arcade stick and buttons, but got sticker shock after seeing the price of commercially available controllers that connect to a computer via USB. He set out to build his own and ended up with the controller-in-a box that you see above.

At first he tried using an mbed microcontroller board but was unhappy with the latency built into the system that detected a button press, sent it via USB as a keyboard press, which was then interpreted as input by the game. He ditched the microcontroller completely and picked up a couple of 4021 parallel-to-serial shift registers. He had previously used this method to make his own SNES controller. The SNES uses two 8-bit shift registers to generate an 16-bit serial packet to send to the console. [Alex’s] reused that system, adding an SNES controller plug to his arcade box, and using the SNES to USB converter he already had to connect to the computer. Now he’s got a portable controller for the cost of three buttons, the stick, and two IC’s.

He explains the project himself in the clip after the break.

Continue reading “Arcade Controller In A Box”

Portable Gets A Proper Home In An Arcade Controller

[Luke] wanted an arcade-style controller that he could use for some gaming at home. He decided to use a portable game emulator as a base and then added his own joystick and buttons along with a custom case.

The donor hardware is a Dingo A320. It’s a nice little handheld with a 2.8″ screen, and plenty of potential to emulate games like Donkey Kong seen above, or to play homebrew. It’s even been the target of some RAM upgrades we looked in on in the past. The best part for [Luke’s] project is that it includes a video out port.

In the clip after the break you can see that [Luke] now has a compact controller with a huge arcade joystick, four buttons on the top surface, and the rest of the controls all around the edges of the enclosure. The video out option is selected in the menu system, so he preserved the original LCD for use during configuration.

Continue reading “Portable Gets A Proper Home In An Arcade Controller”

Writing Python Drivers For Input Devices

[Stealth] put together a post explaining how he writes drivers for input peripherals. He’s using Python which makes the process fairly painless (we’ll get to that in a minute) but the value of his post is in the explanation surrounding how to interpret the data. Once you know how the communications are coming in from a device you can write the driver using any language you want. [Stealth] wrote in to let us know about this post after reading the PlayStation 3 Sixaxis controller sniffing hack. He’s pretty much doing the same thing but the background information is much more bountiful.

There are a couple of prerequisites to the process. First, [Stealth] is working in a Linux environment. That’s not to say you couldn’t do this on another OS, but you’re going to need to do some research to find out how to tap into the data stream from the device. Secondly, the input you are working with must already be set up and working on the machine. That means if there isn’t any support at all for the peripheral (in this case a USB joystick) you’re not going to be able to sniff the commands. That being said, a short Python snippet is all you need to dump the raw data coming in from the device. With data in hand it’s time to do some pattern hunting. As you start to figure out the size and scope of the incoming packets you can try out your own code to make sure you’ve got it right. Check out the demo video after the break which features a joystick button mapper written in Python.

Continue reading “Writing Python Drivers For Input Devices”

Haptic Feedback Joystick Uses Air Muscles

[Ben Krasnow] is working on a force-feedback joystick. It centers around the concept of an air muscle which transfers pressure into linear motion. He cites another air muscle project as part of the inspiration in his build, but where he’s gone with it is one of the better uses for these blow-up components that we’ve seen.

Basically you have a bladder, in this case rubber tubing. A mesh surrounds it to reinforce the material and cause inflation to shorten the length of the package. In the image above there are four black air muscles that connect the base of a joystick with the outer frame that houses it. How and when each muscle is pressurized determines the type of motion the user will feel on the joystick. This is where his pressure controller comes into play. It uses a voltage-to-pressure transducer to feed a manifold, the combination of which not only makes each muscle addressable but allows him to dial in the force sent to the muscles. Check out the video after the break for his start-to-finish walk through.

Continue reading “Haptic Feedback Joystick Uses Air Muscles”