专业版
#第九届立创电赛#物联温湿度摆件

创建时间: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;">1、项目功能介绍</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> <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;">演示视频:连摸鱼都双手插兜的男人 #摸鱼<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;B站: <a href="<a href="https://b23.tv/X4ueMEI%22>B%E7%AB%99%E6%BC%94%E7%A4%BA%E8%AE%B2%E8%A7%A3%E8%A7%86%E9%A2%91&lt;/a>&lt;/p" target="_blank">https://b23.tv/X4ueMEI">B站演示讲解视频&lt;/a>&lt;/p</a>> <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;">a.采用STM32G0系列单片机采集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;">b.另外增加ESP-01s物联网模块进行数据上传到云端,云端进行数据处理后通过设计好的云端界面显示,增加实用性。</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;">c.ZigBee网关实现局域上的查看,则可以不需要在按键唤醒单片机通过数码管显示。</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;">d.电源供电方面设计自动切换电路,即可实现锂电池和USB两种供电方式。</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;">e.增加NFC功能,方便用户查看该物件的信息。</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/4a5d7cd60d99453e9746a896bf26d366.jpg" alt="" width="1276" height="1702" /></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;"><img src="//image.lceda.cn/oshwhub/2919166973ec4d089ad2bfe9ea80e785.jpg" alt="" width="1276" height="1702" /></h3> <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;">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;"><span style="color: #95a5a6; font-size: 14px;">该项目是首次公开;</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" 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;">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;"><span style="color: #95a5a6;">GPL3.0开源协议。</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" 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;">4、硬件部分</h3> <p>1、使项目能在多场景使用,在电路方面采用切换电路,这样可以在USB供电情况下,不消耗锂电池电量,实现多场景应用。</p> <p>a.原理图演示图(1)</p> <p><img src="//image.lceda.cn/oshwhub/dd83b7acbdd449ee9a0e052bf98c8519.png" alt="" width="677" height="255" /></p> <p>图(1)</p> <p>2、增加NFC电路,这样能让带NFC功能的物理机可以获取该物件信息,如果后续需要开发也可以更换成RFID,也能增加学习可玩性。(不仅能是普通文本介绍信息,也可以是url、电话等)</p> <p>b.NFC电路演示图(2)、集成NFC电路PCB板图(3)</p> <p><img src="//image.lceda.cn/oshwhub/b8554f9cd1f74dcfad715a3e3768fd07.png" alt="" width="421" height="157" /></p> <p>图(2)</p> <p><img src="//image.lceda.cn/oshwhub/521efff9938846c686e8064f4126fc93.png" alt="" width="896" height="599" /></p> <p>图(3)</p> <p>3、本项目也设计3D外壳,直接可在项目工程导出使用即可。(此次3D外壳使用的耗材质量较差,所以效果较差【自己3D打印机打的】)</p> <p>a.外壳展示图(4) 有需要直接三维猴打印</p> <p><img src="//image.lceda.cn/oshwhub/d363df98cd024e21998a09f3f98c4db0.jpg" alt="" width="1276" height="1702" /></p> <p>图(4)</p> <span style="color: #95a5a6; font-size: 14px;"> </span> <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;">&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、软件部分</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;"><span style="color: #000000;"><strong><span style="font-size: 14px; background-color: #ffffff; font-family: 'arial black', sans-serif;">详情见附件(更改的代码在第二个数码管补齐后一起上传)。</span></strong></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" style="line-height: 1.8;"><span style="color: #000000; font-size: 14px; background-color: #ffffff; font-family: 'arial black', sans-serif;">1、在源代码的基础上增加usart的串口通信代码,可与更多外设进行数据交互;增加该项目的可玩性,并且引出通信针脚可增加其他外设;初学者会容易复刻学习,也能在这基础上增加自己熟悉的外设,使项目更加有趣和使用。</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" style="line-height: 1.8;"><span style="color: #95a5a6; font-size: 14px;"><img src="//image.lceda.cn/oshwhub/06f85032abbf45ca911fe3c3a6565c1c.png" alt="" width="332" height="545" /></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" style="line-height: 1.8;"><span style="color: #000000; font-size: 14px; background-color: #ffffff;">2、在usart代码中编写了usart_1~usart_4的执行代码,方便初学者调用;这样只需要在PCB中将对用的管脚引出或应用相应的外设即可,并且使用printf打印函数更加便捷。</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" style="line-height: 1.8;"><span style="color: #95a5a6; font-size: 14px; background-color: #000000;"><img src="//image.lceda.cn/oshwhub/f492bb16699a46a284e81ce81df6b5e9.png" alt="" /></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" style="line-height: 1.8;"><span style="color: #000000; font-size: 14px;">3、本项目中采用ESP-01s进行数据上传云端,代码不用AT指令;我选择用指定的物联网库开发,使用Arduino2.2.0版本白编写,这样分开编写使代码清晰明了,也不会造成STM32G0代码臃肿;Arduino开发的代码功能是将STM32打包发送过来的数据上传到云端APP,目前连接WiFi是采用指定的方式,后会增加用手机连接热点指定WiFi。</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" style="line-height: 1.8;"><span style="color: #000000; font-size: 14px;">a.部分代码演示(图1)、云端演示效果见附件第一个视频</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" style="line-height: 1.8;"><span style="color: #95a5a6; font-size: 14px;"><img src="//image.lceda.cn/oshwhub/7ea09a0c41674bd992b458709f964046.png" alt="" width="859" height="966" /></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" style="line-height: 1.8;"><span style="color: #000000; font-size: 14px;">图(1)</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;">4、项目中也采用ZigBee网关,使用固件开发,也增加指定的串口通信,这样可以在手机端发送命令给单片机执行,增加可玩性。</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;">b.软件演示图(2、3)</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/17469eb696d5485faf01193ea7886a3b.jpg" alt="" width="960" height="2079" /></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;">图(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 pap-left-indent-1.6em" style="line-height: 1.8;"><img src="//image.lceda.cn/oshwhub/1130b59d645d4eeb932312416ce3bd23.jpg" alt="" width="960" height="2079" /></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;">图(3)</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;">6、BOM清单</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;">BOM清单在工程页面有,有需要即可立创商城下单。</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;">7、大赛LOGO验证</h3> <hr class="horizontal-splitline normal-bold-2" /> <p style="line-height: 1.8;"><img src="//image.lceda.cn/oshwhub/bc3ae4b990fe4a9d936376fcbb1e1e24.png" alt="" width="590" height="454" /></p> <p style="line-height: 1.8;"><img src="//image.lceda.cn/oshwhub/d7487c0759094f9f9defc20de1a9b21f.png" alt="" width="590" height="472" /></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;">&nbsp;8、演示项目并录制成视频上传</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;"><span style="color: #000000;">详情见附件。</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" style="line-height: 1.8;"><span style="color: #000000;">演示视频:连摸鱼都双手插兜的男人 #摸鱼<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;B站: <span style="color: #e03e2d;"><a style="color: #e03e2d;" href="<a href="https://b23.tv/X4ueMEI%22>B%E7%AB%99%E6%BC%94%E7%A4%BA%E8%AE%B2%E8%A7%A3%E8%A7%86%E9%A2%91&lt;/a>&lt;/span>&lt;/span>&lt;/p" target="_blank">https://b23.tv/X4ueMEI">B站演示讲解视频&lt;/a>&lt;/span>&lt;/span>&lt;/p</a>> <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是ESP-01s与按键通断数码管显示的演示;</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是ZigBee网关的局域显示,视频中是数据没更新。(详细可见软件部分介绍)</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是NFC的功能演示,NFC是用PCB制成贴放在外壳上。(因考虑到集成同一板子会产生影响,所以用第二块PCB集成,详情NFC板子查看工程)</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> </div></p>
  • 1.mp4

  • 2.mp4

  • 3.mp4

文档

BOM

暂无

附件

附件名 下载
1.mp4
2.mp4
3.mp4
源码.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