Want to hook up a Wii Nunchuck to an Arduino but don’t want to cut up the cord on your Nunchuck? Yeah me too. So I made some of these:
It’s a small PCB that adapts the Wii Nunchuck connector to standard 4-pin header. I call it the “wiichuck adapter”. It plugs directly into the Arduino, no wiring necessary. You can get one too for $4.
Available from the following wonderful shops:
– FunGizmos.com. FREE DOMESTIC SHIPPING. International shipping for $1 more.
– Little Bird Electronics (Australia)
– SparkFun. Ships domestic & internationally. Be sure to order header pins too!
– and just about any SparkFun distributor
One of the coolest things about the Wii (to me) is that the expansion port on the bottom of the Wii remote is an I2C serial connection. This means that anything that plugs into that port can work with microcontrollers like the Arduino or Basic Stamp or others. Of the available peripherals, the Wii Nunchuck is one of the best. It contains a 3-axis accelerometer, a 2-axis joystick, and two buttons. Hooking up a Wii Nunchuck to Arduino is easy and I have class notes describing how to do it. But cutting off the connector of the Nunchuck to get at the wires is a little drastic.
This “wiichuck adapter” let’s you play with the Wii Nunchuck and other Wii remote peripherals without needing you to cut cables. Just plug it into the Wii Nunchuck, then into the Arduino, in to Analog In pins 2,3,4,5. Pins 4&5 are the I2C communication pins and Pins 2&3 can act as the power supply for the Nunchuck.
This is what it looks like plugged into the Nunchuck by itself.
Nunchuck and Other I2C Devices (like BlinkM)
You can use other I2C devices at the same time as the Nunchuck. The I2C bus allows for multiple devices. For instance, if you have a BlinkM and also want to use a Nunchuck, no problem. The pinout of the BlinkM and the wiichuck adpater are the same. Just solder a little 4-pin socket header to the top of the wiichuck adapter.
And then you can plug in a BlinkM right on top.
Software
To make it a little easier to play with the Nunchuck, I made a little Nunchuck library for Arduino and demo:
– nunchuck_funcs.h
– WiichuckDemo.ino
(Or better yet, check out the github repository for it all zipped up. Just unzip and open the .ino in Arduino)
It is based off the original research done by Chad Philips of Windmeadow Labs. The library uses the Wiring I2C library called “Wire”. This library is built-in to Arduino, as long as you have the latest Arduino development environment (0010 currently). To see another Arduino sketch using this library, you can check out the BlinkMChuck example that’s part of the BlinkM examples.
The library functions are:
– nunchuck_setpowerpins()
— power up a nunchuck plugged directly into an Arduino on analog pins 2,3,4,5.
– nunchuck_init()
— init a nunchuck connected to an Arduino
– nunchuck_get_data()
— get a data packet from the Nunchuck
Then you can get at the data packet using various helper functions like:
– nunchuck_accelx()
— get X-axis acceleration
– nunchuck_zbutton()
— get Z-button state
– …and so on, see the header file for a complete list
Nunchuck Information
– Wiimote/Extension Controllers/Nunchuk — info page about the Nunchuck on WiiLi (Linux for Wii) site
– “Wiimote Accessory Bus” — docs about the Nunchuck’s connector.
Getting One / How to Order
Available from the following wonderful shops:
– FunGizmos.com. International shipping for $1 more.
– Tinker.it (UK)
– Little Bird Electronics (Australia)
Update 20 Feb 2008: Over 200 wiichuck adapters sold to more than 50 people in 5 countries. I still have some available if anyone wants one. To those who ordered up to now, you’ll be getting them in the post in a few days.
Update 29 Feb 2008: Over 300 wiichuck adapters sold and I still have many more left. Get yours if you want one. :-) Anyone that’s ordered before today should receive their adapters via first class post soon. I’ll be unable to mail out any orders for the first week of March.
Update 24 Mar 2008: I still have several left. If you’re in AU, you can also get the adapter kit from Little Bird Electronics.
Update 11 Apr 2008: Updated the nunchuck_funcs.h
library to easily work with a nunchuck plugged directly into an Arduino by adding a nunchuck_init_with_power()
function (see comments below). Also, I still have several adapter kits for sale.
Update 6 May 2008: All Out! But I’ll be doing another board run in a few days and will update here when I have more available.
Update 8 Jun 2008: FunGizmos.com is now carrying Wiichuck adapters! They also have lots of other cool things, like BlinkMs. :-)
Update 7 Jan 2009: Both FunGizmos.com (US) and Tinker.It(UK) carry the Wiichuck adapter.
Update 31 Mar 2009: Fixed small bug that made it not compile under more recent Arduino, and fixed links. Also: if you’re having problems getting this to work, in the Arduino software, go to the “Boards” menu, switch to a different Arduino board type, compile, then switch back to your type. This forces a recompile of the Arduino I2C/TWI library that sometimes doesn’t get compiled correctly.
Update 18 Feb 2010: Updated API description to note that “nunchuck_init_with_power()” was removed in favor of “nunchuck_setpowerpins(); nunchuck_init();”.
Update 6 Dec 2011: Updated to work with Arduino 1.0 (still works with Arudino 0023 too). Changed download links to github repository.
Ok then, I want two of them.
Thanks for your quick answer.
Hi glloret, It looks like I can ship them via normal airmail post, so add $1 for each kit.
Hi,
That’s simple and amazing.
How much shipping two of them to Spain?
I was thinking your board could use a little notch on it to help hold the shapelock, but It’ll probably hold just fine. Mine actually has some wires coming out of it, and the shapelock goes all the way around. I was really happy with how well the connector worked. I was freaking out a little bit about the 5V as well, but I guess what’s the worst thing that could happen? I’d have to go buy another nunchuck.
You are correct Henri. But it works fine. The chips used in the Nunchuck are 5V tolerant. Having said that, there’s no guarantee that Nintendo won’t change things and future Nunchucks won’t work with this.
And Joe, that’s a great idea. Shapelock is so awesome.
I used shapelock around one I made myself, it worked out to make a perfect connector, just like in the bottom of the wii remote.
All you have to do, is heat up some shapelock or friendly plastic and wrap it around this circuit board while the nunchuck is attached to it. Wait for it to harden and remove the nunchuck. It’ll be a perfect fit.
Hmm. Nice idea but it leaves me wondering about the voltage difference… The nunchuck is supposed to use 3.3V, not 5V as used and supplied by the Arduino board, right?
I believe paypal will let you pay with a credit card. Alternatively, you can mail me a check. Email me privately and I’ll set you up with a mailing address.
Uhh… what if we don’t have a paypal account? I still want one.
Hi Kerry. To order, send $4 via paypal to my paypal address listed above.
How do we order?
Multiple boards (unless you’re buying >10) are just the single price multiplied. So 3 boards is $12. I do this just because most of the shipping cost to me is the time to package things up and get them sent out.
How much for three boards shipped(US)? You can forget the 4 pin headers if it’d be cheaper.
Hey I did the same thing except I used a Dremel to etch stripes onto double-sided copper clad board.
http://www.societyofrobots.com/robotforum/index.php?topic=2633.0