The Voice Recognition Sensor is a device designed to detect and interpret human voice commands, enabling hands-free control of electronic systems. This component is widely used in applications such as smart home automation, robotics, voice-controlled appliances, and assistive technologies. By recognizing predefined voice commands, it allows users to interact with electronic devices in a natural and intuitive way.
Pin Name | Pin Number | Description |
---|---|---|
VCC | 1 | Power supply input (3.3V to 5V) |
GND | 2 | Ground connection |
TX | 3 | UART Transmit pin (sends data to MCU) |
RX | 4 | UART Receive pin (receives data from MCU) |
MIC+ | 5 | Positive terminal for external microphone |
MIC- | 6 | Negative terminal for external microphone |
Below is an example of how to interface the Voice Recognition Sensor with an Arduino UNO:
#include <SoftwareSerial.h>
// Define RX and TX pins for the sensor
SoftwareSerial voiceSensor(10, 11); // RX = Pin 10, TX = Pin 11
void setup() {
Serial.begin(9600); // Initialize Serial Monitor
voiceSensor.begin(9600); // Initialize communication with the sensor
Serial.println("Voice Recognition Sensor Initialized");
Serial.println("Waiting for voice commands...");
}
void loop() {
if (voiceSensor.available()) {
int command = voiceSensor.read(); // Read the command ID from the sensor
// Print the received command ID to the Serial Monitor
Serial.print("Command Received: ");
Serial.println(command);
// Perform actions based on the command ID
switch (command) {
case 1:
Serial.println("Turning on the light...");
// Add code to turn on a light
break;
case 2:
Serial.println("Turning off the light...");
// Add code to turn off a light
break;
default:
Serial.println("Unknown command");
break;
}
}
}
Sensor Not Responding:
Low Recognition Accuracy:
No Output from the Sensor:
By following this documentation, you can effectively integrate and utilize the Voice Recognition Sensor in your projects.