Hello comrades,
I am using Arduino Uno and i have a problem with Bluetooth HC-05 FC-114. After enabling AT mode (the LED is blinking every two seconds) when i use the use the serial monitor to send the AT command it doesn't response.
I have tried a lot of sets of codes and solutions found in the web but none of them work.
Specifically i have tried the following solutions followed with their codes bellow:
- BT TX to software serial 10-BT RX to software serial 11 or the opossite
- 5V or 3.3 V to BT VCC, GND to BT GND
Then i connected the arduino to my pc, i loaded the code with no errors, i removed BT VCC, i was pressing the button on the BT module and i connected the VCC back again and i stopped pressing the button until the LED blinked for every two seconds. In the end, i opened the serial monitor with the choice for both NL & CR enabled in 9600 or 38400 bauds.
I have also tried using the hardware serials with the empty sketch.
As for the code i have tried some others like the one bellow:
#include <SoftwareSerial.h>
SoftwareSerial BTSerial(10, 11); // RX | TX
void setup()
{
Serial.begin(38400);
Serial.println("Enter AT commands:");
BTSerial.begin(38400); // HC-05 default speed in AT command more
}
void loop()
{
// Keep reading from HC-05 and send to Arduino Serial Monitor
if (BTSerial.available())
Serial.write(BTSerial.read());
//Serial.print("Reading from HC-05...");
// Keep reading from Arduino Serial Monitor and send to HC-05
if (Serial.available())
BTSerial.write(Serial.read());
//Serial.println("Reading from Serial Monitor...");
delay(1000);
}
I have also tried the method with uart micro controller without an outcome, and three different terminals (putty, hyper terminal, tera terminal)
I have attached some photos of my Bluetooth module.