Arduino Nano with HC-05
Android 5.1.1
Blynk Server
Blynk Library 5.0
My Code:
#define BLYNK_USE_DIRECT_CONNECT
// You could use a spare Hardware Serial on boards that have it (like Mega)
#include <SoftwareSerial.h>
SoftwareSerial DebugSerial(2, 3); // 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[] = "************";
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(38400);
Blynk.begin(Serial, auth);
}
void loop()
{
Blynk.run();
}
I am just using a switch widget to toggle onboard LED. But it’s not working…! I connected the HC05s tx rx vice versa to the Nano’s Hardware Serial Pins. The HC-05s Onboard LED blinks 1 time per maybe a second before connecting after connecting it blinks twice per 5 seconds…I tried to put it in AT Command Mode but I wasn’t really able to…So what do I do…?