极客工坊

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 12502|回复: 2

请教大神怎么编程来控制传感器信号的输出

[复制链接]
发表于 2017-3-31 10:24:27 | 显示全部楼层 |阅读模式
根据这段话来控制呼吸传感器信号的输出
Every 1ms collect one analog signal reading (ADC is 10-bit, giving values in the range 0 to
1023)
Integrate collected analog signal readings to reduce noise. Sum 25 readings.
If sum is less than 1500 (low reading), then try to increase the gain by multiplexing between
different feedback resistors using Arduino digital outputs 22, 24, 26 or 28.
If sum is more than 14800 (high reading), then try to reduce the gain by multiplexing between
different resistors using Arduino digital outputs 22, 24, 26 or 28.
Every 100ms send the reading over Bluetooth (write to Arduino UART output)  

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复

使用道具 举报

 楼主| 发表于 2017-3-31 19:55:35 | 显示全部楼层
来个大神给点建议怎么编程啊
回复 支持 反对

使用道具 举报

 楼主| 发表于 2017-4-1 10:01:16 | 显示全部楼层
看到的人留个言吧,好让我知道有人看了
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则 需要先绑定手机号

Archiver|联系我们|极客工坊

GMT+8, 2024-4-19 15:05 , Processed in 0.046529 second(s), 18 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表