描述
<p><div class="document">
<h3 class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><em> 1、项目功能介绍</h3>
<p>本项目是基于STM32G030K6T6芯片与SHT40温湿度传感器模块制作的桌面温湿度仪,可以实现低功耗,随时随地查看当前温湿度。其中涉及到了电路的设计,并通过嘉立创eda进行pcb板的制作,通过STM32CubeMX进行软件基础代码的生成,以及功能代码的编写,使用到了数码管,led,温湿度传感器等等硬件设备。</p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"> </p>
<h3 class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"></em>2、硬件部分</h3>
<hr class="horizontal-splitline normal-bold-2" />
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;">1.单片机设计首先需要选择合适的主控芯片,本次设计选择的芯片是STM32G030K6T6,这是Cortex-M0,具有32kB的Flash和8K的SRAM,供电电压3.3V的芯片。以下电路图为支撑单片机能正常运行的最小系统板电路。</p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><img src="//image.lceda.cn/oshwhub/d2120d40823746caa4aee609b71a2aa2.png" /></p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;">2.以下电路图为下载模块电路图,可以通过下载器对单片机下载程序。</p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><img src="//image.lceda.cn/oshwhub/0edbc3b3e3a6462cb4d089de954f8bd2.png" /></p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;">3.这个部分为数码管的驱动部分,选用了SN74HC595PWR寄存器来连接数码管进行显示,通过MCU实现对LED数码管的控制。</p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><img src="//image.lceda.cn/oshwhub/7cf32a942ff84d24a1dccee6d51d09ef.png" /><img src="//image.lceda.cn/oshwhub/3e2928d715594cc6bf4b8e92e5d1266a.png" /></p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;">4.这部分电路是两个7号电池供电电路,以及电池电量的ADC采样口,可以通过MCU采集模拟信号量转换为数字信号量供我们查看。</p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><img src="//image.lceda.cn/oshwhub/cc505ea5524c4e00bf69e4931c2dbee6.png" /></p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;">5.本次实验使用的温湿度传感器是盛思锐生产的第四代SHT40温湿度传感器模块,该模块相对湿度精度可以达到:±1.5%RH,温度精度可以达到:±0.1℃,大家有能力的可以买该芯片自己搭载该传感器的电路。</p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;"><img src="//image.lceda.cn/oshwhub/12e2fe543af545e4bee2e4ba36dcc8c3.png" /></p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;"><img src="//image.lceda.cn/oshwhub/7ad5a44670bc41589ab6f59defb398ce.png" /></p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;">6.此部分为按键唤醒MCU实现低功耗,进入待机状态节约电池的电量,当按键按下,MCU被唤醒进行温湿度采集和显示,但过了一段时间后,MCU会自动调整为睡眠模式(低功耗模式)。</p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;"><img src="//image.lceda.cn/oshwhub/6ea5d9fc42944f7ea449d601d9da7dfd.png" /></p>
<h3 class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;">*5、软件部分</h3>
<hr class="horizontal-splitline normal-bold-2" />
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;">软件程序部分在附件,大家可以下载参考。</p>
</div></p>
评论(0)