CO Alarm Simulation Design with 51 Microcontroller (Proteus Simulation + Program + Design Report + Schematic + Explanation Video)
Simulation software: Proteus 7.8 and above
Compiler: Keil 4/Keil 5
Programming Language: C
Design Number: S0073
Main Functions:



CO Alarm Simulation Design based on 51 Microcontroller
1. LCD1602 displays the CO alarm value and the detected CO concentration;
2. The CO alarm value can be adjusted using buttons;
3. When the CO concentration is below the alarm value, the green indicator light is on.
When the CO concentration exceeds the threshold, the buzzer alarms, and the red indicator light is on;
4. The ADC0832 collects the voltage changes of the potentiometer simulating the MQ-7 CO sensor.
It should be noted that the 51 Microcontroller chip in the simulation is compatible; AT89C51 and AT89C52 are specific models of the 51 Microcontroller, and the cores are the same. In the same schematic, whether STC or AT, the pin functions are the same, the programs are compatible, and the chips can be replaced with STC89C52/STC89C51/AT89C52/AT89C51 and other 51 Microcontroller chips.

Download Links:



https://docs.qq.com/doc/DS1h1Q1BkWE9rcUV4
The following are the design documentation display images:
Explanation Video:



The explanation video includes simulation operation explanations and code explanations.
Simulation Design:



Open the simulation project, double-click the microcontroller in Proteus, select the hex file path, and then start the simulation. After starting the simulation, the LCD1602 displays the current smoke concentration, smoke concentration measurement value 280ppm, alarm value 600ppm, green indicator light is on.

By adjusting the resistance value of the potentiometer, when the resistance value exceeds the upper limit of 600ppm, the buzzer alarms, and the red indicator light is on.

Program Code



Use Keil 4 or Keil 5 to compile; the code is commented, and can be understood in conjunction with the video.

Design Report



7991-word design report, including hardware design, software design, soft and hardware block diagrams, debugging, conclusions, etc.

With the progress of society and the development of technology, people’s awareness of environmental safety and health protection has deepened, and the demand for preventing various environmental hazards has increased. Toxic and harmful gases, as one of the important factors affecting human living environment and life safety, have become increasingly prominent in their detection and protection. In industrial production fields such as chemical, metallurgy, mining, and many other industries, the leakage of toxic and harmful gases may lead to major safety accidents, severely threatening the life safety of workers and the normal operation of equipment and facilities; in household life scenarios, incomplete combustion of gas equipment or poor ventilation may lead to excessive CO concentration, posing potential life danger to residents; in public places such as shopping malls, schools, and hospitals, it is also necessary to closely monitor the toxic and harmful gases that may be produced to ensure the personal safety of the public.
Schematic:



The schematic is drawn using AD and can be used for physical reference. Simulation is different from physical devices; do not easily attempt physical devices if inexperienced.

Differences between Proteus simulation and physical projects:
1. Operating Environment: Proteus simulation runs on a computer, while physical devices run on hardware circuit boards.
2. Debugging Methods: In Proteus simulation, you can easily perform step-by-step debugging and observe variable value changes, while in physical devices, debugging requires debuggers or serial output methods.
3. Circuit Connection Methods: In Proteus simulation, circuit connections can be modified through software settings, while in physical devices, modifications require hardware circuit boards and connection wires.
4. Running Speed: Proteus simulation is usually faster than physical devices because simulation is based on computer operations, while physical devices must consider physical limitations and device response times.
5. Function Implementation: In Proteus simulation, different functions can be implemented through software settings, while in physical devices, functions must be implemented according to circuit designs and device performance.
Design Documentation Content List && Download Links



The design documentation includes simulation, program code, explanation video, functional requirements, design report, and soft and hardware design block diagrams.
0. Common usage issues and solutions – must read!
1. Program
2. Proteus simulation
3. Functional requirements
4. Soft and hardware flowchart
5. Proposal report
6. Design report
7. Schematic
8. Explanation video
Altium Designer installation crack
KEIL + Proteus microcontroller simulation design tutorial
KEIL installation crack
MQ-7.pdf
Finding components in Proteus
Proteus installation
Simple usage tutorial for Proteus
Microcontroller learning materials
Relevant data sheets
Defense skills
Common descriptions for design reports
Mouse double-click to open find Jiasheng microcontroller 51 STM32 microcontroller course graduation design.url

Method 1: Copy and open in browser
Download link (clickable):
https://docs.qq.com/doc/DS1h1Q1BkWE9rcUV4
More resources click the link below:
https://docs.qq.com/sheet/DS0xIa0llTmtNakRW
Method 2: Long press to scan the code



WeChat Official Account
Jiasheng Microcontroller
Website | www.eemcu.cn

