introduction
This paper introduces a design of a voice recorder based on voice storage and automatic playback system. The design is centered on ISD4004 voice chip and AT89S52 microcontroller, which realizes voice storage and automatic playback well.
1 Hardware Design Principles
The main function of the voice broadcast recorder is to realize voice storage and timed playback. There are many ways to realize voice storage and timed playback, and there are many devices available for MTD2002. Due to the emergence of microcontrollers such as single-chip microcomputers and the development of digital circuit technology, voice storage and automatic playback have become easy to achieve. This design uses a single-chip microcomputer as a microcontroller. The word length of the single-chip microcomputer has developed from 4 bits, 8 bits, 16 bits to 32 bits. At present, these single-chip microcomputers with different word lengths exist in the market at the same time, and users can choose according to different needs. This system uses the AT89S52 single-chip microcomputer with a word length of 8 bits as the controller.
At present, there are many voice chips that can be used with single-chip microcomputers, and there are many voice chips with excellent performance. The ISD4004 voice chip produced by ISD Company in the United States is one of them. The ISD4004 chip adopts CMOS technology and contains oscillators, anti-aliasing filters, smoothing filters, audio amplifiers, automatic squelching and high-density multi-level flash storage arrays. The pins include power supply, clock, voice signal analog input/output terminals, and MCU interface (SPI interface). The chip adopts multi-level direct analog storage technology, and each sample value is directly stored in the on-chip flash memory, so it can reproduce the voice very realistically and naturally.
The recording and playback time of the ISD4004 series single chip is 8 to 16 minutes, and the sampling frequency can be 4.0/5.3/6.4/8.0 kHz. The lower the frequency, the longer the recording and playback time, but the sound quality will be reduced. The chip design is based on the fact that all operations must be controlled by the microcontroller, and the operation commands can be sent in through the serial communication interface (SPI or Microwire). Due to the many advantages of ISD4004, this design uses it as the recording and playback device.
The system is connected to an external clock chip PCF8563, a matrix keyboard LED display and an E2PROM AT24C01. In order to improve the voice quality during recording, the signal-to-noise ratio of the input end must be improved. Therefore, a single-ended input of a transistor (9014) amplifier circuit is used at the input end of the system, and the output end of the system is amplified by an audio power amplifier LM386 to drive the speaker. The system block diagram of the entire system is shown in Figure 1.
[page]
2 Hardware Design
2.1 Voice input and output circuit design
The voice signal converted into an electrical signal by the electret microphone is very weak and needs to be amplified before being sent to the voice chip. The purpose of this is to improve the signal-to-noise ratio of the signal to achieve better noise suppression. Since the acoustic-to-electric conversion device uses an electret microphone, the post-amplification circuit uses a triode as an amplifier device to meet the requirements. In this design, the voice signal output from the voice chip is very weak and cannot directly drive the speaker, so a power amplifier circuit is added between the voice chip and the speaker. The power amplifier circuit uses the audio power amplifier LM386 produced by National Semiconductor Corporation of the United States and is composed of a small number of capacitors and resistors. The power amplifier circuit has good amplification effect and low noise, which can meet the requirements of this design.
2.2 Display Circuit Design
The display part of this design uses LED digital tubes. In order to increase the brightness of the LED display, in this design, the a, b, c, d, e, f, and g pins are connected in series with 300 Ω resistors and then connected to 5 V voltage. This design uses software lookup table output. When the system is not recording or playing, it is necessary to display information such as year, month, day, hour, minute, second, and week; when the system is recording or playing, it is necessary to display information related to recording or playing. In this way, the entire system requires a total of 15 digital tubes. In order to save the I/O port of the microcontroller, the display part uses 74LS154, and the interface between the microcontroller and the LED uses a dynamic interface. The 74LS154 is a 4-wire 16-wire decoder, which is used to decode the output of the microcontroller and use it as the chip select signal of the LED.
2.3 PCF8563 interface circuit design
PCF8563 is a low-power CMOS real-time clock/calendar chip produced by Philips and is an I2C bus interface device. In the design, PCF8563 is used to provide time and calendar information. When there is no recording or playback operation, this design is equivalent to a perpetual calendar; when recording or playing, PCF8563 is used to time each recording or playback, and all time information is displayed through the LED digital tube. Since PCF8563 is an open drain, a 5.1 kΩ pull-up resistor must be added. The interface circuit design of PCF8563 and AT89S52 is shown in Figure 2.
[page]
2.4 ISD4004 interface circuit design
This design uses the ISD4004-16M voice chip. This voice chip can record for 16 minutes. It has a port called RAC, which is the row address clock. Each RAC cycle indicates that the ISD memory has been operated for 1 row (the memory in the ISD4004 series has a total of 2,400 rows). Therefore, the number of row addresses at the RAC end corresponds to the number of rows in the memory in the voice chip, that is, the initial and end addresses of each recording stored in the voice chip correspond to the unique number of RAC row addresses. Therefore, it is only necessary to connect the RAC end to the counting end of the microcontroller and record the number of RAC row addresses to realize the entire recording and playback operation, and the counter of the microcontroller does not need to be interrupted. Based on the above ideas, the interface circuit between ISD4004 and the microcontroller is designed as shown in Figure 3.
3 Software Design
The program design in this design includes the following parts, namely keyboard processing program, ISD4004 playback driver, ISD4004 recording driver, time correction program, recording subroutine, playback subroutine, playback time setting subroutine, playback selection program, and subroutine design. Figure 4 is the main program flow chart.
[page]
4 System Testing
After the system is powered on, all 15 digital tubes will light up for about 3 seconds to test the quality of the digital tubes. After that, the digital tubes will display information such as year, month, day, week, hour, minute, and second. When the record button is pressed, the system starts recording. During recording, the digital tube will display the word "SAVE" and the time information of the recording; when the confirm button is pressed, the recording of the voice segment ends, and the digital tube re-displays the time information. When the play button is pressed, the system starts playing, and the digital tube will display the word "PLAY" and the time information of the recording. After the playback ends, the digital tube will return to the time display interface. When the time correction button is pressed, the time can be corrected; when the confirm button is pressed, the time correction ends. This system can record for 15 minutes and can record 4 recordings. When the play setting button is pressed, the playback time of each recording can be set; when the play selection button is pressed, any of the 4 recordings can be played.
This system will produce a small amount of noise when playing recordings, which may be caused by the following reasons:
(1) The entire system is completely hand-welded, and there is interference between the lines;
(2) The digital ground and analog ground of ISD4004 are not routed separately, but are all connected together, causing interference;
(3) The amplification factor of the voice input amplifier circuit is not enough and the noise is not adequately suppressed.
The whole system is reasonably designed, with a simple peripheral circuit structure, which is convenient for debugging; the microcontroller has a remaining I/O port, which is convenient for system upgrade and expansion; all programs of the microcontroller are written in C-51, which is convenient for debugging and reading. The whole system works stably and is easy to operate. The design principle of this design can be used on buses as a voice station announcer, and can also be used in public places such as banks and hospitals that need to automatically broadcast voice information. A slight expansion on the basis of this design can meet the needs of practical applications.
Previous article:Design of LED display system based on 51 single chip microcomputer
Next article:Interface circuit and source code between AT89C52 microcontroller and DS18B20
Recommended ReadingLatest update time:2024-11-16 18:10
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Examples of embedded system security issues
- The tool is still in Beta state
- EEWORLD University ---- Introduction to Power Electronics
- TI microcontroller I8669/I44445 (MCU) MSP430 combines low power consumption with high performance
- What does inductance 10t mean?
- How to Improve Heat Dissipation Using PCB Design
- Does anyone know which layers of AltiumDesigner the PCB production file suffixes correspond to?
- Commonly used PCB software on the market and corresponding common file suffixes
- Which NB-IOT module is better?
- Ready to use, STM32G474 project of HST221 temperature and humidity sensor