This system uses a single-chip microcomputer as the main control chip, ISD4004 as a voice recording and playback chip, and cooperates with related peripheral circuits and control switches to achieve concealed communication in special occasions. The user only needs to record the required voice in advance, and press the corresponding button during work to send the voice from the trunking radio. All kinds of trunking radios can be used with this module as long as they can provide four wirings: voice input, voice output, PPT and grounding.
1 Working Principle
The system is mainly divided into two parts. One is the voice input part before use. That is, users can record on demand according to their actual needs. Through the system's peripheral buttons, after pressing the recording button, the microcontroller tells the ISD4004 chip to enter the recording mode and the starting address of the recording through the SPI serial input. The sound input by the microphone is filtered and amplified and input to the ISD4004 to achieve recording. The other part is that during use, when the staff needs to speak, they can press the corresponding button to play the voice. After the user takes action, the microcontroller tells the ISD4004 chip to enter the playback mode and the starting address of the playback through the SPI serial input. At the same time, the microcontroller triggers the PPT control pin of the cluster radio to realize the input and forwarding of voice from the ISD4004 chip to the cluster radio. Figure 1 Schematic diagram of working mode
2 Circuit Design
The circuit design of this system is shown in Figures 2, 3, and 4.
When working in voice input mode, press the recording button 1, the sound is input from the microphone and input to the transistor for effective amplification. Then it is input to the ANA IN+ pin of ISD4004 after filtering. The voice signal of ISD4004 is input by the coupling capacitor, with the maximum amplitude of 32mV peak. The coupling capacitor and the input impedance of the resistor at this end determine the low-end cutoff frequency of the chip frequency band. At this time, the SS pin is connected to the P00 pin of the microcontroller and used as a chip select signal. The MOSI (serial input) pin is connected to the P01 pin of the microcontroller. The microcontroller writes 0xB0 through software, which commands ISD4004 to work in the "recording from the specified address" state to record. After the recording is completed, press button 1 again to stop recording.
When working in the key forwarding mode, press button 2, the sound will be output through the AUD OUT port of ISD4004 and connected to the MIC input signal line of the trunking radio. Two capacitors of different sizes can be connected in parallel (2.2μf and 22μf are selected in the test) to filter the high-frequency and low-frequency noise in the line respectively. The MOSI (serial input) pin is connected to the P01 pin of the microcontroller. The microcontroller writes 0xE0 through software, which commands ISD4004 to work in the "play from the specified address" state. The system will send different playback start addresses according to the key. ISD4004 will automatically play until it encounters EOM. In the playback state, the P10 port of the microcontroller directly drives the PPT input signal of the trunking radio. P10 is set to a low level through software to realize the PPT function and sound forwarding of the trunking radio. It is worth noting that the MIC input impedance of different trunking handsets is different. If necessary, the output impedance of ISD4004 needs to be adjusted.
3 Software Design
The program design is shown in Figure 5. After the ISD4004 chip is powered on, it will be initialized. At this time, the STC89C52 microcontroller will detect the keys of the 3×3 control matrix connected to the periphery and obtain the corresponding binary value. According to the value, the microcontroller control program will automatically determine whether to use the recording or playback function and generate the corresponding voice start address. According to the judgment, the microcontroller writes the SPI keyword to the MOSI pin bit by bit, which completes the microcontroller's notification of the function and start address of ISD4004. After completing the recording work, ISD4004 generates an EOM interrupt. Once the playback encounters EOM in the future, ISD4004 will generate an interrupt and input it to the microcontroller external interrupt INT0, returning to the starting point. [page]
In order to ensure good readability and maintainability of the program, C language is used for programming. Several main subroutines are as follows:
ISD4004 SPI write subroutine
The hardware environment for debugging this system is a combination of a concealed communication module and a MOTOROLfA MTH850 handheld radio. The software environment uses the KEIL, C programming environment and the STC-ISP microcontroller burning program. The specific contents are as follows:
In the hardware debugging environment, in addition to the general settings, you also need to pay attention to the following points:
(1) Selection of the four wires for voice input, voice output, PPT and grounding in the cluster radio. Cluster radios are generally equipped with a dedicated data interface. The corresponding signal leads can be taken out according to the instructions. However, general cluster radios do not have obvious data input and output ports, and radios of different brands usually use different technical standards. However, whether it is an analog cluster radio or a digital cluster radio, it usually has a wired headphone microphone interface. By cutting off the wiring and studying it, we can know the definition of the four wires and then determine the specific locations of the four wires for voice input, voice output, PPT and grounding of the radio.
(2) The MIC receiving sensitivity of the clustered radio needs to be adjusted. The so-called MIC receiving sensitivity of the radio refers to the sensitivity at which the built-in/external microphone of the radio can be turned on. If the sensitivity is too low, the PPT function of the clustered radio cannot be effectively triggered. Experiments have shown that if the PPT function of the radio needs to be triggered through the headphone interface of the radio, two conditions must be met at the same time. First, the external PPT line needs to be set to 0 (this function is realized through the play() function in C language programming). Second, there must be sound input on the external MIC line, that is, ISD4004 has sound output. Both conditions must be met at the same time to effectively trigger the PPT function of the radio. Therefore, in the radio burning software, the MIC receiving sensitivity can be appropriately increased to avoid the situation where the PPT cannot be triggered due to insufficient sensitivity.
(3) Adjustment of output sound quality. In the voice output part, a single capacitor is usually used for noise filtering. After experiments, the noise filtering effect of a single small capacitor is average. Therefore, by connecting two capacitors, one large and one small, in parallel, the high-pitched noise and the low-pitched noise in the sound output process are filtered out respectively. In this project, the capacitors are selected as 2.2μf/50V and 22μf/35V respectively. Experiments have shown that after connecting two capacitors in parallel, the voice output quality of this product is effectively improved.
(4) Implementation of working power supply. The system mainly involves the working voltage of the microcontroller and the working voltage of the ISD4004 chip, which are 5V and 3.3V respectively. The 5V working voltage can be obtained by connecting 4 1.3V rechargeable nickel-hydrogen batteries in series. After testing, its working voltage and working time meet daily requirements. The 3.3V voltage is dedicated to the ISD4004 voice recording and playback chip. Since the chip includes the interchange process of analog and digital signals, it has higher requirements for power supply. This system uses the HT7133 voltage-stabilized power supply chip to provide a stable 3.3V DC output. Of course, if conditions permit, you can also choose a microcontroller with a 3V working voltage to simplify the circuit.
During software debugging, there are several key points:
(1) By calling the at89x52.h function library, the external interface of the microcontroller and the internal actual address are effectively mapped. This greatly reduces the programming complexity of the main function and functional function, and improves the readability and maintainability of the program.
(2) By effectively setting the microcontroller burning program, the software editing and burning work is completed. The software selected in this project is STC-ISP burning software, which is STC's microcontroller burning software. The interface is shown in Figure 6.
After completing C programming in KEIL C and generating a valid HEX hexadecimal file, just select MCU Type in sequence: select the corresponding CPU type, here select STC89C52RC;
COM port selection: Select the COM port corresponding to the computer;
Baud rate: maximum 115200, minimum 1200;
Double speed: Select 12T/single speed
Other options can be left as default. After completing the option settings, select "Open Program File" to download the corresponding source program, and then click "Download" to complete all the MCU code burning work.
5 Conclusion
This system makes full use of the headphone and microphone integrated jacks of various trunking radios, combining the high-definition voice recording and playback of ISD4004 with the single-chip control function. It has low cost and good compatibility. It is suitable for covert communication applications of various analog/digital trunking equipment and can play a special role in specific occasions.
Previous article:Multi-channel temperature automatic inspection system
Next article:How to achieve high-precision and high-stability DA output
- Popular Resources
- Popular amplifiers
- Principles and Applications of Single Chip Microcomputers (Second Edition) (Wanlong)
- Design of AC/DC voltmeter with voice reporting based on ISD4004
- Design of CAN bus driver based on μC/OS-II
- Introduces the CAN interrupt structure function of C167CR and the application of the standard CAN interrupt structure
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
- FP8102 1A single-cell lithium-ion linear charging IC
- Design of Passive Acoustic Target Detection Platform Based on Single Chip Microcomputer and DSP
- Design of low power portable electrocardiograph based on MSP430
- EEWORLD University Hall----Live Replay: Application of TI mmWave Radar Sensors in Smart Home and Smart Security
- I would like to ask the teachers: Class D amplifier problem
- India's richest man announced the successful development of domestic 5G, which may be deployed in 2021
- Smartphone module performance test
- Discussion on the Causes of Breakpoint Phenomenon of Shaded Pole Motor
- What is the difference between different chip suffixes?
- A survey on TikTok to see how much our engineering community plays it