HC 05 out of range setup

2 HC-05 are connected as Master and slave. If we set a range and go out of that range a led should blink but I am unable to setup range can anyone help me in any aspect please I need this right now because submission project date is 1 day ahead.

how do you set a range?

1 Like

The HC-05 is a Bluetooth module.
Did you mean HC-SR04?

1 Like

Brother actually I am using 2 HC05 Bluetooth module. Is there any way that if one of them is out of range a led blink on Master or on slave setup.

Brother actually I am usingBrother actually I am using 2 HC05 Bluetooth module. Is there any way that if one of them is out of range a led blink on Master or on slave setup.

Out of range meaning you lost the connexion ?

AT+STATE? might help

you could also have a heartbeat going between the two modules and if you don't get a ping for some time then blink the LED

Ok I got your point but then what will be the code cam you please tell me

wha't's your current code?

That’s not code, it’s a picture

do yourself a favour and please read How to get the best out of this forum and modify your post accordingly

There is a good discussion here about using the state pin on the HC05 module to monitor the connected state.