Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Problems with HC-05 bluetooth module

Status
Not open for further replies.

reza147

Member level 1
Joined
May 9, 2013
Messages
34
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,288
Activity points
1,594
Hello
Problems with HC-05 bluetooth module.
When i turn on the module a led in hc-05 be blinking fast. This indicates that the module is in DATA mode. In this case, when I search the phone with Bluetooth, it correctly finds the Bluetooth module named HC-05.
When i hold Key_module (or connected EN_pin to VCC_pin) then conncted power to module, Now the led on the module will blink at the interval of 2 seconds. That means it has entered the AT mode?! (then i release Key_module or EN_pin)
But when i send "AT" command, module no respons. (i test with VCC=3.3v or 5v/ with 1200 to 230400 boud rate). Also I search the phone with Bluetooth,but not finds the Bluetooth module.

Having multiple bluetooth modules with the same name can be confusing. i attach pic of my module. Please tell if anyone can help .

Rx pin of the Bluetooth module to Tx pin of USB to TTL converter, and Tx pin of Bluetooth to Rx pin of converter. Also connect their ground to power_GND. (connect their Vcc to 3.3v or 5v)
 

Attachments

  • b.png
    b.png
    66.3 KB · Views: 184
  • 61b26TAcCoL._AC_SL1500_.jpg
    61b26TAcCoL._AC_SL1500_.jpg
    48.9 KB · Views: 165

HC-05 AT command interface is a bit tricky.
- AT interface is case sensitive
- commands must be terminated with <CR><LF>, most terminals don't provide it. I'm usually typing CTRL-M + CTRL-J instead of Enter key.
- Baud rate is 38k4
--- Updated ---

Module name can be programmed in AT mode
 
Last edited:

    reza147

    Points: 2
    Helpful Answer Positive Rating
Hello
I respect the buadrate and case sensitive and hardware. (I think)
But i could not get the"OK" from HC-05.[ when i send "AT" command, module no respons.]

Please let me know if anyone has worked and received an answer. (Exactly with the same module that I sent in the photo)
thanks
 

Hi,

Can you show a photo of your wiring (including HC-05 module and USB converter)

Klaus
 

It seems like I'm using the same modules. I connect it to PC with FTDI USB to 3.3V TTL cable to setup the configuration.
 

Additional information, I have the "EN" pin (driving pin 34 of the original HC-05 module) bridged to VCC, thus 38k4 baudrate is selected. Corresponds to holding the button during power-up.

1623402797591.png
 

    reza147

    Points: 2
    Helpful Answer Positive Rating
HC-05 AT command interface is a bit tricky.
- AT interface is case sensitive
- commands must be terminated with <CR><LF>, most terminals don't provide it. I'm usually typing CTRL-M + CTRL-J instead of Enter key.
- Baud rate is 38k4
--- Updated ---

Module name can be programmed in AT mode
Hi
how i to send "CTRL-M + CTRL-J instead of Enter key" on the "Tera Term".
--- Updated ---

Additional information, I have the "EN" pin (driving pin 34 of the original HC-05 module) bridged to VCC, thus 38k4 baudrate is selected. Corresponds to holding the button during power-up.

View attachment 170077
Hi.
When i hold Key_module (or connected EN_pin to VCC_pin) then conncted power to module, Now the led on the module will blink at the interval of 2 seconds. I search the phone with Bluetooth,but not finds the Bluetooth module.
For this case, can your module be detected by the phone?
 

Hold the CTRL key and press "M" and "J".

I believe, you can also set up Tera Term to send CR+LF in the terminal settings.

Please notice that I'm using Putty rather than Tera Term, thus I'm not completely sure about the behaviour.
 
Last edited:

    reza147

    Points: 2
    Helpful Answer Positive Rating
Hold the CTRL key and press "M" and "J".

I believe, you can also set up Tera Term to send CR+LF in the terminal settings.
Yes, thank you. But I still do not receive "OK".
Since these modules are similar, is it possible that the HC-06 type was assembled incorrectly?
If it is HC-06 type, does it not respond to AT commands?
 

Transmit CR+LF option seems to work

1623658795338.png


1623658879710.png


1623658950113.png


And don't forget to set flow control to "none".
 
Last edited:

    reza147

    Points: 2
    Helpful Answer Positive Rating
Hello
Thank you.
Unfortunately, it did not work.
I plan to get another Bluetooth module and test it.
 

Hi,

We currently have nothing "objective" to validate. We see your text, but this is "what you expect".

If you want us to validate something, then post photos (small file zize) of the complete wiring and screenshots.

Klaus
 

    reza147

    Points: 2
    Helpful Answer Positive Rating
Hi,

Can you show a photo of your wiring (including HC-05 module and USB converter)

Klaus
Hello
We provided another module for Bluetooth testing. This module is headerless and SMD type (HC-05). We tested this converter. This module answered us correctly.
So in this case I can be sure in terms of hardware connections and terminal software.
But still the first converter with the header does not work (HC-05 Board). (I even opened it from the header and tested it as SMD)
--- Updated ---

Hi,

We currently have nothing "objective" to validate. We see your text, but this is "what you expect".

If you want us to validate something, then post photos (small file zize) of the complete wiring and screenshots.

Klaus
Yes thank you. We waited for the second Bluetooth module, which is of a different type, to arrive and test it.
 

Attachments

  • HC-05.png
    HC-05.png
    251.1 KB · Views: 138
  • co.png
    co.png
    112 KB · Views: 154
  • co -e.png
    co -e.png
    248.7 KB · Views: 241

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top