当前位置:网站首页>Chapter 4 stm32+ld3320+syn6288+dht11 realize voice acquisition of temperature and humidity values (Part 1)
Chapter 4 stm32+ld3320+syn6288+dht11 realize voice acquisition of temperature and humidity values (Part 1)
2022-07-16 06:35:00 【Bi sheda escape】
The first three chapters , We introduced LD3320、SYN6288 and DHT11 Temperature and humidity sensor , And shared the code information one by one , After getting the code , We can make a simple speech recognition setup , That is, obtain the temperature and humidity value of the current environment through voice commands ,( But the completion of the project is not up to the normal level , So later I will teach you how to use this program to control the adjustable brightness and color temperature LED The lamp ).
Start by opening LD3320 and SYN6288 Project folder , We're going to LD3320 Based on the project , hold SYN6288 and DHT11 Transplant it .SYN6288 Speech synthesis module and STM32 The communication between them is through serial port , therefore , We will SYN6288 The serial port driver source code file in the project file is transplanted into LD3320 In engineering documents , The specific steps are as follows .

After porting the serial port source code , We can SYN6288 The function code files that realize the function of voice broadcasting are also transplanted ( The previous chapter mentioned , This function is based on serial communication ).

open LD3320 Project code , Follow the steps below .

Operate in the pop-up dialog box , Add the serial port driver of voice broadcast into the project .

Next , Add the source code file of voice broadcast interface into the project .


Transplant the two usart and syn6288 Add the file to the compilation path .



Repeat the above operation to syn6288 Also added to the compilation path , The results are as follows .

And then click OK Exit the dialog box .
Finish the above transplant operation , stay main.c Add... At the beginning usart.h and syn6288.h The header file , And in main() Call in function usart.c Serial port initialization function in , hold STM32 And SYN6288 After the serial port of communication is initialized , We can call SYN_FrameInfo() Voice broadcast .

Call directly where you want to broadcast voice information SYN_FrameInfo() Function . As shown in the figure below ,( In different operations according to different identification codes User_Modification( ) Add our broadcast voice operation in the function ).
Compile and then burn the code into STM32 Voice human-computer interaction can be realized .
The code and effects videos are placed in the following links
link :https://pan.baidu.com/s/1NKHJIoxrre2G8SZ7edlLwg
Extraction code :htyr

边栏推荐
猜你喜欢
随机推荐
[matlab] matlab lesson 2 - preliminary drawing
POJ 2763 Housewife Wind (树链剖分+边权化点权)
Dhcp-master Automated Deployment
Visual Studio 2019 新建OpenGL项目无需重新配置环境
Supervisor series: 4. Sub process
[Multisim] problems and solutions of Multisim Simulation "op amp integrator"
RT_thread空闲线程及两个常用的钩子函数
Keil5 software reports error: l6406e: no space in execution regions with ANY selector matching xxx
RT_thread 事件集的使用
嵌入式软件开发 STM32F407 按键输入 标准库版
SQL中去除重复数据的几种方法,我一次性都告你
嵌入式软件开发 STM32F407 蜂鸣器 寄存器版
关于物联网毕设须知
HDU 2586 How far away ? (lca倍增法)
【CVPR2022】MPViT : Multi-Path Vision Transformer for Dense Prediction
Blue Bridge Cup embedded Hal library Tim_ BASE
YUV format data
【MATLAB】matlab第二课——绘图初步
人事管理系统 c语言版
嵌入式软件开发 STM32F407 跑马灯 标准库版









