Distance Calculator using ble etc

Anyway to calculate distance between my mobile phone and esp32 using any technology??

What scale are you talking about? Within 10m? ... GPS could work. If you're talk about distances less than that... probably not.

Yea. Mostly lesser than 10 m.

If you mean an ESP32 without extra hardware like GPS, then probably not. The radio interfaces you have available in common are BLE and Wi-Fi. In principle you could do a ping/response and measure the round-trip delay, but at the maximum range that these might operate to, say 100m, the 2-way delay would be 200/300,000,000 seconds or 0.67 us. To measure this you would need to have access to the physical layer timing of both modems - whilst this might be possible in the ESP it is virtually certain that they will be completely hidden in the mobile phone. Distance measurement by looking at field strength is theoretically possible but the vagaries of radio propagation even over short distances make this extremely inaccurate. If you added GPS to the ESP it would be easier as red_car suggests but limited in accuracy especially if one or both ends are indoors.

You need to explain what you are trying to do.

If you just want to know that the ESP and phone are within 10m of each other then that is doable if your phone has GPS and you connect a GPS device to the ESP.

If you are trying to measure distances less than 10m between the phone and ESP... then that is something quite different... I doubt it can be done.

Look up https://ubisense.com/ - they use a UWB technique. But needs special hardware.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.