Forum >The Bluetooth V-3 does not work with DF Robotshop Rover
The Bluetooth V-3 does not work with DF Robotshop Rover

Hi,
I would like to ask how to set up bluetooth connection between the robot tank and PC. I have uploaded the following code to the arduino board but no response is received. The rover cannot have continuous movement but stops and stuck there. It is fine connecting with USB serial and the rover can move as I input a command. I tried to amend the code like this( the full program is in the enclosed file) to check.
case 'w'://Move Forward
forward (leftspeed,rightspeed);
Serial.println("F"); // when 'w"is press it will return w
delay(1000); // Delay
The result (enclosed in the Result.jpg) shows that it can reply with F. But the rover doesn't move. It must have a problem there. Could you suggest a method to test what problems are?
Also, when rover replies "F", it also replies with "y", which I think it is the main problem? Can I reset the Arduino board? I just have observed that before 'y" exists in the hyperterminal window, when I press the "w", the L light near the R4 does not on. But after "y" exists, the L light will on whenever I press the "w".
To give you more information, I am using Putty rather than the hyperterminal because Windows Vista doesn't have this. Please help me if I have get wrong with something or not. Thanks!
I would like to ask how to set up bluetooth connection between the robot tank and PC. I have uploaded the following code to the arduino board but no response is received. The rover cannot have continuous movement but stops and stuck there. It is fine connecting with USB serial and the rover can move as I input a command. I tried to amend the code like this( the full program is in the enclosed file) to check.
case 'w'://Move Forward
forward (leftspeed,rightspeed);
Serial.println("F"); // when 'w"is press it will return w
delay(1000); // Delay
The result (enclosed in the Result.jpg) shows that it can reply with F. But the rover doesn't move. It must have a problem there. Could you suggest a method to test what problems are?
Also, when rover replies "F", it also replies with "y", which I think it is the main problem? Can I reset the Arduino board? I just have observed that before 'y" exists in the hyperterminal window, when I press the "w", the L light near the R4 does not on. But after "y" exists, the L light will on whenever I press the "w".
To give you more information, I am using Putty rather than the hyperterminal because Windows Vista doesn't have this. Please help me if I have get wrong with something or not. Thanks!
2011-04-05 05:50:28 The difference of the above code is the pinout.
The bluetooth won't give any data back. It all depends on your code.
R2D2C3PO
The bluetooth won't give any data back. It all depends on your code.

2011-04-04 23:26:50 Hi,
I see no difference for this. But I want to ask a question if the bluetooth module lacks power, would it give a error signal "Y" back to the command line?
leo
I see no difference for this. But I want to ask a question if the bluetooth module lacks power, would it give a error signal "Y" back to the command line?

2011-04-02 20:03:07 Hi:
After going through your code, your motor drive code is not correct. The motor control pin should be like
Correct
[quote]int E1 = 5; //M1 Speed Control
int E2 = 6; //M2 Speed Control
int M1 = 4; //M1 Direction Control
int M2 = 7; //M1 Direction Control
[/quote]
Yours are
Wrong!
[quote]int E1 = 6; //M1 Speed Control
int E2 = 5; //M2 Speed Control
int M1 = 8; //M1 Direction Control
int M2 = 7; //M2 Direction Control[/quote]
Modify that bit to see if it works.
R2D2C3PO
After going through your code, your motor drive code is not correct. The motor control pin should be like
Correct
[quote]int E1 = 5; //M1 Speed Control
int E2 = 6; //M2 Speed Control
int M1 = 4; //M1 Direction Control
int M2 = 7; //M1 Direction Control
[/quote]
Yours are
Wrong!
[quote]int E1 = 6; //M1 Speed Control
int E2 = 5; //M2 Speed Control
int M1 = 8; //M1 Direction Control
int M2 = 7; //M2 Direction Control[/quote]
Modify that bit to see if it works.

2011-03-26 19:22:58 Could you please post the whole code which uploaded to Arduino?
If you can receive the return char which means the communication is working properly.
Please let us have the code to find the problem.
R2D2C3PO
If you can receive the return char which means the communication is working properly.
Please let us have the code to find the problem.
