Step 11Program ATMega chip w/Arduino and Extract
2. Using the IC extractor tool, slip both ends of the tool under either end of the chip. This can take a bit of fidgeting to wedge them under, but once they are, yank on it! The chip is often very secure in the IC socket, but you can't hurt it by pulling straight out after you have a secure hold on the chip.
3. I usually now replace the missing ATMega chip with the new chip ordered. Make sure it has the Arduino bootloader on it, though!
Here is the code in case you don't want to waste time downloading:
/*
S.O.S. morse code all LEDs!
Hello World for the Distressed Chip.
joe saavedra 2010
http://jos.ph
*/
int S = 1;
int O = 2;
void setup(){
for(int i=0; i<14; i++){
pinMode(i, OUTPUT);
}
}
void loop(){
flash(S);
flash(O);
flash(S);
delay(750);
}
void flash(int letter){
switch(letter){
case 1: //the letter 'S' !
dot();
dot();
dot();
break;
case 2: //the letter 'O' !
dash();
dash();
dash();
break;
}
delay(250); //break between each letter
}
void dot(){
for(int j=0; j<14; j++){
digitalWrite(j, HIGH);
}
delay(130); //length of dot
for(int j=0; j<14; j++){
digitalWrite(j, LOW);
}
delay(130); //space between dot
return;
}
void dash(){
for(int k=0; k<14; k++){
digitalWrite(k, HIGH);
}
delay(250); //length of dash
for(int k=0; k<14; k++){
digitalWrite(k, LOW);
}
delay(130); //space between dash
return;
}
SosAllPins_JS.pde988 bytes| « Previous Step | Download PDFView All Steps | Next Step » |




















































Thanks!!