VeeaR EasyVR 3 User Manual

EasyVR 3
User Manual
1.0.11
www.veear.eu
www.veear.eu
Table of Contents
EasyVR 3 Module ............................................................................................................................................. 5
Product Description ........................................................................................................................................ 5
EasyVR 3 Features .................................................................................................................................... 5
Technical specifications ................................................................................................................................. 6
Pin assignment .......................................................................................................................................... 7
Settings and indicators .............................................................................................................................. 8
Physical dimensions .................................................................................................................................. 8
Recommended Operating Conditions ....................................................................................................... 9
Power Supply Requirements ..................................................................................................................... 9
Electrical Characteristics ........................................................................................................................... 9
Serial Interface ......................................................................................................................................... 10
Microphone .............................................................................................................................................. 11
Audio Output ............................................................................................................................................ 13
General Purpose I/O ................................................................................................................................ 14
Flash Update ........................................................................................................................................... 15
Quick start for using the module .................................................................................................................. 16
EasyVR 3 as a Development Board ........................................................................................................ 16
EasyVR Shield 3 for Arduino ........................................................................................................................ 18
Product description ...................................................................................................................................... 18
EasyVR Shield 3 Features ....................................................................................................................... 18
Technical specifications ............................................................................................................................... 19
Board overview ........................................................................................................................................ 19
Pin assignment ........................................................................................................................................ 20
Mode Jumper settings ............................................................................................................................. 20
Software Serial Pins settings ................................................................................................................... 21
Quick start guide for using the Shield .......................................................................................................... 22
With Arduino Leonardo – Due (Native USB) ........................................................................................... 22
With Arduino 2009 – Uno – Mega ........................................................................................................... 23
EasyVR Programming ................................................................................................................................... 24
Communication Protocol .............................................................................................................................. 24
Introduction .............................................................................................................................................. 24
Arguments Mapping ................................................................................................................................. 25
Command Details .................................................................................................................................... 26
Status Details ........................................................................................................................................... 31
Communication Examples ........................................................................................................................... 34
Recommended wake up procedure ......................................................................................................... 34
Recommended setup procedure ............................................................................................................. 34
Recognition of a built-in or custom SI command ..................................................................................... 35
Adding a new SD command .................................................................................................................... 35
Training an SD command ........................................................................................................................ 36
Recognition of an SD command .............................................................................................................. 36
Read used command groups................................................................................................................... 37
Read how many commands in a group ................................................................................................... 37
Read a user defined command group ..................................................................................................... 37
Use general purpose I/O pins .................................................................................................................. 38
2 EasyVR 3 User Manual (1.0.11)
www.veear.eu
Use custom sound playback .................................................................................................................... 38
Read sound table ..................................................................................................................................... 38
Built-in Command Sets ................................................................................................................................ 39
Error codes ................................................................................................................................................... 40
Protocol header file ...................................................................................................................................... 41
EasyVR Arduino Library ............................................................................................................................... 42
EasyVR library settings ................................................................................................................................ 42
Macros ..................................................................................................................................................... 42
Detailed Description ................................................................................................................................. 42
Macro Definition Documentation ............................................................................................................. 42
EasyVR Class Reference............................................................................................................................. 42
Public Types ............................................................................................................................................ 42
Public Member Functions ........................................................................................................................ 43
Detailed Description ................................................................................................................................. 44
Member Enumeration Documentation ..................................................................................................... 44
Constructor & Destructor Documentation ................................................................................................ 47
Member Function Documentation ........................................................................................................... 48
EasyVR Commander ..................................................................................................................................... 57
Getting Started ............................................................................................................................................. 57
Speech Recognition ..................................................................................................................................... 58
Recognition Settings .................................................................................................................................... 60
Phone Tones Generation (DTMF) ............................................................................................................... 61
Testing SonicNetTM ...................................................................................................................................... 61
Using Custom Data ...................................................................................................................................... 63
Sound Table ............................................................................................................................................ 63
Speaker Independent Custom Vocabularies ........................................................................................... 64
Updating Custom Data ............................................................................................................................ 65
Updating Firmware ....................................................................................................................................... 67
QuickUSB Adapter Cable .............................................................................................................................. 68
Product Description ...................................................................................................................................... 68
QuickUSB Features ................................................................................................................................. 68
Technical Specifications............................................................................................................................... 68
Drawings and Schematics ....................................................................................................................... 68
Pin Description ......................................................................................................................................... 68
Operating Conditions ............................................................................................................................... 69
Electrical Characteristics ......................................................................................................................... 69
QuickStart Instructions ................................................................................................................................. 69
Software Setup ........................................................................................................................................ 69
Using the Adapter .................................................................................................................................... 69
How to get support ........................................................................................................................................ 70
User Manual (1.0.11) EasyVR 3 3
www.veear.eu
Revision
Date
Description
1.0
2015/01/27
Initial draft
1.0.3
2015/02/09
New drawings and updated descriptions
1.0.4
2015/03/19
Added new pictures and minor updates
1.0.5
2015/03/25
Update pictures and quickstart sections
1.0.6
2015/03/30
Added programming and library chapters  Added PC software description  Updated pictures and layout
1.0.7
2015/03/31
Minor corrections
1.0.8
2015/04/01
Updated custom data screenshots and description
1.0.9
2015/04/02
Added chapter for QuickUSB adapter
1.0.10
2015/04/22
Updated mechanical drawing of module
1.0.11
2015/06/05
Added note about soldering headers  Removed old logo from drawings
Document History Information
4 EasyVR 3 User Manual (1.0.11)
www.veear.eu
1
2

