7160Views6Replies

Author Options:

What does the "state" pin do on the HC-05 Bluetooth module? Answered

Hi all,
What is the function of the state pin on the HC-05 6-pin serial bluetooth module?

Discussions

0
None
steveastrouk

3 years ago

What is this HC-05 5 pin module of which you speak ? HC-05s have about 30 pads.

0
None
steveastroukdudes

Answer 3 years ago

Its an interrupt pin, according to the data I can find.

0
None
polikarpasteveastrouk

Answer 2 years ago

This pin is low while connection is off. When HC 05 is paired with another bluetooth this pin turn High, so if you connect it to an Arduino digital input you can monitorize the connection state.

see

http://www.martyncurrey.com/hc-05-fs-040-state-pin/

0
None
dmagryta124polikarpa

Answer 2 years ago

I read the article you shared, but when I try it out on my hc 05, the state pin just stays LOW, regardless of whether it is paired to my android phone or not.

My hc05 module has a built in button ,and is marked zs-040, if that means anything.

Thoughts?

0
None
MikeM732dmagryta124

Answer 1 year ago

The documentation says "paired", but it's wrong (my guess is a mangled translation by a non-techie). The State pin goes HIGH when you are connected, not just paired. That's a lot more useful.