4387Views6Replies

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?

6 Replies

user
steveastrouk (author)2015-12-24

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

Select as Best AnswerUndo Best Answer

user
dudes (author)steveastrouk2015-12-30

He means a breakout board like this one:

http://www.amazon.com/JBtek-Wireless-Bluetooth-Tra...

I'm curious as to what it does as well.

Select as Best AnswerUndo Best Answer

user
steveastrouk (author)dudes2015-12-30

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

Select as Best AnswerUndo Best Answer

user
polikarpa (author)steveastrouk2016-12-01

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/

Select as Best AnswerUndo Best Answer

user
dmagryta124 (author)polikarpa2016-12-01

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?

Select as Best AnswerUndo Best Answer

user
MikeM732 (author)dmagryta1242017-09-06

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.

Select as Best AnswerUndo Best Answer