Hi, i was struggled with this. We all know about fast flashing means waiting for connection and about two flashes every 5 seconds while it is connected.
My problem is sometimes the module stops working and the leds stop to flashing. Two meanings for "leds stop to flashing" , totally turned off or totally turned on.
When it is occurs, HC05 cannot receive or send data and STATE keeps the voltage for connected status, so I cannot detect this fails whitout look at the leds. I am thinking in a LDR.
Any idea? Thanks.
HC-05 LED ON = Active connection
HC-05 LED OFF = No connection
Monitor HC-05 STATE pin for connection status.
@xfpd i'm sorry but your answer is not correct.
And STATE pin remains in connected state with dead module.
You should post a datasheet for your HC-05.
@xfpd I wonder if you have one that works as you describe. And what chip it has?
Because it can be usefull for me.
My chip is zs-040, and all i've read in this forum is about modules in which leds always flash.
My HC05 fastblinks when not connected and occasional blinks (approx 2 sec) when conn'd.
For "some reason" - after a long [i]hiatus[/u] - it wouldn't connect till I went back and re-paired (with the mobile).
If I turn the mobile's BT off, the HC05 still blinks every 2 secs.
@runaway_pancake hi, with some cheap tablets I saw in my app the message about BT is not paired. With more expensive tablets or my phone it never happened.
My problem seems to be electronic, not external, I mean the module fails.
Leds stop to flash and still permanently ON or OFF, with 3.3v in STATE pin (that's correct while it is connected) but without send o receive cyclical data.
Perhaps this connection information is useful...
@runaway_pancake which is the IC of your HC05?
I have an MH18 bluetooth module. There is no status pin. I wanted to know the connection state so I mounted a photodiode directly above the blue led. The signal I get is good. It works well and does not require you to modify the board.
(5v, 3v, Gnd, tx, rx and key - no 'state')
@runaway_pancake can you show the other side?
I have STATE, Rx, Tx, GND, Vcc, EN
Well, I'm tending to figure that you have an HC06. Probably irrelevant, hard to tell with several variants.
I have no experience with keeping HC's alive for days on end or hours.
I have an ESP32 that's on 24/7 and over a couple of years or so it biffed once. Other than that I connect via a BT serial app (no re-pairing req'd.)
Ok. It is an HC05 since HC06 has only four pins. No STATE, no EN.
I wiil try with an ESP32 with onboard BT.
Thanks.
'06 -- 4 pin (must remember).
'05 -- some have State or En or Key
I followed Currey's tutorial BINDing two, once (a few yrs back) - arduous process, but it never cratered (Esplora as wireless joystick).