当前位置:网站首页>Introduction to application design scheme of intelligent garbage can voice chip, wt588f02b-8s
Introduction to application design scheme of intelligent garbage can voice chip, wt588f02b-8s
2022-06-12 13:03:00 【Weichuang bosom friend】
WT588F02B The application design scheme of voice chip in intelligent garbage can
Intelligence has become a trend of the times , Nowadays, people's demand makes intelligent home an indispensable part . And garbage cans are indispensable furniture in people's daily life , There are even garbage collection stations on the streets . But the function of the existing garbage can is too single , It has been unable to meet people's daily requirements for smart furniture .
About the traditional flip trash can , Most people will open the lid of the garbage can with disgust , After all, it's garbage , Bacteria will inevitably grow , Nowadays, garbage classification is advocated everywhere , Standing in front of the garbage bin , Are you confused about how to classify your investment .WT588F02B The application of voice chip gives the garbage can a warm “ Voice cues ”.
WT588F02B Voice chip is a very excellent voice chip , This series of chips integrates voice broadcasting 、 Nixie tube display driver and other functions , And rich expansion resources , A single chip can complete voice interaction 、 Display drive 、MCU function .WT588F Series chips have 3 Kind of package :SOP8、SOP16、SSOP24.
WT588F02B Design example of intelligent trash can
1. Program Overview
The design meets the following functional requirements :
1. When someone is near the trash can , The trash can will automatically flip over , And send out the prompt sound of garbage classification ;
2. When away from the trash can 5 Automatically close the cover after seconds , Make a voice of thanks ;
3. Key function : Select normally open mode or inductive mode ;
4. Standard voice playback function .
2. Application framework diagram
The system structure diagram is shown in the figure below .

3. Serial communication description :
3.1. Protocol command format :
WT588F02B-8S Built in standard UART Asynchronous serial interface , Belong to 3.3V TTL Level interface . The communication data format is : Start bit :1 position ; Data bits :8 position ; Odd and even bits : nothing ; Stop bit :1 position . Use the computer serial port debugging assistant , You need to set the parameters of the serial port correctly , The setting is as shown in the figure :

Voice serial port instruction : Only the instruction length and check are correct , Will judge the order ; When the command does not exist , no return value , Too many parameters and no return value , Parameter error returns 01
Clock class serial port instructions : According to its table description, the return is consistent , Only the length sum check is correct , Will judge the order ; The order does not exist , no return value , Too many parameters and no return value , Parameter error returns 01;
Be careful :“ length ” It means the length (1 byte )+ Command code ( Several bytes )+ Parameters ( Several bytes )+ The checksum (1 Bytes ) The length of ( Number of bytes );
“ Add up and check ” It means the length + Command code + The low byte of the cumulative sum of parameters ;

3.1.1. Pin instructions :

3.2. Voice play command :

Command format

3.2.1. Play the voice of the corresponding address (A0)

Be careful :1. It can play 32,767 Paragraph voice ;
3.2.2. Volume adjustment command (AE)

Be careful :1. Volume adjustment has 32 level (00~1F), among 00 Minimum volume ,1F The volume is maximum ;
2. At the end of voice playback 、 Send this command to adjust the volume during playback or in standby mode ;
3.2.3. Cycle through the current voice (AF)

Be careful :1. Address ---- Express 01 perhaps 00;01: Single tune circulation ;00: Cancel single loop ;
2. Execute this command to cycle the current segment of voice , Can be sent during voice playback . During the execution of circular instructions , Can be AB command 、 Normal address instruction 、B0 Combined instruction interrupt , Failure , You need to send the play command first , Then issue the circular play instruction ;
3.2.4. Stop the current voice playback (AB)

3.2.5. Code play (B0)

Be careful :1.FF/NN---- Fixed code , reserve , It doesn't work for the time being , It can be used directly 00 00 replace ( It's indispensable );
2. Example : If we want the chips to play in turn 01/01/02 Voice content of the address , That is, even code instruction playback ;
Instruction is :00 7E 0B B0 00 00 00 01 00 01 00 02 BF EF.
3.3. PWM Output

Returns the format

Be careful :
(1) The command represents setting PWM Pulse width ,XX The range is 00~B4, Express 0~180 Degrees of rotation ;
(2) The function of this command is to set the rotation angle of the steering gear
4. Hardware design overview
This scheme is optional MUC control , And receive infrared ranging signal , Pass the standard after treatment UART Serial port communicates with voice chip , Realize cover opening setting and voice broadcasting function .
4.1. Introduction to voice chip
WT588F02A-16S It is the latest product developed by Shenzhen Weichuang Zhiyin Electronics Co., Ltd 16 position DSP Voice chip 、 Internal oscillation 32Mhz,16 Bit PWM decode . Powerful functions make WT588F02A-16S Become a leader in the voice chip industry . at present WT588F02A-16S, Maximum hanging capacity 128Mbit Of flash, The chip has built-in hardware SPI、UART、IIC、 Comparator and other resources , It can customize various personalized function products for customers .

4.1.1. Basic functions and characteristics of the chip
1.16 position DSP Voice chip 、32Mhz Internal oscillation ;
2. Working voltage 2.0~5.5V; Recommended voltage :2.2~4.0V( Due to the use of serial port TTL Level communication )
3.16bit Of PWM Output , Can drive directly 8R 0.5W horn ;
4. Support 6K~32Khz Of WAV file ;
5. Customers can download the test board to replace the internal voice content of the chip online ;
6. With voice prompt function ;
7. Inside the chip is 183K byte Storage space ( Excluding the main control program ).
8. The chip master program and the built-in stored data can be erased and then burned .
4.2. Red sensor interface
The human body has a constant body temperature , Generally in 37 Centigrade , So it emits a specific wavelength (10um Left and right infrared ), Passive infrared probe is used to detect the emission of human body 10um The left and right infrared two work . The infrared emitted by the human body is enhanced by the Fresnel filter and gathered on the infrared sensing source , Pyroelectric elements are usually used as infrared induction sources , This element will lose its charge balance when it receives the infrared radiation from the human body and the temperature changes , Release charge outward , The output signal can be received by the main control chip , And communicate with voice chip , Control the state of the cover .

4.3. SG90 The steering gear
The control of the steering gear generally needs a 20ms Time base pulse , The high level of the pulse is generally 0.5ms~2.5ms Angle control pulse in range . When the infrared sensing module senses that an object is approaching , Controlled by voice chip PWM The pulse width output controls the steering gear to turn and jack up the garbage can cover .

The following figure shows the pulse width corresponding to different rotation angles .

4.4. General schematic diagram

About us
As a high-tech enterprise focusing on voice technology research , Always adhere to “ Good service engineers ” Target , Take the standardization of voice interaction devices in the industry as the direction , Committed to making complexity simple , Provide fast voice 、 Intelligent Internet of things application solutions .WT588F series 、WT2003H series 、WTN6 Application design scheme of series voice chip , On the smart alarm clock 、 Smart water cup 、 There are mature application cases in the field of consumer electronics such as atomizer . The application of consumer electronic products is an important development field of the company , future , Weichuang Zhiyin will launch standardized voice chips in more industries , Further enhance the design experience of Engineers , Enabling standardization in the consumer electronics industry .
边栏推荐
- Vant tab bar + pull-up loading + pull-down refresh demo van tabs + van pull refresh + van list demo
- 分享PDF高清版,系列篇
- Pytorch官方Faster R-CNN源代码解析(一)——特征提取
- Semantic segmentation with pytorch
- 成功定级腾讯T3-2,万字解析
- 一个ES设置操作引发的“血案”
- 442 authors, 100 pages! It took Google 2 years to release the new benchmark big bench | open source
- Experience and learning path of introductory deep learning and machine learning
- Newoj week 10 question solution
- 号称下一代监控系统!来看看它有多牛逼
猜你喜欢

移动应用出海的“新大陆”

Unittest framework

Buu question brushing record - 7

Stm32f1 and stm32cubeide programming examples - device driver -eeprom-at24c256 driver

Known as the next generation monitoring system! See how awesome it is

A "murder case" caused by ES setting operation

【微信小程序开发】第1篇:开发工具安装及程序配置

嵌入式系统概述1-嵌入式系统定义、特点和发展历程

什么时候运用二分搜索

Overview of embedded system 1- definition, characteristics and development history of embedded system
随机推荐
Help you with everything from the basics to the source code. Introduce the technology in detail
[cloud native | kubernetes] learn more about ingress
Further understanding of the network
unittest框架
Typeof and instanceof, how to simulate the implementation of an instanceof? Is there a general detection data type?
Known as the next generation monitoring system! See how awesome it is
Detect whether the vector has an intersection
中科物栖CEO张磊:“芯片+OS”范式在万物互联时代的机遇与挑战|量子位·视点分享回顾...
How to balance multiple losses in deep learning?
Hardware composition of embedded system - introduction of embedded development board based on ARM
安全KNN
二叉树(思路篇)
Binary tree (construction)
Getting to know blob objects
下一个职场演讲PPT的明星,会不会是此刻的你【完美总结】
【微信小程序开发】第1篇:开发工具安装及程序配置
Soft test network engineer notes
大一女生废话编程爆火!懂不懂编程的看完都拴Q了
About paiwen
Summary of question brushing in leetcode sliding window