Bluetooth Range

Hi All,

Is it possible to set a range on a bluetooth device.

Lets say i have a app that controls my robot via bluetooth.

If my robot gets to 5 meters i get a signal back saying the robot has gone out of range and this can be set from 1m to 10m

Is this possible?

Im going to need to find some code examples.

Hope you can help.

Or if the robot goes out of a 10m bluetooth range the singal drops off and the app is warned.

Is it possible to set a range on a bluetooth device.

No.

Or if the robot goes out of a 10m bluetooth range the singal drops off and the app is warned.

How do you know that I have quit listening to you?

PaulS:
No.
How do you know that I have quit listening to you?

The App isn't receiving a signal anymore.

So you are basically saying its not possible?

The App isn't receiving a signal anymore.

So? What do you want to happen, on the phone end? What do you want to happen on the Arduino end?

The ONLY way to know that the receiver and the sender are not communicating anymore is to have the sender send some data, and expect a response, every n milliseconds. If the sender doesn't get a reply, it will know that the receiver is out of range.

If the receiver doesn't get the next message n milliseconds after the last one, it knows that the sender is out of range/dead in the water/out to lunch/up a creek without a paddle.

Hi Paul,

I'm trying to make a device that vibrates when its out of a certain range, the device will be connected via Bluetooth from a mobile phone or a tablet via an APP.

If the vibrating device goes out of the range, of the Bluetooth operating range.

I want the device to vibrate.

I also want the APP to recognize the device is out of range and has lost its Bluetooth connection to the device the app provide a warning.

I'm a novice so please bare with me :slight_smile:

Cheers

I'm a novice so please bare with me :slight_smile:

I'll keep my clothes on, thank you, but you go right ahead. Post pictures.

So, now we know what you want. What is the problem?

Only on Saturday nights ;-).

Well is this actually possible?, would I be able to make this work and design an APP.

I'm not very good a writing code at the moment, is there any code out there already which knows when the Bluetooth signal is lost?

Would I be able to set a logic output from the device using a Bluetooth chip to turn the vibrator on when out of range.

Well is this actually possible?

Yes, it is possible. Imagine that you call a friend on the phone. You talk, your friend listens. Then, your friend talks, and you listen. Then, you talk, and your friend listens.

You can tell when the phone connection is dropped, because when you quit talking, your friend does not reply in some reasonable amount of time.

To make this work, the app will need to periodically send something to the Arduino, which will have to reply.

The Arduino will need to take some action if the interval between now and the last time serial data arrived exceeds some value (vibrate).

The app will need to take some action if there is no reply in some reasonable amount of time - pop up a dialog?

How to make the app is outside the scope of this forum. Reading serial data and writing serial data is pretty simple. It's very simple if the app sends one letter, and expects a one letter response. Google "Arduino heartbeat".

I don't have friends :-).

Yeah that pretty much explains what my project is going to be.

I will search the world wide web and find more answers to my questions.

Ill check out that Arduino Heartbeat.

So its a homebuild trackr?

Its all doable, but it'll probably cost more than just buying a trackr.

scrumfled:
So its a homebuild trackr?

Its all doable, but it'll probably cost more than just buying a trackr.

No its not a tracking device. Its a warning device