I’ve tried everything… trying basic codes, other codes for my project, I even tried adjusting all the wirings to make sure there’s not faulty wiring but this still comes up. PLS HELP ME, MY PROJECT IS DUE NEXT WEEK.
This is the code I’ve been using right now
#include <SoftwareSerial.h>
SoftwareSerial DebugSerial(10, 11); // RX, TX
#define BLYNK_PRINT DebugSerial
#include <BlynkSimpleSerialBLE.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "YourAuthToken";
void setup()
{
// Debug console
DebugSerial.begin(9600);
DebugSerial.println("Waiting for connections...");
// Blynk will work through Serial
// 9600 is for HC-06. For HC-05 default speed is 38400
// Do not read or write this serial manually in your sketch
Serial.begin(9600);
Blynk.begin(Serial, auth);
}
void loop()
{
Blynk.run();
}
I’ve had bluetooth tx connected to arduino rx and vice versa.
If it has never connected to the App, then it is wiring, power or settings between the BT module and the MCU. This can also be tested with other Apps that use BT.
if it sometimes connects, then well… welcome to beta
PS I am not quite sure of it’s necessity or purpose… but try adding this to your sketch
Gunner… this time it changed… not timing out but stuck at “Connecting” I tried rewiring everything again… I even removed other components and just tried using bluetooth module and arduino alone
Well there is not much more I can do from here… I am not fond of Blynk’s BT/BLE and find WiFi much more stable.
If your connections are good, and tested with other Apps, then keep searching this forum for other BT/BLE topics and see what suggestions they had.
Perhaps double check your AUTH code (surly you are not running the sketch with the sample above )… even refresh it (in the App) and use the new one just to be sure.