Hi all,
I'm trying to make a communication between my laptop with my arduino in bluetooth but i can't make it work, need yur help ... .
The components i'm using are :
- An Arduino UNO
- A bluetooth compoment connected to my Arduino (ZS-040)
- A bluetooth dondle on my laptop
Below the code i'm using :
#include <SoftwareSerial.h>
SoftwareSerial BTSerial(10, 11); // RX | TX
void setup() {
 Serial.begin(9600);
 Serial.println("Enter AT commands:");
 // HC-06 default serial speed is 9600
 BTSerial.begin(9600);
}
void loop() {
 if (BTSerial.available()) {
  Serial.write(BTSerial.read());
 }
 if (Serial.available()) {
  BTSerial.write(Serial.read());
 }
}
When i connect my arduino board to my bluetooth module like i should do (VCC <=> VCC, GND <=> GND, RX <=> 10, TX <=> 11 then AT commands dont work...
If i switch RX and TX (RX <=> 11, TX <=> 10) then AT commands works ('OK' answer to 'AT' request but I cannot pair with the bluetooth module from my laptop. Please find in attachment a capture of the board connection i do.
Due to this very "weird" behavior i first thought that my bluetooth module or my arduino board were flawed so i have bought new ones but i still have the same problem !!
In attachment also a capture of the two bluetooth components i have.
Do you have an idea of what happens here, i'm lost ....
Thanks,
Space.