EasyVR 3 Module

Product Description

EasyVR 3 is a multi-purpose speech recognition module designed to easily add versatile, robust and cost effective speech recognition capabilities to almost any application.
The EasyVR 3 module can be used with any host with an UART interface powered at 3.3V – 5V, such as PIC and Arduino boards. Some application examples include home automation, such as voice controlled light switches, locks, curtains or kitchen appliances, or adding “hearing” to the most popular robots on the market.
It can be easily plugged into a solder-less breadboard or standard
prototyping board, and it is compatible with the mikroBUS™
specifications (see www.mikroe.com/mikrobus). Separate male headers are provided inside the package, along with a microphone cable assembly and
speaker wires (loudspeaker not included).

EasyVR 3 Features

Up to 28 custom Speaker Independent (SI) command vocabularies1.
Supported Languages:
o US English o British English o French o German o Italian o Japanese o Korean o Mandarin o Spanish
Up to 32 user-defined Speaker Dependent (SD) or Speaker Verification (SV) commands, that can be
trained in ANY language.
A selection of built-in Speaker Independent (SI) commands for ready-to-run basic controls, in the
following languages:
o English (US) o Italian o German o French o Spanish o Japanese
SonicNet technology for wireless communications between modules or any other sound source
(Audio CD, DVD, MP3 Player).
Up to 22 minutes of pre-recorded sounds or speech2.
DTMF tone generation.
Differential audio output that directly supports 8Ω speakers. Easy-to-use Graphical User Interface to program Voice Commands and audio.  Standard UART interface (powered at 3.3V - 5V).  Simple and robust documented serial protocol to access and program through the host board.  6 General purpose I/O lines that can be controlled via UART commands.
A QuickT2SI™ Lite license (sold separately) is required to enable creation of Speaker Independent
vocabularies (maximum 12 commands per set).
At maximum compression rate.
User Manual (1.0.11) EasyVR 3 5
www.veear.eu
CABLES
MISC
SPEAKER
MIC
R4
D2
GPIO
IO1
SP+
AUDIO
IO2
SP-
IO3
VM
IO4
MIC
IO5
RET
IO6
VDD
MIKROBUS
XM
MIKROBUS
RST
DE TX RX
3V3
5V
GND
GND
PWR SEL
QUICK USB
D1
MISC
ADAPTER
MISC

Technical specifications

The outer headers J1 and J2 are the mikroBUS™ interface connectors, providing selectable 3.3V/5V power input to the module and voltage translated digital I/O lines, including: UART receive/transmit lines and control pins.
The header J3 provides configurable I/O expansion lines (inputs with weak internal pull-up by default), powered at the internal logic voltage VDD.
The header J4 contains the main analog signals, such as microphone signals and amplified DAC outputs, which are also available on the internal right angle connectors J5 and J6.
The module can also be operated through the programming connector J7 alone, by using the QuickUSB adapter/cable.
6 EasyVR 3 User Manual (1.0.11)
Group
Name
Number
Pin
Type
Description
MIKROBUS
J1
1
-
-
(Not connected)
2
RST
I
Active low asynchronous reset (internal pull-up)
3-6
-
-
(Not connected)
7
3V3
I
3.3V DC power input
8
GND
-
Ground
J2
1
XM
I
Boot select (internal pull-down)
2
DE
O
(Reserved)
3
TX
O
Serial Data Transmit
4
RX
I
Serial Data Receive
5-6
-
-
(Not connected)
7
5V
I
5.0V DC power input
8
GND
-
Ground
GPIO
J3
1
IO1
I/O
General purpose I/O (VDD logic levels)
2
IO2
I/O
General purpose I/O (VDD logic levels)
3
IO3
I/O
General purpose I/O (VDD logic levels)
4
IO4
I/O
General purpose I/O (VDD logic levels)
5
IO5
I/O
General purpose I/O (VDD logic levels)
6
IO6
I/O
General purpose I/O (VDD logic levels)
AUDIO
J4
1
SP+
O
Differential audio output (can directly drive 8 speaker)
2
SP-
O
3
VM
O
Microphone power (to support custom microphones)
4
MIC
I
Microphone audio input
5
RET
-
Microphone return (analog ground)
6
VDD
O
Internal logic voltage (for reference only)
CABLES
J5
1
SP-
O
Differential audio output (can directly drive 8 speaker)
3
SP+
O 2 -
-
(Not connected)
J6
1
MIC
I
Microphone audio input
2
RET
-
Microphone return (analog ground)
ADAPTER
J7
1
RX_P
O
Programming cable serial data receive
2
RTS_P
I
Programming cable request to send (reset/boot control)
3
GND
-
Programming cable ground
4
5V_P
I
Programming cable 5V DC power output
5
TX_P
I
Programming cable serial data transmit
6
CTS_P
O
Programming cable clear to send (tied to ground)

Pin assignment

www.veear.eu
User Manual (1.0.11) EasyVR 3 7
www.veear.eu
Group
Name
Type
Description
MISC
PWR SEL
3-Way Jumper
(SMD 0603)
Select power input and voltage level between +3.3V and +5V with a zero Ohm resistor or solder bridge
D1
LED
Red light indicator, normally ON when the board is powered, briefly blinking on serial data received
D2
LED
Green light indicator, turns ON when the module is listening to its audio input
R4
Resistor
(SMD 0603)
Microphone gain resistor, default is 1.2k
Symbol
Parameter
Units (mm / Inches)
W
Width
25.4
1.000
L
Length
56.4
2.220
H1
Height (without outer strips J1-J4)
9.5
0.375
H2
Height (with outer strips J1-J4)
17.0
0.670
E1
Connector pitch and pin spacing (of outer strips J1-J4)
2.54
0.100
E2
Connector pitch (of inner connectors J5-J7)
2.00
0.079
A
Headers horizontal spacing
22.86
0.900
B
Headers vertical spacing
20.32
0.800
C
Header vertical offset
3.81
0.150
D
Header horizontal offset
1.27
0.050
L
W
E
2
E
2
E
1
E
2
E
2
E
1
E
1
E
1
A
C
B
DD
H
1
H
2
W
L
Note: The General Purpose I/O lines (J3.1-6) are at nominal 3.0VDC level. Do not connect higher voltages directly to these pins!

Settings and indicators

Physical dimensions

8 EasyVR 3 User Manual (1.0.11)
Symbol
Parameter
Min
Typ
Max
Unit
5V
DC Power Input (Host) = V
SEL
3.15
5.0
5.5 V 3V3
3.15
3.3
5.5 V 5V_P
DC Power Input (Programming cable)
4.0
5.0
5.5 V Ta
Ambient Operating Temperature Range
0
25
70
°C
Symbol
Parameter
Min
Typ
Max
Unit
I
SLEEP
Sleep current (V
SEL
= 5.0V)
6
mA
I
OPER
Operating current (V
SEL
= 5.0V)
25
35
mA
I
AUDIO
Audio playback current (with 8 speaker)
175
250
mA
(RMS)
I
TOT
Total current consumption (excluding I/O)
25
285
mA
(RMS)
I
PEAK
Peak supply current (excluding I/O)
400 mA
Symbol
Parameter
Min
Typ
Max
Unit
VIH
Input High Voltage
2.1 5.5 V VIL
Input Low Voltage
0.0 0.9 V IIL
Input Leakage Current (0 < VI < 5.5V)
-65 µA
Symbol
Parameter
Min
Typ
Max
Unit
VOH
Output High Voltage (IOH = -0.3 mA, V
SEL
= 3.3V)
2.6 3.3
V
Output High Voltage (IOH = -0.3 mA, V
SEL
= 5.0V)
4.3 5.0 V VOL
Output Low Voltage (IOL = 5 mA)
0.0 0.2
V
Symbol
Parameter
Min
Typ
Max
Unit
VIH
Input High Voltage
1.4
(0.8)
5.5
V
VIL
Input Low Voltage
0.0
(0.7)
0.5
V
IIN
Input Current (0 < VI < 3.3V)
0
0.2
0.4
mA
Input Current (0 < VI < 5.5V)
0
0.5
0.7
mA
Symbol
Parameter
Min
Typ
Max
Unit
VIH
Input High Voltage
2.1 5.5
V
VIL
Input Low Voltage
0.0 0.6 V IIL
Input Leakage Current (0 < VI < 5.5V)
-85 µA

Recommended Operating Conditions

Power Supply Requirements

www.veear.eu

Electrical Characteristics

These are applicable to pins RX, TX_P.
These are applicable to pins TX, DE.
These are applicable to pin XM.
These are applicable to pin RST.
User Manual (1.0.11) EasyVR 3 9
www.veear.eu
Symbol
Parameter
Min
Typ
Max
Unit
VOH
Output High Voltage (IOH = -5 mA)
2.4 3.0 V VOL
Output Low Voltage (IOL = 8 mA)
0.0 0.6
V
Symbol
Parameter
Min
Typ
Max
Unit
VIH
Input High Voltage
2.4
3.0
3.3 V VIL
Input Low Voltage
-0.1
0.0
0.75 V IIL
Input Leakage Current (0 < VI < 3V, Hi-Z Input)
<1
10
µA
RPU
Pull-up Resistance Strong
10 kΩ
Weak
200 kΩ
VOH
Output High Voltage (IOH = -5 mA)
2.4 3.0 V VOL
Output Low Voltage (IOL = 8 mA)
0.0 0.6
V
VCC
Idle
Start 1 0 0 0 0 0 1 0
Stop
Idle
0V
These are applicable to pin RX_P.
These are applicable to pins IO1 – IO6.

Serial Interface

The EasyVR 3 communicates via an asynchronous serial interface (commonly known as UART interface), with the following features:
Baud Rate: 9600 (default), 19200, 38700, 57600, 115200  Frame: 8 Data bits, No parity, 1 Stop bit
The receiver input data line is RX, while the transmitter output data line is TX. No handshake lines are used. Example of a serial data frame representing character “A” (decimal 65 or hexadecimal 41):
See also chapter Communication Protocol later on this manual for communication details.
10 EasyVR 3 User Manual (1.0.11)
www.veear.eu
MIC
VM
RET
3V
AGND
R4
1.2k
Module
Internals
External

Microphone

+
-
Rx
Optional
Microphone circuit
3
Microphone
The microphone provided with the EasyVR 3 module is an omnidirectional electret condenser microphone (Horn EM9745P-382):
Sensitivity -38dB (0dB=1V/Pa @1KHz)  Load Impedance 2.2K  Operating Voltage 3V  Almost flat frequency response in the range 100Hz – 20kHz
The microphone circuit is optimized for use at ARMS_LENGTH (default, about 60cm) or FAR_MIC distance settings.
If you use a microphone with different specifications the recognition accuracy may be adversely affected. Differences in rated load impedance and sensitivity can be compensated to a certain extent by changing the microphone gain. This can be done in several ways:
Replacing the internal gain resistor R4 (1.2k)  Adding an external resistor Rx going in parallel with R4 (it can only reduce gain, useful for HEADSET
distance settings)
Removing the internal resistor R4 and using only the external resistor Rx
Modifying gain resistance
You can calculate the overall microphone gain resistance using the formula below:
   
Rs is the optimal microphone gain resistance I is the impedance rating of the microphone G is the desired overall system gain, defined as follows:
S is the sensitivity rating of the microphone you want to use, and it is specified in –dB in the microphone’s
specification3.
Converting uBars to Pascal: microphone manufacturers specify the sensitivity referencing to uBars or Pascal. If the microphone sensitivity is referenced to uBars, simply add 20 dB to the rating. For example, -58 dB/uBars + 20dB = -38 dBV/Pa.
User Manual (1.0.11) EasyVR 3 11


1. If the module is configured for HEADSET microphone distance (typically a few centimeters from the user’s mouth), then the overall system gain should be -49 dB (0dB=1v/Pa@1KHz);
2. If the module is configured for ARMS_LENGTH microphone distance (typically 60-90 cm from the user's mouth – this is the default setting of EasyVR), then the overall system gain should be -44 dB;
3. If the module is configured for FAR_MIC microphone distance (up to about 3 meters from the user's mouth), then the overall system gain should be -43 dB.
www.veear.eu
cavity
clear area
internal diaphragm
Examples
1) The optimal gain resistance for the bundled microphone at ARMS_LENGTH distance is:
󰇛󰇜
   

 
Use the closest standard 5% resistor to Rs. In this example, it would be 1.1 kΩ. The EasyVR uses a 1.2 kΩ resistor to allow use of “FAR” settings without replacing the internal resistor.
Sometimes you might also need to compensate some gain loss for a voltage lower than the microphone ratings (using a larger resistor value sets a higher input gain).
2) The gain resistance for the bundled microphone at HEADSET distance would be:
󰇛󰇜
   

 
In this case you may just add an external 1.2 k resistor to get a gain resistance of 600 (close enough).
Positioning guidelines
Please note that improper acoustic positioning of the microphone will reduce recognition accuracy. Many mechanical arrangements are possible for the microphone element, and some will work better than others. When mounting the microphone in the final device, keep in mind the following guidelines:
1. Flush Mounting - The microphone element should be positioned as close to the mounting surface as possible and should be fully seated in the plastic housing. There must be no airspace between the microphone element and the housing. Having such airspace can lead to acoustic resonance, which can reduce recognition accuracy.
2. No Obstructions, Large Hole - The area in front of the microphone element must be kept clear of obstructions to avoid interference with recognition. The diameter of the hole in the housing in front of the microphone should be at least 5 mm. Any necessary plastic surface in front of the microphone should be as thin as possible, being no more than 0.7 mm, if possible.
3. Insulation - The microphone should be acoustically isolated from the housing if possible. This can be accomplished by surrounding the microphone element with a spongy material such as rubber or foam. The provided microphone has this kind of insulating foam. The purpose is to prevent auditory
12 EasyVR 3 User Manual (1.0.11)
www.veear.eu
absorbent material
fastened directly
noises produced by handling or jarring the device from being “picked up” by the microphone. Such
extraneous noises can reduce recognition accuracy.
4. Distance - If the microphone is moved from 15 cm to 30 cm from the speaker’s mouth, the signal power decreases by a factor of four. The difference between a loud and a soft voice can also be more than a factor of four. Although the internal preamplifier of the EasyVR compensates for a wide dynamic range of input signal strength, if its range is exceeded, the user application can provide feedback to the speaker about the voice volume (see appendix Error codes).

Audio Output

The EasyVR 3 audio output interface is capable of directly driving an 8 speaker. It can also be connected to an external audio amplifier to drive lower impedance loudspeakers.
Note: Connecting speakers with lower impedance directly to the module may permanently damage the EasyVR audio output or the whole module.
It is possible to connect higher impedance loads such as headphones, provided that you scale down the output power according to the speaker ratings, for example using a series resistor. The exact resistor value depends on the headphone sensitivity and the desired output volume (usually in the order of 1-10kΩ).
Note: Connecting headphone speakers directly to the EasyVR audio output may damage your hearing.
User Manual (1.0.11) EasyVR 3 13
www.veear.eu
IOn
LED
IOn
Inverted OUT
5V
IOn
-
12V
RELAY
Z
Switched
Load
AC MAINS
Voltage
I/O pin directly driving a
low-current LED
I/O pin connected to high
impedance 5V circuit (such as
MCU input pin)
I/O pin switching a load on a high voltage
line using a 12V relay

General Purpose I/O

Since the EasyVR communication interface takes two pins of the host controller, a few spare I/O pins are provided, which can be controlled with the communication protocol, to get those pins back for basic tasks, such as lighting an LED or reading a switch.
The six I/O pins IO1–IO6 are connected directly to the embedded microcontroller on the EasyVR module, so they are referenced to the internal 3.0V regulated power supply VDD. If you need to interface to circuits using a different supply, there are a number of solutions you can adopt. Some of these are outlined below (here IOn indicates any one of the six I/O pins of the EasyVR).
Use a pin as an output
All the I/O pins are inputs with weak internal pull-up after power on. You must explicitly configure a pin before you can use it as an output (see the example code Use general purpose I/O pins).
The exact components values in these circuits may vary. You need to calculate required values for your application and choice of components. For example, resistor value for the LED circuit can be calculated approximately as:
 



Where V
is the LED forward voltage, as reported on the LED datasheet, at the driving current IOH (see
LED
section Electrical Characteristics). Let’s assume a typical low-current LED has a VF=1.8V at 5mA, the resistor value is:

  

 
Now stay on the safe side and choose a slightly larger resistor, such as 150Ω. If you want to drive higher current LEDs, you need a circuit like the second one, where you put the LED between the output resistor and the collector of the NPN transistor.
Use a pin as an input
All the I/O pins are inputs with weak internal pull-up after power on or reset. You may also configure the pin to have a strong pull-up or no pull-up at all (see the example code Use general purpose I/O pins).
14 EasyVR 3 User Manual (1.0.11)
www.veear.eu
IOn
SWITCH
optional
filter
IOn
5V IN
IOn
Isolated IN
optocoupler
I/O pin connected to a switch
(or switching sensor)
I/O pin connected 5V source
(such as MCU output pin)
I/O pin with isolated input (for safety
circuits)
/XM
VCC
Jumper
Internal
Pull-down
Boot mode selection circuit
All these circuits assume the EasyVR pin has been configured with an internal pull-up (passive components value can be adjusted to account for weak or strong pull-up).
Disabling the internal pull-up could be used to put the pin in high-impedance state, for example to simulate a tri-state or open-drain output port.
Again, you should refer to the manufacturer’s datasheet when interfacing any external components and to
calculate required resistors values or other passive components.

Flash Update

The EasyVR module includes a boot loader that allows to update the firmware and to download new sound tables or custom grammars to the on-board memory.
The boot mode is activated by keeping the XM signal to a high logical level at power on or reset. This can be easily done with a jumper (or switch) taking the signal to a suitable pull-up resistor.
To download a firmware update, a sound table or a custom grammar to the EasyVR, power on the module with the jumper closed. For normal operation, just leave the jumper open. Do not change the jumper position while the module is already powered on. It is safe to change XM level while the module is reset (RST low).
To learn how to download new sound tables or custom grammars to your EasyVR 3 module, have a look at the section Using Custom Data.
User Manual (1.0.11) EasyVR 3 15
www.veear.eu

Quick start for using the module

EasyVR 3 as a Development Board

The QuickUSB serial adapter cable can be used to program voice commands and sound outputs into an EasyVR 3 module and quickly test it from your PC.
Just connect the microphone and an 8 speaker to the module, plug-in the adapter cable and you are ready to go.
The EasyVR 3 boot mode is managed automatically through the serial handshake lines, so you don’t need to set any jumper.
How to get started
1. Connect the microphone to the 2-way socket MIC (J6)
2. Connect an 8 speaker to the 3-way socket SPEAKER (J5)
3. Connect a QuickUSB cable to the 3x2 pins socket (J7)
4. Plug the USB end of the adapter cable to your PC. The first time it may take some time to install the required drivers (see Software Setup)
5. If your installation is successful you will see a new virtual COM port in your Device Manager:
(The actual COM port number may vary)
6. Now start the EasyVR Commander software
7. Choose your COM Port and click connect
8. Then enjoy your EasyVR!
16 EasyVR 3 User Manual (1.0.11)
www.veear.eu
Pin
Name
Type
Notes
1
RX_P
I
Adapter should have TTL/LVTTL compatible inputs (VIH = 2.0V)
2
RTS_P
O
Adapter outputs can have 3.3V or 5V levels RTS handshake is required for automatic reset and boot mode control
3
GND
-
Ground
4
5V_P
O
Adapter should provide a 5V DC power output for the module (see Recommended Operating Conditions and Power Supply
Requirements)
5
TX_P
O
Adapter outputs can have 3.3V or 5V levels
6
CTS_P
I
CTS is tied to GND on the module
Serial Adapter Interface
Connector J7 is a 6-pin socket specifically designed for the QuickUSB serial adapter cable, but another adapter may also be used provided that it uses the same connector type, pin assignment and electrical specifications.
Connector type is Hirose DF11 Series (female on the adapter cable, male on the module).
User Manual (1.0.11) EasyVR 3 17
www.veear.eu

EasyVR Shield 3 for Arduino

Product description

The EasyVR Shield 3 is an adapter board for the EasyVR 3 module, designed to simplify its use among the Arduino community.
The Shield is compatible with any Arduino board using UNO­R3 Shield headers, running at either 3.3V or 5V levels, by using the IOREF pin to select the EasyVR operating voltage.
It is also backward compatible with earlier Arduino boards that don’t have the IOREF pin, which are using 5V I/O levels by default.
If your board does not have the IOREF pin but it is running at 3.3V, you can still operate the EasyVR Shield 3 correctly if you manually connect pins IOREF and 3V3 together, for example with a jumper wire.
The board comes with separate Arduino stackable headers for the Shield interface. The EasyVR 3 module is also provided separately.
Note: The EasyVR 3 module and all stackable headers must be soldered before use!

EasyVR Shield 3 Features

Compatible with Arduino boards that have the 1.0 Shield interface (UNO R3) and legacy boards
including, but not limited to:
o Arduino Duemilanove o Arduino Uno o Arduino Mega o Arduino Leonardo o Arduino Due
Supports 5V and 3.3V main boards through the IOREF pin  Supports direct connection to the PC on main boards with a separate USB/Serial chip and a special
software-driven “bridge” mode on boards with only native USB interface, for easy access by the EasyVR Commander
Enables different modes of serial connection and also flash updates to the embedded EasyVR
module (through the Mode Jumper)
Supports remapping of serial pins used by the Shield (in SW mode)  Provides a 3.5mm audio output jack suitable for headphones or as a line out
EasyVR Shield 3 fully assembled
18 EasyVR 3 User Manual (1.0.11)
PROG
MODE JUMPER
LED
SW
HW
PC
UP
LEO
EASYVR
GPIO
IO1
IO2
IO3
IO4
IO5
IO6
ARDUINO
POWER
IOREF
RESET
3V3
5V
GND
GND
VIN
ARDUINO
ANALOG
A0
A1
A2
A3
A4
A5
SDA
ARDUINO
DIGITAL
SCL
AREF
GND
13
12
11
10
9
8
7
ARDUINO
DIGITAL
6 5 4 3 2 1 0
3.5mm JACK
MIC
SPEAKER
LINE OUT
EASYVR AUDIO
SW SERIAL
PINS
SW SERIAL
PINS
TX – D13
D9 – TX
RX – D12
D8 – RX

