版本协议

Public Domain

专业版
#第九届立创电赛#【智能家居】盛思锐温湿度传感桌面好物

创建时间:4个月前

158 0

描述

<p><h3 style="line-height: 1.8;">&nbsp;1、项目功能介绍</h3> <hr /> <p style="line-height: 1.8;"><span style="color: #000000; font-size: 14px;">本次训练营是使用盛思锐SHT40作为传感器设计一个桌面温湿度检测仪。</span></p> <p style="line-height: 1.8;"><span style="color: #000000; font-size: 14px;">我选用的了乐鑫的esp32作为主控芯片,主要是手头有存货,可玩性也更高;</span></p> <p align="left">ESP32&nbsp;是集成2.4 GHz Wi-Fi&nbsp;和蓝牙双模的单芯片方案,<span data-spm-anchor-id="pc_detail.29232929/evo365560b447259.202205.i2.a80a7dd64tA8gc">Xtensa&reg; 32-bit LX6&nbsp;</span>双核处理器,运算能力高达600 DMIPS,<span data-spm-anchor-id="pc_detail.29232929/evo365560b447259.202205.i3.a80a7dd64tA8gc">供电电压:</span>2.2V 到3.6V,<span data-spm-anchor-id="pc_detail.29232929/evo365560b447259.202205.i6.a80a7dd64tA8gc">4&nbsp;</span>个SPI,2&nbsp;个I2C;</p> <p align="left">使用Arduino IDE进行编程,新手上手快;</p> <p align="left">盛思锐的传感器精度很高,功耗也小;</p> <p style="line-height: 1.8;">&nbsp;</p> <h3 style="line-height: 1.8;"><em>2、项目属性</h3> <hr /> <p style="line-height: 1.8;">本作品为原创,并是首次公开;</p> <p style="line-height: 1.8;">时间较为紧张,软件并非最终版。</p> <h3 style="line-height: 1.8;"></em> 3、开源协议</h3> <hr /> <p style="line-height: 1.8;">Public Domain(未经作者授权,禁止转载)</p> <p style="line-height: 1.8;">&nbsp;</p> <h3 style="line-height: 1.8;"><em>4、硬件部分</h3> <hr /> <p align="left"><span style="color: #000000; font-size: 12pt;">4&middot;1、器件介绍</span></p> <p align="left"><span style="color: #000000; font-size: 14px;">1)乐鑫的esp32作为主控芯片</span></p> <p style="line-height: 1.8;"><span style="color: #000000; font-size: 14px;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//image.lceda.cn/oshwhub/e09082b326d34c10a24540ecf607b9f8.png" width="437" height="307" /></span></p> <p style="line-height: 1.8;"><span style="color: #000000; font-size: 14px;"><span style="color: rgba(0, 0, 0, 0.88); font-family: 'Microsoft YaHei';">2)盛思锐SHT40</span>作为传感器;</span></p> <p style="line-height: 1.8;"><span style="color: #000000; font-size: 14px;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//image.lceda.cn/oshwhub/5c383780ea9e45909d2121cd85bcd70b.png" width="747" height="366" /></span></p> <p style="line-height: 1.8;"><span style="color: #000000; font-size: 14px;">3)MAX7219作为驱动芯片的点阵屏作为显示部分,买到的是8</em>32的点阵屏,尺寸较大(<span style="font-family: 宋体;">模块尺寸:长12.8</span><span style="font-family: 宋体;">厘米</span>X<span style="font-family: 宋体;">宽</span><span style="font-family: tahoma;">3.2</span><span style="font-family: 宋体;">厘米</span>X<span style="font-family: 宋体;">高</span>1.3<span style="font-family: 宋体;">厘米),因为PCB尺寸的限制,我就用手锯,拆下一块就是8*24的点阵屏了;</span></span></p> <p style="line-height: 1.8;"><span style="color: #000000; font-size: 14px;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//image.lceda.cn/oshwhub/fa33fdb065e14b648beff2b25346a4b8.png" width="305" height="237" /></span></p> <p style="line-height: 1.8;">4)采用18650进行供电,为它设计了充电电路,充电和下载程序均使用Type-c接口;</p> <p style="line-height: 1.8;"><span style="font-size: 12pt;">4&middot;2、电路介绍</span></p> <p style="line-height: 1.8;">具体原理图请参考后面图纸;</p> <p style="line-height: 1.8;">1)Type-c接口及自动下载电路,自动下载电路参考乐鑫开发文档:</p> <ul class="simple"> <li> <p><a class="reference external" href="<a href="https://dl.espressif.com/dl/schematics/esp32_devkitc_v4_sch.pdf%22>ESP32-DevKitC" target="_blank">https://dl.espressif.com/dl/schematics/esp32_devkitc_v4_sch.pdf">ESP32-DevKitC</a> V4 原理图</a> (PDF)<a href="https://dl.espressif.cn/dl/schematics/esp32_devkitc_v4_sch.pdf&lt;/p" target="_blank">https://dl.espressif.cn/dl/schematics/esp32_devkitc_v4_sch.pdf&lt;/p</a>> </li> </ul> <p style="line-height: 1.8;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//image.lceda.cn/oshwhub/9b326c221d82454090281093ca668235.png" /></p> <p style="line-height: 1.8;">2)LDO线性稳压器电路</p> <p style="line-height: 1.8;">根据ESP32手册,推荐稳压原电流应不小于500mA,又因为我的供电方式有两种,一个是Type-c的5V和锂电池的3.7V,所以需要一个宽电压输入,低压降的LDO稳压器,所以我选用了ME6211C33M5G-N,这款芯片的电流是500mA,输入电压是6V,压降仅260mV,并能提供短路、过流等保护;</p> <p style="line-height: 1.8;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//image.lceda.cn/oshwhub/5d4a5a8a36254bc68983457318c56cdc.png" /></p> <p style="line-height: 1.8;">电路设计部分参考ME6211C33M5G-N的官方推荐电路,外加一个电源指示灯。</p> <p style="line-height: 1.8;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//image.lceda.cn/oshwhub/3ab92896a8b44d1d894061c0b3dc6a2d.png" /></p> <p style="line-height: 1.8;">3)锂电池充电电路</p> <p style="line-height: 1.8;">经典的TP4056电路,充电电流900mA,实测2000mA/h的电池需接近3小时充满。</p> <p style="line-height: 1.8;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//image.lceda.cn/oshwhub/676dcd45101c474383d720de33afce59.png" /></p> <p style="line-height: 1.8;">4)开关电路</p> <p style="line-height: 1.8;">因为当插上充电线时系统就有两处供电,为了Type-c的5v电压不会直接流入电池,所以使用一个PMOS来作为电子开关,当连接Type-c时电池电压不能通过mos也就是物理开关将不起作用,稳压芯片由Type-c直接供电,电池充电;当移除Type-c的5V供电时,电池通过自恢复保险丝和mos管受物理开关的控制给稳压芯片供电。</p> <p style="line-height: 1.8;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//image.lceda.cn/oshwhub/06ffb0c76f3a4f33a6a4b0f2c253cc5d.png" /></p> <p style="line-height: 1.8;">5)温湿度传感器电路</p> <p style="line-height: 1.8;">没有什么可说的,就是按照官方技术手册;</p> <p style="line-height: 1.8;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//image.lceda.cn/oshwhub/48343cd340474538ad8359ee2e2172c3.png" /></p> <p style="line-height: 1.8;">6)复位和点阵电路</p> <p style="line-height: 1.8;">此处时复位、BOOT按键电路,外加一个RGB全彩灯做状态显示,以及点阵屏的排母接线。</p> <p style="line-height: 1.8;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//image.lceda.cn/oshwhub/aa85eb7da68043d7a57d992b473fde65.png" /></p> <p style="line-height: 1.8;">7)主控电路</p> <p style="line-height: 1.8;">主控芯片的外围电路,通过esp32的TOUCH功能,作为激活按键功能。</p> <p style="line-height: 1.8;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//image.lceda.cn/oshwhub/1ebf94fce8a143a491b42967ba5eb868.png" /></p> <p style="line-height: 1.8;">&nbsp;</p> <h3 style="line-height: 1.8;"><em>5、软件部分</h3> <hr /> <p style="line-height: 1.8;">1)软件准备</p> <p style="line-height: 1.8;">Arduino IDE下载网址:<a href="https://www.arduino.cc/en/software&lt;/p" target="_blank">https://www.arduino.cc/en/software&lt;/p</a>> <p style="line-height: 1.8;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//image.lceda.cn/oshwhub/07f2a8aaa11a4e2fb2ec2ad59674b395.png" /></p> <p style="line-height: 1.8;">下载完成后需要添加ESP32的开发板,此处我已安装;</p> <p style="line-height: 1.8;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//image.lceda.cn/oshwhub/1c4af4de38664d64a3907baba814ac86.png" /></p> <p style="line-height: 1.8;">选择上传的核心板型号和串口;</p> <p style="line-height: 1.8;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//image.lceda.cn/oshwhub/0af4df62bb0c41d8ab77f48e8d9fd46f.png" /></p> <p style="line-height: 1.8;">可以打开esp32的一个示例,查看上传程序能否成功;</p> <p style="line-height: 1.8;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//image.lceda.cn/oshwhub/c88a04c7eb354aceb5cf8949a30ab128.png" width="491" height="794" /></p> <p style="line-height: 1.8;">2)库文件</p> <p style="line-height: 1.8;">库文件需要安装驱动点阵屏的&ldquo;u8g2&rdquo;</p> <p style="line-height: 1.8;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//image.lceda.cn/oshwhub/7490486b49494ed5b161ff64e86081c9.png" /></p> <p style="line-height: 1.8;">3)编译程序下载</p> <p style="line-height: 1.8;">打开开源程序,直接下载即可。</p> <p style="line-height: 1.8;">现在程序仅完成测量和显示部分,后续会添加WiFi,和信息上传等内容,请等待后续升级。</p> <p style="line-height: 1.8;">&nbsp;</p> <p style="line-height: 1.8;">&nbsp;</p> <h3 style="line-height: 1.8;"></em>6、BOM清单</h3> <hr /> <p style="line-height: 1.8;">点阵屏连接:<a href="https://item.taobao.com/item.htm?spm=a1z09.2.0.0.63712e8dTB5a47&amp;amp;id=534578656397&amp;amp;_u=22b5720e7c85&amp;amp;pisk=fjfm0LGrOtJX_O3Tm_AbBdf3RGyJhmO1_Gh9XCKaU3-75xHYld8NSGfOHN-9sGjGjnpacICGqw_Tl1UXg5YNvgAOknKOqPjA5fEbCIhZji_UcZKTl1xwqiSMCrt9bhjO7tU89WQflCOwjkFL9mSEB5sm3dk47L8XSTQqH27flCtN3N1zvZMgVisC_dSwaL89SC820n8zrFYZ_C-2Q0ky83-w_CSw4Q8M8hkwbF-rzXfr_HfNN_r2glyvsnIGZEvzeZ-y6Ca9uKmdo3laYsT0AH72qfl9c_cSiabYmX_JG_sHJiFriMbVLGWF47cDFt7lsp1_BjQ2snvdgK04cLvMmT52EVlNla6lXOj0mxtVHgvBzLugOUIp4Z1VEPiPuMKDgUJ8TybyQTCXdsEriBWCkIBN47ccYg7sUvWPZfOWfYDsCK8WrHskgko4DcRToz4od-92PEELrzDsCK8WrHUurvi63UTYv&lt;/p" target="_blank">https://item.taobao.com/item.htm?spm=a1z09.2.0.0.63712e8dTB5a47&amp;amp;id=534578656397&amp;amp;_u=22b5720e7c85&amp;amp;pisk=fjfm0LGrOtJX_O3Tm_AbBdf3RGyJhmO1_Gh9XCKaU3-75xHYld8NSGfOHN-9sGjGjnpacICGqw_Tl1UXg5YNvgAOknKOqPjA5fEbCIhZji_UcZKTl1xwqiSMCrt9bhjO7tU89WQflCOwjkFL9mSEB5sm3dk47L8XSTQqH27flCtN3N1zvZMgVisC_dSwaL89SC820n8zrFYZ_C-2Q0ky83-w_CSw4Q8M8hkwbF-rzXfr_HfNN_r2glyvsnIGZEvzeZ-y6Ca9uKmdo3laYsT0AH72qfl9c_cSiabYmX_JG_sHJiFriMbVLGWF47cDFt7lsp1_BjQ2snvdgK04cLvMmT52EVlNla6lXOj0mxtVHgvBzLugOUIp4Z1VEPiPuMKDgUJ8TybyQTCXdsEriBWCkIBN47ccYg7sUvWPZfOWfYDsCK8WrHskgko4DcRToz4od-92PEELrzDsCK8WrHUurvi63UTYv&lt;/p</a>> <p style="line-height: 1.8;">esp32模组:<a href="https://item.taobao.com/item.htm?spm=a1z09.2.0.0.63712e8dTB5a47&amp;amp;id=551532642694&amp;amp;_u=22b5720edebc&amp;amp;pisk=f8st0h9_dWVM5WUcfOaHmhqrinw3ZGBNL1WSmIAil6CdMTHGSEADlnCPwEi07hYvD6OhjCXMfKTfi__M1NAmDiCF6cmDfsqvGT7U3CvGjxpfR1ncSOAGJxKNxNmDs5-Ah_xYZ7quqOWwunNuZLqBqI-WemijidMIdbAtIzZuqOWKIdwldu24eShvNKtX5EtBABJxfcOfGetB3Bi6hc9jOJp2OItX1FTBdKJocqOscXD0MBM6imQfRJHwfueimmjpdSR5B2ivKMJ9EQB1X0oz3dL9NOOUZq4ZPe62kikqDFW1zsJ51fN9c9pRwLCToxRORTjMsTH-v9Kw6EsfKrw1pid9PGTKE-tOLK1XkwP-qdKGJUIO7-lCC_AOPhWme5XpywLydeMx5hblEi85flhytUJAwLCt6grVqgUP2bYugVwLpqu25pcd0Xc92KOzGpduBo3queyepQ2Lpqu25pJpZRFtuq8UL&lt;/p" target="_blank">https://item.taobao.com/item.htm?spm=a1z09.2.0.0.63712e8dTB5a47&amp;amp;id=551532642694&amp;amp;_u=22b5720edebc&amp;amp;pisk=f8st0h9_dWVM5WUcfOaHmhqrinw3ZGBNL1WSmIAil6CdMTHGSEADlnCPwEi07hYvD6OhjCXMfKTfi__M1NAmDiCF6cmDfsqvGT7U3CvGjxpfR1ncSOAGJxKNxNmDs5-Ah_xYZ7quqOWwunNuZLqBqI-WemijidMIdbAtIzZuqOWKIdwldu24eShvNKtX5EtBABJxfcOfGetB3Bi6hc9jOJp2OItX1FTBdKJocqOscXD0MBM6imQfRJHwfueimmjpdSR5B2ivKMJ9EQB1X0oz3dL9NOOUZq4ZPe62kikqDFW1zsJ51fN9c9pRwLCToxRORTjMsTH-v9Kw6EsfKrw1pid9PGTKE-tOLK1XkwP-qdKGJUIO7-lCC_AOPhWme5XpywLydeMx5hblEi85flhytUJAwLCt6grVqgUP2bYugVwLpqu25pcd0Xc92KOzGpduBo3queyepQ2Lpqu25pJpZRFtuq8UL&lt;/p</a>> <p style="line-height: 1.8;">电池盒:<a href="https://item.taobao.com/item.htm?spm=a1z09.2.0.0.63712e8dTB5a47&amp;amp;id=618341183990&amp;amp;_u=22b5720eaba5&amp;amp;pisk=fQUs0LxTxdv1kZVIncCEAcGmCv0bcR_PkIGYZSLwMV3tcEFaFj8q0GcXlvNRsAScj-ZQHJmZBxoqljwrK58Vs55flSF-BqrZQjeUhJxaQrk4LZNuFc8aMrRgx8PJ7PSiuEgioqBPUa7z_50mk3WKxOJMvflVuFLt6h_Q_6WPUa7fXB3fCTr4eG8IOjMK6jntX6gKMjYxkmntJ6GxgdKvW-FdOjDpWfnxHWKKZb89HjZXNjssI51pcu6nV3b1avYvkPQmfY_ELXcLR6niF5U623Cm1cM86vXy0Gx-vSmboIYjj5Eunbe9BOgYObwSNRs2iAZLaPkaNQTQOVDsDrFFD1FQlAi8WDOPMVNnM-nbxTTr1VrIVPZGipFTUAZ-SSR5QWi7A0cKvItt7uPzo0UO5LDEqjwSNR914c8rFC_McN7ylXMPO6tD0FEaLxgHDiFxXXcsY61BBomttXMPO6tDmchn1b5COdEc.&lt;/p" target="_blank">https://item.taobao.com/item.htm?spm=a1z09.2.0.0.63712e8dTB5a47&amp;amp;id=618341183990&amp;amp;_u=22b5720eaba5&amp;amp;pisk=fQUs0LxTxdv1kZVIncCEAcGmCv0bcR_PkIGYZSLwMV3tcEFaFj8q0GcXlvNRsAScj-ZQHJmZBxoqljwrK58Vs55flSF-BqrZQjeUhJxaQrk4LZNuFc8aMrRgx8PJ7PSiuEgioqBPUa7z_50mk3WKxOJMvflVuFLt6h_Q_6WPUa7fXB3fCTr4eG8IOjMK6jntX6gKMjYxkmntJ6GxgdKvW-FdOjDpWfnxHWKKZb89HjZXNjssI51pcu6nV3b1avYvkPQmfY_ELXcLR6niF5U623Cm1cM86vXy0Gx-vSmboIYjj5Eunbe9BOgYObwSNRs2iAZLaPkaNQTQOVDsDrFFD1FQlAi8WDOPMVNnM-nbxTTr1VrIVPZGipFTUAZ-SSR5QWi7A0cKvItt7uPzo0UO5LDEqjwSNR914c8rFC_McN7ylXMPO6tD0FEaLxgHDiFxXXcsY61BBomttXMPO6tDmchn1b5COdEc.&lt;/p</a>> <p style="line-height: 1.8;">其他器件均在下方的BOM表;</p> <h3 style="line-height: 1.8;"><em>7、大赛LOGO验证</h3> <hr /> <p style="line-height: 1.8;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//image.lceda.cn/oshwhub/ff7e0531c65c4df9af2d28009e5a694f.jpg" /></p> <p style="line-height: 1.8;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//image.lceda.cn/oshwhub/0414dbdb8fda409f9b7fc42ba081d2af.jpg" /></p> <p style="line-height: 1.8;">&nbsp;</p> <h3 style="line-height: 1.8;"></em> 8、演示您的项目并录制成视频上传</h3> <hr /> <p style="line-height: 1.8;">演示视频:<a href="https://www.bilibili.com/video/BV11EvpeQEzB/&lt;/p" target="_blank">https://www.bilibili.com/video/BV11EvpeQEzB/&lt;/p</a>> <p style="line-height: 1.8;">&nbsp;</p> <p style="line-height: 1.8;"><span style="font-size: 14px;"><a href="/posts/de460543d4cf4dacb5f0326612455578" target="_blank" rel="noopener">前往查看更多详情 ></a></span></p> <p style="line-height: 1.8;">&nbsp;</p></p>

文档

BOM

暂无

附件

附件名 下载
lichuang2.7z

成员

评论(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