user78374: Device: Laptop, HC-05, Resistor 2.2k and 4.7k, Arduino Uno R3
So im trying to rename and change password of my HC-05. for full detail schematic diagram. Here(the difference is, i also used the STATE Pin from HC-05 then connected it to Pin 9
since according to Instructubles it is used for activating AT Mode): 
Now for coding, i got it from Instructables.com and here: https://www.instructables.com/Modify-The-HC-05-Bluetooth-Module-Defaults-Using-A/
or
#include <SoftwareSerial.h>
SoftwareSerial BTSerial(10, 11);
#define Key 9
void setup()
{
  pinMode(Key, OUTPUT);  // this pin will pull the HC-05 pin 34 (key pin) HIGH to switch module to AT mode
  digitalWrite(Key, HIGH);
  Serial.begin(9600);
  Serial.println("Enter AT commands:");
  BTSerial.begin(38400);  // HC-05 default speed in AT command more
}

void loop() {
  // put your main code here, to run repeatedly:
  if(BTSerial.available()){
    Serial.write(BTSerial.read());
  }

  if(Serial.available()){
    BTSerial.write(Serial.read());
  }
}

The problem: i tried to follow the instructuble's instruction. but it didnt work. then i tried doing my own from what several tutorials i have read:
for the details,

i set my circuit and do the necessary wiring as shown in the picture + STATE Pin -> Arduino Pin 9.

I then connected my Arduino Uno to my Laptop, the HC-05 is blinking per half second, if you need the detail. Then uploaded the code...then finally, I opened the Serial Monitor(note that my HC-05 is not Paired to any devices in the first place. i "Forgot" them just incase).

then go to 9600 Monitor and enter simple command like AT, AT+NAME? or AT+PSWD? but nothing appeared in my terminal.

i also checked the 38400 monitor and did the same things. nothing happened.

then just maaaaybe it was just not showing but actually working, I tried AT+NAME=JULIE trying to rename my HC-05 to JULIE for each Terminal, going back and trying at 9600 then 38400. nothing happened at any Terminal. my HC-05 is still HC-05 name and the LED in my HC-05 are still blinking per half sec.

Then a bit annoyed, i then do a try-and-error. i tried to upload the code, then Paired it now, this time with my Phone. Then enter AT Commands in my Bluetooth Terminal App(from Playstore) and try to AT Command there. but still, nothing works.


My HC-05 is working as intended when i used it a simple LED on and off, and Servo using my Phone wirelessly few hours ago. But when i tried to do AT Command codes, nothing appears in my Serial Monitor such as the OK() or other AT Command replies.
so i would like to know where i did go wrong and why i cant use AT Command whether 9600, 38400 or even trying to do AT Command in my Phone's BT Terminal App? if you think i have missed an important details that i should mention, feel free to let me know.

user78374: Ok, MAYBE I solved it^^ so the thing is, i noticed that my LED is still blinking intense instead of 2 sec light off and on. which means that i am still not in AT Mode.
but the thing is if i followed Instructables and other website tutorial. I SHOULD be able to be in AT Mode. im not exactly sure why im still not in AT Mode. So tried something:
the wiring/circuit is still THE SAME. but add something:
I took another wire, connect the EN Pin of HC-05 -> 5V of Arduino.  since days ago i was trying to do tinker my HC-05 here and there and i remember that i tried to put EN in 5V then it start blinking differently. so i tried the same thing today. then i went back and Forget Paired Device, connect my Arduino to my Laptop, then reupload my code, then go to Serial.Monitor 9600 set No Ending Line -> Both NL & CR. then i reenter the AT Commands.
AT+NAME? then AT,then AT+PSWD?
all worked. the AT+Name shows the name of my HC-05, and the AT+PSWD shows the password. so then i decided to finally rename my HC-05.
AT+NAME=USER_FAIZ and AT+PSWD=ARDUINO individually in the Serial Monitor...and now my HC-05 has different name which is USER_FAIZ and password which is ARDUINO. i then went to my Phone, scan for bluetooth device and there it is. USER_FAIZ and password is ARDUINO.
^^what im not really sure if it is the solution im searching for. i searched some tutorials again but none of them mention of using EN Pin and most of them use STATE Pin of HC-05.So because of that, i wont "Check" this Answer as maybe this is not the best solution out. maybe just not yet. but it did solve MY problem so it may solve other users problem too so ill add it here to inform.

