Hello,
I was looking to make a bluetooth car with two Arduino Nanos and two HC05 modules.
So far i was able to get a respones in my serial monitor after switching the HC05 to AT mode but i just got xxxx and questionmarks... Below is the result of sending AT in the serial monitor at 9600 and 38400 Baud.
15:41:19.093 -> btSerial started at 38400
15:41:24.374 -> xxxxxxxxxx⸮⸮x⸮x⸮xx⸮x⸮
I have the code attached as well:
#include <SoftwareSerial.h>
SoftwareSerial BtSerial(0, 1); // RX | TX
void setup() {
Serial.begin(9600);
BtSerial.begin(38400);
Serial.println("btSerial started at 38400");
}
void loop() {
// Keep reading from Arduino Serial Monitor and send to HC-05
if (Serial.available()) {
BtSerial.write(Serial.read());
}
// Keep reading from HC-05 and send to Arduino Serial Monitor
if (BtSerial.available()) {
Serial.write(BtSerial.read());
}
}
/*
Slave Command:
AT
AT+RMAAD
AT+ROLE=0
AT+UART=38400,0,0
AT+ADDR
Master Commands:
AT
AT+RMAAD
AT+ROLE=1
AT+UART=38400,0,0
AT+CMODE=0
AT+BIND=98D3:61:F613EA (This should be your HC05 Slave address)
*/
Does anyone of you know why im not geting any OK back?