简体   繁体   English

如何直接从XBee iolines获取数据

[英]How to get data directly from XBee iolines

Hi I have XBee RF mode S2C which does not have internal storage to run micropython. 嗨我有XBee RF模式S2C没有内部存储来运行micropython。 So I need to get data from KY-001 sensor connected its iolines. 所以我需要从KY-001传感器获取连接其iolines的数据。 With python library I didnt get anything just get_adc_value(ioline) function which seems doesnt do anything. 使用python库我没有得到任何东西只是get_adc_value(ioline)函数似乎什么都不做。 I need to check sensor in local device for now .After I gonna use same solve to remote devices (I only use Python XBee library). 我现在需要在本地设备中检查传感器。之后我将使用相同的解决方案到远程设备(我只使用Python XBee库)。 Or exactly can I use Xbee iolines directly to get data from sensor without external MCU? 或者我可以直接使用Xbee iolines从传感器获取数据而无需外部MCU吗?

I don't think you'll be able to interface to this 1-Wire sensor, it's intended for a microprocessor that can handle timing requirements and uses a tristate I/O line (IIRC). 我不认为你能够与这个1-Wire传感器接口,它适用于能够处理时序要求并使用三态I / O线(IIRC)的微处理器。

You should be looking at temperature sensors with an analog voltage output (like this TMP36 ) that you can tie to one of the analog inputs of the XBee, and then read that input with a remote ATIS for a single sample or ATIR for periodic sampling. 您应该查看具有模拟电压输出的温度传感器(如此TMP36 ),您可以将其连接到XBee的一个模拟输入,然后使用远程ATIS读取该输入以获取单个样本或ATIR进行定期采样。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM