Go Down

Topic: Arduino Nes controller, Please Help! (Read 7 times) previous topic - next topic

Nick Gammon

How have you wired it up? A very clear photo would help answer that.

Nick Gammon

What happens if you press buttons on the controller, or move things? Getting zero seems to say to me nothing is pressed.

Craftee


What happens if you press buttons on the controller, or move things? Getting zero seems to say to me nothing is pressed.


even if i press something i still get nothing. just "0"

Nick Gammon

I honestly can't tell from that if you followed the instructable or not. Let's hope.

Craftee


I honestly can't tell from that if you followed the instructable or not. Let's hope.


what do you mean?.

Nick Gammon

The pictures have stopped displaying. I suggest you upload them as an attachment. Click on "Additional Options" below the post to do so.

Craftee


The pictures have stopped displaying. I suggest you upload them as an attachment. Click on "Additional Options" below the post to do so.

Craftee

i cleaned it up a bit, it should be easier to see

Nick Gammon

Well judging by this that I found after Googling you may not have the wires right:



You have Gnd (brown) going to pin 4.

Nick Gammon

Although this says differently:



Quote
Now that you understand the pins on the Nintendo controller, hook up your jumper wires by using arrow's colors from the photo above. (Note: The pins are fairly deep, be sure that your wires are deep enough and snug to insure a strong connection)
As for the other ends of the wires, place the RED wire from +5V on the Nintendo controller to 5V on the Arduino. Place the BLACK wire from GROUND on the NES controller to GROUND on the Arduino. Pretty straight forward.
Place the ORANGE wire from STROBE on the NES controller to Digital Pin 2 on the Arduino.
Place the WHITE wire from CLOCK on the NES controller to Digital Pin 3 on the Arduino.
Place the YELLOW wire from DATA on the NES controller to Digital Pin 4 on the Arduino.
NES Wired

Nick Gammon

All I am saying is, try to be absolutely certain you have the wiring right.

Nick Gammon

Do you remember which colour went into which pin on the plug? Or do you have another one to compare to?

Craftee

#42
Feb 01, 2013, 10:14 pm Last Edit: Feb 01, 2013, 10:25 pm by Craftee Reason: 1
i feel stupid, i accidently switched the yellow and brown, its working now, but when i run processing and open up notepad, i get nothing


Nick Gammon

Glad that's working.

I'm no Processing expert, someone else will have to help you with that part.

Nick Gammon

By the way, on the Leonardo, you need to wait for Serial to become available:

Code: [Select]

void setup()
  {
  Serial.begin(9600);
  while (! Serial ) { }  // <------- add this



Go Up