蓝牙模块与Android设备之间的距离 [英] Distance between bluetooth module and an android device

查看:388
本文介绍了蓝牙模块与Android设备之间的距离的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用通过appinventor创建的android应用来计算android设备与HC-05蓝牙模块(连接到arduino模块:MEGA 2560)之间的距离.

I'm trying to calculate the distance between and android device and the HC-05 bluetooth module (connected to an arduino module: the MEGA 2560), using an android app created using appinventor.

例如,我想知道两个设备之间是否相距4米,以便打开警报.

For example I'd like to know if the devices are 4 meters from each other so I can turn on an alarm.

在进行了一些研究之后,似乎几乎是不可能做的,似乎可以做的最多的事情就是估计不断感应RSSI指标的距离.

After doing some research it seems that is almost imposible to do, it seems that the most that can be done is estimate that distance constantly sensing the RSSI indicator.

这可能吗?如果没有,我该怎么用?

Is this possible? if not ,what could I use?

我的项目中的元素(HC05,arduino,appinventor)是否应该使用?

Are the elements of my project (HC05,arduino, appinventor) the ones I should be using?

这是唯一的方法吗?

推荐答案

如果两个点都在视线范围内,则可以使用基于激光的测距仪系统,或者使用通过声波使用飞行时间"的设备或光波.这是我在一个快速的Google上找到的: http://hackaday.com/2014/07/01/pew-pew-an-arduino-based-laser-rangefinder/

If the two points are within line of sight, then you can use a laser based rangefinder system, or something that uses "Time of flight" using a sound wave or a light wave. Here's one that I found with a quick google: http://hackaday.com/2014/07/01/pew-pew-an-arduino-based-laser-rangefinder/ We run into an issue with omni-directionality though,

如果他们没有视线,则您将不得不考虑以何种方式衰减信号,因为砖墙和石膏(干墙)之间的衰减差异墙很棒.

If they don't have line of sight, you're going to have to think about how the signal is attenuated with whatever is in the way, because the difference in attenuation between a brick wall, and a gypsum(drywall) wall is great.

这篇关于蓝牙模块与Android设备之间的距离的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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