So whenever my phone gets close, and it connects to the Hc-05, the Arduino changes a variable? I want to avoid the use of apps, where the user has to do anything after first time connecting. The project is an automatic door opener, wherein the user for whatever reason can't use their hands, like if they have groceries in their hands.

Thank you for your time

1 Answer 1


Detecting successful connection with HC-05

The HC-05 can be configured to do what you are after.

Search for "POLAR" in the AT set documentation.


should be what you need as per their examples. Hook up PI09 to your arduino and wait for it to go HIGH. You may even want to wake up your arduino with an hardware interrupt using that signal.

Depending on your package, this may require soldering to the HC-05 module. The datasheet features a pinout in that case. Be sure to checkout the manual of your breakout board first.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.