infusion
Published © MIT

Using a Wii Nunchuk with Arduino

How to hack a Wii Nunchuk to make it work with Arduino.

EasyFull instructions provided30 minutes24,704
Using a Wii Nunchuk with Arduino

Things used in this project

Hardware components

Nintendo Nunchuk
×1
SparkFun Level Shifter
×1
Arduino UNO & Genuino UNO
Arduino UNO & Genuino UNO
×1

Story

Read more

Custom parts and enclosures

Fritzing

Code

Code snippet #1

Plain text
#include <Wire.h>
#include "nunchuk.h"

void setup() {

    Serial.begin(9600);
    Wire.begin();
    // nunchuk_init_power(); // A1 and A2 is power supply
    nunchuk_init();
}

void loop() {

    if (nunchuk_read()) {
        // Work with nunchuk_data
        nunchuk_print();
    }
    delay(10);
}

Github

https://github.com/infusion/Fritzing/tree/master/Nunchuk

Credits

infusion

infusion

2 projects • 7 followers
Math, Robotics and Machine Intelligence Scientist

Comments