描述
<div class="document">
<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;"><strong><span style="color: #0093e6;">请在报名阶段填写 ↓</span></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;"> </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;">* 1、项目功能介绍</h3>
<hr class="horizontal-splitline normal-bold-2">
<p>功能一:设备亮度自动实时调节,主控端光照度传感器的实时光照度数据检测通过<span>Lora</span>无线模块将调光数据下发至每个设备端,从而进行亮度调节</p>
<p>功能二:定时关闭,以及定时开启,主控端的时钟芯片,可更具当前时间设置进行路灯的定时开关,以及深夜关闭部分路灯避免能源浪费</p>
<p>功能三:故障自动上报至<span>app</span>,设备端装载有路灯故障检测系统如果路灯损坏会及时上报至手机<span>app</span>,并且手机会出现某某路灯损坏的信息。</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;">*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;">项目首次公开,均为原创!!!</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;">注:请说明项目是否首次公开;项目是否为原创;项目是否曾经在其他比赛中获奖,若有获奖则叙述获奖详情;项目是否在学校参加过答辩。</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;"> </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; 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;"> </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;">注:利他即利己,请认真阅读下述内容。</span></p>
<ol style="line-height: 1.8;">
<li class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-hanging-indent-1.6em" style="line-height: 1.8;"><span style="color: #95a5a6; font-size: 14px;">拥抱开源,赋予项目无限价值。建议项目核心功能开源80%以上;</span></li>
<li class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-hanging-indent-1.6em" style="line-height: 1.8;"><span style="color: #95a5a6; font-size: 14px;">若某一部分功能不可替代且删掉之后项目无法解决对应的问题,则这一部分实现的功能就是项目的核心功能;比如设计了一台电子负载且设计了一款上位机软件监控功率变化,则电子负载为核心功能,上位机软件为辅助功能;比如电子负载中使用了一款隔离485模块与上位机通信,则此485模块实现的通讯功能为辅助功能;</span></li>
<li class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-hanging-indent-1.6em" style="line-height: 1.8;"><span style="color: #95a5a6; font-size: 14px;">项目应选择适合自己的<span style="text-decoration: underline;"><a href="/posts/98fdb2accd754af7b51990790db3b47a" target="_blank">开源协议</a></span>,若项目引用其他开源项目,应注明来源并遵循原作者的开源协议规定;原创项目推荐使用GPL3.0开源协议;</span></li>
<li class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-hanging-indent-1.6em" style="line-height: 1.8;"><span style="color: #95a5a6; font-size: 14px;">直接引用开源项目的原电路或原代码实现的功能不可作为自己项目的核心功能、使用市场上通用模块直接实现的功能不可作为自己项目的核心功能。</span></li>
</ol>
<p 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;"><strong><span style="color: #0093e6;">请在竞赛阶段填写 ↓</span></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;"> </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>
<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>
<div>
<h2 align="left"><a target="_blank"></a><a target="_blank"></a>(一)产品概述</h2>
<p> 物联网智能路灯控制系统,由手机终端、中央控制器以及路灯控制器三部分组成。</p>
<p align="center"> </p>
<p> 手机终端用来作为路灯的监控平台,在阿里云客户端开发,具有开、关路灯,查看路灯运行状况,显示路灯故障信息。主控制器选用<span>STM32F103C8T6</span>为主芯片,通过<span>WIFI</span>模块与手机端相联,通过无线编码模块与路灯控制器相连,通过读取系统时钟和环境光强,在程序控制下,按时间和光强原则,智能开启、关闭和调节路灯亮度。接收路灯控制器发来的故障信息,通过网络实时传送到手机<span>APP</span>。路灯控制器选用<span>STM32F103C8T6</span>作为主芯片,通过无线编码模块,接收来自中央控制器发来的开关和调节亮度指令,同时将路灯故障信息发送给中央控制器。</p>
<h2 align="left"><a target="_blank"></a><a target="_blank"></a>(二)系统设计</h2>
<p><span>1</span>、主控制器电路原理</p>
<p>主控芯片选用<span>STM32F103</span>,系统时钟选用<span>DS1302N,</span>主机与控制器之间选用带编码的无线收发模块进行通讯,主机与手机监控端采用<span>WiFi</span>模块,通过云平台进行数据交换。</p>
<p><strong><span>2</span></strong><strong>、主从通信设计</strong></p>
<p><strong>(<span>1</span>)电路连接</strong></p>
<p>采用<span>lora A39</span>模块实现主从机通信,电路连接如图<span>3</span>所示。</p>
</div>
<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><img style="display: block; margin-left: auto; margin-right: auto;" src="//image.lceda.cn/pullimage/bW81fbxnDGJoyrbmHxXmGudBtb4U2tmqYLJxkLEt.png"></span></p>
<p> </p>
<p align="center">图<span>3 </span>模块与<span>CPU</span>连接</p>
<p><strong>(<span>2</span>)主从收发控制</strong></p>
<p>主机发送格式:</p>
<div align="center">
<table>
<tr>
<td width="83">
<p align="center"><span>0XFF</span></p>
</td>
<td width="66">
<p align="center"><span>0XFF</span></p>
</td>
<td width="142">
<p align="center"><span>OX01(</span>开<span>)</span></p>
<p align="center"><span>0X10(</span>关<span>)</span></p>
</td>
<td width="151">
<p align="center"><span>0X00-07</span></p>
<p align="center">(<span>00-07</span>表亮度)</p>
</td>
</tr>
</table>
</div>
<p>例如:主机向从机发送:发送<span>0XFF FF 01 02,</span>表档,所有路灯按二档开机。</p>
<p>从机发送格式:</p>
<div align="center">
<table>
<tr>
<td width="119">
<p align="center"><span>0X00</span></p>
<p align="center"><span>00</span>为主机组号</p>
</td>
<td width="113">
<p align="center"><span>0X01</span></p>
<p align="center"><span>01</span>为主机地址</p>
</td>
<td width="117">
<p align="center"><span>0X00</span></p>
<p align="center"><span>00</span>为从机组号</p>
</td>
<td width="104">
<p align="center"><span>0X0N</span></p>
<p align="center"><span>0N</span>为从机地址</p>
</td>
<td width="132">
<p align="center"><span>0X01</span></p>
<p align="center"><span>01</span>表示路灯已坏</p>
</td>
</tr>
</table>
</div>
<p><strong><span>3</span></strong><strong>、环境光照度检测电路</strong></p>
<p align="center"> </p>
<p align="center">图<span>4 </span>环境光照度检测电路图</p>
<p><strong><span>4</span></strong><strong>、路灯控制器硬件设计</strong></p>
<p>路灯控制器如图<span>5</span>所示,由无线收发模块、路灯驱动调光电路、霍尔电流检测电路三部分组成。</p>
<p align="center"><img src="//image.lceda.cn/pullimage/qcMji1FiLxMSYR8ayq5ULybRS06pRLIylqD4QgsW.png"></p>
<p align="center">图<span>5 </span>路灯控制器硬件框图</p>
<p><strong>(<span>1</span>)<span>PWM</span>驱动调光原理</strong></p>
<p align="center"><img src="//image.lceda.cn/pullimage/RBRlvTM4PHOS9m2YoWyIVyUaHMsTfuYrPF9ZNZWE.png"></p>
<p align="center">图<span>6 LED</span>调光驱动电路图</p>
<p><span>LED</span>是一个二极管,它可以实现快速开关。它的开关速度可以高达微利以上。是任何发光器件所无法比拟的。因此,只要把电源改成脉冲恒流源,用改变脉冲宽度的方法,就可以改变其亮度。这种方去称为脉宽调制<span>(PWM )</span>调光法。如上图是我们的<span>led</span>调光驱动电路,通过从控制器给开关芯片一个<span>pwm</span>信号来调节需要的亮度,脉冲宽度调制是一种模拟控制方式,根据相应载荷的变化来调制晶体管基极或<span>MOS</span>管栅极的偏置,来实现晶体管或<span>MOS</span>管导通时间的改变,从而实现开关稳压电源输出的改变。这种方式能使电源的输出电压在工作条件变化时保持恒定,是利用微处理器的数字信号对模拟电路进行控制的一种非常有效的技术,在本次智能调节路灯亮度也是起到的重要的作用。</p>
<p><strong>(<span>2</span>)霍尔电流检测原理</strong></p>
<p align="center"><img src="//image.lceda.cn/pullimage/1DFrGqZ9ernjeRKrlOFtAN01YmTVhj3dTGhRzv94.png"></p>
<p align="center">图<span>7</span>霍尔电流传感器</p>
<p><span>ACS712</span>引脚,其中<span>IP+</span>和<span>IP</span>−分别是待测电流的流入和流出引脚。<span>VCC</span>和<span>GND</span>是模块供电电压,<span> VIOUT</span>是模块输出电压值。由于<span>VIOUT</span>和待测电流呈现线性关系,<span>ACS712</span>将待测的模拟电流转化为模拟电压输出,通过<span>AD</span>测量出<span>VIOUT</span>,因此可以反向推导出待测电流。将<span>VIOUT</span>接入到路灯控制器的<span>ADC</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;">注:推荐使用<span style="text-decoration: underline;"><a href="https://lceda.cn/editor" target="_blank">嘉立创EDA</a></span>。若选择其他EDA工具,请在附件上传PDF格式的原理图,PDF格式的PCB图纸,Gerber格式的PCB文件。这里可以详细说明您的项目实现原理和机制、注意事项、调试方法、测试方法等。推荐图文并茂的形式向别人介绍您的想法。</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;"> </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: #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;">软件组成</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;">(1).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" 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;">(3).WiFi模块的初始化代码</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).mqtt协议代码</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).ds1302时钟代码</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;">(6).oled显示函数</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;">(7).光照度传感器函数</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>
<img id="alttext-image" style="display: inline; float: left;" width="16" height="16" align="left" src="//"><span id="alttext"></span>
<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;"><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;"><img src="//image.lceda.cn/pullimage/KoQ2RADSvWb96bTM6MDfm5orfi5mple7HiB7lXpf.png" alt="" width="813" height="622"><img src="//image.lceda.cn/pullimage/OOch0M7wXe2pBRqhZkeh4ZwQuklSeSZyHdXDCQMA.png" alt="" width="805" height="535"></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;">项</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;">目涉及的BOM清单。这个位置请上传BOM的截图。清单详情请以PDF的格式上传到附件中。建议包括型号、品牌、名称、封装、采购渠道、用途等内容。具体内容和形式应以表达清楚项目构成为准。</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;"> </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/pullimage/rubuB2FE4r9fRtzAtawVlOdYD1tyWlnPcfttwpZk.jpeg" alt="" width="300" height="300"><img src="//image.lceda.cn/pullimage/3qhoPcMben7VgTMub2cBoC6PVms74v2S7SzZjoia.jpeg" alt="" width="300" height="300"></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;">请上传包含大赛logo的项目图片,logo以丝印形式印刷在PCB上面。</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;">点击zip下载大赛logo标识! <span style="text-decoration: underline;"><a href="https://image.lceda.cn/easyedaResource/images/%E7%AB%8B%E5%88%9B%E7%94%B5%E8%B5%9B%E6%A0%87%E8%AF%86.rar" target="_blank">(大赛标识).zip</a></span></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;"> </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;">* 8、演示您的项目并录制成视频上传</h3>
<hr class="horizontal-splitline normal-bold-2">
<p 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;"><span style="color: #95a5a6; font-size: 14px;">视频要求:请横屏拍摄,分辨率不低于1280×720,格式Mp4/Mov,单个视频大小限100M内;</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;">视频标题:立创电赛:{项目名称}-{视频模块名称};如立创电赛:《自动驾驶》-团队介绍。</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;"> </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="font-size: 14px;">更多详情:<a href="/posts/06c94d90c2c447dfbd9ed7339ff4a5b1" target="_blank">https://diy.szlcsc.com/posts/d76d9cb41705430e9a54e7a5feed07a5</a></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;"> </p>
</div>
评论(4)