When I hold down the EN button and plug the USB into my laptop, it flashes on two seconds and off two seconds which is the correct flashing for AT command mode. (As it should). However when I send the code on post #21 to Arduino, and open the serial monitor to Both NL & CR and 9600 baud. I then attempt to send "AT" without quotes, or any other AT command it does not say OK.
When I don't hold down the EN button and its not connected, it constantly flashes on/off in under a second (As it should).
I am attempting to restore it to factory settings but I can't even get AT commands to work, is this HC-05 real?
I set up a HC05 with an Uno and loaded the code in reply #21. I hold the button and power up the Uno (via USB). The LED flashes AT mode. Then I enter AT in serial monitor and I get OK back.
The one difference is that I have the recommended voltage divider on the Uno TX to HC05 RX to drop the Uno 5V to 3.3V to the HC05 RX input pin. All of my HC05s have been wired that way. As I mentioned previously, the inputs are not necessarily 5V tolerant.
I have to wonder if the HC05 RX pin is still OK after having 5V to it.
The photos look just like all of my HC05 modules.
My suggestion is to get new HC05s and make sure to wire them with the voltage divider or other level shifter on the HC05 RX pin and do not apply over 3.3V to any input pin (including EN) on the HC05. Except for Vcc, that must be 3.6 to 6V (5V).
When I hold down the EN button and plug the USB into my laptop, it flashes on two seconds and off two seconds which is the correct flashing for AT command mode. (As it should). However when I send the code on post #21 to Arduino, and open the serial monitor to Both NL & CR and 9600 baud. I then attempt to send "AT" without quotes, or any other AT command it does not say OK.
When I don't hold down the EN button and its not connected, it constantly flashes on/off in under a second (As it should).
Your AT mode and unconnected data mode flash patterns appear normal, however it's clear that you are not seeing a response to AT commands.
Is it still true that when you pair and connect a phone to the module you still see the abnormal flash pattern and the delayed transmission?
What brand of phone are you using and what is the Android os level?
You might be facing incompatibility baud rate problems. Baud rate at AT Mode is always 38400. As a test, I think you should set also Serial Monitor to 38400 and use Serial.begin(38400) in the code.
The bluetooth module is connected to a SoftwareSerial port, BTSerial. That port is set to 38400.
I have tested the code in reply #21 with real hardware and I do get OK when sending AT and other AT commands work. The setting of the Serial port (serial monitor) is irrelevant.
When I send an AT command only the RX light flashes on my Arduino. Is this the same for you? This is still really weird because it works really well some of the time, so perhaps there is a short. Where did you get your HC-05 from?
Well when it connects it still has the slow blinking light. It used to be able to turn the led on/off but now it recognizes the connection but doesn't work at all. It still repeats the same slow blink. So not getting OK commands is expected if it only flashes RX?
If it does not have the normal connected pattern of 2 rapid flashes (on, off, on, off, takes ≈ 1 second) then a pause (off) of several seconds I would say the module is defective and you should get a replacement.
DSD Tech products are warranted and have technical support. You will most likely get a better product than the cheapest unit you can on ebay or Alibaba.