Hello fellows,
I plug the HC-05 module on Arduino Due, press the little button, start everything pluggin that on USB and the blinking pattern indicates that it is on AT Mode (Blinking at 1Hz rate). I then send Serial Monitor commands but I get no response!
It is not burned since it responds with the blinking pattern. I can see the HC-05 with my smartphone, I can connect to it using the default PIN "1234" and it changes the blinking pattern again. So I think it is working.
What am I doing wrong??
I've tried 1.8.2, 1.6.5, 1.5.2 ...
Serial1 on due is 18,19 pins.
HC-05 - Arduino Due
VCC - 5V
GND - GND
RX - 19
TX - 18
String command = "";
void setup() {
Serial.begin(38400);
Serial.println("Vai que é tua: ");
Serial1.begin(38400);
}
void loop() {
delay(250);
Serial1.println("AT");
if (Serial.available()) {
while (Serial.available()) {
command += (char)Serial.read();
}
delay(10);
Serial1.println(command);
}
command = "";
if (Serial1.available()) {
while (Serial1.available()) {
command += (char)Serial1.read();
}
delay(10);
Serial.println(command);
}
}