Interesting Tech Projects
Reading a Wii Nunchuck Using I2C
There are plenty of descriptions on how to read the joystick, accelerometer and button values from a Wii Nunchuck using I2C but I haven’t seen any waveforms. So here are mine. Click on the images to see them in full size.
The I2C bus was running at about 100kHz. The time between the handshake and the first data read sequence is about 1.8ms and the time between each subsequent data read sequence is also about 1.8ms, although I feel that these times can probably be reduced.
Unlike many code examples I have seen there are no delays between each write operation in the handshake or between the write and read operations of the data read sequence.
First up is the handshake to send “unencrypted” data:
Next is the data read sequence containing a six byte chuck of data with the values we need:
Hopefully these will be useful to people developing application with a Wii Nunchuck.
Print article | This entry was posted by Andy on August 20, 2011 at 4:20 pm, and is filed under Software Engineering. Follow any responses to this post through RSS 2.0. Both comments and pings are currently closed. |
Comments are closed.