描述
<div>
<h3 style="line-height:1.8;">* 1、项目功能介绍</h3>
<hr>
<p style="line-height:1.8;">本项目基于立创开源蓝牙模组 <strong>SF32LB52</strong> 设计并实现了一种 <strong>AI 语音对话机器人系统</strong>。该系统集成了低功耗蓝牙通信、实时语音采集、流式语音识别与自然语言处理技术,能够在资源受限的嵌入式环境下实现 <strong>低延迟的双向语音交互</strong>。</p>
<h3 style="line-height:1.8;">*2、项目属性</h3>
<hr>
<p style="line-height:1.8;"><span style="color:#000000;font-size:14px;">在小智AI开源项目上进行改进</span></p>
<h3 style="line-height:1.8;">* 3、开源协议</h3>
<hr>
<p style="line-height:1.8;"><span style="color:#000000;font-size:14px;">GPL3.0开源协议</span></p>
<h3 style="line-height:1.8;">*4、硬件部分</h3>
<hr></div>
<p style="line-height:2;"> 本项目的主控选用 <strong>立创·开源 SF32LB52 模组</strong>,其核心为一款低功耗蓝牙芯片,主频 240 MHz,集成 <strong>8 MB PSRAM 与 16 MB Flash</strong>,支持锂电池直接供电,适合便携式与低功耗应用。该模组在 <strong>BLE 连接模式(1 s 间隔)下功耗仅 7 μA</strong>,在 <strong>BT 连接模式下仅 10 μA</strong>,同时支持 <strong>BLE + BT 双连接</strong>,功耗较传统单 BT 方案降低约 60%。此外,模组具备 <strong>BT PAN 功能</strong>,可直接通过蓝牙连接实现联网,相较 Wi-Fi 具有显著的功耗优势。在屏幕连接状态下,整体功耗仅约 30 mA,十分契合电池供电场景。</p>
<p style="line-height:2;"> 音频输出部分采用 <strong>LM4871 音频功率放大器</strong>,该器件为一款 3 W 单声道 AB 类放大器,工作电压范围为 1.9 V–5.5 V,能够在便携式设备中提供稳定驱动能力。实验测试表明,电路中 <strong>R5、R6电阻的阻值与输出音量近似呈线性关系</strong>:阻值增大时音量减小,阻值减小时音量增大。<span style="color:#e03e2d;"><strong>【实测R5、R6电阻的阻值取2k时音量较大】</strong></span>但音量上限受限于喇叭本身的声学性能及功放芯片的<strong>最大 1 W 有效输出功率</strong>。换言之,尽管通过调节电阻可以实现一定的音量控制,但声音大小的物理极限仍取决于喇叭与功放的功率能力。</p>
<p style="line-height:2;"> 此外,本项目硬件实现除必要的按键、麦克风等元件采用插件外,其余均使用了贴片元件。</p>
<div>
<h3 style="line-height:1.8;">*5、软件部分</h3>
<hr>
<div>
<div>
<ul style="list-style-type:square;">
<li style="line-height:2;">模组的下载是通过串口进行下载的,必须使用 PA18 和 PA19 引脚下载。本项目直接使用 <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>的接口作为下载器。实测能够正常下载和串口调试通信。</li>
<li style="line-height:2;">软件开源地址:https://github.com/78/xiaozhi-sf32 (下载固件文件<code>bootloader.bin</code>、<code>ER_IROM2.bin</code>、<code>ER_IROM3.bin</code>、<code>ER_IROM1.bin</code> 和<code>ftab.bin</code>)</li>
<li style="line-height:2;">烧录工具:sftool (<a href="https://github.com/OpenSiFli/sftool" target="_blank">OpenSiFli/sftool: sftool is a download tool for the SiFli family of chips)</a></li>
<li style="line-height:2;">1.3.0版本小智的烧录命令:./sftool.exe -p COM3 -c SF32LB52 write_flash bootloader.bin@0x12010000 ftab.bin@0x12000000 ER_IROM2.bin@0x12A28000 ER_IROM3.bin@0x12268000 ER_IROM1.bin@0x12020000【<code>COM3</code>是连接开发板的串口号,根据实际情况修改】</li>
<li style="line-height:2;"><strong>【问题解决】</strong>如果屏幕背光闪两下就一直黑的,<span style="color:#e03e2d;"><strong>需要更新1.3.2以上固件</strong></span></li>
<li style="line-height:2;"><strong>【注意】</strong>烧录之前,用万用表测量VSYS/BAT电压,必须【大于3.7V】 并且 【小于4.7V】,否则无法烧录!</li>
</ul>
</div>
</div>
<h3 style="line-height:1.8;">*6、BOM清单</h3>
<hr>
<p style="line-height:1.8;"> 详见后边的附件内容BOM。下面特别列出除BOM表以外其他需要购买的物料:</p>
<div>
<div>
<table>
<tr>
<td colspan="1" rowspan="1">
<div>显示模块</div>
</td>
<td colspan="1" rowspan="1">
<div>1.69寸 TFT 屏幕</div>
</td>
<td colspan="1" rowspan="1">
<div><a href="https://item.taobao.com/item.htm?id=682151558836" target="_blank">1.69寸-8针蓝板模块</a></div>
</td>
</tr>
<tr>
<td colspan="1" rowspan="1">
<div>CR123A可充电电池</div>
</td>
<td colspan="1" rowspan="1">
<div>3.7V 34x16.5mm 可充电电池</div>
</td>
<td colspan="1" rowspan="1">
<div><a href="https://detail.tmall.com/item.htm?abbucket=17&id=867320144222&mi_id=MlQxlrbcXr36eBkZf8Dm8Yicg2ChoU_BQBtnA84Mfv4cEVxvsfHLfkMawuF2Ot7-ryp4I9CZ6Y41qdv7IbzjXdyIKojnEw25dIeQa1hWdEE&ns=1&skuId=5694529265908&spm=a21n57.1.hoverItem.14&utparam=%7B%22aplus_abtest%22%3A%22d50fd729ed98c4acedb7cc6473f56854%22%7D&xxc=taobaoSearch" target="_blank">【CR123A】全新tyep-c接口(1节装)送充电线</a></div>
</td>
</tr>
<tr>
<td colspan="1" rowspan="1">
<div>喇叭</div>
</td>
<td colspan="1" rowspan="1">
<div>30B01腔体喇叭圆形8欧2瓦30MM</div>
</td>
<td colspan="1" rowspan="1">
<div><a href="https://item.taobao.com/item.htm?id=836482066648" target="_blank">30B01-8R2W GH1.25-2P</a></div>
</td>
</tr>
</table>
</div>
</div>
<h3 style="line-height:1.8;">*7、大赛LOGO验证</h3>
<hr>
<p style="line-height:1.8;"><img src="https://image.lceda.cn/oshwhub/pullImage/88bda91a304c458bbc01a74b333fbda3.png" alt="" width="380" height="72"></p>
<h3 style="line-height:1.8;">* 8、演示您的项目并录制成视频上传</h3>
<hr>
<p style="line-height:1.8;"> </p>
</div>
评论(0)