Getting started with the STEVAL-VOICE-UI voice user interface evaluation kit
Introduction
The STEVAL-VOICE-UI Amazon™ qualified evaluation kit is designed to allow evaluation of a cost-effective way to integrate
AVS for AWS IoT Services® into smart devices, so they can implement state-of-art, hands-free voice control based on natural
language comprehension.
Users will therefore enjoy a heightened experience with target IoT end products, with the ability to talk to Amazon Alexa and
control smart home devices, get assistance, listen to the news, check the weather forecast, play music, etc.
The software package implements audio front-end, Amazon wake word, audio playback and Amazon Alexa® communication
protocol software. The SDK runs on internal memories only, offering maximum integration and cost-effective solutions.
The STEVAL-VOICE-UI is built with a modular approach for easy prototyping and debugging purposes as well as easy
adaptation to specific microphone spacings, user interface and audio output requirements.
Figure 1. STEVAL-VOICE-UI voice user interface evaluation kit
UM2800 - Rev 1 - November 2020
For further information contact your local STMicroelectronics sales office.
www.st.com
1Overview
Cortex-M7F@480MHz
1MB RAM
2MB Flash
STM32H753VIT6E
700mA DC-DC
SPI
Murata 1DX
2MB NOR
Flash
STDC14
Led driver
UART
PDM
Joystick
I2C
40pin
conn
(CN1)
USB-C
STSAFE
I2C
Wi-Fi Module
Wi-Fi sub-system
4 LED
(bypass mode)
Audio OUT
ISSI IS25LP016D
I2S
PDM
I2C
UART
STEVAL-VUIDB01V1STEVAL-VUIMB02V1
I2C
I2S
ST1S12GR
LED
4x RGB
2x Buttons
Speaker
output
connector
LED1202
FDA903D
MP23DB01HP
Digital microphone
(Optional)
(Optional)
The STEVAL-VOICE-UI kit features:
•STM32H753VIT6E high-performance MCU with 2 MB embedded Flash, 1 Mb embedded SRAM and in
cost-effective LQFP package
•2.4 GHz Wi-Fi subsystem with Murata 1DX module used in bypass mode coupled to ISSI IS25LP016D 2
MBytes NOR Flash memory
•3 x MP23DB01HP MEMS microphones with 36 and 30 mm spacing
•FDA903D class D digital input automotive audio amplifier
•8 Ohm loudspeaker
•4 RGB LEDs and 4 simple LEDs
•Joystick, reset and user push buttons
•High modularity with mother/daughter board
•Small 36x65 mm² footprint with simple and cost-effective PCB design
1.1Kit components
The STEVAL-VOICE-UI kit package includes:
•STEVAL-VUIMB02V1: VUI mother board embedding the STM32H753VIT6E MCU and the Wi-Fi module
•STEVAL-VUIDB01V1: VUI daughter board including the audio front-end (MP23DB01HP microphones and
FDA903D audio amplifier) and the user interface (buttons, joystick, LEDs and USB)
•8 Ohm speaker
•Mechanical parts
•STLINK-V3MINI debugger/programmer for STM32 with programming cable
•Windows® OS (7, 8 and 10), Linux® 64-bit, or MacOS
•html5 web browser version
•Companion app requires Android 7
1.4Development toolchains
•IAR Systems - IAR Embedded Workbench® EWARM
1.5Power supply
The easiest way to power the STEVAL-VOICE-UI kit is via the USB-C connector.
J1J8Description
CLOSECLOSESingle power supply from USB. Do not connect V_PA (J2)
CLOSEOPENSingle power supply from V_PA (J2) → up to 5 V
Dual power supply:
OPENCLOSE
OPENOPEN5 V from external source (CN1)
•5 V from USB
•V_PA from J2 → Up to 18 V
®
Table 1. Power supply options
Figure 3. STEVAL-VOICE-UI power supply block diagram
UM2800 - Rev 1
page 3/34
1.6User interfaces
1.4 LEDs
2.Reset button
3.4 RGB LEDs
4.J8
5.J1
6.Loudspeaker terminals
7.Programming connector (STDC14)
8.User button
9.Joystick
UM2800
User interfaces
Figure 4. STEVAL-VOICE-UI user interfaces
UM2800 - Rev 1
page 4/34
2Demo firmware
2.1Pre-requisites
The pre-installed ST_VOICE_UI flashed demo firmware demonstrates a voice service solution able to connect to
AVS for AWS IoT.
A direct Internet connection is needed (without proxy).
As an Alexa® device, you need an Amazon™ account to connect to AVS for AWS IoT service.
The account can be created on www.amazon.com or other local versions.
The users who have registered to Amazon Music service will be able to play music on the device.
2.2Device setup
Step 1.Power the device through a USB C cable.
Step 2.Configure the network connection.
Step 3.Register to AVS for AWS IoT service.
2.2.1Android users
For Android users, the stvsSmartConfig companion app is available on Google Store and allows configuring the
device. The application is also available in the software delivery package for manual installation.
UM2800
Demo firmware
UM2800 - Rev 1
page 5/34
UM2800
Device setup
Step 1.To configure a new device, push the [Onboarding new device] button and follow the instructions.
Figure 5. stvsSmartConfig procedure
2.2.2Other users - HTTP UI
The device embeds an HTTP service that the consumer can connect to via smartphone or PC and an HTML5
browser (Safari or Chrome). To connect to the server, the smartphone must be connected to the same Wi-Fi spot
of the board.
The HTTP UI interface tab allows checking the service status and changing some configurations.
Two cases must be distinguished:
1.Wi-Fi connection
2.Other connections (Wi-Fi information already logged in)
2.2.2.1Wi-Fi connection
Step 1.Ensure the device is in Access Point (AP) mode.
Step 1a. Check the current mode using the RGB LEDs (see Table 2).
Step 1b. If not in AP mode, refer to Section 2.9 .
Step 2.Connect your phone/PC navigator to 192.168.0.1.
Step 3.Follow the procedure described in Section 2.2.2.1.1 .
2.2.2.1.1Wi-Fi configuration
By default, the device comes in Wi-Fi AP mode and offers a hotspot whose name looks like stvs-xxxx.
Step 1.Connect your PC or smartphone to the hotspot and then connect the browser to the address
192.168.0.1.
UM2800 - Rev 1
page 6/34
Step 2.Go to STVS UI [Setup] tab.
UM2800
Device setup
Figure 6. STVS user interface
2.2.2.2
UM2800 - Rev 1
Step 3.Push the [Wi-Fi-Scan] button.
All visible spots will be listed in the scan results.
Step 4.Scroll down and select your home network (in this case the hotspot is called [Netbook]).
Step 5.Scroll back and type the Wi-Fi password.
Step 6.Scroll down and select the connection type ([Wi-Fi STA].
Step 7.To connect the board, scroll up and select [Re-connect].
Step 8.Check RGB LEDs on the board (see Table 2).
After few seconds, the Wi-Fi state should switch from “disconnected” to “connected “.
The board reboots and connects to the network via Wi-Fi using a new IP address.
Connection to Wi-Fi STA
In this case, hotspot Wi-Fi information has already been configured and the board is properly connected to it
(refer to Section 2.2.2.1.1 , step 6).
page 7/34
Step 1.Get the board IP address available in the serial console.
Step 2.Refer to Section 2.11 to access the traces.
The browser will display a code and a link (amazon.com/code).
UM2800 - Rev 1
page 8/34
Step 3.Copy the code and click on the link.
Figure 7. CBL device registration code
You will be redirected to an Amazon sign-in page.
UM2800
Device registration
Figure 8. Amazon sign-in page
UM2800 - Rev 1
Step 4.Enter you Amazon credentials.
If credentials are correct, you will be redirected to the following page.
Figure 9. Register device page
page 9/34
Step 5.Past or enter the code given in the previous page and click on continue.
If this step is successful, the board connects to AVS for AWS IoT and the LEDs turns off after few
seconds.
Now you can test the device. You can talk to Alexa (for example, asking: “Alexa, what time is it ?”)
2.4Privacy mode
UM2800
Privacy mode
Figure 10. Successful registration
The device enters privacy mode when you briefly push the white user button.
A red LED switches on and the device does not send any other audio request to the cloud, even when saying
"Alexa".
2.5Alarms
When an alarm or a timer is set and the device rings, you have to press the joystick to acknowledge and stop the
alert.
Example of voice requests:
•“Alexa set a timer for 2 minutes”;
•“Alexa set an alarm at 5 pm”;
•“Alexa set alarm” → Alexa will ask for details.
2.6Amazon music control
If the Amazon account used to register the board is registered to Amazon music, it is possible to ask Alexa to play
some songs or playlists and navigate it.
The joystick is also used to navigate music playlists.
2.7LED UI animations
Table 2. RGB LED animations indicating device state
EffectsColorInternal service IDAnimationComment
BlueRestartingSolid
Blue/CyanBootingNormal beat
Just after the reset.
It remains like this
until the first event is
dispatched.
It remains like this
during the basic
system initialization.
configuration state,
mainly when the
board is in Access
Point mode.
During the boot, it
signals by a sort
event that the network
has an IP address.
It signals an error,
the system needs
AWS and AVS
credentials. It should
occur only during
test and development
configuration.
It signals an error.
The system needs an
AVS registration (refer
to Section 2.3 ).
It signals a
reconnection to the
AVS for AWS IoT
service.
RedPrivacyVery long pulsation
Blue/BlackWakeupVery fast rotation
BlackIdleAll off
BlueactiveListeningVery long pulsation
BlackstopListeningAll offNot signalled yet.
BlackstartListeningAll offNot signalled yet.
CyanactiveSpeakingVery very long pulsation
BlackstopSpeakingAll offNot signalled yet.
BlackstartSpeakingAll offNot signalled yet.
BlackthinkingAll offNot signalled yet.
It signals the privacy
mode is ON.
Short signal when a
Wakeup occurs.
It signals the board is
ready for interactions.
The AVS for AWS IoT
service is listening for
utterance.
The AVS for AWS IoT
service is speaking or
playing.
UM2800 - Rev 1
Red/BlackalertingSlow counterclockwise rotation
A timer/alarm/
notification/remember
is triggered.
page 11/34
UM2800
Buttons and joystick
EffectsColorInternal service IDAnimationComment
GreenblinkGreenSlow blinking
RedblinkRedSlow blinking
It signals a
general purpose
event (Debug).
It signals a
general purpose
event (Debug).
YellownotificationVery long pulsation
PurpledndVery long pulsation
White
2.8Buttons and joystick
The STEVAL-VOICE-UI has two push buttons and one joystick.
The black (reset) push button reboots the board, whereas the white (user) button is for mute/privacy state.
A long white button push is used to change the board network configuration (see Section 2.9 and
Section 2.10 ).
Click typeModeReference
Short clickPrivacy modeSee Section 2.4 .
Long click
1 bip or voice: Switch networkSee Section 2.9 .
2 bips or voice: Factory ResetSee Section 2.10 .
SwitchNetwork (6sec)
FactoryReset (10sec)
Very fast rotation
Table 3. User button
It signals a
notification.
It notifies a do not
disturb.
It signals the
user has made
a long push (see
Section 2.9 and
Section 2.10 ).
The joystick is mapped to control play and stop. This mapping is arbitrary and is customizable by the user.
ActionResult
StopSelect
PreviousLeft
NextRight
DownVolume down
UpVolume up
2.9Network switching
If the device keeps trying to connect to the Wi-Fi and the fast white circular sequence on RGB LEDs occurs or if
you want to connect to Ethernet, you have to re-enter or modify Wi-Fi credentials and the device has to be in AP
mode.
In such cases, follow the below procedure to switch to another network.
UM2800 - Rev 1
Table 4. Joystick default mapping
page 12/34
Step 1.Push the white user button for about 6 seconds.
A circular RGB LED sequence occurs while the button is pushed (see Section 2.7 ).
Note:Do not push for 10 seconds to avoid starting the sequence described in Section 2.10 .
Step 2.After 6 seconds, check the log traces to know what mode you switched to (refer to Section 2.11 ).
If the device does not switch to the desired network, repeat the procedure starting from step 1.
2.10Factory reset
Step 1.Push the white user button for about 10 seconds.
A first circular sequence on RGB LEDs occurs for 6 seconds, indicating the Wi-Fi configuration is
switching back to AP mode.
Then, a second sequence starts for 4 seconds more.
Step 2.Release the button.
The device reboots with factory default settings.
2.11Log traces and STLINK-V3MINI connection
Step 1.Connect the provided STLINK-V3MINI between the board and a PC to get some debugging traces.
UM2800
Factory reset
Step 2.Connect with any serial terminal such as Tera Term, for instance.
The UART configuration is:
–Baud rate = 921600
–Data = 8-bit
–Parity = none
–Stop = 1-bit
–Flow control = none
The level of log traces can be tuned through the HTTP UI.
Step 3.Select [Gdb] tabs and click on the additional debug level(s) you need.
Important:
Printing debug info might disturb the state machine. The debug level is not designed to print everything. Only a set of levels
can be printed at once.
UM2800 - Rev 1
page 13/34
3Kit layout
3.1STEVAL-VUIMB02V1 mother board layout
The STEVAL-VUIMB02V1 mother board includes the processing power capabilities and the main connectivity
module.
Figure 11. STEVAL-VUIMB02V1 layout (top view)
UM2800
Kit layout
Figure 12. STEVAL-VUIMB02V1 layout (bottom view)
•U1: STSAFE-A110, authentication and brand protection secure solution (footprint only)
•U2: Murata 1DX, Wi-Fi module
•U3: ISSI IS25LP016D, 2MB QSPI NOR memory
•U4: ST1S12GR 0.7 A, 1.7 MHz adjustable, step-down switching regulator
UM2800 - Rev 1
page 14/34
•U5: STM32H753VIT6E high-performance ARM Cortex-M7 MCU
•J9: STDC14, STLink-V3 programming connector
•CN3: USB-C socket
3.2STEVAL-VUIDB01V1 daughter board layout
Figure 13. STEVAL-VUIDB01V1 layout (top view)
UM2800
STEVAL-VUIDB01V1 daughter board layout
Figure 14. STEVAL-VUIDB01V1 layout (bottom view)
•U1:ESDA6V1-5SC6 Transil (TVS) array for ESD protection
•U2: FDA903D 45 W class D digital input power amplifier
•U3: HSP061-2N4 2-line ESD protection for high speed lines
•U4: LED1202QTR 12-channel low quiescent current LED driver
•M1, M2, M3: MP23DB01HP
•J2: Audio out power supply connector
•J7: Audio out connector (loudspeaker)
UM2800 - Rev 1
page 15/34
4Main devices
4.1STM32H753VIT6E
STM32H753xI devices are based on the high-performance Arm® Cortex®-M7 32-bit RISC core operating at up to
480 MHz. The Cortex® -M7 core features a floating point unit (FPU) which supports Arm® double-precision (IEEE
754 compliant) and single-precision data-processing instructions and data types. STM32H753xI devices support a
full set of DSP instructions and a memory protection unit (MPU) to enhance application security.
STM32H753xI devices incorporate high-speed embedded memories with a dual-bank Flash memory of 2 Mbytes,
up to 1 Mbyte of RAM (including 192 Kbytes of TCM RAM, up to 864 Kbytes of user SRAM and 4 Kbytes of
backup SRAM), as well as an extensive range of enhanced I/Os and peripherals connected to APB buses, AHB
buses, 2x32-bit multi-AHB bus matrix and a multi layer AXI interconnect supporting internal and external memory
access.
All the devices offer three ADCs, two DACs, two ultra-low power comparators, a low-power RTC, a high-resolution
timer, 12 general-purpose 16-bit timers, two PWM timers for motor control, five low-power timers, a true random
number generator (RNG), and a cryptographic acceleration cell. The devices support four digital filters for external
sigma-delta modulators (DFSDM). They also feature standard and advanced communication interfaces.
4.2ST1S12GR
UM2800
Main devices
The ST1S12 is a step down DC-DC converter optimized for powering low-voltage digital cores in HDD
applications and, generally, to replace the high current linear solution when the power dissipation may cause
high heating of the application environment. It provides up to 0.7 A over an input voltage range of 2.5 V to 5.5 V.
A high switching frequency (1.7 MHz) allows the use of tiny surface-mount components. In addition to the resistor
divider, only an inductor and two capacitors are required to set the output voltage value. Moreover, a low output
ripple is guaranteed by the current mode PWM topology and by the use of low ESR SMD ceramic capacitors.
The device is thermally protected and the current is limited to prevent damage due to accidental short-circuit.
4.3STSAFE-A110 (footprint only)
The STSAFE-A110 is a highly secure solution that acts as a secure element providing authentication and secure
data management services to a local or remote host. It consists of a full turnkey solution with a secure operating
system running on the latest generation of secure microcontrollers.
The STSAFE-A110 can be integrated in IoT (Internet of things) devices, smart-home, smart-city and industrial
applications, consumer electronics devices, consumables and accessories.
4.4
FDA903D
The FDA903D is a single bridge class D amplifier, designed in the most advanced BCD technology, intended for
any automotive audio application (car radio, telematics and e-call, noise and tone generators, etc).
The FDA903D integrates a high performance D/A converter together with powerful MOSFET outputs in class D,
so it is very compact and powerful. Moreover, it reaches outstanding efficiency performance (90%).
It has a very wide operating range with standard car battery levels (5.5-18 V operating, compatible to load dump
pulse) and with external step-down generated voltages or emergency battery (since it is compatible to minimum
3.3 V operative).
The feedback loop includes the output L-C low-pass filter allowing superior frequency response linearity and lower
distortion.
FDA903D is configurable through I²C bus interface and integrates a complete diagnostics array specially
designed for automotive applications, including innovative open load and DC offset detection in play mode.
Thanks to the solutions implemented to solve EMI problems, the device can be used in standard single DIN
car-radio boxes together with the tuner.
FDA903D also features a configurable power limiting function and can be optionally operated under no I2C mode
(legacy mode).
UM2800 - Rev 1
page 16/34
4.5LED1202
The LED1202 is a 12-channel low quiescent current LED driver which guarantees 5 V output driving capability.
Each channel is able to provide up to 20 mA with a headroom voltage of 350 mV (typ.) only. The output current
can be adjusted separately for each channel by 8-bit analog and 12-bit digital dimming control.
A slow turn-on and turn-off time improves the system low noise generation performance. Moreover, the phase
shifting function helps to reduce the inrush current. Eight patterns can be stored in the internal registers for
automatic sequencing without MCU intervention.
The pattern sequence can be also configured for duration time and number of repetition. For multi-device
applications, a common clock domain can be shared for timing synchronization. The device also includes thermal
shutdown and open LED detection.
4.6HSP061-2
The HSP061-2 is a 2-channel ESD array with a rail-to-rail architecture specifically designed for the protection of
high speed differential lines.
The ultra-low variation of the capacitance ensures very low influence on signal skew. The large bandwidth makes
it compatible with 5 Gbps.
Table 5. STEVAL-VOICE-UI bill of materials ...................................................... 24
Table 6. STEVAL-VUIMB02V1 bill of materials ..................................................... 24
Table 7. STEVAL-VUIDB01V1 bill of materials ..................................................... 26
Table 8. Document revision history ............................................................. 29
UM2800 - Rev 1
page 33/34
UM2800
IMPORTANT NOTICE – PLEASE READ CAREFULLY
STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, enhancements, modifications, and improvements to ST
products and/or to this document at any time without notice. Purchasers should obtain the latest relevant information on ST products before placing orders. ST
products are sold pursuant to ST’s terms and conditions of sale in place at the time of order acknowledgement.
Purchasers are solely responsible for the choice, selection, and use of ST products and ST assumes no liability for application assistance or the design of
Purchasers’ products.
No license, express or implied, to any intellectual property right is granted by ST herein.
Resale of ST products with provisions different from the information set forth herein shall void any warranty granted by ST for such product.
ST and the ST logo are trademarks of ST. For additional information about ST trademarks, please refer to www.st.com/trademarks. All other product or service
names are the property of their respective owners.
Information in this document supersedes and replaces information previously supplied in any prior versions of this document.