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
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/
All reference designs on this site are sourced from major semiconductor manufacturers or collected online for learning and research. The copyright belongs to the semiconductor manufacturer or the original author. If you believe that the reference design of this site infringes upon your relevant rights and interests, please send us a rights notice. As a neutral platform service provider, we will take measures to delete the relevant content in accordance with relevant laws after receiving the relevant notice from the rights holder. Please send relevant notifications to email: bbs_service@eeworld.com.cn.
It is your responsibility to test the circuit yourself and determine its suitability for you. EEWorld will not be liable for direct, indirect, special, incidental, consequential or punitive damages arising from any cause or anything connected to any reference design used.
Supported by EEWorld Datasheet