Arduino and nunchuck seems, cant find good code

Hi All,

I am quite new to Arduino so I am probably looking in the wrong place for what I want.

I want to have a go using a nunchuck with my Arudino Mega.

I have found a few sites where users have shown the pin outs that they have used to connect the nunchuck to the Arduino, but when I run the code nothing happens, I don't even get any serial output never mind a servo to move.

I have found though in all the code I have found the command beginSerial(xxxx) has been used. This causes an error when compiled and I have changed to Serial.begin(xxxx), but I still cant get the nunchuck to work.

Am I doing something wrong, or is the code I am using with this beginSerial() not designed for the Arduino Mega?

Thanks

this one worked for me a few months ago - http://www.windmeadow.com/node/42

Thanks mate,

Think I have the connection sorted now, it seemd to be a short on one of my connections. The problem I have now is understanding the data that is being put out by the controller, it just seems to be random values.

Any clues what I need to do to interpret the X, Y and Z data in order to move a servo?

Thanks
Simon

Any clues what I need to do to interpret the X, Y and Z data in order to move a servo?

IN fact you can move 3 servo's with it one for each direction.

Have you read the turorials on - http://arduino.cc/en/Tutorial/Sweep