The AI Thinker VC-02 is a versatile voice recognition module that supports offline voice commands. Manufactured by Atharv Banage, this module is designed to facilitate voice control in various applications, including smart home devices, robotics, and other systems requiring voice interaction. The VC-02 is known for its high accuracy and ease of integration, making it a popular choice among developers and hobbyists.
Specification | Value |
---|---|
Manufacturer | Atharv Banage |
Part ID | AI |
Operating Voltage | 3.3V - 5V |
Operating Current | < 50mA |
Communication | UART |
Baud Rate | 9600 bps (default) |
Recognition Distance | Up to 2 meters |
Recognition Time | < 1 second |
Number of Commands | Up to 80 offline commands |
Dimensions | 30mm x 20mm x 5mm |
Pin Number | Pin Name | Description |
---|---|---|
1 | VCC | Power supply (3.3V - 5V) |
2 | GND | Ground |
3 | TX | UART Transmit (connect to RX of microcontroller) |
4 | RX | UART Receive (connect to TX of microcontroller) |
5 | MIC+ | Microphone positive terminal |
6 | MIC- | Microphone negative terminal |
#include <SoftwareSerial.h>
// Define the pins for SoftwareSerial
SoftwareSerial vc02Serial(10, 11); // RX, TX
void setup() {
// Start the hardware serial communication
Serial.begin(9600);
// Start the software serial communication
vc02Serial.begin(9600);
Serial.println("VC-02 Voice Recognition Module Initialized");
}
void loop() {
// Check if data is available from the VC-02 module
if (vc02Serial.available()) {
// Read the incoming data
String command = vc02Serial.readStringUntil('\n');
Serial.print("Received Command: ");
Serial.println(command);
// Process the command
if (command == "TURN ON LIGHT") {
Serial.println("Turning on the light...");
// Add code to turn on the light
} else if (command == "TURN OFF LIGHT") {
Serial.println("Turning off the light...");
// Add code to turn off the light
} else {
Serial.println("Unknown command");
}
}
}
No Response from Module:
Poor Recognition Accuracy:
Module Not Communicating with Microcontroller:
Q1: Can the VC-02 module recognize multiple languages?
Q2: How many voice commands can the VC-02 module store?
Q3: What is the maximum recognition distance for the VC-02 module?
Q4: Can I use the VC-02 module with a 3.3V microcontroller?
Q5: How do I reset the VC-02 module to factory settings?
This documentation provides a comprehensive guide to using the AI Thinker VC-02 voice recognition module. Whether you are a beginner or an experienced user, following these instructions and best practices will help you effectively integrate voice control into your projects.