The Grove Speech Recognizer, manufactured by Seeed Technology Co., Ltd, is a versatile module designed to enable voice command recognition. This component allows users to control devices through spoken words, making it ideal for applications in home automation, robotics, and interactive projects. The module is easy to integrate with microcontrollers such as the Arduino UNO, providing a seamless way to add voice control to your projects.
Specification | Value |
---|---|
Manufacturer | Seeed Technology Co., Ltd |
Part ID | 101020232/Speech Recognizer |
Operating Voltage | 3.3V / 5V |
Operating Current | < 40mA |
Recognition Time | < 1 second |
Recognition Distance | 1 meter |
Recognition Angle | 30 degrees |
Number of Commands | 22 pre-defined commands |
Interface | UART |
Pin Number | Pin Name | Description |
---|---|---|
1 | VCC | Power supply (3.3V / 5V) |
2 | GND | Ground |
3 | RX | UART Receive (connect to TX of MCU) |
4 | TX | UART Transmit (connect to RX of MCU) |
#include <SoftwareSerial.h>
// Define the pins for the SoftwareSerial
SoftwareSerial mySerial(10, 11); // RX, TX
void setup() {
// Start the hardware serial communication
Serial.begin(9600);
// Start the software serial communication
mySerial.begin(9600);
Serial.println("Grove Speech Recognizer Test");
}
void loop() {
// Check if data is available from the speech recognizer
if (mySerial.available()) {
// Read the data from the speech recognizer
int command = mySerial.read();
// Print the received command to the serial monitor
Serial.print("Command Received: ");
Serial.println(command);
// Perform actions based on the received command
switch (command) {
case 0x11:
Serial.println("Turn on the light");
// Add code to turn on the light
break;
case 0x12:
Serial.println("Turn off the light");
// Add code to turn off the light
break;
// Add more cases for other commands
default:
Serial.println("Unknown command");
break;
}
}
}
No Response from the Module:
Incorrect Command Recognition:
Module Not Recognizing Commands:
By following this documentation, users can effectively integrate and utilize the Grove Speech Recognizer in their projects, enabling voice command control with ease.