描述
<h3 style="line-height:1.8">* 1、项目功能介绍</h3>
<p style="line-height:1.8"> 桌面温湿度检测仪是一种用于测量和显示环境温度和湿度的小型设备。它通常放置在桌面或其他室内位置,以便随时监测和查看当前的环境状况,以下是一些根据立创训练营DIY桌面温湿度检测仪。</p>
<p> <strong>1.1主要元器件</strong>:使用<a href="https://item.szlcsc.com/549609.html?fromZone=s_s__%2522stm32g030k6t6%2522" target="_blank">STM32G030K6T6</a>的主控芯片,传感器使用<a href="https://list.szlcsc.com/brand/506.html" target="_blank">瑞士盛思锐</a>的<a href="https://item.szlcsc.com/3188621.html?fromZone=s_s__" target="_blank">SHT40-AD1B,</a>显示使用三位共阳极数码管,供电使用2节的7号干电池。</p>
<p> <strong> 1.2.测量范围:</strong>桌面温湿度检测仪能够测量的温度范围在-10℃到50℃之间,湿度范围在20%到95%之间</p>
<h3 style="line-height:1.8">*2、项目属性</h3>
<hr>
<p style="line-height:1.8"><strong><span style="color:#95a5a6;font-size:14px">首次公开</span></strong></p>
<h3 style="line-height:1.8">* 3、开源协议</h3>
<hr>
<p style="line-height:1.8"><span style="color:#95a5a6;font-size:14px">使用GPL3.0开源协议</span></p>
<h3 style="line-height:1.8">*4、硬件部分</h3>
<p style="line-height:1.8"><span style="font-size:12pt"><strong>4.1主控芯片电路</strong></span></p>
<p style="line-height:1.8"><img style="display:block;margin-left:auto;margin-right:auto" src="//image.lceda.cn/oshwhub/86006125bf3a4166b0b1d772cba5690a.png"></p>
<p style="line-height:1.8"> 主控使用是<a href="https://item.szlcsc.com/549609.html?fromZone=s_s__%2522stm32g030k6t6%2522" target="_blank">STM32G030K6T6</a>芯片,外围的电路很就3个,一个是拉高复位(NRT)电路和芯片电源滤波电路。</p>
<p style="line-height:1.8"><img style="display:block;margin-left:auto;margin-right:auto" src="//image.lceda.cn/oshwhub/cd9f114a93e54630b209f7b7916285ec.png"></p>
<p style="line-height:1.8"> 还有一个就是晶振电路,使用是32.786KHZ的低速的外部晶振,其实芯片内部的晶振也可以满足本次的设计需要(后续可以省去,节约成本)</p>
<p style="line-height:1.8"><span style="font-size:12pt"><strong>4.2数据显示电路</strong></span></p>
<p style="line-height:1.8"><span style="font-size:12pt"><strong><img style="display:block;margin-left:auto;margin-right:auto" src="//image.lceda.cn/oshwhub/a449e8fb971e4cb4b4f73e215b159e49.png"></strong></span></p>
<p style="line-height:1.8"><span style="font-size:16px"> 本次使用的数码管显示温湿度,采用0.56寸三位数共阳极码管,具有成本低,功耗低特点,但不足之处是占用MUC的IO口,本身<a href="https://item.szlcsc.com/549609.html?fromZone=s_s__%2522stm32g030k6t6%2522" target="_blank">STM32G030K6T6的IO少。故采用</a></span><span style="font-size:12pt">移位寄存器电路,数码管移位寄存器使用74HC595移位电路如下</span></p>
<p style="line-height:1.8"><img style="display:block;margin-left:auto;margin-right:auto" src="//image.lceda.cn/oshwhub/d1738f1034d44e38920b0f0184aafadf.png"></p>
<div>
<p id="u816407a2"> N74HC595驱动时序相对简单,首先输入高电平或低电平到SER引脚中,随后产生一个SCLK的上升沿,将数据发送出去,这里是8位数据移位寄存器,所以循环8次,最后一个RCLK的上升沿将数据锁存住,保持不变,直到下一次发送;</p>
<p id="ud8625ed8">这里模拟一下发送时序;首先待发送的数据是0xFE(1111 1110)</p>
<p id="u1a74faf7">此时先发送最高位,也就是0xFE&0x80,判断高低电平;随后数据被送入QA;</p>
<p id="ue0538ee5">然后继续,发送次高位,也就是(0xFE</p></div>
-
video(2).mp4
-
屏幕录制 2024-08-19 215239.mp4
评论(0)