Maker.io main logo

Get Bluetooth Device Distance Using BleuIO

55

2021-07-16 | By Sheikh Shuhad

License: GNU Lesser General Public License

Requirments

  • You need to have a BLE USB dongle BleuIO https://www.bleuio.com/
  • To run the script, you need a web application bundler. You can use parceljs. https://parceljs.org/getting_started.html

Instructions

git clone https://github.com/smart-sensor-devices-ab/ble_distance_measure.git

Go inside the folder type in terminal

parcel index.html

The script will scan for five seconds for nearby devices. You can update the value based on your requirements.

You can also run this script from online at https://smart-sensor-devices-ab.github.io/ble_distance_measure/dist/

**Make sure your BleuIO dongle is connected

ble distance measure

ble distance measure

Read more about how to calculate the distance https://iotandelectronics.wordpress.com/2016/10/07/how-to-calculate-distance-from-the-rssi-value-of-the-ble-beacon/

Have questions or comments? Continue the conversation on TechForum, DigiKey's online community and technical resource.