Posts

Showing posts with the label Wii

Arduino: Wii Nunchuck Full Functionality

Image
The Wii nunchuck is an attachment for the Nintendo Wii controller. It combines a two-axis joystick, a three-axis accelerometer, and two buttons into one package. Tod Kurt previously created a library for the nunchuck intended for use with his product, the  WiiChuck Adapter . Since this product has been discontinued at SparkFun, I will show you how to use a Wii nunchuck with Arduino without the use of an adapter. Materials: Wii Nunchuck:  https://amzn.to/2qWBpQM Arduino:  https://amzn.to/2DLjxR2 Jumper wires:  https://amzn.to/2Q7kiKc Step 1: Plug Into the Controller The Wii nunchuck has 6 pins, but we only need to use four of them. Plug some jumper wires directly into the corner pins of the nunchuck. Step 2: Connect to the Arduino The nunchuck pins are all plugged directly into pins A2 - A5 on the Arduino board. They go as follows: Top left to A5 Top right to A2 Bottom left to A3 Bottom right to A4 Step 3: Upload Code T...