版本协议

GPL 3.0

标签
标准版
#第六届立创电赛#物联网离线语音控制器-402304A

创建时间:3年前

848 1

视频

  • studio_video_1627979570945.mp4

  • studio_video_1628313343758.mp4

描述

<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> <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;">物联网离线语音控制器:目标是做成使用MQTT协议的家庭物联网离线语音控制器,并集合433转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;"><span style="color: #000000; font-size: 16px;">接入Domoticz服务,通过离线语音助手控制局域网物联网设备!</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: 16px;">目前实现的功能有:1.离线语音识别转MQTT;2.433射频信号识别转MQTT;3.主板自带按钮转MQTT命令控制物联网设备。</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;">*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: #000000; font-size: 16px;">本项目为原创和首次公开!</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;"> </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: #000000; font-size: 16px;">使用GPL3.0开源协议;</span></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> <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; font-size: 16px;">使用立创EDA工具完成原理图和PCB设计,目前已经画了两版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: #000000; font-size: 16px;">硬件部分主要包含两大模块,主控MCU兼通信模块采用ESP8266(预留了ESP-01S接口,兼容ESP-01S),使用ArduinoIDE软件开发;离线语音部分采用涂鸦VCT2离线语音模块,</span></p> <p><span style="color: #000000; font-size: 16px;">此模块核心芯片采用的是启英泰伦ci1102,离线语音模块固件使用的是官方原始固件,在启英泰伦官方网站生成自己的语言模型和声音文件,自定义唤醒词和命令词;</span></p> <h4 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;">一,电路部分介绍:</h4> <p><img src="//image.lceda.cn/pullimage/3D6S7iFyjnQZVKmHFaJR9Su0ZAzPAtfC07mq0VTu.png" alt="" width="513" height="257"></p> <p>串口调试、下载电路:使用了CH340N芯片,第一版验证后发现CH340N给VCT2离线语音模块下载程序有问题,不能下载,只能作为串口通信调试;给ESP8266下载及串口调试则没有问题。</p> <p>第二版决定改成CH342芯片,342芯片拥有两路串口,这样的话ESP8266和VCT2都拥有独立的下载和调试串口,就不需要使用排针短接来切换了!第二版PCB正在打样中;</p> <p> </p> <p><img src="//image.lceda.cn/pullimage/Gy6mNf1XzgqcMhXr3UdBB0PAT523tAYv0gCppD31.png" alt="" width="606" height="357"></p> <p>5V转3.3LDO电路:采用经典的AMS1117-3.3,给主控ESP8266供电!</p> <p> </p> <p><img src="//image.lceda.cn/pullimage/sornTSzdNlrUxAPLf30tyGegY9VWp0afqNJQz4rp.png" alt="" width="795" height="510"></p> <p>ESP8266基本电路:</p> <p> </p> <p><img src="//image.lceda.cn/pullimage/VLeh8Asm7bfzY1IueQChmcaU2F5A8UorvpPIl2Q3.png" alt="" width="724" height="313"></p> <p>VCT2离线语音模块基本电路:</p> <p> </p> <p><img src="//image.lceda.cn/pullimage/uo2KrRklS46Baaeg1Lxd7v36MJbBZfxGpCOXk2bn.png" alt="" width="539" height="163"></p> <p>这个是433射频接收模块:</p> <p> </p> <p><img src="//image.lceda.cn/pullimage/BCbrOnUFeZTnRz0rz7q0sALb1oBF7yTL1VTo8sfI.png" alt="" width="830" height="254"></p> <p>这个是按钮电路:第一版设计了8路按钮,调试后发现ESP8266的gpio16并不能作为普通IO连接按钮使用;每二版作了调整,只使用了6路按钮!</p> <p> </p> <p>第一版打板PCB空板:</p> <p><img src="//image.lceda.cn/pullimage/OcvLxI59y5LCdHsvpVfdbNpLn1r2zPzlolEJipYG.jpeg" alt="" width="800" height="807"></p> <p><img src="//image.lceda.cn/pullimage/IdUkSSYlWBLjSqAYJHw2mP0mINteBYHXcF6eADf2.jpeg" alt="" width="800" height="789"></p> <p> </p> <p> </p> <p>第二版空板已收到:</p> <p><img src="//image.lceda.cn/pullimage/F7d4nOXZX56eLzOV6ctYy75KcesUMVhaPzOd5w9K.jpeg" alt="" width="800" height="716"></p> <p> </p> <p><img src="//image.lceda.cn/pullimage/hA8ZTq6lZQjSpi5NZQM3U9bR8DUO9cTHD7ALPHJM.jpeg" alt="" width="800" height="806"></p> <p>第一版焊接成品:</p> <p><img src="//image.lceda.cn/pullimage/8jrvnzopi9AAk0hLny878hx80Ah2HKszqOqEEqHB.jpeg" alt="" width="800" height="762"></p> <p>上墙成品:(亚克力外壳)</p> <p><img src="//image.lceda.cn/pullimage/pI807bvHmIxdZQpfTxxMiev2SbPkoY1UbQ8WnPru.jpeg" alt="" width="800" height="653"></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" style="line-height: 1.8;">把键盘部分切掉了,主控换成了ESP-01!</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/6WFlok8KSHBL3PxeigfFqTKZpCDOra02OTXMp7GA.jpeg" alt="" width="800" height="694"></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/KjciYpwkLiBW4nrUNExFB3VwPAgpHzpUEJSrF8h2.jpeg" alt="" width="800" height="680"></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/1qMijkp12dSTMdN8G5VS4E4t95LBXyKJoPuEjIv2.jpeg" alt="" width="800" height="682"></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/klFt66QomMweJS6GMqPxkIlJSKYXhwriAVujvvMB.jpeg" alt="" width="800" height="688"></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="font-size: 16px; color: #000000;"><strong>VCT2离线语音模块不做开发,本身语音模块使用过程中会在默认串口输出调试日志;(主要还是因为不太会!)</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="font-size: 16px; color: #000000;"><strong>本项目直接使用ESP8266串口识别VCT2串口的调试输出;程序全部在8266中开发,使用ArduinoIDE相对非常容易;</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;"> </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: 16px; color: #000000;"><strong>1.Arduino中开发板配置:</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;"><img src="//image.lceda.cn/pullimage/siEF3aeORLfb0LSNl8YY5pOXJModsmg31pSP99x7.png" alt="" width="760" height="744"></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.引入8266、MQTT、JSON、433、库文件:</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/kjqkj0qiHUliOyCDKoYuScs17za8ytIVYEPJxVpU.png" alt="" width="445" height="284"></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.初始化代码:按钮、串口、433、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;"><img src="//image.lceda.cn/pullimage/O70R5ZSIDLdBenmWPto5cNTCcjkko8AyI3D9XaVa.png" alt="" width="476" height="283"></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.串口、433、接受信号后的处理:</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/kOmRQCFpAzsJzNwmg96iFxuQNE1q8wMXy80R5L4e.png" alt="" width="474" height="332"></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.按钮处理程序:</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/5snSUec4eLShcfBo5GvNhMN15IjkPyos3juS97kc.png" alt="" width="452" height="320"></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.串口接收到VCT2语音板信息后的处理子程序:</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" 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/7cT0BvFuniLbZQQ717iSzaa6rs2D8dRlQPJrgzaJ.png" alt="" width="526" height="468"></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;">然后通过判断不同的语音命令字符串,发送不同人MQTT信息到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;"><img src="//image.lceda.cn/pullimage/GC9vUJpizRR0vWpjXZzAvgmLIVqKOOWSbzDQuTRg.png" alt="" width="486" height="330"></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;">7.Domoticz中建立Lua脚本对收到的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;"> </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;">首先在Domoticz中创建虚拟传感器,类型为文本,名称自己定就可以了;</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/G0jRcXCkB94t8l5wfNk1VViA8AhcbuBVerRYYo62.png" alt="" width="819" height="380"></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;">记下创建的文本传感器的idx号,这个号在Arduino程序中是需要对应的;</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/vpi3bWfi5C0sjCqrn2zqExBl96jzlpG5u950F3BY.png" alt="" width="963" height="49"></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;">在Domoticz中新建事件触发器,选择Lua脚本,类似代码如下:对收到的文本传感器相应的信息作不同的开关灯动作!</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/lMhqvEIjOtlUoFbnp84t4DrPsVQANZF7l8sicJ3v.png" alt="" width="1008" height="464"></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" 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 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> <hr class="horizontal-splitline normal-bold-2"> <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;">BOM清单在开源项目中</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> <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/Ite1ZAZJdnmntRZ1UnztFJQriRGuOqfTbSnBMbOs.jpeg" alt="" width="800" height="701"></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://lceda.oss-cn-shenzhen.aliyuncs.com/diy/uploads/file/2019/05/29/0e4d93a463d7ceb5e7dc77d774b7a4ae.zip" 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 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> </div>

文档

Sheet_1

PCB_#第六届立创电赛#物联网离线语音控制器

亚克力壳

BOM

暂无

附件

附件名 下载
esp8266-vct2.zip

成员

评论(1)

  • 表情
    emoji
    小嘉工作篇
    小嘉日常篇
  • 图片
成功
工程所有者当前已关闭评论
立创电赛 回复
<p>需要上传大赛的logo哦,可前往大赛官网QQ群文件处下载:1051569414</p>
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