and i uploaded the code, why serial monitor replying me that symbols T.T i cant enter AT mode ,its been 3months i think, i cant still go to AT command mode :o
#include <SoftwareSerial.h>
SoftwareSerial BTSerial(0, 1); // RX | TX
void setup()
{
pinMode(9, OUTPUT); // this pin will pull the HC-05 pin 34 (key pin) HIGH to switch module to AT mode
digitalWrite(9, HIGH);
Serial.begin(9600);
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());
// Keep reading from Arduino Serial Monitor and send to HC-05
if (Serial.available())
BTSerial.write(Serial.read());
}
but the only rx , tx is 0 , 1 where should i connect rx tx cause on my arduino its only 0,1
Those pins are used by the HardwareSerial class. Serial is an instance of that class. If you are going to use those pins, you are NOT going to use SoftwareSerial.
SoftwareSerial CAN be used on ANY other two pins, as long as those pins support pin change interrupts (on a Uno, all pins do). You must make sure that the device you want to be reading from/writing to is connected to the pins you are reading from/writing to.