Renesas RE01 256KB Group: Ultra-Low Consumption Voice Recognition & Bluetooth Application Note

This application note describes sample code for the RE01 256KB Group microcontroller, enabling ultra-low consumption voice recognition and Bluetooth communication for wearable user interfaces and home appliance remote controls.

Introduction

Conventional voice recognition devices often require AC power. The ultra-low power RE family enables voice recognition remote controls and wearable device user interfaces that can run for extended periods on small batteries without external power sources. This application note details sample code combining voice recognition using RECAIUS™ Speech recognition middleware (Voice Trigger), Bluetooth communication, and RGB light sensor processing.

Target Device

RE01 256KB Group

RECAIUS™ Speech recognition middleware Voice Trigger is a product of Toshiba Digital Solutions Corporation, referred to as Voice Trigger herein. RECAIUS™ is a registered trademark or trademark of Toshiba Digital Solutions Corporation in Japan and other countries. Bluetooth® is a registered trademark or trademark of Bluetooth SIG, Inc. USA, referred to as Bluetooth herein.

1. Specifications

1.1 Description of Sample Code

This application note describes sample code that integrates voice recognition (Voice Trigger), Bluetooth communication, and RGB light sensor processing. In voice recognition mode, the system recognizes voice input from a microphone, mimicking hands-free operation in smartwatches or smart glasses, and displays relevant information on an LCD based on detected words. The RGB light sensor mode serves as an example of sensor processing in IoT edge devices, calculating illuminance and outputting it via the LCD and BLE communication.

1.1.1 Menu Selection

The APP_SET (SW2) and APP_MODE (SW1) buttons are used to select a demo from the menu. Available menus are "Voice" and "Brightness".

Figure 1 illustrates the menu screen, and Figure 2 shows the button positions on the board.

Figure 1: Menu screen showing options like Voice, Brightness, and Battery status.

Figure 2: Photograph of the development board highlighting the APP_SET and APP_MODE buttons.

1.1.2 Voice: Voice Recognition Mode

Selecting "Voice" from the menu transitions the demo to voice recognition mode. In this mode, Voice Trigger processes voice input via the microphone. The recognized word or phrase determines the information displayed on the LCD. The speech recognition result is also transmitted via Bluetooth to a tablet PC running a Renesas-provided Android app.

Figure 3: Diagram illustrating the voice recognition process, from initial screen to voice input, processing, and output of results to LCD and Tablet PC.

Table 1: Correspondence between recognized words and output results
Voice commandsLCD OutputTablet PC Output
Turn on TVTURN ON TVTurn on TV
Turn off TVTURN OFF TVTurn off TV
Loud soundLOUD SOUNDLoud sound
Small soundSMALL SOUNDSmall sound
Channel upCHANNEL UPChannel up
Channel downCHANNEL DOWNChannel down

1.1.3 Brightness: RGB Light Sensor Mode

When "Brightness" is selected, the demo calculates illuminance from data acquired by the RGB light sensor and displays it on the LCD. The illuminance value is also transmitted via Bluetooth and shown as a time-series graph on a tablet PC running a Renesas Android app.

Figure 4: Diagram showing the operation in RGB light sensor mode, illustrating brightness measurement and graph display.

1.2 Pins Used

Table 2 lists the pins utilized by this sample code.

Table 2: Pins used
FeaturesTerminal nameContents
SwitchP509APP_MODE push switch - KRM01_B
P508APP_SET push switch - IRQ4-C
RGB Light SensorP808IIC communication for illuminance sensor - INT
P809IIC communication for illuminance sensor - SDA
P810IIC communication for illuminance sensor - SCL
LCDP814Serial communication for LCD - VCOM
P813Serial communication for LCD - RST
P011Serial communication for LCD - SCLK
P010Serial communication for LCD - MOSI
P015Serial communication for LCD - SCS
Bluetooth moduleP702UART Communication - RXD
P703UART Communications - TXD
Microphone moduleP003AD analog signal

2. Operating Conditions

The sample code's operation has been tested under the conditions specified in Table 3.

Table 3: Operating Conditions
ItemDescription
Microcontroller usedR7F0E01182CFP 100pin

3. Description of Software

3.1 System Configuration Diagram

Figure 5 presents a system configuration diagram.

Figure 5: System Configuration Diagram showing the interaction between MIC Module, RGB Light Sensor, RE01 256KB microcontroller, Bluetooth Module, and Tablet PC.

3.2 Software Structure

The sample code's structure is illustrated in Figure 6.

Figure 6: Software Structure diagram depicting the layered architecture: Application Layer, Middleware Layer, and Driver Layer.

3.3 Flowchart

Figure 7 provides the application's flowchart.

Figure 7: Flowchart detailing the operational sequence, including power-on, menu selection, voice recognition, and brightness measurement modes, along with key input handling and transitions.

3.4 Clock Settings for each Mode

The application layer manages clock and operating modes during each demo operation to minimize current consumption. Clock and operation modes are managed by the application layer during operation and menu control standby. The middleware layer manages these during demo control standby. Table 4 shows clock and operation modes during operation, with "menu control" being the basic state.

