打算用单片机 + MQ4 MQ7类似的传感器做一个气体检测,有几个问题请教下大家
<p> </p><p>基本思路:单片机休眠模式,定期唤醒,用MQx进行采样,并进行报警。</p>
<p> </p>
<p>1、有没有哪位同学做过类似的可以分享下?</p>
<p> </p>
<p>2、MQx一般都需要加热,这个配合单片机的休眠方式有没有什么好/常规的供电方案推荐?</p>
<p> </p>
<p>本人硬件不太熟。</p>
<p> </p>
<p> </p>
<p>你这个硬件设计有问题,MQ7的加热电流大,预热时间长,不适合电池设备做间歇工作,和单片机的功耗相比,单片机也不用休眠。</p>
<p align="center" style="padding:0px; text-align:center"><span style="font-size:14px"><span style="word-break:break-all"><span style="margin-block-start:0px"><span style="margin-block-end:0px"><span style="color:#000000"><span style="font-family:tahoma, arial, "Hiragino Sans GB", 宋体, sans-serif"><span style="font-style:normal"><span style="font-variant-ligatures:normal"><span style="font-weight:400"><span style="white-space:normal"><span style="text-decoration-style:initial"><span style="text-decoration-color:initial"><span style="line-height:21px"><span style="background-color:#ffffff"><span style="font-size:medium; border-collapse:separate"><span style="word-break:break-all"><span style="line-height:normal"><span style="font-stretch:normal"><span style="font-size:14px"><span style="word-break:break-all"><span style="color:#404040"><span style="line-height:21px"><span style="word-break:break-all"><span style="color:#0000ff"><strong><span style="word-break:break-all"><span style="font-family:kaiti_gb2312"><span data-spm-anchor-id="pc_detail.27183998/evo365560b447259.202206.i0.41b97dd6ojHUKS" style="font-size:48px"><span style="word-break:break-all">技术参数</span></span></span></span></strong></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></p>
<p style="padding:0px; text-align:start; margin-top:15px; margin-bottom:15px"><span style="font-size:14px"><span style="word-break:break-all"><span style="margin-block-start:0px"><span style="margin-block-end:0px"><span style="color:#000000"><span style="font-family:tahoma, arial, "Hiragino Sans GB", 宋体, sans-serif"><span style="font-style:normal"><span style="font-variant-ligatures:normal"><span style="font-weight:400"><span style="white-space:normal"><span style="text-decoration-style:initial"><span style="text-decoration-color:initial"><span style="line-height:21px"><span style="background-color:#ffffff"> </span></span></span></span></span></span></span></span></span></span></span></span></span></span></p>
<p align="left" style="padding:0px; margin-top:15px; margin-bottom:15px"><span style="font-size:14px"><span style="word-break:break-all"><span style="margin-block-start:0px"><span style="margin-block-end:0px"><span style="color:#000000"><span style="font-family:tahoma, arial, "Hiragino Sans GB", 宋体, sans-serif"><span style="font-style:normal"><span style="font-variant-ligatures:normal"><span style="font-weight:400"><span style="white-space:normal"><span style="text-decoration-style:initial"><span style="text-decoration-color:initial"><span style="line-height:21px"><span style="background-color:#ffffff"><span style="font-size:medium; border-collapse:separate"><span style="word-break:break-all"><span style="line-height:normal"><span style="font-stretch:normal"><span style="font-size:14px"><span style="word-break:break-all"><span style="color:#404040"><span style="line-height:21px"><font color="#0000ff"><font color="#0000ff"><font size="4"><strong>1、加热电压:5±0.2V(AC·DC)</strong></font></font></font></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></p>
<p align="left" style="padding:0px; margin-top:15px; margin-bottom:15px"><span style="font-size:14px"><span style="word-break:break-all"><span style="margin-block-start:0px"><span style="margin-block-end:0px"><span style="color:#000000"><span style="font-family:tahoma, arial, "Hiragino Sans GB", 宋体, sans-serif"><span style="font-style:normal"><span style="font-variant-ligatures:normal"><span style="font-weight:400"><span style="white-space:normal"><span style="text-decoration-style:initial"><span style="text-decoration-color:initial"><span style="line-height:21px"><span style="background-color:#ffffff"><span style="font-size:medium; border-collapse:separate"><span style="word-break:break-all"><span style="line-height:normal"><span style="font-stretch:normal"><span style="font-size:14px"><span style="word-break:break-all"><span style="color:#404040"><span style="line-height:21px"><font color="#0000ff"><strong><font size="4">2、工作电流:140mA</font></strong></font></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></p>
<p align="left" style="padding:0px; margin-top:15px; margin-bottom:15px"><span style="font-size:14px"><span style="word-break:break-all"><span style="margin-block-start:0px"><span style="margin-block-end:0px"><span style="color:#000000"><span style="font-family:tahoma, arial, "Hiragino Sans GB", 宋体, sans-serif"><span style="font-style:normal"><span style="font-variant-ligatures:normal"><span style="font-weight:400"><span style="white-space:normal"><span style="text-decoration-style:initial"><span style="text-decoration-color:initial"><span style="line-height:21px"><span style="background-color:#ffffff"><span style="font-size:medium; border-collapse:separate"><span style="word-break:break-all"><span style="line-height:normal"><span style="font-stretch:normal"><span style="font-size:14px"><span style="word-break:break-all"><span style="color:#404040"><span style="line-height:21px"><font color="#0000ff"><font color="#0000ff"><font size="4"><strong>3、回路电压:10V(最大DC 15V)</strong></font></font></font></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></p>
<p align="left" style="padding:0px; margin-top:15px; margin-bottom:15px"><span style="font-size:14px"><span style="word-break:break-all"><span style="margin-block-start:0px"><span style="margin-block-end:0px"><span style="color:#000000"><span style="font-family:tahoma, arial, "Hiragino Sans GB", 宋体, sans-serif"><span style="font-style:normal"><span style="font-variant-ligatures:normal"><span style="font-weight:400"><span style="white-space:normal"><span style="text-decoration-style:initial"><span style="text-decoration-color:initial"><span style="line-height:21px"><span style="background-color:#ffffff"><span style="font-size:medium; border-collapse:separate"><span style="word-break:break-all"><span style="line-height:normal"><span style="font-stretch:normal"><span style="font-size:14px"><span style="word-break:break-all"><span style="color:#404040"><span style="line-height:21px"><font color="#0000ff"><font color="#0000ff"><font size="4"><strong>4、负载电阻:10K(可调)</strong></font></font></font></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></p>
<p align="left" style="padding:0px; margin-top:15px; margin-bottom:15px"><span style="font-size:14px"><span style="word-break:break-all"><span style="margin-block-start:0px"><span style="margin-block-end:0px"><span style="color:#000000"><span style="font-family:tahoma, arial, "Hiragino Sans GB", 宋体, sans-serif"><span style="font-style:normal"><span style="font-variant-ligatures:normal"><span style="font-weight:400"><span style="white-space:normal"><span style="text-decoration-style:initial"><span style="text-decoration-color:initial"><span style="line-height:21px"><span style="background-color:#ffffff"><span style="font-size:medium; border-collapse:separate"><span style="word-break:break-all"><span style="line-height:normal"><span style="font-stretch:normal"><span style="font-size:14px"><span style="word-break:break-all"><span style="color:#404040"><span style="line-height:21px"><font color="#0000ff"><strong><font size="4">5、检测浓度范围:10-1000ppm</font></strong></font></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></p>
<p align="left" style="padding:0px; margin-top:15px; margin-bottom:15px"><span style="font-size:14px"><span style="word-break:break-all"><span style="margin-block-start:0px"><span style="margin-block-end:0px"><span style="color:#000000"><span style="font-family:tahoma, arial, "Hiragino Sans GB", 宋体, sans-serif"><span style="font-style:normal"><span style="font-variant-ligatures:normal"><span style="font-weight:400"><span style="white-space:normal"><span style="text-decoration-style:initial"><span style="text-decoration-color:initial"><span style="line-height:21px"><span style="background-color:#ffffff"><span style="font-size:medium; border-collapse:separate"><span style="word-break:break-all"><span style="line-height:normal"><span style="font-stretch:normal"><span style="font-size:14px"><span style="word-break:break-all"><span style="color:#404040"><span style="line-height:21px"><font color="#0000ff"><font color="#0000ff"><font size="4"><strong>6、清洁空气中电压:≤1.5V</strong></font></font></font></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></p>
<p align="left" style="padding:0px; margin-top:15px; margin-bottom:15px"><span style="font-size:14px"><span style="word-break:break-all"><span style="margin-block-start:0px"><span style="margin-block-end:0px"><span style="color:#000000"><span style="font-family:tahoma, arial, "Hiragino Sans GB", 宋体, sans-serif"><span style="font-style:normal"><span style="font-variant-ligatures:normal"><span style="font-weight:400"><span style="white-space:normal"><span style="text-decoration-style:initial"><span style="text-decoration-color:initial"><span style="line-height:21px"><span style="background-color:#ffffff"><span style="font-size:medium; border-collapse:separate"><span style="word-break:break-all"><span style="line-height:normal"><span style="font-stretch:normal"><span style="font-size:14px"><span style="word-break:break-all"><span style="color:#404040"><span style="line-height:21px"><font color="#0000ff"><font color="#0000ff"><font size="4"><strong>7、灵敏度:≥3百</strong></font></font></font></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></p>
<p align="left" style="padding:0px; margin-top:15px; margin-bottom:15px"><span style="font-size:14px"><span style="word-break:break-all"><span style="margin-block-start:0px"><span style="margin-block-end:0px"><span style="color:#000000"><span style="font-family:tahoma, arial, "Hiragino Sans GB", 宋体, sans-serif"><span style="font-style:normal"><span style="font-variant-ligatures:normal"><span style="font-weight:400"><span style="white-space:normal"><span style="text-decoration-style:initial"><span style="text-decoration-color:initial"><span style="line-height:21px"><span style="background-color:#ffffff"><span style="font-size:medium; border-collapse:separate"><span style="word-break:break-all"><span style="line-height:normal"><span style="font-stretch:normal"><span style="font-size:14px"><span style="word-break:break-all"><span style="color:#404040"><span style="line-height:21px"><font color="#0000ff"><font color="#0000ff"><font size="4"><strong>8、响应时间:≤1S(预热3-5分钟)</strong></font></font></font></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></p>
<p align="left" style="padding:0px; margin-top:15px; margin-bottom:15px"><span style="font-size:14px"><span style="word-break:break-all"><span style="margin-block-start:0px"><span style="margin-block-end:0px"><span style="color:#000000"><span style="font-family:tahoma, arial, "Hiragino Sans GB", 宋体, sans-serif"><span style="font-style:normal"><span style="font-variant-ligatures:normal"><span style="font-weight:400"><span style="white-space:normal"><span style="text-decoration-style:initial"><span style="text-decoration-color:initial"><span style="line-height:21px"><span style="background-color:#ffffff"><span style="font-size:medium; border-collapse:separate"><span style="word-break:break-all"><span style="line-height:normal"><span style="font-stretch:normal"><span style="font-size:14px"><span style="word-break:break-all"><span style="color:#404040"><span style="line-height:21px"><font color="#0000ff"><font color="#0000ff"><font size="4"><strong>9、回复时间:≤30S</strong></font></font></font></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></p>
<p align="left" style="padding:0px; margin-top:15px; margin-bottom:15px"><span style="font-size:14px"><span style="word-break:break-all"><span style="margin-block-start:0px"><span style="margin-block-end:0px"><span style="color:#000000"><span style="font-family:tahoma, arial, "Hiragino Sans GB", 宋体, sans-serif"><span style="font-style:normal"><span style="font-variant-ligatures:normal"><span style="font-weight:400"><span style="white-space:normal"><span style="text-decoration-style:initial"><span style="text-decoration-color:initial"><span style="line-height:21px"><span style="background-color:#ffffff"><span style="font-size:medium; border-collapse:separate"><span style="word-break:break-all"><span style="line-height:normal"><span style="font-stretch:normal"><span style="font-size:14px"><span style="word-break:break-all"><span style="color:#404040"><span style="line-height:21px"><font color="#0000ff"><font color="#0000ff"><font size="4"><strong>10、元件功耗:≤0.7W</strong></font></font></font></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></p>
<p align="left" style="padding:0px; margin-top:15px; margin-bottom:15px"><span style="font-size:14px"><span style="word-break:break-all"><span style="margin-block-start:0px"><span style="margin-block-end:0px"><span style="color:#000000"><span style="font-family:tahoma, arial, "Hiragino Sans GB", 宋体, sans-serif"><span style="font-style:normal"><span style="font-variant-ligatures:normal"><span style="font-weight:400"><span style="white-space:normal"><span style="text-decoration-style:initial"><span style="text-decoration-color:initial"><span style="line-height:21px"><span style="background-color:#ffffff"><span style="font-size:medium; border-collapse:separate"><span style="word-break:break-all"><span style="line-height:normal"><span style="font-stretch:normal"><span style="font-size:14px"><span style="word-break:break-all"><span style="color:#404040"><span style="line-height:21px"><font color="#0000ff"><strong><font size="4">11、工作温度:-10~50℃(标称温度20℃)</font></strong></font></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></p>
<p align="left" style="padding:0px; margin-top:15px; margin-bottom:15px"><span style="font-size:14px"><span style="word-break:break-all"><span style="margin-block-start:0px"><span style="margin-block-end:0px"><span style="color:#000000"><span style="font-family:tahoma, arial, "Hiragino Sans GB", 宋体, sans-serif"><span style="font-style:normal"><span style="font-variant-ligatures:normal"><span style="font-weight:400"><span style="white-space:normal"><span style="text-decoration-style:initial"><span style="text-decoration-color:initial"><span style="line-height:21px"><span style="background-color:#ffffff"><span style="font-size:medium; border-collapse:separate"><span style="word-break:break-all"><span style="line-height:normal"><span style="font-stretch:normal"><span style="font-size:14px"><span style="word-break:break-all"><span style="color:#404040"><span style="line-height:21px"><font color="#0000ff"><strong><font size="4"><font data-spm-anchor-id="pc_detail.27183998/evo365560b447259.202206.i1.41b97dd6ojHUKS">12、工作湿度:95百RH(标称湿度65百RH)</font></font></strong></font></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></p>
<p align="left" style="padding:0px; margin-top:15px; margin-bottom:15px"><span style="font-size:14px"><span style="word-break:break-all"><span style="margin-block-start:0px"><span style="margin-block-end:0px"><span style="color:#000000"><span style="font-family:tahoma, arial, "Hiragino Sans GB", 宋体, sans-serif"><span style="font-style:normal"><span style="font-variant-ligatures:normal"><span style="font-weight:400"><span style="white-space:normal"><span style="text-decoration-style:initial"><span style="text-decoration-color:initial"><span style="line-height:21px"><span style="background-color:#ffffff"><span style="font-size:medium; border-collapse:separate"><span style="word-break:break-all"><span style="line-height:normal"><span style="font-stretch:normal"><span style="font-size:14px"><span style="word-break:break-all"><span style="color:#404040"><span style="line-height:21px"><font color="#0000ff"><font color="#0000ff"><font size="4"><strong>13、使用寿命:5年</strong></font></font></font></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></p>
<p align="left" style="padding:0px; margin-top:15px; margin-bottom:15px"><span style="font-size:14px"><span style="word-break:break-all"><span style="margin-block-start:0px"><span style="margin-block-end:0px"><span style="color:#000000"><span style="font-family:tahoma, arial, "Hiragino Sans GB", 宋体, sans-serif"><span style="font-style:normal"><span style="font-variant-ligatures:normal"><span style="font-weight:400"><span style="white-space:normal"><span style="text-decoration-style:initial"><span style="text-decoration-color:initial"><span style="line-height:21px"><span style="background-color:#ffffff"><span style="font-size:medium; border-collapse:separate"><span style="word-break:break-all"><span style="line-height:normal"><span style="font-stretch:normal"><span style="font-size:14px"><span style="word-break:break-all"><span style="color:#404040"><span style="line-height:21px"><font color="#0000ff"><font color="#0000ff"><font size="4"><strong>14、尺寸大小:35mm×22mm×18mm</strong></font></font></font></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></p>
<p>你这里的定期唤醒时间是多久?</p>
tagetage 发表于 2024-1-18 12:18
你这个硬件设计有问题,MQ7的加热电流大,预热时间长,不适合电池设备做间歇工作,和单片机的功耗相比,单 ...
<p>你说的对,用电池算了一下撑不了多久,不过可以采取一些策略:</p>
<p> </p>
<p>(1)每隔30分钟启动一次检测,给传感器通电,每次检测3-5分钟</p>
<p> </p>
<p>(2)大不了,挂一个充电宝在上面。</p>
<p> </p>
<p>(3)设定定时开关 或者 人工手动开关。</p>
<p> </p>
<p>假设200mA工作电流,10000mAh充电宝,可以用至少50工作时,</p>
<p>每天开24*2次 * 5分钟/次的话 = 4小时,可以用50/4 = 12.5天起步。。。还行吧。。 </p>
<p> </p>
<p>至于单片机是否要休眠,你说的也有道理,这个软件的东西可以后面再调。</p>
<p> </p>
<p> </p>
wangerxian 发表于 2024-1-18 13:11
你这里的定期唤醒时间是多久?
<p>预设:</p>
<p>每隔30分钟启动一次检测,给传感器通电,每次检测3-5分钟</p>
<p> </p>
<p>这些传感器网上都是现成的AO,DO输出,挂个单片机的目的是为了方便控制、扩展。</p>
韵湖葱白 发表于 2024-1-18 16:33
预设:
每隔30分钟启动一次检测,给传感器通电,每次检测3-5分钟
这些传感器网上都是现 ...
<p>我觉得还行,但是确实有点费电,毕竟加热时功耗还是很高的。</p>
<p>做这个项目的关键是找低功耗的传感器或<strong>预热时间短的传感器。</strong></p>
页:
[1]