Cypress技术论坛
直播中

向珍

8年用户 294经验值
私信 关注
[问答]

怎样得到基本模拟输入

嘿,伙计们,我来自一个基本的ARDUINO Uno,他想知道我怎样才能得到一个模拟输入,并用一个串行输出来显示它(已经知道如何让它工作)。现在的问题是,我有一个基本的水分传感器(YWMeBOT湿度传感器),任何尝试对我来说都是毫无价值的。

以上来自于百度翻译


     以下为原文
   Hey Guys I'm coming from a basic arduino Uno and was wondering how I would be able to get a analog input and display it using a Serial output (already know how to get that to work). Right now the issue is that I have a basic moisture sensor (YWROBOT moisture sensor) and any attempts are worthless on my part

回帖(3)

王琳

2019-2-21 14:40:17
这将有助于当您张贴到传感器的数据表的链接。在PSoC4内,是信号调节的放大器,可以帮助你。
鲍勃

以上来自于百度翻译


     以下为原文
  Would be helpful when you post a link to your sensor's datasheet. Within a PSoC4 are OPAmps for signal conditioning that could help you.
     
    Bob
举报

姜钰

2019-2-21 14:50:53
首先,从“100天100项目”倡议:“热敏电阻示例”看这个例子。它基本上是你想要的——拿一个ADC阅读并把它发送到UART。你只需要移除热敏电阻处理/温度转换(当然,除非你的传感器恰好是热敏电阻)。

以上来自于百度翻译


     以下为原文
  For starters, look at this example from "100 projects in 100 days" initiative: "thermistor example". It does basically what you want - take an ADC reading and send it to the UART. You just need to remove the thermistor handling / temperature conversion (except when your sensor happens to be a thermistor, of course :).
举报

王建华

2019-2-21 14:56:43
你使用DHT11传感器,它需要一个单线接口吗?
谷歌“Bang-Bang-一线”,这里有一个使用GPIO的代码基础
PIN在各种处理器上实现接口,您可能会端口。
问候,Dana。

以上来自于百度翻译


     以下为原文
  Are you using DHT11 sensor, it requires a One Wire interface ?
     
    Google "bit bang one wire" and there is code base out there to use a GPIO
    pin on various processors to implement interface that you could possibly port.
     
    Regards, Dana.
举报

更多回帖

发帖
×
20
完善资料,
赚取积分