Wasn't sure which section to post this in so I posted it here and communications.
Hello,
I am quite new to arduino and am trying to interface the wii nunchuk with the arduino.
This is the library I am currently using as well as the code.
#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);
}
When I open the serial monitor, I cannot seem to get a change in the input when I move the analog stick or press the c or z button.
I cut the wii nunchuk wire which exposed 4 wires including yellow, red, white and green. I know from the tutorial online that
yellow = SCL = A5 pin
green = SDA = A4 pin
red = 3.3v = 3v3 pin
white = ground = ground pin
Voltage across each pin seems to a constant 3.3v
The only thing different from the tutorial that I did was instead of using an adapater like the man in the video I cut the wires and directly connected the to the arduino. I doubt this would make much of a difference.
Does any one have an idea how to solve this?
Tutorial used: Arduino Wii Nunchuck Tutorial - YouTube
Attached below is my really crappy solder job.
Thank You