标准版
#第六届立创电赛#离线语音开关

创建时间:3年前

2098 4

描述

<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 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;">        此次完成的是<strong>离线语音控制台灯的项目</strong>。项目的初衷是因为最近家里有小宝宝了,晚上经常要起来喂奶粉或者哄睡啥的,有频繁开灯的需求,然而开关太远,整晚开小夜灯听说对宝宝发育不好,遂有做语音控制台灯的想法,而去年自己跟着立创做了个在线的物联网台灯,但是那个使用不太稳定已经堆灰了,这次立创EDA举办的暑期活动刚好和我的需求吻合,遂参加并完成。</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;">       离线语音控制台灯,顾名思义采用语音的方式控制台灯开关。受到暑期训练营老师的启发,自己也到拼多多上买了个5块9的台灯,找了个如图有底座的,想着到时候板子有地方安装。原来的台灯是只能usb供电使用的,为了使用方便,不挑应用场景,在里面增加了锂电池以及相关的充电和升压电路。同时也在板子上加了个RGB灯。目前实现了开关灯功能,完成了预期目标~ps:唤醒词用的是宝宝的名字哈哈,后续等宝宝会说话了,就把播报词也换成她的~</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;"><br><img src="//image.lceda.cn/pullimage/Q2FHKqKytGLNfPogPQPd6NCcEk3YwYUgI19JKvIW.jpeg" alt="Q2FHKqKytGLNfPogPQPd6NCcEk3YwYUgI19JKvIW.jpeg" width="129" height="276"><img src="//image.lceda.cn/pullimage/QYqNa2Xy2gO0TOu8f3pdOVblfoaPbUEh6CFcHlOU.jpeg" alt="QYqNa2Xy2gO0TOu8f3pdOVblfoaPbUEh6CFcHlOU.jpeg" width="127" height="169"><br></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:18px;">问题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;">原因分析及解决:一开始点合并总说我的user.bin文件路径错误,一直不让合并,各种改文件夹路径也不行,后来发现是我压根就没有user.bin文件,因为我还没有在eclipse里面编译过(完全跟着视频操作,他里面也没有,但事实上他之前编译过,因为只演示语音控制相关文件的合成,所以不需要重新编译工程),自己编译一遍就ok了。 ps 第一次使用sdk开发,以前都是用stm32在keil上开发,学习了。</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:18px;">问题2:程序烧不进去。</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;">原因分析及解决:我在电路设计的时候在板子上面加了个CH340E,想着可以不用USB转TTL,直接USB线烧程序的,但是启英泰伦的烧录软件就是不认,后来看了N遍教学视频发现问题好像出在上电问题上,要先串口模块上电让烧录软件识别到串口,勾选好烧录选项后,再给C22GS02S模块上电,然而我的CH340E和C22GS02S用的是一套电源的,然后就各种隔板子、飞线,验证ok。后面又焊了一块,没加CH340E,烧录线直接焊在相应接口,烧完程序验证OK后再把线给弄下就ok。</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:18px;">问题3:使用了UART1_RX复用IO口,想输出高低电平,实测不行,不管给高电平还是低电平,UART1_RX引脚始终是0.8V.</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;">原因分析:是不是在哪里初始了uart1,导致我写的复用被覆盖了。目前未解决,于是把相应引脚控制的一路RGB控制电路给抠了。</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:18px;">问题4:台灯结构和我想象的不一样,由于它做成了一个笔筒的样子,里面空间及其小</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;"> </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;">*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;">原创</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;">GPL3.0</span></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> <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;">         电路主要包括以下几部分,<strong>电源部分</strong>(USB接口 电池接口 电池升压部分 电池充电电路  USB电源和锂电池电源自动选择电路),<strong>离线语言模块</strong>(C22GS02S)<strong>外围电路</strong>,<strong>负载电路</strong>(4路MOS管开关电路 其中一路控制台灯负载 另外三路控制RGB灯)。</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;">1 焊接好后,由于板载有一个连接UART0的CH340E的模块,因此板子连接电脑后,打开串口助手,上电复位后串口助手会收到一堆字符,success。</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;">2 调试电池充电电路,有两个指示灯指示充电中以及充电完成,调试ok。</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;">3 电源选择电路 测试ok</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 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;">         软件比较简单,就在SDK中的user_msg_deal.c文件中的deal_asr_msg_by_cmd_id()函数中增加了相应的case。</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;">*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/9LTVJSlBs5MYZe1Lrx9iUnrCimxwij5yScc2gUsJ.png" alt="9LTVJSlBs5MYZe1Lrx9iUnrCimxwij5yScc2gUsJ.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> <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/okFQqeK4iNRRCjM1VxvybjAHWLQ4S6oclUogFHRL.png" alt="okFQqeK4iNRRCjM1VxvybjAHWLQ4S6oclUogFHRL.png"></p> <p style="line-height:1.8;"> </p> <p style="line-height:1.8;"> </p> <p style="line-height:1.8;"><img src="//image.lceda.cn/pullimage/pRRCB6WiO1Tsn7PJTmpxeFHeUaIMiJ9drvxQFgR9.png" alt="pRRCB6WiO1Tsn7PJTmpxeFHeUaIMiJ9drvxQFgR9.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> <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/06c94d90c2c447dfbd9ed7339ff4a5b1</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>

