Hello guys, im extremely new to Arduino and i need to make a robotic arm with a wii nunchuck that controls 6 servo's for my school project.
But i cant get my nunchuck to work with the servo's. I can read out the data but even some "working" codes from other peoples projects dont seem to work either.
i tried being a smartass and using the servo Knob code but it doesn't work like this unsurprisingly
Here's the code:
Any help is apreciated, thanks in advance
#include <Wire.h>
#include <ArduinoNunchuk.h>
#define BAUDRATE 19200
ArduinoNunchuk nunchuk = ArduinoNunchuk();
// SCL is connected to A5
// SDA is connected to A4
// +3.3V connected to +
// GND connected to -
void setup()
{
 Serial.begin(BAUDRATE);
 nunchuk.init();
}
void loop()
{
 nunchuk.update();
 Serial.print("X: ");
 Serial.print(nunchuk.analogX, DEC);
 Serial.print(' ');
 Serial.print("Y: ");Â
 Serial.print(nunchuk.analogY, DEC);
 Serial.print(' ');
 Serial.print("Acc X: ");
 Serial.print(nunchuk.accelX, DEC);
 Serial.print(' ');
 Serial.print("Acc Y: ");
 Serial.print(nunchuk.accelY, DEC);
 Serial.print(' ');
 Serial.print("Acc Z: ");
 Serial.print(nunchuk.accelZ, DEC);
 Serial.print(' ');
 Serial.print("Z btn: ");
 Serial.print(nunchuk.zButton, DEC);
 Serial.print(' ');
 Serial.print("C btn: ");
 Serial.println(nunchuk.cButton, DEC);
}