版本协议

Public Domain

专业版
#第九届立创电赛#温湿度检测仪

创建时间:4个月前

89 0

描述

<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> <hr class="horizontal-splitline normal-bold-2" /> <div class="lake-content"> <p class="ne-p"><span class="ne-text">温湿度仪功能实现:</span></p> <ul> <li class="ne-p"><span class="ne-text">温湿度获取并通过数码管显示</span></li> <li class="ne-p"><span class="ne-text">检测电池电压</span></li> </ul> <p>&nbsp;</p> <p><span class="ne-text">由于项目使用stm32g030k6t6做主控,温湿度仪默认不开机进入睡眠模式,</span><span class="ne-text">当WAKE键按下时,触发中断,结束睡眠模式,执行按键判断,获取温湿度并启动数码管进行显示</span></p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> </div> <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;">测试LED:在桌面温湿度仪上,有两个测试LED,一个接入单片机-PB7引脚用于测试GPIO输出功能;另外一个接入74HC595用于测试移位寄存器输出功能;</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/6867ab9dbd434538be3226ea13f3d205.png" alt="" width="304" height="246" /></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;">唤醒按键:按键一端是连接GND,另一端是连接GPIO-PB5,当按键按下产生低电平,触发中断,为使单片机能正常读取到电平变化,应使引脚保持高电平</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/534ac16324c14df0aa24d596d1a68ab5.png" alt="" width="305" height="214" /></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;">&nbsp;</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;">SHT40模块:<span class="ne-text">SHT40温湿度传感器模块用于检测温湿度,SHT40采用IIC进行通信,模块上R8、R9是IIC通信的上拉电阻,起到&ldquo;线与&rdquo;的作用,支持挂载多个设备。</span><strong>SHT40传感器模块的引脚和插座的要能对应插上,注意正反方向,否则可能会损坏模块</strong></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;">&nbsp;</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;">数码管显示电路:使用红色共阴极数码管,由三个SN74HC595PWR驱动,数码管的六个阴极接在一个595芯片用于指定某一个位导通,两个数码管的阳极分别在另两个595芯片用于显示数字的选择</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/c4bb2fe108304f54be984cba5e172595.png" alt="" width="699" height="137" /></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;">MCU电路:</p> <p id="u3b7159ee" class="ne-p"><span class="ne-text">STM32G0系列有四种休眠模式;</span></p> <ul class="ne-ul"> <li id="ue46f575c" data-lake-index-type="0"><span class="ne-text">低功耗运行模式(降低CPU频率,系统仍在运行)</span></li> <li id="uf1a0a186" data-lake-index-type="0"><span class="ne-text">睡眠模式(系统进入睡眠,任意中断/事件唤醒)</span></li> <li id="u20e290b9" data-lake-index-type="0"><span class="ne-text">停止模式(系统进入停止,支持任意外部中断和RTC闹钟唤醒)</span></li> <li id="u2f66de2e" data-lake-index-type="0"><span class="ne-text">待机模式(系统进入待机,支持RTC闹钟唤醒,WKUP、NRST引脚唤醒以及IWDG复位唤醒,打开了LSI和LSE)</span></li> </ul> <p id="u461dcb3d" class="ne-p"><span class="ne-text">注意以上模式均不可进行Debuge调试,系统时钟已经关闭;且设置为低功耗模式后,无法下载代码,需要唤醒后才能进行下载;详细说明可以查看具体数据手册。</span></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/182646c861584aaa9179bdc516d34311.png" alt="" width="482" height="217" /></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>3、软件部分</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;">本次项目采用keil5加stm32cubemx编程,使用库为HAL库</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;">&nbsp;</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>4、元器件采购</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;">本项目使用传感器为盛思锐提供的SHT40温湿度传感器模块如下图,</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/f0fa55fd775541b1bec4223b15bdffb5.jpg" alt="" width="393" height="393" /></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;">自己在立创商城采购需要注意不要买到单一传感器,因为自己焊接很容易焊错,BOOM表一键下单需要注意仅购买了传感器的排母,传感器模块需另行购买</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;">注:如果是新手焊接,部分元件引脚细小,如SN74HC595PWR,为防止因焊坏元件,可以多采购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" style="line-height: 1.8;">PCB布局有些不合理,数码管背面引脚放置有5号电池盒会妨碍焊接,在元器件购买时可以选择带导线的5号电池盒,避开数码管引脚</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;">&nbsp;</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;">&nbsp;</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、大赛LOGO验证</h3> <hr class="horizontal-splitline normal-bold-2" /> <p style="line-height: 1.8;"><img src="//image.lceda.cn/oshwhub/d53e772b942c4864b5ced9e82c4886d7.jpg" alt="" width="353" height="371" /></p> </div></p>

文档

BOM

暂无

附件

附件名 下载
5c216b375776cf34a9b3aa4d97f1d677.mp4
stm32g030k6.pdf
sn74hc595.pdf

成员

评论(0)

  • 表情
    emoji
    小嘉工作篇
    小嘉日常篇
  • 图片
成功
工程所有者当前已关闭评论
goToTop
svg-battery svg-battery-wifi svg-books svg-more svg-paste svg-pencil svg-plant svg-ruler svg-share svg-user svg-logo-cn svg-double-arrow