Maker.io main logo

Location analysis using Bluetooth Low Energy

2021-09-01 | By Sheikh Shuhad

License: GNU Lesser General Public License

Distance to a Bluetooth device can be measured using RSSI value. The following script will help you locate nearby unique BLE devices within a selected range.

This script scans for nearby unique Bluetooth devices within the given range using a well-known RSSI to distance formula. 

Requirements

  • You need to have a BLE USB dongle BleuIO
  • 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/device_within_range.git

Go inside the folder type in terminal

parcel index.html

The script will scan for five seconds for nearby devices within range. 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/device_within_range/dist/index.html

**Make sure your BleuIO dongle is connected

select port

nearby ble devices

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/
制造商零件编号 SSD005/4-V2W
BLUETOOTH 5 LOW ENERGY USB DONGL
Smart Sensor Devices
¥256.49
Details
制造商零件编号 SSD005/4-V2B
BLUETOOTH 5 LOW ENERGY USB DONGL
Smart Sensor Devices
¥256.49
Details
Add all DigiKey Parts to Cart
TechForum

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

Visit TechForum