78374: <p>Device: Laptop, HC-05, Resistor 2.2k and 4.7k, Arduino Uno R3</p>
<p>So im trying to rename and change password of my HC-05. for full detail schematic diagram. Here(the difference is, i also used the STATE Pin from HC-05 then connected it to Pin 9
since according to Instructubles it is used for activating AT Mode): <a href="https://i.stack.imgur.com/AvG4e.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AvG4e.png" alt="enter image description here" /></a></p>
<p>Now for coding, i got it from Instructables.com and here: <a href="https://www.instructables.com/Modify-The-HC-05-Bluetooth-Module-Defaults-Using-A/" rel="nofollow noreferrer">https://www.instructables.com/Modify-The-HC-05-Bluetooth-Module-Defaults-Using-A/</a>
or</p>
<pre><code>#include &lt;SoftwareSerial.h&gt;
SoftwareSerial BTSerial(10, 11);
#define Key 9
void setup()
{
  pinMode(Key, OUTPUT);  // this pin will pull the HC-05 pin 34 (key pin) HIGH to switch module to AT mode
  digitalWrite(Key, HIGH);
  Serial.begin(9600);
  Serial.println(&quot;Enter AT commands:&quot;);
  BTSerial.begin(38400);  // HC-05 default speed in AT command more
}

void loop() {
  // put your main code here, to run repeatedly:
  if(BTSerial.available()){
    Serial.write(BTSerial.read());
  }

  if(Serial.available()){
    BTSerial.write(Serial.read());
  }
}
</code></pre>
<p>The problem: i tried to follow the instructuble's instruction. but it didnt work. then i tried doing my own from what several tutorials i have read:
for the details,</p>
<ol>
<li><p>i set my circuit and do the necessary wiring as shown in the picture + STATE Pin -&gt; Arduino Pin 9.</p>
</li>
<li><p>I then connected my Arduino Uno to my Laptop, the HC-05 is blinking per half second, if you need the detail. Then uploaded the code...then finally, I opened the Serial Monitor(note that my HC-05 is not Paired to any devices in the first place. i &quot;Forgot&quot; them just incase).</p>
</li>
<li><p>then go to 9600 Monitor and enter simple command like <strong>AT, AT+NAME? or AT+PSWD?</strong> but nothing appeared in my terminal.</p>
</li>
<li><p>i also checked the 38400 monitor and did the same things. nothing happened.</p>
</li>
<li><p>then just maaaaybe it was just not showing but actually working, I tried AT+NAME=JULIE trying to rename my HC-05 to JULIE for each Terminal, going back and trying at 9600 then 38400. nothing happened at any Terminal. my HC-05 is still HC-05 name and the LED in my HC-05 are still blinking per half sec.</p>
</li>
<li><p>Then a bit annoyed, i then do a try-and-error. i tried to upload the code, then Paired it now, this time with my Phone. Then enter AT Commands in my Bluetooth Terminal App(from Playstore) and try to AT Command there. but still, nothing works.</p>
</li>
</ol>
<p>My HC-05 is working as intended when i used it a simple LED on and off, and Servo using my Phone wirelessly few hours ago. But when i tried to do AT Command codes, nothing appears in my Serial Monitor such as the OK() or other AT Command replies.</p>
<p>so i would like to know where i did go wrong and why i cant use AT Command whether 9600, 38400 or even trying to do AT Command in my Phone's BT Terminal App? if you think i have missed an important details that i should mention, feel free to let me know.</p>
 78374: <p>Ok, MAYBE I solved it^^ so the thing is, i noticed that my LED is still blinking intense instead of 2 sec light off and on. which means that i am still not in AT Mode.</p>
<p>but the thing is if i followed Instructables and other website tutorial. I SHOULD be able to be in AT Mode. im not exactly sure why im still not in AT Mode. So tried something:</p>
<p>the wiring/circuit is still THE SAME. but add something:
I took another wire, connect the <strong>EN Pin of HC-05</strong> <strong>-&gt; 5V of Arduino</strong>.  since days ago i was trying to do tinker my HC-05 here and there and i remember that i tried to put EN in 5V then it start blinking differently. so i tried the same thing today. then i went back and Forget Paired Device, connect my Arduino to my Laptop, then reupload my code, then go to Serial.Monitor 9600 set <strong>No Ending Line -&gt; Both NL &amp; CR</strong>. then i reenter the AT Commands.</p>
<p><strong>AT+NAME?</strong> then <strong>AT</strong>,then <strong>AT+PSWD?</strong>
all worked. the AT+Name shows the name of my HC-05, and the AT+PSWD shows the password. so then i decided to finally rename my HC-05.
<strong>AT+NAME=USER_FAIZ</strong> and <strong>AT+PSWD=ARDUINO</strong> individually in the Serial Monitor...and now my HC-05 has different name which is <em><strong>USER_FAIZ</strong></em> and password which is <em><strong>ARDUINO</strong></em>. i then went to my Phone, scan for bluetooth device and there it is. USER_FAIZ and password is ARDUINO.</p>
<p>^^what im not really sure if it is the solution im searching for. i searched some tutorials again but none of them mention of using EN Pin and most of them use STATE Pin of HC-05.So because of that, i wont &quot;Check&quot; this Answer as maybe this is not the best solution out. maybe just not yet. but it did solve MY problem so it may solve other users problem too so ill add it here to inform.</p>
