Voice Shield for Arduino
Winbond » ISD1790PY
This particular voice/TTS feature can be useful to integrate voice messages in alarm systems, to implement generic I/O controls in home automation or even in home security applications: something like playing an alert when a person or a vehicle approaches any given protected area. The use cases are many and limited only by your imagination!
The Arduino integration is made simple thanks to a special library which is responsible for managing the ISD voice chip.
While this shield can operate stand-alone, it can be better managed through and SPI interface: by connecting this with Arduino it can take control of the speech synthesis (Figure 2).
The ISD1790PY sports a microphone input with automatic gain control (AGC), an output for 8 ohms speaker and another analog output that can be configured to drive an external amplifier. Volume control features as well as anti-aliasing and smoothing filter are provided and the vAlert (voiceAlert) function is used to indicate a new message is available in memory.
ISD1790PY provides aso four sound effects to confirm operations such as start recording, stop recording, delete, forward and memory reset, along with vAlert, the effects are played from the AUD / AUX output (Figure 3).
The speaker output is amplified by a built-in power bridge stage, whose power is separated from those of both the analog section (microphone input with AGC, analog not amplified output) and digital section (sampler, memory) and is taken from the Vccp and Vssp1/Vssp2 pins.
Regarding the control buttons:
The same applies to PLAY and REC: both are valid for the memory slot where you are located at the time they are pressed.
While ISD1790PY allows both recording the entire memory or divide the space into partitions (each defined by a specific address), addressing can only be done by SPI by adding to the command to desired address. With manual control buttons you have to handle the P4 button: recording starts by pressing the button: it stops releasing it.
Imagine that memory is empty: pressing REC I can start recording, releasing it, recording stops and ISD1790PY adds a marker in the corresponding memory location. This marker will then be used when playing as EOM = End Of Message. When hitting the PLAY button, reading starts from the last EOM marker and stops at the next.
Message logging is carried out directly with a microphone capsule (MIC) connected to the appropriate U1’s differential input (MIC+ & MIC-) via the two decoupling capacitors (from bias network and by ground), polarized by the R2, R6, R5 network.
C10 capacitor filters out the capsule power to ensure registration is not disturbed by any noise propagated.
The IN audio line (that’s why a female stereo jack has been realized, whose L and R contacts end on the same U1 pin thanks to C17 and C18 capacitors) can be useful if you want to record from an external source (Figure 4, Figure 5).
Table 1. BOM
Recording time is determined by the clock frequency of ISD1790PY internal oscillator, which marks the sampling; such sampling frequency is defined by the value of the R4 resistor, in this case is 8 kHz.
The entire shield takes the power supply from Arduino 5V and GND pins. The three power lines (analog, digital, power) are cross-linked to Arduino’s 5V, close to the filter capacitors. Those capacitors are there to prevent oscillations caused by digital sampling (Vccd) or from the operation of the audio power amplifier (Vccp).
The three grounds (one for the analog section, one for the digital and one for the loudspeaker amplifier) are indicated with different symbols on the circuit diagram and joined after the filtration operated by capacitors C4 and C5 (analog), C2 and C3 (digital) and C6, C7, C8, C9 (power). Together they are joined to the pin that leads to the Arduino GND.
A simple application is made available, to be used when you need to control the recording and you want to do so with extreme precision. It’s also useful to load up music or voice messages from a personal computer: in this case it must be MP3 or WAV files (Figure 6).
Installation and Use
note: Microsoft .NET Framework 4 is required to install the software.
The use of the software is fairly intuitive: you need to first choose the COM port for Arduino. Choose Settings from the Tools menu you can then define the serial port and configure operating parameters, such as data-rate, parity, etc..
Once done, Save the settings and Exit the dialog box to return to the main window.
You must then define, through the the top left box, the type of integrated chip mounted in the shield: choose from the drop-down menu or press the Request button. Furthermore, you must define the oscillator operating frequency and, therefore, the maximum time available for recording: choose the value of the R_Osc mounted on the shield (default is 82 kohm) from the drop-down menu.
Once this is done, in the box immediately below the information, there is a box where you can select the ID of the track you want to record, import .mp3 or .wav files and possibly listen those before transferring.
By ticking the option box Automatically calculate memory locations … the program will determine the needed memory to create a storage that is consecutive to the previous track (or the first available location). Removing the mark you could define at will the position of the recording.
Repeat the procedure for each of the records: every time you add one, it will appear in the right panel.
The first buttons row – above the playlist panel – allows you to execute various actions.
During the playlist design phase, you can also set the playback volume. Buttons under the panel are related to the management of ISD chip (ISD Recording starts recording selected tracks).
The ISD Play button allows you to listen the content, shown in the white box. If you want to erase tracks, checkmark it and click Delete tracks from the ISD: this will remove the related tracks from the chip.
For All Your PCB Need, One-stop PCB Solution Services Appear:
News on theme: