Accéder au contenu principal
Publicités

Interfacing Seeed Studio Grove Speech Recognizer with Arduino (Robot example)

 

 

Hello, and welcome to this special tutorial where I Interface Grove Speech Recognizer that was sent to me by Seeed Studio, many thanks.

Seeed website:
https://www.seeedstudio.com/Grove

Product page:
https://www.seeedstudio.com/Grove-Speech-Recognizer-p-2708.html

Product Seeed Wiki:
http://wiki.seeedstudio.com/Grove-Speech_Recognizer/

This is a quick tutorial on how to interface the Grove speech recognizer module with Arduino board, you can use this module to control your home appliances (Tv, lights, temperature…) or make your voice controlled Robot…

And no it’s not J.A.R.V.I.S type assistant but a module that has 22 Built-in commands that you can easily associate with your project, the advantage is that it’s completely embedded and all the voice recognition process is done inside the module and sent to the Arduino via UART, no need to constantly have your Arduino plugged to the computer.

In this project we’ll see basic interfacing and some examples that includes few LEDs and a little classic 2WD robot.

You can add a speaker (0.5-1 W) and it will repeat the commands when detected in a « The blewtewth device is ready to pair » voice lady.

Here’s a list of commands that you can use:

   "Turn on the light",
   "Turn off the light",
   "Play music",
   "Pause",
   "Next",
   "Previous",
   "Up",
   "Down",
   "Turn on the TV",
   "Turn off the TV",
   "Increase temperature",
   "Decrease temperature",
   "What's the time",
   "Open the door",
   "Close the door",
   "Left",
   "Right",
   "Stop",
   "Start",
   "Mode 1",
   "Mode 2",
   "Go",

Components

The main ones are the Arduino board and the Voice recognition module, the rest is up to your project, here I inlcuded some components required for a classic 2WD robot.

 

 

 

 

 

Wirings:

W1
Basic wiring to test the module, the speaker is optional

 

W2
With LEDs to know how you can associate your commands with functions

 

W3
2WD Robot with l298n Driver

Codes

All codes used (Basic – LEDs – Robot): Download here

Tests

Below you’ll find codes for: simple test, LEDs control and Robot control.

After wiring the module, you should first say « Hicell » (as a whole word) then followed by the command (in English).

When your « Hicell » is detected a red LED will flash for 5s and it will wait for your command this period, then say your command, if it’s recognized a blue LED wil flash as well, and if you have a speaker wired with the module you’ll hear the command repeated.

Issue

The only issue I encountred is that sometimes the module cannot detect the « Hicell », and for the first time you won’t be able to tell if the module is borken, the wiring is not correct… You can test it with « Google translate » voice: Just write « Hicell » and read it with a speaker close to the module.

Adapt to your project

int cmd;

if(softSerial.available())

{

cmd = softSerial.read();

}

The module sends the number of the command (1-22) to the Arduino and it get stored in « cmd » if it’s not used « cmd » will be 0 again, so you associate every number with a function that you want to execute… you can check examples in codes.

Publicités

Yassine Tout afficher

Electronics, Automation engineering student... I try to share my little experience with other electronics amateur.

One thought on “Interfacing Seeed Studio Grove Speech Recognizer with Arduino (Robot example) Laisser un commentaire

Répondre

Entrez vos coordonnées ci-dessous ou cliquez sur une icône pour vous connecter:

Logo WordPress.com

Vous commentez à l'aide de votre compte WordPress.com. Déconnexion /  Changer )

Photo Google

Vous commentez à l'aide de votre compte Google. Déconnexion /  Changer )

Image Twitter

Vous commentez à l'aide de votre compte Twitter. Déconnexion /  Changer )

Photo Facebook

Vous commentez à l'aide de votre compte Facebook. Déconnexion /  Changer )

Connexion à %s

%d blogueurs aiment cette page :