arduino bt error upload

need help
error upload
avrdude: AVR device not responding
avrdude: initialization failed, rc=-1
avrdude: Yikes! Invalid device signature.
avrdude: Expected signature for ATMEGA168 is 1E 94 06
avrdude: AVR device not responding
***failed;
avrdude: verification error, first mismatch at byte 0x0000
0x00 != 0x07
avrdude: verification error; content mismatch

example:source code

// ArduinoBT with S60 Mobile Phone
// (cleft)Erich Berger 2007
int i = 0; //counter
int LED = 13; // pin for LED
int RESET = 7; //reset pin for bluetooth
int val = 0; // serial port data
int track[61];

void ledblink() {
digitalWrite(LED, HIGH);
delay(100);
digitalWrite(LED, LOW);
delay(100);
}

void ledblink1() {
digitalWrite(LED, HIGH);
delay(500);
digitalWrite(LED, LOW);
delay(500);
}

void init_track() {
for (i=0; i<=60; i++) {
track = i;

  • } *
    *} *
    void reset_bt(){
  • // Reset the bluetooth interface*
  • digitalWrite(RESET, HIGH);*
  • delay(10);*
  • digitalWrite(RESET, LOW);*
  • delay(2000);*
    }
    *void config_bt(){ *
  • Serial.println(“SET BT PAGEMODE 3 2000 1”);*
  • Serial.println(“SET BT NAME BT_Arduino”);*
  • Serial.println(“SET BT ROLE 0 f 7d00”);*
  • Serial.println(“SET CONTROL ECHO 0”);*
    _ Serial.println(“SET BT AUTH * 12345”);_
  • Serial.println(“SET CONTROL ESCAPE - 00 1”);*
    *} *
    void setup() {
  • reset_bt();*
  • config_bt();*
  • pinMode(LED,OUTPUT); *
  • pinMode(RESET,OUTPUT); *
  • init_track();*
  • Serial.begin(115200);*
  • ledblink(); *
    }
    void loop () {
  • val = Serial.read();*
  • if (val != -1) {*
  • if (val == 49) {*
  • ledblink1();*
  • for (i=0; i<=60; i++) {*
  • Serial.print(i, BYTE);*
  • delay(10);*
  • }*
  • }*
  • }*
    }
  1. Use the # key when posting
  2. Ask a sensible question
  3. Check you have selected the correct serial port and board type from the menu.
  4. Remember that the code you are trying to down load is irrelevant if it won’t download.