Go Down

Topic: HC-05 wont communicate after pairing, blinks twice every 5 seconds (Read 230 times) previous topic - next topic

wmiah3

I am able to pair the module but cant send or receive data with it how can I fix this?
The red led on the module blinks twice every5 seconds after being paired.
Here is my code:

#include <SoftwareSerial.h>
SoftwareSerial MyBlue(2, 3); // RX | TX
void setup() {   
  Serial.begin(9600);
  MyBlue.begin(9600);
}
void loop() {
  if (MyBlue.available()) {
    unsigned long flag = MyBlue.read(); 
    Serial.println(flag);
    MyBlue.write("recieved");
  }

Nick_Pyner

The red led on the module blinks twice every5 seconds after being paired.
This indicates successful connection between Android and Bluetooth, and that is all. It has nothing to do with connection between Bluetooth and Arduino, or your code.

You might find the following background notes useful.

https://www.dropbox.com/s/o70tl4iy4fdagwx/GUIDE_2BT.pdf?dl=0
https://www.dropbox.com/s/7kb6zbkflgf8o2p/BT_2_WAY.ino?dl=0

Go Up