Gabriel Bianconi : ArduinoNunchuk
ArduinoNunchuk is an open-source Arduino library that interfaces the Wii Nunchuk.
For my first real project I wanted to use a Wii Nunchuk. However, Arduino 1.0 had just come out and most existing libraries were either outdated or too complex (though some have been updated by now). Knowing it would be a great learning experience, I set out to write my own library.
While writing it, I had two things in mind: it had to be simple and efficient. By using a better initialization method than existing solutions, my library became compatible with a few third-party controllers. I also made sure to implement all the data provided by the Nunchuk, thus increasing the precision of the accelerometer.
The library is very simple to use. First you instantiate it:
ArduinoNunchuk nunchuk = ArduinoNunchuk();
Then, you initialize it in
And lastly, you update the values in
The data from the Wii Nunchuk will be available in the following format: