通通

# Sixth Lichuang Electric Competition# Voice recognition + real-time clock + smart night light + music spectrum

 
Overview

describe

 

This project uses WS2816B full-color RGB dot matrix display and Qiyingtailun 1102 chip to realize voice control: real-time clock, temperature and humidity, smart night light, and FFT music spectrum functions.

 

exhibit

 

 

 

 

Layout

 

 

 

Note: 1. There are too many dot matrix screen components, and the standard version of EDA cannot meet the design, so it was put on the professional version of EDA.

    2. Use Huacai Micro WS2816B, full-color LED.

    3. [ There is still a small problem that has not been resolved. I don’t recommend cloning, I’ll solve it after I finish my postgraduate exams.

 

 

 

project instruction

 

This project is for learning purposes . Various demos have flashed in my mind before realizing the RGB full-color dot matrix display control.

 

1. Using Qiying Tailen 1102 chip as the main control, I bought CI-C22GS02S directly (1122 standard chip board);

 

2. The relative cost of this core board is about 12 yuan, but the open IO of the core board is too little;

 

3.1122 as the main control has 3 PWM ports, 2 serial ports UART1 (multiplexed with one IIC) and UART0;

 

4. The core board integrates a 4W power amplifier circuit and MIC circuit, and is directly connected to the 4Ω speaker and pickup electret.

 

5. FFT music spectrum input sampling requires an ADC, and the Qiyingtailun 1102 module does not lead to the ADC port.

 

Directly disconnect the 1.2V sampling port of the module and connect the flying wire to the ADC sampling port (as shown in the figure below).

 

 

Function Description

 

Want to complete the functions: [ Real-time clock, temperature and humidity] + [Voice control night light] + [ FFT music spectrum] , the three functional modes can be switched by voice control. Dot matrix display brightness automatically adjusts.

 

1.  Voice recognition : Supports customizing 200 local voice recognition offline command words.

 

2.  Real-time clock : Maxim’s real-time clock chip, address and data are transmitted through the IIC interface;

 

             Full binary coded decimal (BCD) clock/calendar,

 

             Dates with less than 31 days are automatically adjusted at the end of the month, including corrections for leap years, and the clock runs AM/PM in 24h/12h format, etc.

 

3.  Temperature and humidity: Swiss Sensirui SHTC3, address and data are transmitted through the IIC interface;

 

             It can measure relative humidity from 0 to 100% and temperature from -40°C to 125°C. Typical measurement accuracy is ±2% relative humidity and ±0.2 °C . 

 

4.  Intelligent night light : WS2816B dot matrix screen, wake-up by voice can be realized by warm and dark light in pattern shape (such as Pikachu and other patterns).

 

5.  Music spectrum : FFT music spectrum is an efficient algorithm of DFT, also called fast Fourier transform.

 

            The signal source electret microphone is sent to the op amp end for signal amplification, and passes through a second-order voltage-controlled low-pass filter with a cut-off frequency of about 5KHz.

 

            The obtained signal AD_IN is sent to the 1122 chip for collection.

 

            Note: The 1122 base board does not lead to the ADC interface. I plan to disconnect the 1.2V voltage detection sampling port of the core board and connect the audio sampling signal to it.

 

6. Dot matrix screen photometric adjustment: The photosensitivity determines whether it is day or night in conjunction with the current time, and adjusts the color and brightness of the display light.

 

7. Information setting: The I/O of Texas Instruments TCA6416A low-voltage 16-bit IIC expands 4 buttons to set time and other information.

 

references

 

FFT principle: https://baike.baidu.com/item/FFT principle/8966333?fr=aladdin

 

Video case sharing

 

Music Spectrum 1: https://b23.tv/v0mUMc

 

Music Spectrum 2: https://b23.tv/9xu4mu

 

Datasheet

 

1. TCA6416AI/O extension: chrome-extension://ibllepbpahcoppkjjllbabhnigcbffpi/https://www.ti.com/lit/ds/symlink/tca6416a.pdf?ts=1627230707573&ref_url=https%253A%252F%252Fwww.ti. com%252Fproduct%252FTCA6416A

 

2. WS2816B full-color RGB light: chrome-extension://ibllepbpahcoppkjjllbabhnigcbffpi/https://atta.szlcsc.com/upload/public/pdf/source/20201203/C965560_4327CBF80C89A1F38DD325CAD8F2A045.pdf?Expires=407088000 0&OSSAccessKeyId=LTAIJDIkh7KmGS1H&Signature=o8JY6%2BFiwY2Aj3DBq% 2FAAKt%2B8M2A%3D&response-content-disposition=attachment%3Bfilename%3DC965560_RGB%25E5%2585%2589%25E6%25BA%2590_2020-12-03.PDF

 

 

3. Temperature and humidity SHTC3: chrome-extension://ibllepbpahcoppkjjllbabhnigcbffpi/https://atta.szlcsc.com/upload/public/pdf/source/20180702/C194656_6AF040A2C7857A0088E910E1F6414815.pdf?Expires=4070880000&OSSAc cessKeyId=LTAIJDIkh7KmGS1H&Signature=ZFRW98W66NKufwL2LU%2FYtrlj4IM%3D&response- content-disposition=attachment%3Bfilename%3DC194656_SHTC3_2018-07-02.PDF

 

4. Maxim real-time clock DS1338Z : chrome-extension://ibllepbpahcoppkjjllbabhnigcbffpi/https://atta.szlcsc.com/upload/public/pdf/source/20190626/C400144_27BCF4DE49A648ABC31194783BE3D5C1.pdf?Expires=4070880000& OSSAccessKeyId=LTAIJDIkh7KmGS1H&Signature=HIVSyHR8mA%2FwYHV7H79E7%2FmAvBk %3D&response-content-disposition=attachment%3Bfilename%3DC400144_DS1338Z-33_2019-06-26.PDF

 

5. Texas Instruments NE5532: chrome-extension://ibllepbpahcoppkjjllbabhnigcbffpi/https://www.ti.com.cn/cn/lit/ds/symlink/ne5532a.pdf?ts=1627231237466&ref_url=https%253A%252F%252Fwww. ti.com.cn%252Fproduct%252Fcn%252FNE5532A

 

6. Yi Qi Ying Tai Lun 1122: https://document.chipintelli.com/%E7%A1%AC%E4%BB%B6%E5%BC%80%E5%8F%91/%E8%8A%AF %E7%89%87%E6%95%B0%E6%8D%AE%E6%89%8B%E5%86%8C/CI1102%E8%8A%AF%E7%89%87%E6%95%B0 %E6%8D%AE%E6%89%8B%E5%86%8C/%E8%8A%AF%E7%89%87%E6%A6%82%E8%BF%B0/

 

 

 

 

 

 

参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-05-23 01:20:44

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号