ST STEVAL-BLUEMIC-1 User Manual
ST STEVAL-BLUEMIC-1 User Manual

ST STEVAL-BLUEMIC-1 User Manual

Getting started with the steval-bluemic-1 evaluation board, ultralow power wireless microphone based on spbtle-1s module
Hide thumbs Also See for STEVAL-BLUEMIC-1:
Table of Contents

Advertisement

Quick Links

UM2257
User manual
Getting started with the STEVAL-BLUEMIC-1 evaluation board, ultralow power
wireless microphone based on SPBTLE-1S module
Introduction
The evaluation board comes with a complete SW development kit that includes the Bluetooth low energy stack, all the needed
drivers for audio and inertial data acquisition, and button and LED management. A ready-to-use BlueVoice library is included as
middleware and a sample application is provided to get you started with voice streaming over BLE to an Android or iOS device,
running the ST BlueMS apps.
The evaluation board mounts a transmitter module FCC (ID: S9NSPBTLE1S) certified and IC (IC: 8976C-SPBTLE1S) certified.
This BLE wireless battery powered solution also embeds digital MEMS microphone
MP34DT05-A
(or MP34DT04-C1 in the first
generation board) and 3D accelerometer + 3D gyroscope, which render this evaluation board suitable for a wide range of
advanced smart application.
The
STEVAL-BLUEMIC-1
evaluation board mounts the
SPBTLE-1S
Bluetooth® SMART application processor compliant with
BT specification v4.2. It supports multiple simultaneous roles and can act as a Bluetooth Smart master and slave device at the
same time.
Figure 1.
STEVAL-BLUEMIC-1 evaluation board
UM2257 - Rev 2 - February 2018
www.st.com/
For further information contact your local STMicroelectronics sales office.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STEVAL-BLUEMIC-1 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for ST STEVAL-BLUEMIC-1

  • Page 1: Figure 1. Steval-Bluemic-1 Evaluation Board

    UM2257 User manual Getting started with the STEVAL-BLUEMIC-1 evaluation board, ultralow power wireless microphone based on SPBTLE-1S module Introduction The evaluation board comes with a complete SW development kit that includes the Bluetooth low energy stack, all the needed drivers for audio and inertial data acquisition, and button and LED management. A ready-to-use BlueVoice library is included as middleware and a sample application is provided to get you started with voice streaming over BLE to an Android or iOS device, running the ST BlueMS apps.
  • Page 2: Getting Started

    SWD programming cable • SW development kit for audio and inertial MEMS data streaming over BLE • ST BlueMS: Android and iOS demo App available in the respective stores 1.1.2 Evaluation kit STEVAL-BLUEMIC-1 evaluation kit helps you to start prototyping a very low power solution to stream audio and inertial data over BLE, exploiting the single-mode system-on-chip BlueNRG-1.
  • Page 3: Evaluation Board

    Battery • a plastic case to house the evaluation board connected to the battery Figure 5. Plastic case • an ST-LINK SWD programming cable to program the evaluation board connected to ST-LINK Figure 6. SWD cable 1.1.3 Evaluation board STEVAL-BLUEMIC-1 evaluation board is a highly integrated reference design that enables a fast prototyping of very low power solutions for audio and inertial streaming.
  • Page 4: Figure 7. Steval-Bluemic-1 Evaluation Board Hardware Architecture

    Hardware description Figure 7. STEVAL-BLUEMIC-1 evaluation board hardware architecture Figure 8. STEVAL-BLUEMIC-1 evaluation board main components Table 1. STEVAL-BLUEMIC-1 evaluation board main component details Reference Device Description SPBTLE-1S Bluetooth Low Energy application processor compliant with BT specification v4.2, based on...
  • Page 5: Schematic Diagrams

    UM2257 Hardware description 1.1.4 Schematic diagrams Figure 9. Power and SPBTLE-1S module ANATEST1 DIO10/TMS/SWTDI DIO9/TCK/SWTCK DIO11/UART_RXD DIO8/UART_TXD DIO6/UART_RTS DIO7/BOOT/UART_CTS DIO14/ANATEST0 UM2257 - Rev 2 page 5/35...
  • Page 6: Figure 10. Mems, Button And Leds

    UM2257 Hardware description Figure 10. MEMS, button and LEDs GND2 GND1 VDDIO UM2257 - Rev 2 page 6/35...
  • Page 7: Software Description

    The STSW-BLUEMIC-1 allows an STEVAL-BLUEMIC-1 evaluation board to act as a peripheral in a point-to-point connection with a mobile device running the ST BlueMS app, available for Android™ and iOS™. In this configuration, the evaluation board streams the audio acquired from the on-board digital MEMS microphone...
  • Page 8: Folder Structure

    This device only requires a controller that supports the slave role. The central module can be an Android™ and iOS™ device running the ST BlueMS app (v3.0.0 or higher) or a FP- AUD-BVLINK1 receiver node.
  • Page 9: Audio Processing

    UM2257 Software description In a mono-directional audio streaming asymmetric system, the device with voice data is the one with a microphone and is therefore considered the server. The client device sends requests to the server and accepts server-initiated updates containing audio data. Audio data transmission is based on periodic server-to-client notifications which do not require a request or response from the receiving device.
  • Page 10: Adpcm Compression

    UM2257 Software description Figure 13. STSW-BLUEMIC-1 audio processing chain 1.2.7 ADPCM compression The ITU-T G.726 adaptive differential pulse code modulation (ADPCM) standard is applied to save bandwidth. This audio algorithm for lossy waveform coding predicts the current signal value from previous values, and transmits the difference between the real and the predicted value, quantized with an adaptive quantization step.
  • Page 11: Packetization

    If the streaming is performed between two ST modules, the selected connection interval is the minimum value (10 ms). The target 64 kbps constant data rate is achieved by sending 80 bytes of ADPCM data (640 bits) at each connection event.
  • Page 12: Stsw-Bluemic-1 Application Description

    ® Bluetooth Low Energy to an Android™ and iOS™ mobile device running the ST BlueMS app or to an STM32 platform. Figure 17. STSW-BLUEMIC-1 software package architecture...
  • Page 13: Bluevoiceadpcm_Bnrg1 Library Software Description

    UM2257 BlueVoiceADPCM_BNRG1 library software description BlueVoiceADPCM_BNRG1 library software description 1.3.1 Initialization and configuration To initialize the library call the API. Then, configure the library on the BluevoiceADPCM_BNRG1_Initialize basis of the audio acquisition implemented in the application. A configuration structure must be filled by setting the audio sampling frequency (FR_8000 or FR_16000), the total number of channels given as the input to the library and which channel (between 1 and channel_tot) is used for the voice streaming: BV_ADPCM_BNRG1_Config_t BV_ADPCM_BNRG1_Config;...
  • Page 14: Audio Signal Injection

    UM2257 BlueVoiceADPCM_BNRG1 library software description • to send collateral information for synchronization mechanism implementation aci_gatt_add_char(ServiceHandle, UUID_TYPE_128, CharAudioSyncUUID, 6, CHAR_PROP_NOTIFY, ATTR_PERMISSION_NONE, GATT_DONT_NOTIFY_EVENTS, 16, 1, CharAudioSyncHandle); You can choose to not create the BlueVoice Service and the module is not able to transmit audio. This node can still function as a RECEIVER;...
  • Page 15: System Setup

    BLUEMIC-1 to an Android™ or iOS™ device running the ST BlueMS app (v3.0.0 or higher); unidirectional audio streaming at a sampling frequency of 8 or 16 kHz from the STEVAL-BLUEMIC-1 to the receiver node of the FP-AUD-BVLINK1 application available on www.st.com.
  • Page 16: Steval-Bluemic-1 Evaluation Board Programming Interface

    To program the board, connect an external ST-LINK to the SWD connector on the STEVAL-BLUEMIC-1 evaluation board; a 5-pin flat cable is provided in the evaluation kit. The easiest way to obtain an ST-LINK device is to get an STM32 Nucleo board, which bundles an ST-LINK V2.1 debugger and programmer.
  • Page 17: Steval-Bluemic-1 Evaluation Board Demos

    Android™ or iOS™ device running the ST BlueMS app (v3.0.0 or higher). Set up the STEVAL-BLUEMIC-1 evaluation board as explained in the previous sections and program it with the relevant binary file (STSW-BLUEMIC1_8kHz.bin) included in the software package.
  • Page 18: Figure 21. Voice Streaming From The Steval-Bluemic-1 Evaluation Board To An Android™ Or Ios™ Mobile Device

    UM2257 STEVAL-BLUEMIC-1 evaluation board demos Figure 21. Voice streaming from the STEVAL-BLUEMIC-1 evaluation board to an Android™ or iOS™ mobile device 2.4.1.1 ST BlueMS app To run this demo: Turn the STEVAL-BLUEMIC-1 evaluation board on via SW1 switch Open the ST BlueMS app on your smartphone or tablet.
  • Page 19: Figure 23. Bluems (Android Version) Bluevoice Demo

    2.4.1.2 BlueVoice page When the STEVAL-BLUEMIC-1 evaluation board is connected to a mobile device the on-board green LED turns on and the board starts streaming audio to the mobile device (in this phase the blue LED starts blinking fast). Note: In a different version of the evaluation board the color of the LED can be inverted.
  • Page 20: Figure 24. Bluems (Android Version) Asr Language Selection

    UM2257 STEVAL-BLUEMIC-1 evaluation board demos Figure 24. BlueMS (Android version) ASR language selection 2.4.1.2.2 Chinese ASR: iFlyTek MSC service When Chinese is selected, the ASR service provided by iFlyTek is enabled. Pushing the button on the bottom right hand of the screen, it becomes green and the speech-to-text service starts.
  • Page 21: Figure 25. Bluems (Android Version) Chinese Asr, Iflytek Technology

    UM2257 STEVAL-BLUEMIC-1 evaluation board demos Figure 25. BlueMS (Android version) Chinese ASR, iFlytek technology 2.4.1.2.3 Alternative languages: Google Speech API The ADD button allows the insertion of the key (see Section 2.4.1.2.4 Google speech ASR Key generation) to enable the ASR feature: a popup window prompts the insertion of a valid API key, followed by the ASR service activation key.
  • Page 22: Figure 27. Bluems (Android Version) Asr Service Enabled

    UM2257 STEVAL-BLUEMIC-1 evaluation board demos Figure 27. BlueMS (Android version) ASR service enabled Hold the recording button to record your voice for subsequent recognition. While the button is pressed, a bar progressively indicates the elapsed recording time. When you release the button a “Sending request…” message appears.
  • Page 23: Figure 28. Bluems (Android Version) Voice Recording

    UM2257 STEVAL-BLUEMIC-1 evaluation board demos Figure 28. BlueMS (Android version) voice recording The speech recognized by the ASR service appears below the volume bar. UM2257 - Rev 2 page 23/35...
  • Page 24: Figure 29. Bluems (Android Version) Recognised Voice Text

    UM2257 STEVAL-BLUEMIC-1 evaluation board demos Figure 29. BlueMS (Android version) recognised voice text Note: If the recording cannot be recognized, a “Token not recognized’ message appears instead of the text. 2.4.1.2.4 Google speech ASR Key generation The Google Speech APIs require a key to access the web-based service. You need a Google account to complete the procedure and access the service.
  • Page 25: Figure 30. Google Chromium-Dev: Search Group

    UM2257 STEVAL-BLUEMIC-1 evaluation board demos Figure 30. Google Chromium-dev: search group Step 4. Click on “Join group to post” button Figure 31. Google Chromium-dev: join group to post Step 5. Click on “Join this group” button to join the Chromium-dev group.
  • Page 26: Figure 34. Google Developers Console: New Project

    UM2257 STEVAL-BLUEMIC-1 evaluation board demos Figure 34. Google Developers Console: new project Step 10. Make sure you have selected the newly created project. Figure 35. Google Developers Console: ASRProject Step 11. Write "Speech API" in the search box, and select correct result.
  • Page 27: Figure 38. Google Api Manager: Create Api Key

    2.4.1.3 Inertial data plot page The STEVAL-BLUEMIC-1 evaluation board also streams inertial data acquired from the on-board 3-axis accelerometer and gyroscope. Swipe from the right to open a new page that allows a real-time plot of inertial raw data received from the evaluation board.
  • Page 28: Streaming To An Stm32 Nucleo Board Used As A Receiver

    The audio can be acquired at 8 or 16 kHz of sampling frequency: the transmitter and the receiver must be configured accordingly.(Refer to the relevant page on www.st.com to set up the central module to be used as a receiver.)
  • Page 29: Figure 41. Voice Streaming From A Steval-Bluemic-1 Evaluation Board To An Stm32 Nucleo Board

    Receiver recognized as USB microphone Use any freeware or commercial audio recording software to interface with the system, for example Audacity (http://audacity.sourceforge.net/). Open it and press the Record button to record the audio streamed from the STEVAL-BLUEMIC-1 evaluation board. UM2257 - Rev 2...
  • Page 30: Figure 43. Audacity Recording Voice Streamed By The Peripheral

    UM2257 Streaming to an STM32 Nucleo board used as a receiver Figure 43. Audacity recording voice streamed by the peripheral Stop or restart the streaming by pressing the user button on the evaluation board. UM2257 - Rev 2 page 30/35...
  • Page 31: Revision History

    UM2257 Revision history Table 3. Document revision history Date Version Changes 17-Jul-2017 Initial release 08-Feb-2018 Added new product MP34TD05-A UM2257 - Rev 2 page 31/35...
  • Page 32: Table Of Contents

    STEVAL-BLUEMIC-1 evaluation board demos ........
  • Page 33 STEVAL-BLUEMIC-1 evaluation board main component details........
  • Page 34 STEVAL-BLUEMIC-1 evaluation board hardware architecture........
  • Page 35 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’...

Table of Contents