35. Case 37: ASR(Automatic Speech Recognition) Module

35.1. Introduction

It is able to control the device via your voice such as to give commands of moving forward, reversing and starting the line-tracking mode etc.

microbitplanetX\./images/05037_01.png

35.2. Characteristics


  • Designed with RJ11 ports and easy to plug.

35.3. Specification


Item Parameter
SKU EF05037
Connection RJ11
Connection Type IIC
Working Voltage 3.3V
Core IC SNR3512M

35.4. Outlook and Dimension


microbitplanetX\./images/05037_02.png

35.5. Quick to Start


Materials required and connections diagram


  • Connect the ASR module to the IIC port and the motor fan to J1 port on Nezha expansion board.

microbitplanetX\./images/05037_03.png

35.6. MakeCode Programming


Step 1

Click “Advanced” in the drawer of the MakeCode to see more choices.

../_images/05001_04.png

We need to add a package for programming. Click “Extensions” in the bottom of the drawer and search with “PlanetX” in the dialogue box to download it.

../_images/05001_05.png

Note: If you met a tip indicating that the codebase will be deleted due to incompatibility, you may continue as the tips say or build a new project in the menu.

Available Commands of ASR Module

microbitplanetX\./images/05037_05.png

Step 2

Code as below

microbitplanetX\./images/05037_06.png

Result

  • The motor fan is controlled by the ASR module.

35.7. Relevant File


35.8. Technique File