The power supply of this system consists of two parts: mains power and backup battery. Under normal circumstances, the mains power supplies DC power to the alarm system through rectification, filtering, and voltage stabilization, and automatically stabilizes the charging of the battery. When the mains power fails, the battery is automatically put into use to ensure that the alarm system can work normally and at the same time, power failure warning information is sent to the outside world.
System software design
The basic task of software design is to realize the programmability of user security functions and real-time monitoring and alarming of warning zones. This software design adopts structured programming method. The main work in the software design is to complete the processing of the digital signal VO2 output by the infrared sensing signal processor BISS0001 by the microcontroller, the software implementation of the voice service and the timely voice recording and playback. The software design flow chart is shown in Figure 7.
The BISS0001 chip has performed anti-interference processing on the signal from the sensor and obtained the signal VO2. In order to improve the reliability of system detection, VO2 is further processed with a microcontroller. When programming the voice chip 1420, write it according to its working process. When recording, press and hold the "REC" button until the indicator light turns on, and you can speak to the microphone on the board to record. When you release the button, the recording stops and forms a segment. During playback, press the "PE" button to play the entire recording, and the playback will automatically stop after the end of the recording. Press and hold the "PL" key to play, release the key to stop. The address line of ISD1420 has 8 bits, and 6 bits are connected to the I/O port of AT89S51. The minimum length of each voice segment is 125ms. Each voice segment can be output controlled by an address line. Every 125ms is an address and is controlled by six address lines A2~A7. After each segment of the voice recorded by the user ends, the chip automatically sets an end-of-segment flag (EOM). When the chip is full, it sets an overflow flag (OVF). The microcontroller control circuit performs the playback operation according to the starting address of a certain segment. When the segment ends Mark (EOM) will automatically stop playing, and the microcontroller will start to trigger the starting address of the next segment of voice after receiving the end-of-segment mark (EOM). Such control can combine many different segments of speech into one sentence and play it out, realizing automatic combination of speech.
Conclusion
This system realizes the home voice alarm function. After many tests, the system works stably. Users can individually set different modes such as outgoing and do not disturb through the keyboard to realize voice service functions. The alarm system has the advantages of simple structure, low cost, novelty, etc., and is suitable for home use.
Previous article:stc52 microcontroller keyboard schematic diagram and program introduction
Next article:Detailed description of the usage skills of AT89S51 microcontroller timing counter
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Sn-doped CuO nanostructure-based ethanol gas sensor for real-time drunk driving detection in vehicles
- Design considerations for automotive battery wiring harness
- Do you know all the various motors commonly used in automotive electronics?
- What are the functions of the Internet of Vehicles? What are the uses and benefits of the Internet of Vehicles?
- Power Inverter - A critical safety system for electric vehicles
- Analysis of the information security mechanism of AUTOSAR, the automotive embedded software framework
- Brief Analysis of Automotive Ethernet Test Content and Test Methods
- How haptic technology can enhance driving safety
- Let’s talk about the “Three Musketeers” of radar in autonomous driving
- Why software-defined vehicles transform cars from tools into living spaces
- Lingdongwei MM32 download program error description solution
- Double 12 limited time offer | Tektronix year-end rewards, oscilloscope third-order upgrade!
- Driver chip in Type-c OTG mode - LDR6028S
- The pressure sensor outputs the pressure value in a table
- Application of power amplifier in R&D and testing of high voltage side power supply of current transformer
- C/C++ Memoirs
- 5G RF Front-end Solutions
- Teach you how to simply judge whether the transformer is good or bad
- STM32 development board study notes——by chenbingjy
- BlueNRG-1 pairing issue