版本协议

Public Domain

专业版
#第十届立创电赛#SF32LB52小智AI

创建时间:2个月前

55 0

描述

<p style="line-height:1.8;">注:* 为必填项</p> <p style="line-height:1.8;"><strong><span style="color:#0093e6;">请在报名阶段填写 ↓</span></strong></p> <p style="line-height:1.8;"> </p> <h3 style="line-height:1.8;">* 1、项目功能介绍</h3> <hr> <p>问天气?问时间?问病情? 基于 SF32LB52 的小智 AI 对话机器人,带着整个互联网的知识,解决你的疑难杂问。<br>基于 立创开源蓝牙模组 制作的简易AI对话机器人,实现AI实时语音对话。它能够听懂你的情绪,解答你的疑惑,也能分享你的快乐。</p> <h2> </h2> <p style="line-height:1.8;"> </p> <p style="line-height:1.8;"><span style="color:#95a5a6;font-size:14px;">注:主题不限,可以是解决生活/工作中的某个问题、为某个人群/场景设计的方案、毕业设计/课程设计/DIY项目/纯属炫酷项目等。主要讲一下自己通过什么手段解决了什么问题。</span></p> <p style="line-height:1.8;"> </p> <h3 style="line-height:1.8;">*2、项目属性</h3> <hr> <p style="line-height:1.8;"><span style="color:#95a5a6;font-size:14px;">项目是首次公开;</span></p> <p style="line-height:1.8;"><span style="color:#95a5a6;font-size:14px;">项目不为原创(复刻本次大赛给出的案例);</span></p> <p style="line-height:1.8;"><span style="color:#95a5a6;font-size:14px;">项目未曾经在其他比赛中获奖,</span></p> <p style="line-height:1.8;"><span style="color:#95a5a6;font-size:14px;">项目是否在学校参加过答辩。</span></p> <p style="line-height:1.8;"> </p> <p style="line-height:1.8;"> </p> <p style="line-height:1.8;"><span style="color:#95a5a6;font-size:14px;">注:请说明项目是否首次公开;项目是否为原创;项目是否曾经在其他比赛中获奖,若有获奖则叙述获奖详情;项目是否在学校参加过答辩。</span></p> <p style="line-height:1.8;"> </p> <h3 style="line-height:1.8;">* 3、开源协议</h3> <hr> <p style="line-height:1.8;"><span style="color:#95a5a6;font-size:14px;">public domain</span></p> <p style="line-height:1.8;"> </p> <p style="line-height:1.8;"><span style="color:#95a5a6;font-size:14px;">注:利他即利己,请认真阅读下述内容。</span></p> <ol style="line-height:1.8;"> <li style="line-height:1.8;"><span style="color:#95a5a6;font-size:14px;">拥抱开源,赋予项目无限价值。建议项目核心功能开源80%以上;</span></li> <li style="line-height:1.8;"><span style="color:#95a5a6;font-size:14px;">2、若某一部分功能不可替代且删掉之后项目无法解决对应的问题,则这一部分实现的功能就是项目的核心功能;比如设计了一台电子负载且设计了一款上位机软件监控功率变化,则电子负载为核心功能,上位机软件为辅助功能;比如电子负载中使用了一款隔离485模块与上位机通信,则此485模块实现的通讯功能为辅助功能; </span></li> <li 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 style="line-height:1.8;"><span style="color:#95a5a6;font-size:14px;">直接引用开源项目的原电路或原代码实现的功能不可作为自己项目的核心功能、使用市场上通用模块直接实现的功能不可作为自己项目的核心功能。</span></li> </ol> <p style="line-height:1.8;"> </p> <p style="line-height:1.8;"><strong><span style="color:#0093e6;">请在竞赛阶段填写 ↓</span></strong></p> <p style="line-height:1.8;"> </p> <h3 style="line-height:1.8;">*4、硬件部分</h3> <hr> <p style="line-height:1.8;"><span style="color:#95a5a6;font-size:14px;">请输入内容…</span></p> <p style="line-height:1.8;">电源部分</p> <p style="line-height:1.8;"><img src="https://image.lceda.cn/oshwhub/pullImage/0bec8bc27f8f482d9672b7b173536a86.png" alt="0bec8bc27f8f482d9672b7b173536a86.png"></p> <div> <div>BAT1 是一个<a href="https://item.szlcsc.com/6030883.html" target="_blank">电池盒</a>,可以容纳一节 CR123A 电池。故要供电的话,需要使用小型柱形电池 CR123A 进行供电。</div> <div> </div> <div>主控部分</div> <div><img src="https://image.lceda.cn/oshwhub/pullImage/9ad15b53f898408d9d87b8929a3f9d73.png" alt="9ad15b53f898408d9d87b8929a3f9d73.png"></div> <div> <div> <div>主控用的是 [立创·开源SF32LB52模组](<u>https://item.szlcsc.com/45024582.html</u>),一款蓝牙低功耗芯片,频率 <strong>240MHz</strong>,集成 8MB PSRAM 和 16MB Flash,支持锂电池直接供电。BLE 连接功耗(1S间隔)仅需 7μA,BT连接功耗(1S间隔)仅需 10μA,BLE + BT 双连接功耗比同行单BT连接功耗还能降低 60%。</div> <div> </div> <div>模组支持 BT PAN 功能可以直接连接手机上网,相比 WIFI 功耗更低,更加适合电池场景,带屏连接功耗仅 <strong>30mA</strong>。</div> <div> </div> <div>在本项目中,直接让电池电源直连模组的电源输入引脚 VSYS。这里需要注意<code>该模组电压范围要求 3.7V~4.7V</code>。3.3V 和 5V 供电都不行。</div> <div> </div> <div>模组的 VDD33_VOUT2 是由软件控制输出的,需要芯片正常启动后才有输出3V3。</div> <div> </div> <div>音频功放部分</div> <div><img src="https://image.lceda.cn/oshwhub/pullImage/c31f0cd64f2b46838545698102657f7a.png" alt="c31f0cd64f2b46838545698102657f7a.png"></div> </div> </div> </div> <div> <div>音频功放主要以上图的 U6 为主,它型号是 LM4871,是一款 3W、单声道 AB 类音频功率放大器,工作电压 1.9 - 5.5V。</div> </div> <p style="line-height:1.8;">麦克风部分</p> <p style="line-height:1.8;"><img src="https://image.lceda.cn/oshwhub/pullImage/c02261f2bb494279aac1a2f2db1ff8a4.png" alt="c02261f2bb494279aac1a2f2db1ff8a4.png"></p> <div> <div>麦克风咪头(通常为驻极体话筒)的核心是一个<strong>可振动</strong>的极板(振膜)与固定背极板组成的电容。</div> <div> </div> <div>当声音振动波作用在振膜上时,会导致其与背极板的距离动态变化,从而改变电容值。当有声音时,器件内部电容发生变化,这一变化会引发电容两端的电荷移动,产生微弱的交流电信号(模拟信号)。</div> <div> </div> <div>但是虽然麦克风内部的驻极体材料自带永久电荷(无需外部供电维持电场),即使没有电源输入,麦克风也能够使用,但是为了确保麦克风能够正常稳定的工作,通常是需要提供一个基准电压(通常2~5V),使内部电容处于预充电状态,确保声音引起的电容变化能转换为有效电流信号。</div> <div> </div> <div>在原理图中,R3 电阻的作用就是给麦克风的正极输入一个基准电压MIC_BIAS,这个电压是由模组控制输出的,由模组控制则可以在要用时才输出,不用时关闭,实现低功耗。R3 的电阻值为 10K,测试效果能够接受,过低则采集的音频信号弱,过高则易引入噪声。</div> <div> </div> <div>在原理图中,U4 电容的作用就是对采集的信号进行滤波,滤除高频噪声,大多是滤除滋滋滋的声音或者声音沙哑问题。</div> <div> </div> <div>屏幕显示部分</div> <div><img src="https://image.lceda.cn/oshwhub/pullImage/d3dacd0fcd6842649d239ff2bbf2d6d2.png" alt="d3dacd0fcd6842649d239ff2bbf2d6d2.png"></div> <div> <div>屏幕显示使用的是 1.69寸TFT屏幕,采购自 <a href="https://item.taobao.com/item.htm?id=694205959541" target="_blank">金逸晨1.69寸TFT液晶屏ST7789小屏240x280显示器LCD圆角屏SPI彩屏</a>,</div> <div>屏幕通过SPI协议控制,供电 3.3V。</div> <div> </div> <div>这里SPI的通信控制信号引脚,可以使用主控的硬件SPI外设,实现更高的通信速率,更快的屏幕刷新。但是使用主控的硬件SPI外设,则需要选择特定的引脚。</div> <div> </div> <div> <div><strong>模组与屏幕的连接</strong></div> <div> <table> <tr> <th colspan="1" rowspan="1"> <div>模组</div> </th> <th colspan="1" rowspan="1"> <div>1.69寸TFT屏幕</div> </th> <th colspan="1" rowspan="1"> <div>说明</div> </th> </tr> <tr> <td colspan="1" rowspan="1"> <div>GND</div> </td> <td colspan="1" rowspan="1"> <div>GND</div> </td> <td colspan="1" rowspan="1"> <div>屏幕电源地</div> </td> </tr> <tr> <td colspan="1" rowspan="1"> <div>VDD33_VOUT2</div> </td> <td colspan="1" rowspan="1"> <div>VCC</div> </td> <td colspan="1" rowspan="1"> <div>屏幕电源输入</div> </td> </tr> <tr> <td colspan="1" rowspan="1"> <div>PA04</div> </td> <td colspan="1" rowspan="1"> <div>DO(SCL)</div> </td> <td colspan="1" rowspan="1"> <div>屏幕通信时钟引脚</div> </td> </tr> <tr> <td colspan="1" rowspan="1"> <div>PA05</div> </td> <td colspan="1" rowspan="1"> <div>D1(SDA)</div> </td> <td colspan="1" rowspan="1"> <div>屏幕通信数据引脚</div> </td> </tr> <tr> <td colspan="1" rowspan="1"> <div>PA00</div> </td> <td colspan="1" rowspan="1"> <div>RES</div> </td> <td colspan="1" rowspan="1"> <div>屏幕屏幕复位引脚</div> </td> </tr> <tr> <td colspan="1" rowspan="1"> <div>PA06</div> </td> <td colspan="1" rowspan="1"> <div>D/C</div> </td> <td colspan="1" rowspan="1"> <div>屏幕读写功能引脚</div> </td> </tr> <tr> <td colspan="1" rowspan="1"> <div>PA03</div> </td> <td colspan="1" rowspan="1"> <div>CS</div> </td> <td colspan="1" rowspan="1"> <div>屏幕通信片选引脚</div> </td> </tr> <tr> <td colspan="1" rowspan="1"> <div>PA42</div> </td> <td colspan="1" rowspan="1"> <div>BLK</div> </td> <td colspan="1" rowspan="1"> <div>屏幕背光控制引脚,高电平屏幕背光亮</div> </td> </tr> </table> </div> <div> <p>按键部分</p> <p><img src="https://image.lceda.cn/oshwhub/pullImage/d2071f26c9f645e988f5c4cdd007ffe7.png" alt="d2071f26c9f645e988f5c4cdd007ffe7.png"></p> <p>指示灯部分</p> <p><img src="https://image.lceda.cn/oshwhub/pullImage/f317bfc902d640e68cb9bdbc1feb7521.png" alt="f317bfc902d640e68cb9bdbc1feb7521.png"></p> <p>下载部分</p> <p><img src="https://image.lceda.cn/oshwhub/pullImage/b70fba4e58b3483ab97e8fd6289634f2.png" alt="b70fba4e58b3483ab97e8fd6289634f2.png"></p> <div> <div>模组的下载是通过串口进行下载的,必须使用 PA18 和 PA19 引脚下载。</div> <div> </div> <div>本项目直接使用 <a href="https://item.szlcsc.com/51679391.html?fromZone=s_s__%2522CH340X%2522&spm=sc.gbn.xh2.zy.t___sc.hm.hd.ss&lcsc_vid=QVhbAlYAFlcKVQIAFQBcBFNSElNbUgFTTlNXXgZVTwIxVlNTRlVbV1dUQ1BXVDtW" target="_blank">CH340X 模块</a>的接口作为下载器。实测能够正常下载和串口调试通信。</div> <div> </div> <div><strong>装配部分</strong></div> <div> <div> <div> <div> <div>固定上下壳——两种方法:</div> <ol> <li> <div>可以通过延展上壳内壁或者延展下壳内壁的方式固定</div> </li> <li> <div>设计螺丝定位孔固定</div> </li> </ol> <h2><img src="https://image.lceda.cn/oshwhub/pullImage/0d1037053b0942a98eab6d292e2a753f.png" alt="0d1037053b0942a98eab6d292e2a753f.png"></h2> <p>设计完成后,打印安装即可</p> </div> </div> <div> </div> </div> </div> </div> </div> </div> </div> </div> <p 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>生成/上传设计文件,文件完成后,相关文稿将自动生成至项目详情</span><span style="color:#95a5a6;font-size:14px;">;这里可以详细说明您的项目实现原理和机制、注意事项、调试方法、测试方法等。推荐图文并茂的形式向别人介绍您的想法。 </span></p> <p style="line-height:1.8;"> </p> <h3 style="line-height:1.8;">*5、软件部分</h3> <hr> <p style="line-height:1.8;"><span style="color:#95a5a6;font-size:14px;">请输入内容…</span></p> <div> <div>软件开源地址:https://github.com/78/xiaozhi-sf32</div> <div> <div> <h4>前置准备</h4> <div>在开始之前,我们需要进行一些前置工具,请确保完成以下的步骤:</div> <ol> <li> <div>sftool: 用于SF32系列SoC芯片的烧录</div> </li> <li> <div>下载固件: 开发板的固件位于 <a href="https://github.com/78/xiaozhi-sf32/releases" target="_blank">https://github.com/78/xiaozhi-sf32/releases</a>,我们下载最新release版本的压缩包。需要注意的是,我们一共需要<code>bootloader.bin</code>、<code>ER_IROM2.bin</code>、<code>ER_IROM3.bin</code>、<code>ER_IROM1.bin</code> 和<code>ftab.bin</code>这五个文件。 建议先下载sftool工具,下载完成后将这些文件放在sftool文件夹中,与sftool.exe同一路径。</div> </li> <li> <div>开发板对应固件:小汤圆直插版(立创训练营): sf32lb52-xty-ai-tht.zip</div> </li> </ol> <h4>下载sftool</h4> <div>sftool 是一个开源软件,可以在<a href="https://github.com/OpenSiFli/sftool" target="_blank">GitHub</a> 上找到它的源码。不过我们现在并不需要关心源码,只需要下载编译好的二进制文件即可。最好用最新版1.3.3</div> <div> </div> </div> </div> <div><strong>程序烧录</strong></div> <div>用烧录工具SF32Burner进行便捷烧录</div> <div>当正确链接后,反应代码正常,烧录成功</div> <div> </div> <div><img src="https://image.lceda.cn/oshwhub/pullImage/81e22b6016344e05ba01af18ebeecdca.png" alt="81e22b6016344e05ba01af18ebeecdca.png"></div> </div> <p style="line-height:1.8;"><span style="color:#95a5a6;font-size:14px;">注:若您的项目涉及软件开发,请在附件上传对应的工程源码。这里可以详细说明您的软件流程图、功能模块框图、相关算法的解释或科普、源码结构、编译环境的搭建和配置、源码编译方法、程序烧录方法等。推荐图文并茂的形式向别人介绍您的想法。</span></p> <p style="line-height:1.8;"> </p> <h3 style="line-height:1.8;">*6、BOM清单</h3> <hr> <p style="line-height:1.8;"><span style="color:#95a5a6;font-size:14px;">请输入内容…</span></p> <p style="line-height:1.8;"> </p> <p style="line-height:1.8;"><span style="color:#95a5a6;font-size:14px;">注:项目涉及的BOM清单。在<span style="text-decoration:underline;"><a href="https://lceda.cn/editor" target="_blank">嘉立创EDA</a> </span>生成/上传设计文件后,BOM将自动生成至项目详情;建议包括型号、品牌、名称、封装、采购渠道、用途等内容。具体内容和形式应以表达清楚项目构成为准。 </span></p> <p style="line-height:1.8;"> </p> <h3 style="line-height:1.8;">*7、大赛LOGO验证</h3> <hr> <p style="line-height:1.8;"><img src="https://image.lceda.cn/oshwhub/pullImage/7df47a0449a744e58aadecf7a96ad51c.png" alt="7df47a0449a744e58aadecf7a96ad51c.png"></p> <p style="line-height:1.8;"><span style="color:#95a5a6;font-size:14px;">请上传包含大赛logo的项目图片,logo以丝印形式印刷在PCB上面。</span></p> <p 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/d1bbfd69f9404f56901a0e7b849b7245.rar" target="_blank">(大赛标识).zip</a></span></span></p> <p style="line-height:1.8;"> </p> <h3 style="line-height:1.8;">* 8、演示您的项目并录制成视频上传</h3> <hr> <p style="line-height:1.8;"> </p> <p style="line-height:1.8;"><span style="color:#95a5a6;font-size:14px;">视频要求:请横屏拍摄,分辨率不低于1280×720,格式Mp4/Mov,单个视频大小限100M内;</span></p> <p style="line-height:1.8;"><span style="color:#95a5a6;font-size:14px;">视频标题:立创电赛:{项目名称}-{视频模块名称};如立创电赛:《自动驾驶》-团队介绍。</span></p> <p style="line-height:1.8;"> </p> <p style="line-height:1.8;"><span style="font-size:14px;"><a href="/posts/42551e8f2f2548cabc1c36626a42da94" target="_blank">前往查看更多详情 ></a></span></p> <p style="line-height:1.8;"> </p>

文档

BOM

暂无

附件

附件名 下载
微信视频2025-09-08_103425_045.mp4
SF32Burner.zip

评论(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