Hello everyone, i am new to arduino and i am building a project where i need to keep track if a cell phone is in range or not. So i need to be able to pair one smartphone via bluetooth and make the arduino automatically connect to it if it is in range. and get feedback from the arduino if it is connected. Thank you for your help.
Delta_G:
What's holding you back? What have you tried so far? What exactly is the question here?
i am actually looking for ur 2 cents. don't know anything about bluetooth communication, i tried to do some research but didn't find anything relevant. there are just a lot of bluetooth modules out there, wondering if someone with enough experience and modesty will point me to an easy to use module with a good library.
newbiearduinoguy:
wondering if someone with enough experience
I've done a bunch of Bluetooth projects. Maybe I can help?
newbiearduinoguy:
and modesty
Sorry. I don't meet all the requirements.
DuaneDegn:
I've done a bunch of Bluetooth projects. Maybe I can help?Sorry. I don't meet all the requirements.
lol kinda hard to have it all.
Okay,
I found some modesty.
My Bluetooth projects have all been pretty simple. I've used HC-05 modules I purchased off ebay for about $4.
You do not want a HC-06 module because you may need to have the Arduino act as a master and the HC-05 can act as either a master or slave.
Even with the Arduino as the master, I'm not sure it would be able to establish a link without some sort of participation from the phone. I'm not real sure.
When you say "automatically connect", what do you want it to do once connected?
I believe this can be done using command #14 - the inquire connection mode, and #15 the bind command. I believe this is how the bluetooth phone connection in your car works. Needless to say, the device has to be paired and set up, but, in use, bluetooth sniffs the phone and Arduino is not involved in that.
Nick_Pyner:
I believe this can be done using command #14 - the inquire connection mode, and #15 the bind command. I believe this is how the bluetooth phone connection in your car works. Needless to say, the device has to be paired and set up, but, in use, bluetooth sniffs the phone and Arduino is not involved in that.
Do you comments apply to a specific Bluetooth module? If so which one?
HC-05. The HM-10 has similar commands and I believe it works as a drop-in replacement for the HC-05.
The HC-06 slave-only, as noted above, and would require the phone to establish contact.