文档

Sheet_1

PCB_2021-07-19_19-54-32

BOM

ID Name Designator Footprint Quantity Manufacturer Part Manufacturer Supplier Supplier Part
1 X9821WRS-02-9TSN BAT,MICL,SPKL CONN-SMD_2P-P1.25_X9821WRS-02-9TSN 3
2 100nF C1,C6,C14,C16 C0603 4
3 1uF C2,C8 C0603 2
4 1uF/50V C3 C0603 1
5 10uF/10V C4,C5,C13,C15 C0603 4
6 100uF C7 CAP-SMD_L7.3-W4.3-R-RD 1
7 22uF/10V C9,C12 C0603 2
8 100nF/10V C10,C11 C0603 2
9 SMAJ6.0CA D1 SMA_L4.4-W2.6-LS5.0-BI 1
10 LESD8H6.3T5G D2,D3 SOD-882_L1.0-W0.6-RD 2
11 ESD5Z3.3C D4,D5 SOD-523_L1.2-W0.8-LS1.6-BI 2
12 SS24G_C364270 D6,D7 SMA_L4.3-W2.6-LS5.0-RD 2
13 LED-0603_G G,LED1 LED0603_GREEN 2
14 HDR-F-2.54_1x5 H2 HDR-F-2.54_1X5 1
15 4.7uH L1 IND-SMD_L4.0-W4.0_LQH44PN2R2MP0L 1
16 CONN-TH_2P-P5.00 P1 CONN-TH_2P-P5.00 1
17 HDR-F-2.54_1x2 PGEN HDR-F-2.54_1X2 1
18 AO3400_C122850 Q1,Q2,Q3,Q4 SC-59-3_L2.9-W1.5-P0.95-LS2.5-BR 4
19 NCE3401AY Q5 SOT-23_L2.9-W1.3-P1.90-LS2.4-BR 1
20 0R R1 R0603 1
21 4.7k R2,R3,R23,R25 R0603 4
22 100/1206 R4,R6,R7,R15,R16 R1206 5
23 330R/1% R5 R0603 1
24 100R R8,R11,R14,R17 R0603 4
25 10k R9,R10,R12,R18,R21 R0603 5
26 330R R13 R0603 1
27 88k R19 R0603 1
28 12k R20 R0603 1
29 0.4R/1206 R22 R1206 1
30 5k R24 R0603 1
31 LED-0603_R RED LED0603_RED 1
32 TC5053RGBE60-3CJH-GF09 RGB_LED LED-SMD_6P-L5.0-W5.0-BL_TC5053RGBE60 1
33 SK12D07VG5 SW1 SW-TH_SK12D07VG5 1
34 CH340E U MSOP-10_L3.0-W3.0-P0.50-LS5.0-BL 1
35 CI-C22GS02S U1 SMD-17_L20.0-W1.80-CI-C22GS02S 1
36 ME2159AM6G U2 SOT-23-6_L2.9-W1.6-P0.95-LS2.8-BR 1
37 TLV73333PDBVR U3 SOT-23-5_L3.0-W1.7-P0.95-LS2.8-BR 1
38 TP4056 U4 ESOP-8_L4.9-W3.9-P1.27-LS6.0-BL-EP 1
39 MICRO 4P DIP USB1-U3-1 MINI-USB-SMD_MICRO-4P-DIP 1

附件

附件名 下载
2021立创EDA暑期训练营_离线语音台灯.mp4
程序代码.rar

评论(1)

  • 表情
    emoji
    小嘉工作篇
    小嘉日常篇
  • 图片
成功
工程所有者当前已关闭评论
立创电赛 回复
<p><span class="colour" style="color: rgb(85, 85, 85);"> logo验证需要上传第六届电赛的logo实物图,可前往QQ群>群文件下载:</span><span class="colour" style="color: rgb(60, 46, 35);"><u>1051569414</u></span></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