Hackster is hosting Hackster Holidays, Ep. 6: Livestream & Giveaway Drawing. Watch previous episodes or stream live on Monday!Stream Hackster Holidays, Ep. 6 on Monday!
Anirudha Gaikwad
Published © GPL3+

Grove - Offline Voice recognition sensor

Grove - Offline Voice recognition module is a cost-effective, accurate, and Low powered sensor that can recognize up to 150 voice commands!

IntermediateFull instructions provided1 hour1,218
Grove - Offline Voice recognition sensor

Things used in this project

Hardware components

Seeed Studio Grove Offline voice recognition Module
×1

Story

Read more

Custom parts and enclosures

Altium Library for VC-02

Import Directly in Altium

Code

Grove Offline Recognition Module - Serial Test code

Arduino
D5 <----> RX
D6 <-----> TX
/*

###########################################

Designed by Anirudha Gaikwad, @_ro.box_ 
https://www.instagram.com/_ro.box_/?hl=en

Grove Offline Voice Recognition Module designed by me communicates over UART,
This code prints the HEX values sent by module over UART, 
List of commands: https://docs.ai-thinker.com/_media/vc-02_v1.0.0_specification.pdf



###########################################



*/


#include <SoftwareSerial.h>

#define SOFTWARE_RX 5   //RX connection of Grove Offline Voice Recognition Module
#define SOFTWARE_TX 6   //TX connection of Grove Offline Voice Recognition Module

SoftwareSerial Grove_Sensor(SOFTWARE_RX, SOFTWARE_TX); // RX, TX

void setup() 
{
  // Open serial communications and wait for port to open:
  Serial.begin(9600);
  while (!Serial); // wait for serial port to connect. Needed for native USB port only , This port is for displaying data Grove Sensor sends

  Serial.println("USB Serial Port connection Established!");

  // Set the data rate for the SoftwareSerial port - Grove Offline Voice Recognition Module runs at 115200 baud rate
  Grove_Sensor.begin(115200);

}

void loop() 
{ 
  if (Grove_Sensor.available()) 
  {
    Serial.print(Grove_Sensor.read(),HEX);
  }
 delay(10);
}

Credits

Anirudha Gaikwad

Anirudha Gaikwad

4 projects • 3 followers
Hobbyist , Content based on Robotics, electronics, PCB designing.

Comments