AREXX AAR ROBOT - BLUETOOTH HC-06 NEED HELP PLS

Hallo,
We need help with our AREXX Robot...
We have got HC-06 Bluetooth- Kit, but we dont know how to connect the pins to the Robot....
We already found a program.....
We were successful to connect the HC-06 to our Android mobile, but it didnt move....
CAN you pls help us with our problem...?????
We are sending you the program and the pics from our Robot....

Bluetooth Program:

/*
Arduino-Roboter AAR-04 bluetooth
*/

#include <SoftwareSerial.h>
SoftwareSerial mySerial(8, 4); // RX, TX
char incomingByte;
void setup()
{
pinMode(10, OUTPUT);
//pin 9 left backward
pinMode(9, OUTPUT);
//pin 5 right foreward
pinMode(5, OUTPUT);
//pin 6 right backward
pinMode(6, OUTPUT);
//Then set the start value of the signals to zero:
analogWrite(9, 0);
analogWrite(10, 0);
analogWrite(5, 0);
analogWrite(6, 0);
// Open serial communications and wait for port to open:
Serial.begin(9600);
{
; // wait for serial port to connect. Needed for Leonardo only
}
Serial.println("hello USB");
// set the data rate for the SoftwareSerial port
mySerial.begin(9600);
mySerial.println("Hello, BT");
}
void loop() // run over and over
{
if (mySerial.available())
Serial.write(mySerial.read());
if (Serial.available())
mySerial.write(Serial.read());
digitalWrite(6,LOW); digitalWrite(5,LOW); //stop motors
digitalWrite(9,LOW); digitalWrite(10,LOW); //stop motors
if (mySerial.available() > 0) { // if received UART data
incomingByte = mySerial.read(); // raed byte
if(incomingByte == '8') {
digitalWrite(10,LOW); analogWrite(9,200); //##set pin 10 to ground!## set speed left motor 200 backward
digitalWrite(6,LOW); analogWrite(5,200); //##set pin 5 to ground!## set speed right motor 200 backward
delay(500); }
if(incomingByte == '4') {
digitalWrite(9,LOW); analogWrite(10,200); //##set pin 9 to ground!## set speed left motor 200 foreward
digitalWrite(6,LOW); digitalWrite(5,LOW); //make a left turn
delay(500); }
if(incomingByte == '2') {
digitalWrite(9,LOW); analogWrite(10,200); //##set pin 9 to ground!## set speed left motor 200 foreward
digitalWrite(5,LOW); analogWrite(6,200); //##set pin 6 to ground!## set speed right motor 200 foreward
delay(500); }
if(incomingByte == '6') {
digitalWrite(5,LOW); analogWrite(6,200); //##set pin 5 to ground!## set speed right motor 200 backward
digitalWrite(9,LOW); digitalWrite(10,LOW); //make a right turn
delay(500); }
if(incomingByte == '5') {
digitalWrite(6,LOW); digitalWrite(5,LOW); //stop motors
digitalWrite(9,LOW); digitalWrite(10,LOW); //stop motors
}
}
}

CAN you pls help us with our problem...?????

You can't be bothered to read the how to post on this forum stickies.
You can't be bothered to limit yourself to ONE post per problem.

So, why should we be bothered to try to help you?

Put the stupid bluetooth device in a drawer. Lock it. Get the robot to move without any external input. Then, you can think about using bluetooth to send it data.

As Paul suggests I would start by getting the robot to move under control of the program. To help this I would create functions to move the robot forward, backward, left, right and stop and call them in sequence from setup() to ensure that each one does what is required. Then you can move onto control via bluetoooth and possibly passing a speed parameter to each function.

SRY!!!!!
I already did a programm ....it also did prgoram that can follow a black line...something like that...

I can connect my robot to my mobile but ..it didnt work...

and SRY for my BAD english ..

I already did a programm ....it also did prgoram that can follow a black line...something like that...

OK then, let's turn the advice on its head. Take out all of the robot control stuff from your program just leaving the Bluetooth stuff. What do you see on the Serial monitor when/if data is received via Bluetooth ?

i did a programm and i also posted it in my early reply..but its not working

Shubham94:
i did a programm and i also posted it in my early reply..but its not working

Ignoring for the moment the fact that the program you posted has all the motor control stuff in it, what do you see when you print the bytes received from Bluetooth ?

In your program you have

  if (mySerial.available())
    Serial.write(mySerial.read());  <<<<Why are you throwing away this incoming byte ?
  if (Serial.available())
    mySerial.write(Serial.read());
  digitalWrite(6,LOW); 
  digitalWrite(5,LOW); //stop motors
  digitalWrite(9,LOW); 
  digitalWrite(10,LOW); //stop motors  
  if (mySerial.available() > 0) 
  {          // if received UART data
    incomingByte = mySerial.read();        // raed byte     <<<<Assuming that more than one byte was available above you are now reading the second byte from Bluetooth

What is the format and type of the data being sent via Bluetooth ?

I got this program from my friend that had to do this work ..i only do the hardware stuff and i dont know so much about arduino...and software but now its urgent ....i cannnot connect my friend he is not avalable for 2 weeks....so sry i cant answer why he did this..but he also send me website where he used this program and it worked for him...
link ...Test Arexx Arduino Robot AAR-04 · Przemek