Voltage: 4.5 to 5.5 V
Current: < 40 ma
Digital interface: 5 v TTL level UART interface
Analog input: 3.5 mm needle mono microphone connector + microphone interface
Size: 30 mm x 47.5 mm
This module can be stored article 15 voice commands. The 15 were divided into three groups, each group of five. First of all, we should have a set of a set of records voice commands. , after it can identify the group of five voice instructions before through serial command into a group. If we need to implement other group of instructions, we need the instruction set of import should be. This module has independent speaker. If your friends by voice input instructions, and not your voice commands, it may not be able to identify the instructions.
Here, I'll give you an example to show how to use language to control the light red, green and blue.
1. The recording
We need to send a serial command to the module. You may need a USB to TTL module to connect it with PC. After 0 xaa11 send commands to the recording. For more detailed information please refer to the manual product.
Both Please record the following voice instrctions in order: Please in order for recording the following instructions:
2. The hardware connection
int redPin = 11; // R petal on RGB LED module connected to digital pin 11
int greenPin = 9; // G petal on RGB LED module connected to digital pin 9
int bluePin = 10; // B petal on RGB LED module connected to digital pin 10
byte com = 0; //reply from voice recognition
pinMode(ledPin, OUTPUT); // sets the ledPin to be an output
pinMode(redPin, OUTPUT); // sets the redPin to be an output
pinMode(greenPin, OUTPUT); // sets the greenPin to be an output
pinMode(bluePin, OUTPUT); // sets the bluePin to be an output
void loop() // run over and over again
com = Serial.read();
color(255,255,255); // turn RGB LED on -- white
color(255, 0, 0); // turn the RGB LED red
color(0,255, 0); // turn the RGB LED green
color(0, 0, 255); // turn the RGB LED blue
color(0,0,0); // turn the RGB LED off
void color (unsigned char red, unsigned char green, unsigned char blue) // the color generating function
Put the above code is loaded into the Arduino. When the load code, please disconnect the TX and RX, otherwise it might damage the serial port.
4. The video
Code after loading, to RX and TX and press ArduinoRESET key.
But can watch the video on the Yutube.
Here, we will tell you how to use the GPIO output control other devices.
First you need to record the voice commands. Send command 0 xaa12 (group 2).
Please record the following five kinds of voice commands, according to the given order:
Please note that must be articulate.
The mobile device connected with the LED in the following way:
With 20 xaa2 command into a second set of voice commands set of commands, or will the GCH pin high and GCL pin low.
Speak voice commands.
Now, you can be LED by voice control.
The speech recognition Module x1
4 pin wire x1