Technical specifications

Board overview

www.veear.eu
User Manual (1.0.11) EasyVR 3 19
(Top View)
(Detail – Bottom View)
www.veear.eu
Group
Pin
Description
ARDUINO HEADERS
-
Arduino UNO-R3 Shield interface, pass-through connectors (Pins 0-1 are in use when J12 is set to UP, PC, HW or LEO)
(Pins 12-13 or 8-9 are in use when J12 is set to SW)
EASYVR AUDIO
-
Audio cables connectors of the EasyVR 3 module (microphone and speaker)
LINE OUT
-
3.5mm stereo/mono jack (16 - 32 headphones or line-level output)
MODE JUMPER
SW
Arduino Software Serial (connected to pins 12-13 or 8-9)
HW
Arduino Hardware Serial (connected to pins 0-1)
PC
PC Mode (Arduino disabled, EasyVR in command mode)
UP
Update Mode (Arduino disabled, EasyVR in boot mode)
LEO
Leonardo Update (Arduino enabled, EasyVR in boot mode)
PROG
-
Red light indicator for Flash programming modes (UP and LEO)
SW SERIAL PINS
RX
Use resistor to select Software Serial RX pin: 12 or 8
TX
Use resistor to select Software Serial TX pin: 13 or 9
EASYVR GPIO
IO1
General purpose I/O as found on the embedded EasyVR 3 module (referenced at the internal VDD logic level – see note below)
IO2
IO3
IO4
IO5
IO6

Pin assignment

Note: The General Purpose I/O lines (IO1-IO6) are at nominal 3.0VDC level. Do not connect higher voltages directly to these pins!

Mode Jumper settings

This jumper selects the operating mode of the EasyVR Shield and it can be placed in one of four positions:
o SW – Software Serial mode
Use it for controlling the EasyVR module from your Arduino sketch through a software serial port (using pins 12-13). You can also connect the EasyVR Commander in this mode, provided that the running sketch implements bridge mode (see the Arduino library examples).
o HW – Hardware Serial mode
Use it for controlling the EasyVR module from your Arduino sketch through the hardware serial port (using pins 0-1).
o PC – PC Connection mode
Use it for direct connection with the EasyVR Commander. In this mode, the Arduino controller is held in reset and only the embedded USB/Serial adapter is used.
o UP – Flash Update mode
Use it for firmware updates or to download sound table data and custom grammars to the on-board flash memory from the EasyVR Commander. In this mode, the Arduino controller is held in reset and only the embedded USB/Serial adapter is used. The EasyVR module is set in boot mode.
o LEO – Leonardo Update mode
This is similar to the regular Flash Update mode, for Arduino boards that don’t have a separate USB/Serial adapter, such as Arduino Leonardo. The EasyVR module is set in boot mode, but the Arduino controller is not reset and it must be running the special “bridge” sketch.
20 EasyVR 3 User Manual (1.0.11)
www.veear.eu

Software Serial Pins settings

On the bottom side of the board there are two SMD resistors that you can move to select the two pins of Arduino that the EasyVR will be connected to when in Software Serial mode (Mode Jumper on SW).
o RX – Software Serial Receiver pin
D12 – Use digital pin 12 as serial receiver (default)  D8 – Use digital pin 8 as serial receiver
o TX – Software Serial Transmitter pin
D13 – Use digital pin 13 as serial transmitter (default)  D9 – Use digital pin 9 as serial transmitter
The choice of pins 12-13 is maintained for backward compatibility with the previous hardware revisions of the EasyVR Shield. However those pins may also be used for the SPI interface, so another choice of pins 8-9 is provided. If you want to use different pins make sure the receiver pin supports change interrupts.
User Manual (1.0.11) EasyVR 3 21
Loading...
+ 49 hidden pages