一、硬件材料清单:
1、STM32核心板
2、OLED显示屏
3、语音识别模块
4、舵机
二、实现的功能
1:语音识别
2:垃圾分类
3:例如说出“干垃圾“ 对应舵机会旋转90度,并在1s后自动关闭,模拟垃圾桶的打开与关闭
三、效果演示
四、硬件部分源代码共享
#include "delay.h"
#include "sys.h"
#include "oled.h"
#include "bmp.h"
#include "ld3320.h"
#include "usart.h"
#include "pwm.h"
int main(void)
{
delay_init();
NVIC_Configuration();
uart_init(115200);
printf("\r\nUNV-LD3320-Test_Board-V1.0\r\n");
LD3320_main();
OLED_Init();
OLED_ColorTurn(0);//0Õý³£ÏÔʾ£¬1 ·´É«ÏÔʾ
OLED_DisplayTurn(0);//0Õý³£ÏÔʾ 1 ÆÁÄ»·×ªÏÔʾ
OLED_Refresh();
//OLED_ShowString(0,0,(u8*)"UNVLD3320",16);
//ÖÇÄÜÀ¬»øÍ°
OLED_Show