Table 4: List of clocks and operation modes in operation
StateLOCO 32KHzSOSC 32KHzMOCO 2MHzMOSC 32MHzHOCO 64MHzPower control modePower supply mode
After reset releasedOperateStopStopStopOperatingBoostALLPWON
After startup executedOperateStopStopStopOperatingBoostALLPWON
Demo menuOperateStopStopStopOperatingBoostALLPWON
Voice recognition demoOperateStopStopStopOperatingBoostALLPWON
Brightness sensor demoOperateStopStopStopOperatingBoostALLPWON

During periods like AD conversion or waiting for user action, the software transitions to a low-power mode (Sleep) to reduce current consumption. Table 5 shows clock and operation modes during waiting periods.

Table 5: List of clocks and operation modes in waiting period
StateLOCO 32KHzSOSC 32KHzMOCO 2MHzMOSC 32MHzHOCO 64MHzPower control modePower supply mode
Demo menuOperateStopStopStopOperatingBoostALLPWON
Voice recognition demoOperateStopStopStopOperatingBoostSLEEP
Brightness sensor demoOperateStopStopStopOperatingBoostALLPWON

3.5 Current Consumption

Table 6 details the power consumption for each operation mode.

Table 6: Power consumption of each operation modes
ModePower consumption of current(mA)
Demo menu1.1
Voice recognition demo1.2
Brightness sensor demo1.2

4. Get Sample Code

Renesas provides sample code for the RE01 256KB along with an Android app for tablet PCs. For inquiries, please contact your local Renesas Electronics sales office or distributor via www.renesas.com/contact/.

5. Reference Documents

User's Manual: Hardware

RE01 1500KB, 256KB CMSIS Package Startup Guide

Technical Update/Technical News

User’s Manual: Development Tools

For more information about Voice Trigger, please contact Toshiba Digital Solutions Corporation at https://www.toshiba-sol.co.jp/en/contact/index.html.

Revision History

Rev.DatePageDescription Summary
1.00Jan.25.21-First released
1.01Feb.19.215Voice recognition demo supported English commands. The contact information of RECAIUS™ Speech recognition middleware Voice Trigger was added.

PDF preview unavailable. Download the PDF instead.

REN r01an5686ej0101-re01-256kb-voice APN 20210219 Renesas Electronics Corporation SetaPDF-Merger Component v2.27.0.1196 ©Setasign 2005-2021 (www.setasign.com)

Related Documents

Preview Renesas RE01 1500KB, 256KB Group CMSIS Package Development Startup Guide
This application note from Renesas provides a comprehensive guide for developers looking to start projects using the CMSIS package with the RE01 1500KB and 256KB microcontroller groups. It details the essential steps for setting up development environments, understanding the CMSIS package components, and implementing drivers for various hardware functionalities.
Preview RE01 256KB Group Software Development Kit (CMSIS Driver Package) Rev1.20 - Application Note
This document provides an introduction to the RE01 256KB Group Software Development Kit (CMSIS Driver Package), detailing its features, folder structure, operating environment, improvements, restrictions, and instructions for opening and loading projects in development environments like IAR EWARM and Renesas e2 studio.
Preview Renesas RE01 1500KB/256KB Group Software Development Kit with Smart Configurator Guide
Learn how to use the Renesas RE01 1500KB Group and RE01 256KB Group Software Development Kit (SDK) with Smart Configurator (SC). This guide covers installation, operating environment, improvements, and restrictions for efficient embedded system development.
Preview RX72T Vector Control for Permanent Magnet Synchronous Motor with Encoder (Implementation)
This application note details the implementation of vector control for Permanent Magnet Synchronous Motors (PMSM) using the Renesas RX72T microcontroller, covering software configuration, hardware setup, and development tools like Renesas Motor Workbench.
Preview Renesas QE for Display [RX] Application Note: Guide to Embedded Display Development
This application note from Renesas provides a comprehensive guide to using QE for Display [RX], a plug-in for the e² studio IDE, for developing embedded systems with graphical displays on Renesas RX microcontrollers. Learn about GUI creation, display adjustment, and integration with emWin and AppWizard.
Preview Renesas Flash Programmer: Command Line Usage Guide
Learn how to automate microcontroller programming with the Renesas Flash Programmer (RFP) using command-line interfaces. This guide covers setup, project files, batch files, and rfp-cli examples for various Renesas MCU families.
Preview Renesas RE01 Group (256-KB Flash Memory) Datasheet
Datasheet detailing the Renesas RE01 Group microcontrollers, featuring a 64 MHz Arm Cortex-M0+ core, 256 KB flash memory, 128 KB SRAM, energy harvesting control, and advanced peripherals for low-power embedded applications.
Preview Renesas RL78 Smart Configurator User's Guide: e² studio
This application note and user's guide provides comprehensive instructions on using the Renesas RL78 Smart Configurator, an e² studio plug-in, for efficient embedded system development. Learn to configure peripherals, generate code, manage projects, and optimize microcontroller settings for the RL78 family.