AI Intelligent Speech Recognition Module (1)—Offline Module Introduction

Offline voice control module

Insert image description here

Introduction

This is a low-cost, low-power, small-sized and cost-effective offline speech recognition development board. It can quickly learn and verify offline voice control of various peripherals, such as relays, LED lights, PWM dimming, etc.
Onboard is a Micro USB interface, CH340NUSB to serial port chip, high-sensitivity microphone, 8 ohm 1w speaker and toggle switch. Just plug in the USB cable and you can burn the program through the serial port. Simple and convenient, it is a good helper for learning and testing offline voice modules.
This development board leads to all 10 ports of the voice module. It is small in size, and the pin header is compatible with the breadboard design and can be directly plugged into the breadboard.

This offline voice module uses the SU-03T voice recognition module. Its functional block diagram is shown below.
Insert image description here

Pin definition

Insert image description here

The su-03T module has a total of 18 interfaces, of which serial port programming uses B6 and B7, which are the receiving pin RXD and the sending pin TXD respectively.
In the module, you can directly plug in the USB data cable to burn the firmware. Of course, you can also use USB to ttl to download. If it is the latter, you need to connect the following two pins.
Insert image description here

Several other commonly used pins are as follows:

VCC 5V power supply
GND digitally
MIC- Electret wheat negative electrode
MIC+ Electret wheat cathode
SPK- Speaker negative pole
SPK+ Speaker positive pole

For power supply, a data cable is usually sufficient, so it is very convenient to use this offline voice control module for voice development. You only need to connect the microphone and speaker, and burn the firmware into it. The following describes how to burn firmware.

Development Platform

Movement Intelligent Innovation has launched an AI zero-code platform - Intelligent AD. Models and firmware can be generated immediately by configuring the platform, which greatly reduces development difficulty, reduces development costs, shortens development time, and can greatly accelerate the development of intelligent products.
Insert image description here
Click "Product Management" - "All Products" - "Create Product" on the left, select the product type, select the pure offline solution for the scenario, select SU-03T for the module, fill in the product information and click Next to enter the editing interface.
Insert image description here

You can customize the command words in it, and the control details can add different control methods to the command words, such as making the port output high and low levels, PWM, etc. For example, when the command word is "turn on the desk lamp", add the control type of the command word in the control details as port output (assuming the port is GPIO_B2), the action is set level, and the parameter is high level, then in GPIO_B2 Connect the positive pole of the LED and the negative pole of the LED to GND. When the command word "turn on the desk lamp" is spoken, GPIO_B2 will output a high level, thus making the LED light up. In the same way, you can set GPIO_B2 to output a low level to turn off the LED.

Insert image description here
Insert image description here

After configuring the above steps, you can click Release version and wait for the SDK status and firmware status to be generated successfully. This process will take about 20 to 30 minutes, and your phone will receive a text message when it is generated.
Insert image description here

Insert image description here
Click "More", download the SDK, and click "Download Firmware". After decompressing the first downloaded SDK, UniOneUpdateTool.exe in the uni_hb_m_solution/image_demo/Hummingbird-M-Update-Tool path is the application for burning firmware. After decompressing the second downloaded firmware, find the jx_su_03t_release_update.bin file. This is the firmware we want to burn, which contains the command words and related control details we set earlier. Open UniOneUpdateTool.exe and select the jx_su_03t_release_update.bin file we downloaded in the image file for burning.
Insert image description here
Insert image description here
Insert image description here
When burning, be sure to turn off the power first (there is a toggle switch on the module), wait for "Waiting for Device" to appear, and then turn on the power switch, "Start Burning" will be displayed, and then "Download" will be displayed if the burning is successful. Finish". If you are using the SU-03T module directly instead of a module, you need to disconnect the vcc power supply during programming and then connect it again, or design a programming board yourself with a power switch on it to turn on and off the power supply. Break control. Since the circuit of this module has been designed, you can control it directly during programming.
Insert image description here
Insert image description here
Insert image description here
The functions of the firmware burned here are as follows:

command word Function
Hello Xiaozhi or Xiaozhi Xiaozhi voice wake up
Turn on the light Light up LED
Turn off the lights Turn off LED
Brighten it up Increase LED brightness
dim a bit Reduce LED brightness

Pins used:

pin Functional description
B2 Turn on/off the light, connect the LED positive pole
B3 PWM dimming, connect to LED positive pole
GND Connect to LED negative pole

Summarize

After burning the firmware in, click the button above to connect the hardware, and then you can voice control the LED. If you need firmware, please leave a message in the comment area! When dimming, be sure to turn on the light first!

Guess you like

Origin blog.csdn.net/qq_42250136/article/details/132545576