“Bluetooth should be able to measure distance if it can connect two devices”, I said to myself. But can Bluetooth be used to measure distance accurately? To answer that, I did my personal research on the internet to gather some information and this is what I found;
Bluetooth can be used to measure distance by inferring it mostly on a received signal strength indicator (RSSI). While Bluetooth devices are not usually designed with a function to measure distance, various modifications can be made to them for them to do exactly that.
The approach is not as simple as you may perceive it. The popular approach is triangulation. There are other methods that are under study and some are yet to be discovered.
Also, there are challenges that come with using Bluetooth to estimate distance which I will share in a moment.
Ways To Measure Distance With Bluetooth
As of now, there isn’t one assured way to measure distance with your Bluetooth. This aspect of Bluetooth technology is still under exploration. The interest in this function is mainly due to the failure of the GPS system to work effectively in an indoor environment.
And since Bluetooth can pass through walls, its potential is exploited which I will be sharing with you in a moment. From what I gathered in my research, you can use Bluetooth to measure distance in the following ways;
Ranging – Estimating Distance from Correlations with Bluetooth Property
Ranging is a procedure used to compute the distance between two Bluetooth devices without consideration of the angle of separation. It’s a common approach largely used to accomplish distance measurement. The popular methods are based on the received signal strength and time of flight.
For any of the methods, the two devices have to be within Bluetooth range. With the received signal strength, you measure the distance of Bluetooth A from B by using the Bluetooth signal strength that A receives from B.
The signal strength is inferred from the distance of their separation using the relation;
The a is a factor to offset the maximum received signal. While this approach is simple and straight, it only works well in an outdoor environment. This is because, in the indoor environment, obstacles such as walls, tables, chairs, other radio frequencies, and even people in the place are not factored in the formula. This introduces errors in the estimation.
What you can do then is use time of flight which is how long it took for Bluetooth A to receive a signal from Bluetooth B. This sounds interesting, however, it requires accurate time measurement hardware on the Bluetooth devices which most lack.
Using the Principle of Triangulation
With this method, you have to be good at coordinating and geometry. It reminds me of high school mathematics :). Unlike ranging, you can determine the distance separating Bluetooth devices by using the angle of incoming signals. It involves 3 Bluetooth devices with two of them serving as the base node.
This means you have to know the coordinates of the base node Bluetooth devices which will be your reference to determine the location of the third device that you’re interested in. You’re not going to get a direct distance measurement. You’ll calculate the distance with a mathematical formula related to triangles using the coordinates and the angles obtained.
Obviously, you’ll need a transmitter or receiver with some level of Bluetooth signal directionality.
This approach is popularly used in WiFi-based systems but it can be adopted for Bluetooth since they all have the RSSI function. You can’t directly measure distance with this but you can use it with another formula.
In fingerprinting, the signal strength of the device is read and then compared with a pre-determined database of locations which gives you the best match. It’s known to provide an accuracy of 3m and can be achieved with 80% precision,
So instead of inferring locations on the signal strength, you can either implement ranging or triangulation to compute the distance.
Artificial Neural Network
After Google’s AlphaGo beats the former Go champion player, Lee Se-dol, artificial neural networks have received attraction in other fields of application. For the paper I came across, an artificial neural network was used to estimate the position of an incoming Bluetooth signal using RSSI and user orientation.
The authors used an indoor environment for this study with several Bluetooth base nodes. With multiple neural network architectures developed for the nodes, it predicts the position of an incoming Bluetooth signal.
A compass that comes with the setup provides information about the user’s orientation. With that, the appropriate neural network is selected and is used with the RSSI recorded to estimate the object’s position.
The other approach they used in predicting position is to pass the output of the neural network to a navigation tree where a lookup is done to infer it. While this doesn’t give you direct distance measurement, you can use the orientation and the RSSI value to estimate it.
All the approaches shared sound interesting. Most of them are still under exploration to deal with the challenges that come with using Bluetooth for measurement.
Things To Consider When Measuring Distance With Bluetooth
Bluetooth Signal Strength
Most of the distance measuring approaches with Bluetooth use the RSSI for estimation. While that appears to be the easiest and readily available option, it isn’t a good indicator of the distance between two connected Bluetooth devices.
This is because the signal strength can vary under different conditions which may not be a true representation of the distance.
It’s a matter of the environment you’re dealing with. You have to answer questions like; is someone between the devices? What’s the person’s orientation? What’s the path loss? Is there any radio frequency reflecting surfaces?
Dealing with these questions will help you minimize errors. So you have all these variables to deal with which makes the accuracy for longer distance estimation low.
While you try to estimate the distance from another Bluetooth device, the signal is likely to be interfered with by other radio frequencies around. When you have those interruptions, it’s likely that you’re introducing errors into your measurement. The farther the devices are apart and the more radio frequencies between them, the higher your chances of sacrificing accuracy.
Radiofrequency devices such as wireless garage door openers, wireless microphones, remote control devices, cordless telephones, wireless alarm systems, WiFi transmitters, and other Bluetooth devices can all interfere with your measurement.
Bluetooth power consumption
How is this related to measuring the distance with Bluetooth? It’s got to do with the Bluetooth range, the distance you want to measure, and the version of Bluetooth you’re using. Long-range Bluetooth devices usually come with a Bluetooth power tradeoff.
Using Bluetooth for measuring long distances will require a long-range version. And that has to do with the power for transmission. Fortunately, we have Bluetooth Low Energy in the system which is suitable for this purpose.
It provides a good balance of range and power consumption. With the new Bluetooth low energy, you should be able to handle a considerable distance.
Line of Sight
You can’t expect to record the same distance when there is no line of sight between Bluetooth devices. This has to do with the orientation of the Bluetooth devices and physical things such as crowds, indoors, behind shelves, etc. getting between them.
When there’s a line of sight, the accuracy of measurement can improve.
You can use Bluetooth to measure distance. However, you have all the above challenges to deal with. You may wonder-can Bluetooth distance measurement ever be accurate?
How Accurate Is Bluetooth Distance Measurement?
The accuracy of Bluetooth distance measurement for an indoor environment is generally low. Bluetooth distance measurement is usually less than a meter with precisions around 80%-90%.
It is affected by the environment and the range within which you’re considering the measurement. They are major factors that affect the accuracy of Bluetooth distance measurement.
However, with some modifications and trials, you can make adjustments to improve it. For outdoor measurements, you can have an accuracy of fewer than 100 m with a precision of around 90% depending on the things in your environment and the range of your Bluetooth device.
Measuring distance with Bluetooth is a possible thing, especially for indoor environments where GPS is invalid. It has become the research interest for most Bluetooth technology companies because the potential looks great.
With the Bluetooth 5 which has brought a revolution in technology, I believe a time will come when most of the distance measuring challenges will be a thing of the past. What do you think?
Have you tried using Bluetooth to measure distance? What were your challenges and how did you overcome them? Do you think Bluetooth can be very accurate to trust?
Let me know what you think in the comment below and I’ll be glad to connect with you. If you have any experience in measuring distances with Bluetooth, feel free to share. Thank you