Bluetooth Program error

I have a arduino uno rev 3 connected to my rc car, i wanted to add a bluetooth module HC-06 to the car so that i can control it with my phone, when I uploaded this code

int forward = 12;   // Pin 12 - Forward
int reverse = 11;   // Pin 11 - Reverse
int left = 10;      // Pin 10 - Left
int right = 9;      // Pin 9  - Right
int turbo = 8;      // Pin 8  - Turbo
int short_lights = 7;   // Pin 7  - Short Lights
int long_lights = 6;    // Pin 6  - Long Lights
int back_lights = 5;    // Pin 5  - Back Lights
int reverse_lights = 4; // Pin 4  - Reverse Light
char val;  // Variable to receive data from the serial port

void setup() {

  // initialize the digital pins as output
  pinMode(forward, OUTPUT);
  pinMode(reverse, OUTPUT);
  pinMode(left, OUTPUT);
  pinMode(right, OUTPUT);
  pinMode(turbo, OUTPUT);
  pinMode(short_lights, OUTPUT);
  pinMode(long_lights, OUTPUT);
  pinMode(back_lights, OUTPUT);
  pinMode(reverse_lights, OUTPUT);

  Serial.begin(9600);  // Start serial communication at 9600bps
}


// Fordward action
void go_forward() {
  digitalWrite(forward, HIGH);
  digitalWrite(turbo, LOW);
  digitalWrite(reverse, LOW);
}

// Stop Forward action
void stop_go_forward() {
  digitalWrite(forward, LOW);
}

// Reverse action
void go_reverse() {
  digitalWrite(reverse, HIGH);
  digitalWrite(forward, LOW);
  digitalWrite(turbo, LOW);
  digitalWrite(reverse_lights, HIGH);
}

// Stop Reverse action
void stop_go_reverse() {
  digitalWrite(reverse, LOW);
  digitalWrite(reverse_lights, LOW);
}

// Turbo action
void go_turbo() {
  digitalWrite(turbo, HIGH);
  digitalWrite(forward, LOW);
  digitalWrite(reverse, LOW);
}

// Stop Turbo action
void stop_go_turbo() {
  digitalWrite(turbo, LOW);
}

// Left action
void go_left() {
  digitalWrite(left, HIGH);
  digitalWrite(right, LOW);
}

// Right action
void go_right() {
  digitalWrite(right, HIGH);
  digitalWrite(left, LOW);
}

// Stop turn action
void stop_turn() {
  digitalWrite(right, LOW);
  digitalWrite(left, LOW);
}

// Stop car
void stop_car() {
  digitalWrite(forward, LOW);
  digitalWrite(reverse, LOW);
  digitalWrite(turbo, LOW);
  digitalWrite(right, LOW);
  digitalWrite(left, LOW);
  digitalWrite(reverse_lights, LOW);
}

// Short Lights ON
void lights_on() {
  digitalWrite(short_lights, HIGH);
  digitalWrite(back_lights, HIGH);
}

// Short Lights OFF
void lights_off() {
  digitalWrite(short_lights, LOW);
  digitalWrite(back_lights, LOW);
}

// Long Lights ON
void long_lights_on() {
  digitalWrite(long_lights, HIGH);
}

// Long Lights OFF
void long_lights_off() {
  digitalWrite(long_lights, LOW);
}

// Reverse Lights ON
void back_lights_on() {
  digitalWrite(reverse_lights, HIGH);
}

// Reverse Lights OFF
void back_lights_off() {
  digitalWrite(reverse_lights, LOW);
}
  
// Read serial port and perform command
void performCommand() {
  if (Serial.available()) {
    val = Serial.read();
  }
    if (val == 'f') { // Forward
      go_forward();
    } else if (val == 'z') { // Stop Forward
      stop_go_forward();
    } else if (val == 'b') { // Backward
      go_reverse();
    } else if (val == 'y') { // Stop Backward
      stop_go_reverse();
    } else if (val == 't') { // Turbo
      go_turbo();
    } else if (val == 'x') { // Stop Turbo
      stop_go_turbo();
    } else if (val == 'l') { // Right
      go_right();
    } else if (val == 'r') { // Left
      go_left();
    } else if (val == 'v') { // Stop Turn
      stop_turn();
    } else if (val == 's') { // Stop
      stop_car();
    } else if (val == 'a') { // Short Lights
      lights_on();
    } else if (val == 'c') { // Stop Short Lights
      lights_off();
    } else if (val == 'd') { // Long Lights
      long_lights_on();
    } else if (val == 'e') { // Stop Long Lights
      long_lights_off();
    }
  
}


void loop() {
  performCommand();
}

'

and I hooked the bluetooth to my phone, NOTHING HAPPENED, repeat nothing happened,

I have no idea what is wrong, if it is my program please tell me and fix it for me!!!!

I am very new to this stuff. thanks everyone

I will reply to this post showing the pictures of my bluetooth module and arduino rc car

https://docs.google.com/document/d/1isUwTBOLIjWghfpYP_A3YoXD_RJoD1JkLGi5oag_ZpA/edit

here are the photos

Please post images directly as attachments (select "> Additional Options..." under the editor window).

ok

do you know how to fix this??

by the way, I am using the Mobot BT rc car app for android or see this site,

www.mobot.es

The HC-06 modules are notoriously tricky to get working. It took me a good few hours to just get some basic communication.

Things to do:

  1. Confirm you actually have communication. Use a bluetooth terminal app (like BlueTerm) and create a loopback connection on the HC-06 (connect the TX and RX pins together) and check you get back what you send.

  2. Check that the Arduino is communicating with the HC-06. When not paired (flashing LED) send "AT" by itself from the Arduino (with no line endings) it should respond with OK - you'll have to arrange some way of detecting this and indicating it as you're using the serial port for the communication.