This is the video demonstration of EasyVR – Voice Recognition Module with Arduino.
Here is the code:
#include <NewSoftSerial.h> NewSoftSerial voice (2,3); void setup() { Serial.begin(9600); voice.begin(9600); Serial.println("sent wakeup"); voice.print('b'); while(voice.available() <= 0); if(voice.read() == 'o') Serial.println("wakeuped"); voice.print('x'); while(voice.available() <= 0); if(voice.read() == 'x') Serial.println("firmware"); voice.print(' '); while(voice.available() <= 0); Serial.println(voice.read(),<wbr>BYTE); voice.print('l'); voice.print('A'); while(voice.available() <= 0); if(voice.read() == 'o') Serial.println("language"); voice.print('o'); voice.print('A'); while(voice.available() <= 0); if(voice.read() == 'o') Serial.println("time"); for(int i = 4; i <= 14; i++) pinMode(i,OUTPUT); } void loop() { voice.print('i'); voice.print('D'); while(voice.available() <= 0); if(voice.read() == 's') { Serial.println("detected"); for(int i = 4; i <= 14; i++) digitalWrite(i,LOW); } voice.print(' '); while(voice.available() <= 0); char a = (voice.read() - 'A'); Serial.println(a,DEC); digitalWrite((a+4),HIGH); } </wbr>
for more information contact us at info@tenettech.com