July 3, 2010

Wii Nunchuk extension cord

After playing a bit connecting the Nunchuk to Arduino 2009 using this breadbord-friendly method, I've bought from the bay a cheap extension cord:



cut it in the middle:



and soldered the cutted wires to a standard pin header:


following this schematics (searching the web there are plenty of examples):


Nunchuk connector
+-------------+
|    1 3 5    |
|    2 4 6    |
|    +---+    |
+----+   +----+


1 = Data = connect to Digital Pin 4 on Arduino
2 = GND = connect to Ground
3 = not used
4 = not used
5 = VCC = connect to +3.3V source
6 = Clock = connect to Digital Pin 5 on Arduino

(usually, wire 1 is green, 2 is white, 5 is red and 6 is yellow, but don't rely too much on colors, test with a multimeter).

Now I'm ready to use the controller in projects more "stable" than a breadboard.

UPDATED: I've found this terrific library to interface to "original" and "cheap" Nunchuks, with better features than previous libraries.