Wii Nunchuk
From bildr
Overview
The Nunchuk (model number RVL-004) is a corded controller peripheral for the Nintendo Wii Remote. The device input consists of an analog stick, a trigger button labeled "Z", a button labeled "C", and a three axis accelerometer provided by STMicroelectronics (part# LIS3L02AL)[1]. Functionally similar clones are also available from various third party providers.
The Nunchuk measurements are 113 mm (4.45 in) x 38 mm (1.5 in) x 37 mm (1.48 in).
The Nunchuk communicates via I²C and can be used as an input in compatible devices such as Arduino.
Technical Information
The Nunchuk uses a proprietary connector. The cable itself contains 4 wires:
Information based on Nunchuk for Adruino Tutorial from WindMeadow Labs. Information verified through experimentation.[2]
red - 3.3+V power white - ground green - data yellow - clock
The Arduino uses "fast" I²C. To communicate,a device must send a handshake to the device:
0x40 - Begin connection 0x00 - request data
Data is requested each time the device is polled with "0x00". Data is returned with 6 byte chunks.
| Byte | Description | Values of sample Nunchuk |
| 1 | X-Axis Value of the Analog Stick | Min(Full Left):0x1E / Medium(Center):0x7E / Max(Full Right):0xE1 |
| 2 | Y-Axis Value of the Analog Stick | Min(Full Down):0x1D / Medium(Center):0x7B / Max(Full Right):0xDF |
| 3 | Accelerometer X-Axis Value | Min(at 1G):0x48 / Medium(at 1G):0x7D / Max(at 1G):0xB0 |
| 4 | Accelerometer Y-Axis Value | Min(at 1G):0x46 / Medium(at 1G):0x7A / Max(at 1G):0xAF |
| 5 | Accelerometer Z-Axis Value | Min(at 1G):0x4A / Medium(at 1G):0x7E / Max(at 1G):0xB1 |
| 6 | Button state | Bit 0: "Z"-Button (0 = pressed, 1 = released) / Bit 1: "C" button (0 = pressed, 1 = released) / Bits 2-3: X acceleration LSB / Bits 4-5: Y acceleration LSB / Bits 6-7: Z acceleration LSB |
External links
- TECHinsights.
- [http://www.windmeadow.com/node/42 WindMeadow Labs Wii Nunchuk for Arduino Tutorial.
This page is an Article on bildr. Articles are pages that define or explain a concept, method, or generic item.