Arduino系列教程十:语音识别模块 LD3320
2015-4-27 16:36| 颁布者: yanwl| 搜检: 80095| 指斥: 26
摘要: LD3320 语音识别模块概述: 采纳SPI通信接口,板载咪头以及有源晶振,利就在电子产品中完针言音识别、声控以及人机对话等成果。寄望事情: 由于该模块应用3.3V电压,所以将其以及Arduino联接时,请务必寄望供电电压;敷衍 ...
本教程首要完成:经过语音模块管制LED的亮以及灭。说“开灯”,LED点亮;说“关灯”,LED熄灭。
LD3320 语音识别模块概述:
采纳SPI通信接口,板载咪头以及有源晶振,利就在电子产品中完针言音识别、声控以及人机对话等成果。
寄望事情:
由于该模块应用3.3V电压,所以将其以及Arduino联接时,
,请务必寄望供电电压(如合营Arduino UNO R3应用,创议加之电平转换模块);敷衍应用UNO PLUS开辟板来说,切换电压很弘远,只有将电压跳线帽设置为3.3V即可。原标题问题:川航3U603航班再飞迪拜乘客:已于10点40分安详抵达封面新闻记者刁明康nbsp;谢凯2月28日,封面新闻记者从出航
硬件豫备:
硬件联接:
1. 将IO Expansion Shield接入UNO PLUS,用跳线帽将二个板的电压设置为3.3V
2. 联接 LD3320 语音模块
3.3V -- VCC
GND -- GND
MISO -- D12
MOSI -- D11
SCK -- D13
NSS -- D4
RST -- D9
IRQ -- D2
WR -- GND
3. 将 D8 与XBEE接口的15号引脚联接,管制板载的 STATE LED闪烁。要是您下手技艺对照腻害,可以大概大概用洞洞板联接一个LED驱动电路,
,的确便一个1K电阻以及一个发光两极管,D8为管制引脚;当识别到“开灯”时,D8输出高电平;反之输出低电平申博Sunbet www.Lfstncnynmzyhzs.com
申博Sunbet官网信誉来源于每一位客户的口碑,Sunbet的服务在Sunbet官网行业是出名的顶尖,广西禄福生态农业开发有限责任公司欢迎新老会员、代理的加入。
流动:
#include <ld3320.h> VoiceRecognition Voice; //注明一个语音识别货色 #define Led 8 //定义LED管制引脚 void setup() { pinMode(Led,OUTPUT); //初始化LED引脚为输出情势 digitalWrite(Led,LOW); //LED引脚低电平 Voice.init(); //初始化VoiceRecognition模块 Voice.addCommand("kai deng",0); //促进指令,参数(指令内容,指令标签(可几次)) Voice.addCommand("guan deng",1); //促进指令,
,参数(指令内容,指令标签(可几次)) Voice.start();//最后识别 } void loop() { switch(Voice.read()) //鉴定识别 { case 0: //若是指令“kai deng” digitalWrite(Led,HIGH); //点亮LED break; case 1: //若是指令“guan deng” digitalWrite(Led,LOW);//熄灭LED break; default: break; } }申博Sunbet官网坚持诚信为本,秉承客户至上,务实奋进,不忘申博Sunbet的企业宗旨,努力为每位互联网家装客户提供优质的服务。
源代码下载:
VoiceLED.zip
VoiceLED-V2.zip(缩小串口输出)
要是下载后编译犯错,将ld3320目录复制到Arduino sketchbook location地点的libraries文件夹内(在File->Preferenees里搜检)
567
顶一下
刚表态过的同伙 ()
支藏 聘请
上一篇:Arduino系列教程八:PM2.5尘土传感器下一篇:Arduino语法篇0:Arduino根底语法介绍
相关扫瞄
最新指斥
游客
2019-11-9 15:07
我把ld3320复制到libraries也依旧有下面问题?
In file included from D:\ruanjian\Arduino\libraries\ld3320/ld3320.h:4:0,
from D:\homework4\VoiceLED-V2\VoiceLED\VoiceLED.ino:1:
D:\ruanjian\Arduino\libraries\ld3320/PinMap.h:23:20: fatal error: avr/io.h: No such file or directory
#include <avr/io.h>
^
compilation terminated.
"ld3320.h" 对应多个库
已经应用: D:\ruanjian\Arduino\libraries\ld3320
exit status 1
为开辟板 WiFiduino 编译时犯错。 ...
游客
2019-7-21 09:29
請問怎麼讓反應的時間快一點?
游客
2019-5-16 12:37
Libraries不能用
寫說"含有差距法的子目錄"
請問該怎样解決
游客
2019-5-16 12:36
libraries 無法应用
上面寫說有差距法的子目錄
請問該怎样解決
游客
2018-12-2 13:22
能不能供给一下库函数
游客
2018-10-31 22:58
還有 串口調試助手sscom.exe,我按了都沒執行,我的是WIN10,沒收援嗎?謝謝
游客
2018-10-31 22:55
我用上面的流动,可以大概大概編譯以及執行,然而辨識時間超久,大約21秒才辨識实现。
比方,我說開燈,它隔了21秒LED燈才打開。能加速辨識嗎?有沒有直接範例可以大概大概參考?謝謝
游客
2018-9-16 02:39
Welcome to your next beauty destination!
Founded in 2014 by a female entrepreneur in Dubai with a strong vision that every person is unique and needs his beauty treat to fulfill his ultimate potential, an Art of Beauty Center has become a preferred style destination for both expats and residents in Dubai.
Today, The Art of Beauty Center Dubai is a diverse range of professional`secrets and self-determination of every member of the team to perfection to create your phenomenal visual look and num ...
游客
2018-8-3 16:19
能不能供给模块采办链接
游客
2018-7-12 20:42
有没有对于voice类库函数的理会
游客
2017-12-3 12:20
为甚NC不接?
游客
2017-12-3 12:04
编译等等都没错,然而说指令没反馈
游客
2017-9-6 23:37
how do you record voice??? help somebody
游客
2017-6-10 17:04
等于代码没错等于无反馈怎么样办?
游客
2017-3-26 09:09
D:\Administrator\Documents\Arduino\voice\voice.ino: In function 'void setup()':
D:\Administrator\Documents\Arduino\voice\voice.ino:13:34: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
Voice.addCommand("kai deng",0); //濞h濮為幐鍥︽姢閿涘苯寮弫甯礄閹稿洣鎶ら崘鍛啇閿涘本瀵氭禒銈嗙垼缁涙拝绱欓崣顖炲櫢婢跺稄绱氶敍锟?
^
D:\Administrator\Documents\Arduino\voice\voice.ino:14:35: warning: deprecated conver ...
游客
2017-3-26 09:09
D:\Administrator\Documents\Arduino\voice\voice.ino: In function 'void setup()':
D:\Administrator\Documents\Arduino\voice\voice.ino:13:34: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
Voice.addCommand("kai deng",0); //濞h濮為幐鍥︽姢閿涘苯寮弫甯礄閹稿洣鎶ら崘鍛啇閿涘本瀵氭禒銈嗙垼缁涙拝绱欓崣顖炲櫢婢跺稄绱氶敍锟?
^
D:\Administrator\Documents\Arduino\voice\voice.ino:14:35: warning: deprecated conver ...
游客
2017-1-19 09:21
good
游客
2017-1-5 05:22
Gorgeous essay, acquired the satisfaction of studying
MyMX1213
2016-12-26 19:56