描述
<p><p><span style="font-size: 18pt;">一、工程简介</span></p>
<p><span style="font-size: 14pt;">&nbsp; &nbsp; &nbsp; &nbsp;工程使用主控为单片机STM32G030K6T6,通过I2C通信接收温湿度传感器SHT40,采集获取当前的温度及湿度,分别显示在两个3.6寸3位数码管上,方便用户直接读取室内温湿度。</span></p>
<p>&nbsp;</p>
<p><span style="font-size: 18pt;">二、硬件部分</span></p>
<p><span style="font-size: 18pt;">1、<span style="font-size: 14pt;">主控采用STM32G030K6T6,ARM CortexM0架构的32位MCU,64Mhz,2.0-3.6V。</span></span></p>
<p><span style="font-size: 18pt;"><span style="font-size: 14pt;">&nbsp; &nbsp; &nbsp; &nbsp;如下图:</span></span></p>
<p><span style="font-size: 18pt;"><span style="font-size: 14pt;">&nbsp; &nbsp; &nbsp; &nbsp; <img src="//image.lceda.cn/oshwhub/7a0be694c9cb43ab9785e5661c01599a.png" alt="" width="795" height="548" /></span></span></p>
<p><span style="font-size: 18pt;"><span style="font-size: 14pt;">&nbsp; &nbsp; &nbsp; 32个引脚如下图:</span></span></p>
<p><span style="font-size: 18pt;"><span style="font-size: 14pt;">&nbsp; &nbsp; &nbsp; &nbsp;<img src="//image.lceda.cn/oshwhub/50ed2d3f759a4e609c060bed1476261c.png" alt="" width="685" height="324" /></span></span></p>
<p>&nbsp;</p>
<p><span style="font-size: 18pt;"><span style="font-size: 14pt;">2、传感器SHT40,</span></span><span style="font-size: 14pt;">是一款高性能的温湿度传感器,&zwnj;由Sensirion公司推出,&zwnj;属于第四代数字温湿度传感器系列。&zwnj;I2C通信,精度和稳定性方面表现出色,&zwnj;温度精度可达&plusmn;0.2&deg;C,&zwnj;湿度精度可达&plusmn;1.8%RH,特点是高性能、&zwnj;高精度、&zwnj;低功耗。</span></p>
<p><span style="font-size: 14pt;">&nbsp; &nbsp; &nbsp; <img src="//image.lceda.cn/oshwhub/4474f29138994f5593460c8716d86ba1.png" alt="" /></span></p>
<p><span style="font-size: 14pt;">3、使用立创EDA绘制SCH、PCB,下单制作PCB。到立创商城按BOM表下单。</span></p>
<p><span style="font-size: 14pt;">4、等到PCB,及元件到齐后,拿出电烙铁焊接,如下图。</span></p>
<p><span style="font-size: 14pt;">&nbsp; &nbsp; &nbsp; <img src="//image.lceda.cn/oshwhub/d7a2100d35394ef0a1902d591c8beee5.png" alt="" width="589" height="380" /></span></p>
<p>&nbsp;</p>
<p><span style="font-size: 14pt;"><span style="font-size: 18pt;">三、软件部分</span></span></p>
<p><span style="font-size: 14pt;">&nbsp; &nbsp; &nbsp; 1、使用STM32CubeMX简单配置引脚,时钟等,输出keil5进行编程。</span></p>
<p><span style="font-size: 14pt;">&nbsp; &nbsp; &nbsp; <img src="//image.lceda.cn/oshwhub/73ac3feb77b3410486907551d5179102.png" alt="" width="1440" height="870" /></span></p>
<p><span style="font-size: 14pt;">&nbsp; &nbsp; &nbsp;&nbsp;</span></p>
<p><span style="font-size: 14pt;">&nbsp; &nbsp; &nbsp; 2、keil5编程,DAPlink下载程序。</span></p>
<p><span style="font-size: 14pt;"><img src="//image.lceda.cn/oshwhub/9fea8489ad874847bb6d5e0fbb96a283.png" alt="" width="1440" height="870" /></span></p>
<p>&nbsp;</p>
<p><span style="font-size: 18pt;">四、成果展示</span></p>
<p><span style="font-size: 14pt;">&nbsp; &nbsp; &nbsp; 当按下唤醒睡眠按键,首先在上面的LED数码管显示温度33.4度。</span></p>
<p><span style="font-size: 14pt;">&nbsp; &nbsp; &nbsp; <img src="//image.lceda.cn/oshwhub/0d0a8a2c04f64e5ba1030dd9e347f84b.png" alt="" width="727" height="462" /></span></p>
<p><span style="font-size: 14pt;">&nbsp; &nbsp; &nbsp;接着在下面的LED数码管显示湿度60.7%H,反复两次后息屏待机。</span></p>
<p><span style="font-size: 14pt;">&nbsp; &nbsp; &nbsp;<img src="//image.lceda.cn/oshwhub/6b637b61591e46ea818b5e4ce3ad4dcc.png" alt="" width="720" height="438" /></span></p>
<p>&nbsp;</p>
<p><span style="font-size: 18pt;">五、后记</span></p>
<p><span style="font-size: 14pt;">&nbsp; &nbsp; &nbsp; 有幸在微信公众号嘉立创EDA,收到2024暑假班_温湿度检测仪_线上训练营的推送,正如收获一个成就感满满的电子小制作,还能学会嘉立创EDA专业版,当即扫码入群。认真看直播视频开营仪式、原理图绘制、PCB制作,跟着一步一步的画。下单PCB,立创商城采购元件,DAPLink等,接着的焊接。特别是在编程方面,不断地重刷视频,从点灯开始,到最后略知一二地使用DAP下载了源代码。</span></p>
<p><span style="font-size: 14pt;">&nbsp; &nbsp; &nbsp; 通过这次训练营,在各方面得到了加强,从小白1.0进化到了小白2.0,学到的知识点满满,小有成就。最后感谢立创,感谢陈工,感谢橘姐,感谢审核的大佬们给予的帮助,期待下一期训练营再见。</span></p>
<p><span style="font-size: 14pt;">&nbsp; &nbsp; &nbsp;&nbsp;</span></p></p>
评论(0)