Fuse Beads NES Controller

 by Lalya
Featured

Step 3: Electronics

DSCN2829.jpg
DSCN2830.jpg
DSCN2837.jpg
DSCN2844.jpg
DSCN2840.jpg
DSCN2828.jpg
Next step, the electronics: Building the circuit, programming it and fitting it into the controller's casing.

I placed a roll of transparent tape next to the Arduino in order to allow for the front panel to sustain pressure from the push buttons, as the casing has a certain depth to accomodate for the Arduino and the plastic casing is rather fragile in comparison to wood, cardboard or other types of plastic packaging. But anything with the right size and robustness goes.

Before soldering the buttons, make sure they are positioned in such a way that they will properly fit into the empty spaces on the front panel.

For each push-button, one side of the switch needs to be connected to the ground and the other one to one of Arduino's digital pins (here: digital pins 3, 5 and 8 for the cross button and the red ones, in that order - see code). No need for resistorsm, as floating values will be forced to "high" in the programming code.

Some isolating material might be need to separate the Arduino from the back of the circuit.

In terms of programming the micro-controller, it is assumed here that you are already familiar with Arduino and have the programming environment installed on your computer. If not, all you need to know is gathered on the Arduino resource page www.arduino.cc.

The code I used is the following:

int CrossButton = 3;
int RedButtonL = 5;
int RedButtonR = 8;
int val1 = 0;
int val2 = 0;
int val3 = 0;

void setup() {
pinMode(CrossButton, INPUT);
pinMode(RedButtonL, INPUT);
pinMode(RedButtonR, INPUT);
digitalWrite(CrossButton, HIGH);
digitalWrite(RedButtonL, HIGH);
digitalWrite(RedButtonR, HIGH);
Serial.begin(9600);
}

void loop(){
val1 = digitalRead(CrossButton);
val2 = digitalRead(RedButtonL);
val3 = digitalRead(RedButtonR);
Serial.print(val1, BIN);
Serial.print(val2, BIN);
Serial.print(val3, BIN);
Serial.println(",");
delay(10); // pause for 10 milliseconds
}
 
Remove these adsRemove these ads by Signing Up
loserpoo says: Dec 26, 2009. 4:25 PM
i bought a lot fuse "perler" beads today

Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!