HC 05 Bluetooth does not show in serial monitor

Good day,

I have been working on using 2 HC 05 Bluetooth modules as a master or slave.

After I uploaded an empty code, aka,

void setup()
{
}

void loop()
{
}

I turned on the serial monitor, set it at both NL & CR, 38400 baud rate. And I typed AT, there is no output on the serial monitor.

Please help. Attached is my serial monitor.

Appendix

Slave configuration
AT
AT+UART?
AT+ROLE?
AT+ADDR?

Master configuration
AT
AT+UART?
AT+ROLE=1
AT+CMODE=0
AT+BIND=

Regards,
Knight

serial monitor.JPG

knight100:
After I uploaded an empty code, aka,

In that case, I don't suppose you could expect anything more than what you got.
Check the Martyn Currey website.

This is the solution.

#include <SoftwareSerial.h>
SoftwareSerial BT (10,11);

void setup()
{
Serial.begin(38400);
BT.begin(38400);
Serial.println (“Bluetooth AT command mode”);

}

void loop()
{
if (BT.available())
Serial.write(BT.read());
if (Serial.available())
BT.write(Serial.read());
}