Robert Eisele
Published © MIT

Using a Wii Nunchuk with Arduino

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

BeginnerFull instructions provided30 minutes68,655
Using a Wii Nunchuk with Arduino

Things used in this project

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

Robert Eisele

Robert Eisele

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

Comments