“Sound Sensor”的版本间的差异
来自丢石头百科
Yousimaier17(讨论 | 贡献) (→软件) |
|||
(未显示1个用户的8个中间版本) | |||
第1行: | 第1行: | ||
<div class="tabber"> | <div class="tabber"> | ||
− | {{ | + | {{Product |
− | + | |images=[[File:Sound-Sensor-intro.jpg|360px]] | |
− | | | + | |categories= |
− | | | + | {{Category|音频}} |
+ | {{Category|传感器}} | ||
|brand=Waveshare | |brand=Waveshare | ||
− | | | + | |features=声音传感器 |
− | | | + | |interfaces={{Category|AD接口}} |
− | | | ||
}} | }} | ||
<div class="tabbertab" title="说明"> | <div class="tabbertab" title="说明"> | ||
第20行: | 第20行: | ||
检测周围环境声音的有无和判断声音强度的大小<br /> | 检测周围环境声音的有无和判断声音强度的大小<br /> | ||
==接口说明== | ==接口说明== | ||
− | {|border=1; style="width: | + | {|border=1; style="width:400px;" align="center" |
|+<font color=#880>'''接口说明'''</font> | |+<font color=#880>'''接口说明'''</font> | ||
|-style="background:#0000ff; color:white;" align="center" | |-style="background:#0000ff; color:white;" align="center" | ||
第38行: | 第38行: | ||
② 将串口线和模块接入开发板,给开发板上电,打开串口调试软件。<br /> | ② 将串口线和模块接入开发板,给开发板上电,打开串口调试软件。<br /> | ||
模块与开发板连接如下表所示:<br /> | 模块与开发板连接如下表所示:<br /> | ||
− | {|border=1; style="width: | + | {|border=1; style="width:400px;" align="center" |
|+<font color=#f80>'''模块接入STM32开发板'''</font> | |+<font color=#f80>'''模块接入STM32开发板'''</font> | ||
|-style="background:#0f0f0f; color:white;" align="center" | |-style="background:#0f0f0f; color:white;" align="center" | ||
第52行: | 第52行: | ||
|} | |} | ||
<br /> | <br /> | ||
− | {|border=1; style="width: | + | {|border=1; style="width:400px;" align="center" |
|+<font color=#f80>'''模块接入Arduino'''</font> | |+<font color=#f80>'''模块接入Arduino'''</font> | ||
|-style="background:#668; color:white;" align="center" | |-style="background:#668; color:white;" align="center" | ||
第66行: | 第66行: | ||
|} | |} | ||
<br /> | <br /> | ||
− | {|border=1; style="width: | + | {|border=1; style="width:400px;" align="center" |
|+<font color=#f80>'''串口配置'''</font> | |+<font color=#f80>'''串口配置'''</font> | ||
|-align="center" | |-align="center" | ||
第83行: | 第83行: | ||
<div class="tabbertab" title="资料"> | <div class="tabbertab" title="资料"> | ||
===文档=== | ===文档=== | ||
− | *[ | + | *[https://{{SERVERNAME}}/w/upload/1/1e/Sound-Sensor-UserManual.pdf 用户手册] |
− | *[ | + | *[https://{{SERVERNAME}}/w/upload/c/ce/Sound_Sensor_V2.pdf 原理图] |
===数据手册=== | ===数据手册=== | ||
− | *[ | + | *[https://{{SERVERNAME}}/w/upload/b/b8/Lm393.pdf lm393] |
+ | *[https://{{SERVERNAME}}/w/upload/a/ae/LM386.pdf lm386] | ||
+ | |||
===程序=== | ===程序=== | ||
− | *[ | + | *[https://{{SERVERNAME}}/w/upload/b/bc/Sound-Sensor-code.7z 示例程序] |
===软件=== | ===软件=== | ||
− | *[ | + | *[[:File:串口调试助手.zip|串口调试助手]] |
− | + | 转到:[[#软件]],[[#程序]],[[#文档]] | |
<!--{{Join_us}}--> | <!--{{Join_us}}--> | ||
</div> | </div> | ||
+ | |||
+ | == FAQ == | ||
<div class="tabbertab" title="FAQ"> | <div class="tabbertab" title="FAQ"> | ||
2023年6月21日 (三) 17:20的最新版本
| ||||||||||||||||||||||
| ||||||||||||||||||||||
|
产品特性
音频放大芯片:LM386(放大200倍) 工作电压:3.3V-5.3V 产品尺寸:39.0mm*21.0mm 固定孔尺寸:2.0mm
工作原理
LM386是一种音频集成功率放大器,具有自身功耗低、更新内链增益可调整、电源电压范围大、外接元件少和总谐波失真小等优点。主要应用于低电压消费类产品。为使外围元件最少,电压增益内置为20。在1脚和8脚之间增加一只外接电阻和电容,便可将电压增益调为200以内的任意值。
主要用途
检测周围环境声音的有无和判断声音强度的大小
接口说明
引脚号 | 标识 | 描述 |
1 | DOUT | 数字量输出 |
2 | AOUT | 模拟量输出 |
3 | GND | 电源地 |
4 | VCC | 电源正(3.3V-5.3V) |
操作与现象
下面,以接入我们的开发板为例。
① 将配套程序下载到相应的开发板中。
② 将串口线和模块接入开发板,给开发板上电,打开串口调试软件。
模块与开发板连接如下表所示:
端口 | STM32单片机引脚 |
DOUT | GPIOA.4 |
AOUT | GPIOA.6 |
GND | GND |
VCC | 3.3V |
端口 | Arduino引脚 |
DOUT | D2 |
AOUT | A0 |
GND | GND |
VCC | 5V |
Baud rate | 115200 |
Data bits | 8 |
Stop bit | 1 |
Parity bit | None |
③ 当模块的咪头靠近发声源时,模块上的信号指示灯点亮。
当模块的咪头远离发声源时,模块上的信号指示灯熄灭。
随着传感器与发声源距离的变化,串口输出数据有相应的变化。
FAQ
|
|
|
|
|
|
|
|