BLYNK
HOME       📲 GETTING STARTED       📗 DOCS       ❓HELP CENTER       👉 SKETCH BUILDER

Bluetooth connection not working on Arduino

arduino

#1

I am trying to connect to an Arduino Board with HC-05 Bluetooth module, to do so I have used library examples from Arduino IDE.

I have try with Arduino Uno and Arduino Nano boards but in both configurations on the debug console appears again and again “Connecting…”
The fact is that Bluetooth connection is established because HC-05 led confirm that (stop fast blinking) and I can switch Arduino led on and off from Blynk Android app, but Arduino can not send data to virtual pin.

I am trying using last beta app as some of you suggested on others post and I am also using #define BLYNK_USE_DIRECT_CONNECT and no changes.

I have try older library releases and older android app, just for testing and with Blynk_Release_v0.3.10 Arduino Library it connects and fully works for a short time after starting the android app, and then start sending “Connecting…” and stop working again.

#define BLYNK_USE_DIRECT_CONNECT
#include <SoftwareSerial.h>
SoftwareSerial SwSerial(2, 3); // RX, TX

#define BLYNK_PRINT Serial
#include <BlynkSimpleSerialBLE.h>

char auth[] = "570691fa5cb245ff80135acbfdc53a13";

// Function called every time Blynk app writes values to the Virtual Pin V1
BLYNK_WRITE(V1)
{
  // This command writes Arduino's uptime in seconds to Virtual Pin (5)
  Blynk.virtualWrite(V5, millis() / 1000);
  Serial.println("Sending new data.");
}

void setup()
{
  SwSerial.begin(9600);
  Serial.begin(115200);
  Serial.println("Waiting for connections...");
  Blynk.begin(SwSerial, auth);
  Serial.println("Init done");
}

void loop()
{
  Blynk.run();
}

48


#2

There are lots of recent topics about BT connection issues… check out this link…

https://community.blynk.cc/search?q=bluetooth%20not%20connecting%20order%3Alatest

As you will read, you will probably need to try the beta App to see if that makes any difference.


#3

Hi Gunner, thanks for your fast answer.

I am using last beta version of the app and I have try rest of other recent topics about BT connection issues recommendations yet. It is the first y have done.

I have seen that today has been released a new beta version, when it become active on play store I will update and test it.

Thanks you very much,