计算 Arduino BLE 扩展板和手机之间的距离 [英] Calculate Distance between Arduino BLE shield and Phone

查看:38
本文介绍了计算 Arduino BLE 扩展板和手机之间的距离的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以计算 arduino 蓝牙屏蔽 (BLE Shield 2.1) 和手机之间的距离?更具体地说,当手机距离盾牌不到 5 英尺时,我希望它执行一个动作.我知道 BLE Beacon 技术能够在一般意义上(立即、近、远)做到这一点,所以我想知道这是否可能?

Is it possible to calculate the distance between an arduino bluetooth shield (BLE Shield 2.1) and cell phone? More specifically, when the cell phone is within <5 feet of the shield, I want it to perform an action. I know BLE Beacon technology is able to do this in a general sense (immediate, near, far) so I'm wondering if it is possible?

查看堆栈溢出,我找到了以下答案,但它们都过时了:

Looking through stack overflow, I've found the following answers but they are all dated:

答案 1答案 2

我知道超声波频率和激光瞄准器都是可选的,但我正在努力降低成本,因此我更喜欢一种无需使用其他工具即可计算距离的方法.

I know that ultrasonic frequency and laser sight are both options but I am trying to keep costs low so I would prefer a way in which the distance is calculated without the use of an additional tool.

推荐答案

是的,您可以将其用于基于 RSSI(接收信号强度)的距离计算.您应该按照 Eirik M 的回答在 Arduino 端实现 iBeacon.在我看来,最重要的是您必须了解 BLE/iBeacon 精度.

Yes you can use it for distance calculation based on RSSI (received signal strength). You should implement iBeacon on Arduino side as stated in Eirik M answer. The most important thing in my opinion is that you have to be aware of BLE/iBeacon precision.

请仔细阅读以下文章,以确定 iBeacon 技术是否适合您的需求.如果是这样,实施应该是直接的.

Please read carefully the following articles to determine if iBeacon technology fits to your needs. If so, implementation should be straight forward.

广播功率和RSSI

信标实验:运行中的低功耗蓝牙设备

这篇关于计算 Arduino BLE 扩展板和手机之间的距离的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