Interfacing With An Analog Joystick

[Firestorm_x1] put together a tutorial about interfacing an analog joystick with a microcontroller. These analog sticks are easy to find; he got his from Goodwill but we’ve got a couple in our junk box right now. The stick uses variable resistors to report its position so it’s just a matter of reading and interpreting that data. After explaining the concepts he demonstrates how to use the joystick to control a Basic Stamp 2 based robot, the Boe-Bot. This could easily be adapted for use with other robot platforms.

Game Controllers Using USB Host Shield

[I-Bot] has put together some libraries that make it easy to use gaming controllers with an Arduino. They interface through the USB host shield. This means that PS3 controllers connect via USB through a cable or a dongle. With the Wii remote things get a little more interesting. A Bluetooth dongle is used to make the connection wirelessly. What we have here is a cheap and easy way to add Bluetooth connectivity to your projects either through the USB Host shield, or by building your own hardware with the schematics and code that are available from Circuits@Home. There are several pages that walk you through the protocols using as well as a demonstration video you can see after the break. Continue reading “Game Controllers Using USB Host Shield”

Wii Motion Plus Direct PC Interface

You can pick up a Wii Motion Plus module for under $20 and that’s not bad for an I2C gyroscope. This hack taps into the device through a PC parallel port. The connection calls for some level conversion to step down to the 3.3v needed by the module. The communication protocol borrows from the Wii on Arduino code examples that we saw last year. You can see the Wii Motion Plus controlling a virtual cube in the video after the break.

Continue reading “Wii Motion Plus Direct PC Interface”

Face Tracking With X10

If you are looking to do some face tracking and don’t know where to start, this explanation of how to do it with X10 modules could be pretty helpful. Aside from having, what some could consider to be, the absolute most annoying website ever for a company, X10 also makes modular systems for home automation. X10 also refers to the industry standard for home automation, so sometimes just saying you did something with X10 can get confusing.   He is using the SDK to write custom code for the tracking, which you can download from the project page.

[via HackedGadgets]

Rotary Encoding With Your Soundcard

[Stefan] sent in this project writeup to show us how he used a stepper motor as a rotary encoder. Using a stepper motor as an encoder isn’t really that new, as [Stefan] points out, we’ve seen it several times before. He wanted to use this in the quickest simplest way with his computer though. Instead of doing any decoding on a separate microprocessor, he’s connected the stepper directly to his sound card and written code to do the rest. You can download that code and see a video of some practical applications on his site.

C64 Interface For Your Computer

Before we get started, lets just point out that this C64 was broken. He did not take a functional C64 out of operation for this. What he did do, was to build a hardware interface for for his VICE system. For those unfamiliar, VICE is a cross platform C64 emulator. [Simon] points out that the old games just weren’t as much fun without the original hardware. Having a broken C64 lying around, he put it to good use. It now acts as the interface for all the original fun stuff.

If you are a fan of the hardware, but just want to interface it as a normal USB keyboard, that is possible as well.

Bike Controller For Xbox 360

ProjectExciteBike is on its second iteration of an exercise bike controller for Xbox 360. The controller takes pedal input from the cranks of the exercise bike. The sensing is handled by a ring of five hall effect sensors that detect a passing magnet attached to the crank. The sensor data is collected and processed by an Arduino which connects to a wireless Xbox 360 controller for output.

This version of the gaming device includes a fine adjustment widget. It uses a row of LEDs to represent the speed of the pedals and has a slider to adjust how much of an effect this has on the game. This is what we envisioned for the trainer computer we saw yesterday. Take a look at some game play video after the break and dig through the code if you have an exercise bike waiting to be recommissioned.

Continue reading “Bike Controller For Xbox 360”