HC05 not working properly & not responding to AT commands ..#2

Thread Starter

ameer_hamza

Joined Jun 12, 2021
1
بسم الله الرحمن الرحيم ٱللَّٰهُمَّ صَلِّ عَلَىٰ مُحَمَّدٍ وَعَلىٰ آلِ مُحَمَّدٍ Try using different pins other than Rx and Tx. I was having an issue of my hc-05 doesn't reply to AT commands. So I used following code,
Code:
 #include <SoftwareSerial.h>
   
        SoftwareSerial Bluetooth(2,3);
       
        char c=' ';
        void setup()
        {
          Serial.begin(9600);
         
          Serial.println("ready");
          Bluetooth.begin(38400);
        }
       
        void loop()
        {
        if(Bluetooth.available())
          {
            c=Bluetooth.read();
            Serial.write(c);
          }
          if(Serial.available())
          {
            c=Serial.read();
            Bluetooth.write(c);
          }
Now instead of Tx and Rx use Arduino's pins 2 and 3. Now check AT commands, After configuring you may use Tx and Rx pins again.


Mod: link to old Thread.
https://forum.allaboutcircuits.com/...responding-to-at-commands.160314/post-1407637
 
Last edited by a moderator:
Top