This is my first time using hc-05 module and i tried a lot of diffrent codes, I found on the internet, but still can't solve this. I'm using Arduino Uno.
My connections are:
VCC -> 3.3V
GND -> GND
TXD -> RX(0)
RXD -> TX(1)
Module blinks properly (2 sec interval), now i'm using this code:
I selected both NL & CR, tried to change baud, but nothing happened. After sending 'AT', 'AT+NAME?' it returns nothing.
Thank you in advance for your help.
You need to connect the enable/key pin to 5V to go into AT mode.
So connect the enable/key pin to say pin 4, set pin 4 mode to output and digitalWrite pin 4 HIGH.
Do you have the voltage divider on the TX pin?
#include <SoftwareSerial.h>
SoftwareSerial mySerial(6, 5); // RX, TX
void setup()
{
Serial.begin(9600); // Set serial monitor to 9600
//mySerial.begin(9600); // For Data Mode
mySerial.begin(34800); // For AT mode
pinMode (7, OUTPUT); // Connect to HC-05 Enable/KEY pin
// digitalWrite (7, LOW); // Now in Data mode
digitalWrite (7, HIGH); // Now in AT mode
}
void loop()
{
mySerial.print ("AT"); // Send AT
delay (1);
if (mySerial.available() > 0) {
// read the incoming char:
char incomingByte = mySerial.read();
// print what was received (should be "OK")
Serial.print(incomingByte);
}
}
I'm trying to connect my HC-05. I tried to use Arduino Uno, but nothing worked. I decided to use USB-UART TTL with CoolTerm. My module is blinking every 2 sec (in AT mode), I tried different braudrates, but after sending 'AT' module retured nothing.
I really don't know what to do.
My connections are:
GND->GND
5V+->VCC
RXD->TXD
TXD->RXD
Thank you for your help.