Go Down

Topic: GameCube Controller + Arduino (My First Project) (Read 2363 times) previous topic - next topic

hunter2379

HI! I'm new here and new to arduino and circuits overall. My first project is to interface the arduino with a gamecube controller.

I have found gamecube pinouts on google and have striped the gamecube controller wires. Then I soldered them to jumpers so I can connect everything easier. My current problem is that the arduino returns only 0's.

Current Pinout:
Yellow             5V power supply (used by rumble motor).
Red                   DATA line: bi-directional data to/from console, pull-up to 3.43V
Green & White   Ground.
Blue    1            3.3V logic supply

The red cable is connected to the digital pin 2 on the arduino.


This is my current code:

Code: [Select]
const int dataPin =  2;

void setup() {
  // put your setup code here, to run once:
pinMode(dataPin, INPUT);
Serial.begin(9600);
}

void loop() {
  // put your main code here, to run repeatedly:
  int sensorValue = digitalRead(dataPin);
  Serial.println(sensorValue);
}



As I said, I only see 0's in the serial monitor. Any help is appreciated. Thank you!

PaulS

Quote
The red cable is connected to the digital pin 2 on the arduino.

What else is connected to the Arduino?

hunter2379

Yellow             5V power supply (used by rumble motor).
Red                   DATA line: bi-directional data to/from console, pull-up to 3.43V
Green & White   Ground.
Blue    1            3.3V logic supply

Thats it. whats the pull-up to 3.43v anyways?

PaulS

Quote
Yellow             5V power supply (used by rumble motor).

Where is this connected? Why is this connected?

Quote
Blue    1            3.3V logic supply

Where is this connected?


hunter2379

Yellow is connected to the 5v on the arduino.
Blue is connected to the 3.3v on the arduino.

PaulS

Quote
Yellow is connected to the 5v on the arduino.
Blue is connected to the 3.3v on the arduino.

2 out of 3 ain't bad. Sounds like a Meatloaf song.


uk350


whats the pull-up to 3.43v anyways?

You maybe get only 0 if you havent pull-up resistor to keep dataline high state.
Connect resistor between red and blue wire. value for resistor can be 10 kohm or something like that.

hunter2379


You maybe get only 0 if you havent pull-up resistor to keep dataline high state.
Connect resistor between red and blue wire. value for resistor can be 10 kohm or something like that.
[/quote]

What I just tried was red(Data) to bread board row 1.
blue(3.3v) to bread board row 2.
Then jumperA on row 1 to pin 2. So Red>bread board>pin2
Then resistor from row 1 to row 2. So the resistor is linking data row with 3.3v from controller.

Is this correct????


hunter2379

Ok glad it's correct. My program still shows only 0's though. Someone had said that I needed to slow down the input. If this is correct would anyone show me how?

Go Up