描述
<p class="document"> </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;"><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>
<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;">该项目是使用国民技术生产的N32G430系列为主控,数据获取模块是使用MPU6050六轴加速度传感器模块获取姿态信息,它在飞控、平衡车等领域都得到很广泛的使用,由此可见它具有非常强大的功能,深受每个电子人的喜爱。控制模块是则是使用二维云台,二维云台是每个电子专业的大学生经常接触的模块,它包括了运动姿态解析,舵机运动控制等许多领域。而这次的项目是把二维云台和MPU6050模块二者相结合,看他们能擦出怎样的火花呢。</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;">*2、项目属性</h3>
<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;"> </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>
<p><em><strong><span style="color:#95a5a6;font-size:14px;">GPL3.0</span></strong></em></p>
<p> </p>
<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>
<p></p><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;">4.1 主控电路和MCU6050模块数据采集模块</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/JjlYhApdZcNOcr89QrxkKoR0VurOmDXVxyY5a0gK.png" alt="JjlYhApdZcNOcr89QrxkKoR0VurOmDXVxyY5a0gK.png"><img src="//image.lceda.cn/pullimage/db1pWLd54X67lIJxEDVrp7NP3YWHekD6CRV2vNrm.png" alt="db1pWLd54X67lIJxEDVrp7NP3YWHekD6CRV2vNrm.png"></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.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;">该模块使用了光耦进行隔离,设计初衷是在使用舵机的时候,由于舵机堵转或者快速转动的瞬间,会产生相对较大的反向电流,如果处理不得当,很容易会烧掉MCU或者一些传感器。所以,一般来说使用舵机就需要对舵机的控制信号进行隔离。而舵机的硬件布线也比较简单,我们只需要三条线:<strong>电源线,信号线,地线</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;"><img src="//image.lceda.cn/pullimage/Y663du9wfGVJxbHWsFK0zTdRvUL1yMAMZ2pmLIzl.png" alt="Y663du9wfGVJxbHWsFK0zTdRvUL1yMAMZ2pmLIzl.png" width="410" height="382"><img src="//image.lceda.cn/pullimage/uiJgDSkZag6ew3zmOb2IkeydBa1lcDjXAycKNiBd.png" alt="uiJgDSkZag6ew3zmOb2IkeydBa1lcDjXAycKNiBd.png" width="614" height="378"></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;"><img src="//image.lceda.cn/pullimage/zNcGTzil3645D7NzkrxFJUSkkqzcNL7fCxf90iAL.png" alt="zNcGTzil3645D7NzkrxFJUSkkqzcNL7fCxf90iAL.png" width="434" height="285"></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;">这是经典的光耦隔离电路,从原理图就可以看出,光耦隔离的工作原理。右边,是信号输入,出入的PWM,会使光耦隔离器内部的发光二极管发光,是一个电信号变成光信号的过程,光信号会传输到左边,而左边是一个类似于三极管一样的器件,左边则是将光信号转变成电信号的过程,而能量则来自外部给的5V_DJ,中间的传输则是通过光来传输的。这样的话,电流只能正向流而不能反向流了,从而就起到了保护MCU和传感器的作用。<br><br></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 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>
<p></p><hr class="horizontal-splitline normal-bold-2"><p>因为我使用的MPU6050模块使用的是正点原子官方的那一款,它和训练营官方使用的MPU6050模块的SDA和SCL引脚是相反的,所以我在代码上进行了修改,把原先的SDA和SCL互换了一下,最后也成功驱动了正点原子官方的那一款MPU6050。后面因为我加了二维云台控制,需要主控芯片产生PWM来驱动。所以我在官方数据手册里面查到了可以通过使用定时器二来产生两路PWM来分别控制二维云台的两个舵机,它们分别是通道二的PA1和通道三的PA2,如下图所示:</p>
<p><img src="//image.lceda.cn/pullimage/moQFDTIkUdIeVG3PdTVMeVDvIdj8Ud6k5ZCMdZhS.png" alt="moQFDTIkUdIeVG3PdTVMeVDvIdj8Ud6k5ZCMdZhS.png"></p>
<p>舵机说明:</p>
<p>使用的这款二维云台,它搭载的是两个SG90舵机。这款舵机价格比较便宜,能初学者入手舵机的不二选择。</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/KavegvRsro9tenRnVEczaLbmJ25QiTWqGHBjepZs.png" alt="KavegvRsro9tenRnVEczaLbmJ25QiTWqGHBjepZs.png"></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产生一个周期为20ms的脉冲信号,以0.5ms到2.5ms的高电平来控制舵机转动的角度。</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/R2pS7yeJBuw8dAYS8waIfOncI3C4O9Repb9W2HQa.png" alt="R2pS7yeJBuw8dAYS8waIfOncI3C4O9Repb9W2HQa.png"></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;"> </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;">*6、BOM清单</h3>
<p></p><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;">请输入内容…<img src="//image.lceda.cn/pullimage/xuzr5Sb2EPtoyBfrc1pv8wdA1W6sA2RbvM2uxudF.png" alt="xuzr5Sb2EPtoyBfrc1pv8wdA1W6sA2RbvM2uxudF.png"></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;">注:项目涉及的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>
<p></p><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;"><img src="//image.lceda.cn/pullimage/REyKdol1j4FfPAuLM3wXtbc0CDGrI8QXr5B2SR1x.png" alt="REyKdol1j4FfPAuLM3wXtbc0CDGrI8QXr5B2SR1x.png">请上传包含大赛</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;">lo<img src="//image.lceda.cn/pullimage/iG3meXi01ANfPMjdtQWsJJ4P3cv5C5YQALjWvfBp.png" alt="iG3meXi01ANfPMjdtQWsJJ4P3cv5C5YQALjWvfBp.png">go的项目图片,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>
<p></p><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>
<p> </p>
评论(4)