{"id":8026,"date":"2022-10-24T08:45:44","date_gmt":"2022-10-24T08:45:44","guid":{"rendered":"https:\/\/www.beaconzone.co.uk\/blog\/?p=8026"},"modified":"2022-10-24T08:46:58","modified_gmt":"2022-10-24T08:46:58","slug":"indoor-positioning-using-ibeacon-and-esp32","status":"publish","type":"post","link":"https:\/\/www.beaconzone.co.uk\/blog\/indoor-positioning-using-ibeacon-and-esp32\/","title":{"rendered":"Indoor Positioning Using iBeacon and ESP32"},"content":{"rendered":"\n<p>Bluetooth beacons advertising iBeacon can be used to perform indoor locating using trilateration. Trilateration is where three receivers are used to measure signal strength (RSSI) to calculate the position.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.beaconzone.co.uk\/blog\/wp-content\/uploads\/2021\/09\/trilateration-1.webp\" alt=\"\" class=\"wp-image-6646\" width=\"413\" height=\"350\" srcset=\"https:\/\/www.beaconzone.co.uk\/blog\/wp-content\/uploads\/2021\/09\/trilateration-1.webp 550w, https:\/\/www.beaconzone.co.uk\/blog\/wp-content\/uploads\/2021\/09\/trilateration-1-300x254.webp 300w\" sizes=\"(max-width: 413px) 85vw, 413px\" \/><\/figure><\/div>\n\n\n<p>It&#8217;s possible to use ESP32 single board computers as Bluetooth receivers. The GitHub project <a href=\"https:\/\/github.com\/jarkko-hautakorpi\/iBeacon-indoor-positioning-demo\" target=\"_blank\" rel=\"noreferrer noopener\">iBeacon-indoor-positioning-demo<\/a> has an example open source implementation. There&#8217;s also an <a href=\"https:\/\/blog.shinovent.fi\/2018\/03\/ibeacon-indoor-positioning-with-esp32.html\">accompanying blog post<\/a>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.beaconzone.co.uk\/blog\/wp-content\/uploads\/2022\/09\/ibeacontrilateration-1024x919.jpg\" alt=\"\" class=\"wp-image-8027\" width=\"512\" height=\"460\" srcset=\"https:\/\/www.beaconzone.co.uk\/blog\/wp-content\/uploads\/2022\/09\/ibeacontrilateration-1024x919.jpg 1024w, https:\/\/www.beaconzone.co.uk\/blog\/wp-content\/uploads\/2022\/09\/ibeacontrilateration-300x269.jpg 300w, https:\/\/www.beaconzone.co.uk\/blog\/wp-content\/uploads\/2022\/09\/ibeacontrilateration-768x689.jpg 768w, https:\/\/www.beaconzone.co.uk\/blog\/wp-content\/uploads\/2022\/09\/ibeacontrilateration.jpg 1051w\" sizes=\"(max-width: 512px) 85vw, 512px\" \/><\/figure><\/div>\n\n\n<p>The implementation uses MQTT to send the data to a React app on a server where it&#8217;s displayed on a floorplan.<\/p>\n\n\n\n<p>In practice, you might want to consider creating a more robust solution that uses <a rel=\"noreferrer noopener\" href=\"https:\/\/www.beaconzone.co.uk\/Gateways\" target=\"_blank\">Bluetooth gateways<\/a> rather than ESP32 devices. There&#8217;s also the  <a href=\"https:\/\/www.beaconzone.co.uk\/blog\/category\/directionfinding\/\">Bluetooth AoA Direction Finding<\/a> standard that&#8217;s more accurate than using RSSI.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Bluetooth beacons advertising iBeacon can be used to perform indoor locating using trilateration. Trilateration is where three receivers are used to measure signal strength (RSSI) to calculate the position. It&#8217;s possible to use ESP32 single board computers as Bluetooth receivers. The GitHub project iBeacon-indoor-positioning-demo has an example open source implementation. There&#8217;s also an accompanying blog &hellip; <a href=\"https:\/\/www.beaconzone.co.uk\/blog\/indoor-positioning-using-ibeacon-and-esp32\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Indoor Positioning Using iBeacon and ESP32&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,31,32,293],"tags":[],"_links":{"self":[{"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/posts\/8026"}],"collection":[{"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=8026"}],"version-history":[{"count":8,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/posts\/8026\/revisions"}],"predecessor-version":[{"id":8078,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/posts\/8026\/revisions\/8078"}],"wp:attachment":[{"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=8026"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=8026"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=8026"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}