The Wii Nunchuk is equipped with an accelerometer, a joystick and two buttons, which makes it the perfect fit for robotic projects. I published a very simple to use library and a tutorial on how to work with the nunchuk in your own projects.

A detailled description on how to connect the nunchuk to an Arduino can be found here: http://www.xarg.org/2016/12/using-a-wii-nunchuk-with-arduino/