Specific implementation functions:
(1) The STC89c51 microcontroller is used as the control center, and the LCD1602 liquid crystal display screen displays the temperature and smoke values in real time;
(2) Using the mainstream DS18B20 temperature sensor in single-chip microcomputer design to monitor the temperature of fire-prone areas in real time, the MQ-2 smoke sensor can detect abnormal smoke concentration in the air and use ADC0832 to achieve analog-to-digital conversion;
(3) The system is specially designed with buttons for setting temperature thresholds and smoke concentration thresholds. In the event of a fire, as long as the measured value exceeds the set alarm threshold, a fire alarm (sound and light alarm) can be activated. In addition, manual alarm and manual cancellation can be achieved through buttons.
(4) When the infrared detection module starts working, if someone enters, an intrusion alarm will be issued;
(5) Use the GSM module to send the measured temperature value and smoke concentration to the user's mobile phone in real time to achieve remote monitoring.
Introduction to MCU
The 51 single chip is a low-power, high-performance CMOS 8-bit microcontroller with 8K in-system programmable Flash memory. With a smart 8-bit CPU and in-system programmable Flash on a single chip, the STC89C51 provides a highly flexible and ultra-effective solution for many embedded control application systems. It has the following standard functions: 8k bytes of Flash, 512 bytes of RAM, 32-bit I/O port lines, watchdog timer, built-in 4KB EEPROM, MAX810 reset circuit, three 16-bit timers/counters, a 6-vector 2-level interrupt structure, and a full-duplex serial port. In addition, the STC89X51 can be reduced to 0Hz static logic operation and supports 2 software-selectable power saving modes. In idle mode, the CPU stops working, allowing RAM, timer/counter, serial port, and interrupt to continue working. In power-off protection mode, the RAM content is saved, the oscillator is frozen, and all microcontroller operations stop until the next interrupt or hardware reset. The maximum operating frequency is 35Mhz, and 6T/12T is optional.
Design ideas
Literature research method: collect and organize relevant research materials on the single-chip microcomputer smart bracelet system, read the literature carefully, and prepare for the research;
Investigation and research method: Through investigation, analysis, specific trials and other methods, the current situation, existing problems and solutions of the single-chip smart bracelet system are discovered;
Comparative analysis method: compare the specific principles of different single-chip smart bracelet systems, as well as the differences in the performance of the same type of sensors, and analyze the research status and development prospects of single-chip smart bracelet systems;
Software and hardware design method: Implement specific hardware through software and hardware design, and finally test whether each function meets the requirements.
Schematic
The schematic design of this system uses Altium Designer19, as shown in the figure. In the undergraduate single-chip microcomputer design, the software used to design the circuit is generally Altium Designer or proteus. Because Altium Designer is powerful, it can design the schematic diagram and PCB diagram of the hardware circuit, and the interface is simple, easy to operate, and easy to use. Altium Designer19 is a professional end-to-end electronic printed circuit board design environment for electronic printed circuit board design. It combines schematic design, PCB design, and multiple management and simulation technologies to meet the design needs of this time.
program
This design uses KEIL5 software to implement program design, as shown in the figure. As the first programming language learned during undergraduate studies, C language is one of the most familiar programming languages. Of course, due to its powerful functions, C language is currently the most widely used and popular programming language in the world. In the design of single-chip microcomputers, C language has gradually completely replaced assembly language, because compared with assembly language, C language compilation, running, debugging is very convenient, and it has high portability, good readability, and is easy to burn and write hardware systems. Therefore, C language is widely used in single-chip microcomputer design. Keil software is compatible with single-chip microcomputer design, can achieve fast debugging, and generate burning files, and is widely used in C language writing and single-chip microcomputer design.
Simulation Implementation
This design uses protues8.7 software to implement simulation design, as shown in the figure.
Protues is also one of the commonly used design software in MCU simulation design. By designing the hardware circuit diagram and writing the driver, the circuit can be debugged without implementing the hardware. In addition, Protues can also realize PCB design, and can also be combined with KEIL in simulation to facilitate program debugging. It supports multiple platforms and is simple and convenient to use.
Previous article:Manual digital clock based on 51 single chip microcomputer
Next article:11-Light and temperature and humidity detection alarm based on 51 single chip microcomputer
Recommended posts
- AD's PCB PCB Tabbed Routing zigzag routing method
- IsawarelativelynewPCBroutingmethodontheInternet.Theroutingadoptsa"sawtooth"shape.Atfirstglance,itseemsinexplicable,butinfact,itistocompensatefortheimpactofimpedancechanges.Figure1istheeffectdrawnbyCadenc
- Nubility Integrated technical exchanges
- EEWORLD University Hall----ADI vibration signal precision acquisition signal chain design considerations
- ADIvibrationsignalprecisionacquisitionsignalchaindesignconsiderations:https://training.eeworld.com.cn/course/5715
- hi5 Analog electronics
- FPGA Design of High-Speed Data Acquisition System
- ThisisabitfarawayStudyhard,justwhatyouneed
- 至芯科技FPGA大牛 FPGA/CPLD
- Surface Roughness Compensation, Gradient, and Other Methods Application Note AP8206
- ChoosingtheRightSurfaceRoughnessMeasurement Therearemanysurfaceroughnesscompensationmodelsthatcanhelpdesignersandmanufacturerssimulatetheeffectsofcopperroughnessoninsertionloss.ThePolarSi9000eoffersseveralmethods,de
- btty038 RF/Wirelessly
- What capacitor is on this circuit board?
- Theyellowoneonthecircuitboardisacapacitor,right?Whatisit? ThecrossovertweeterMKPnon-polarcapacitorisametallizedpolypropylenefilmcapacitorTaobaohasallkindsofthem.Ihavecutthemintorolls,andthereissomefoam.
- kal9623287 Power technology
- Why when I search for the definition of the flash_open() function, I find #define flash_open()
- Thereisafunctionflash_open()inafunction.Whenlookingforthedefinitionofthisfunction,itisfoundthat#defineflash_open().Ifthisflash_open()functionisasystemnativefunction,thenwhyis#defineflash_open()stillneeded?
- 一沙一世 MCU
- Popular Resources
- Popular amplifiers
- Naxin Micro and Xinxian jointly launched the NS800RT series of real-time control MCUs
- How to learn embedded systems based on ARM platform
- Summary of jffs2_scan_eraseblock issues
- Application of SPCOMM Control in Serial Communication of Delphi7.0
- Using TComm component to realize serial communication in Delphi environment
- Bar chart code for embedded development practices
- Embedded Development Learning (10)
- Embedded Development Learning (8)
- Embedded Development Learning (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Intel promotes AI with multi-dimensional efforts in technology, application, and ecology
- ChinaJoy Qualcomm Snapdragon Theme Pavilion takes you to experience the new changes in digital entertainment in the 5G era
- Infineon's latest generation IGBT technology platform enables precise control of speed and position
- Two test methods for LED lighting life
- Don't Let Lightning Induced Surges Scare You
- Application of brushless motor controller ML4425/4426
- Easy identification of LED power supply quality
- World's first integrated photovoltaic solar system completed in Israel
- Sliding window mean filter for avr microcontroller AD conversion
- What does call mean in the detailed explanation of ABB robot programming instructions?
- Europe's three largest chip giants re-examine their supply chains
- Breaking through the intelligent competition, Changan Automobile opens the "God's perspective"
- The world's first fully digital chassis, looking forward to the debut of the U7 PHEV and EV versions
- Design of automotive LIN communication simulator based on Renesas MCU
- When will solid-state batteries become popular?
- Adding solid-state batteries, CATL wants to continue to be the "King of Ning"
- The agency predicts that my country's public electric vehicle charging piles will reach 3.6 million this year, accounting for nearly 70% of the world
- U.S. senators urge NHTSA to issue new vehicle safety rules
- Giants step up investment, accelerating the application of solid-state batteries
- Guangzhou Auto Show: End-to-end competition accelerates, autonomous driving fully impacts luxury...
- Introduction to Linux Device Drivers
- Import OrCAD schematic and PCB files into AD14.3
- The Nichicon Technology Subsite is waiting for you!
- How to convert 5V peripherals to 3.3V microcontroller interfaces?
- XL6019 output is not normal, please have a look
- Embedded test solutions and high-speed test technology
- Baidu really only cares about money but not shame
- 51 series connected to sht 30, can't read data just after power on
- x-nucleo-iks01a3 related information
- 【Home Electronic Guard】Work Submission