[Graduation project] 21-MCU-based intelligent incubator_temperature alarm device design (schematic + simulation + source code + answer essay + answer PPT)

[Graduation project] 21-Single-chip microcomputer-based intelligent thermostat/temperature alarm device design (schematic + simulation + source code + answer essay + answer PPT)

mission statement

Constant temperature control plays an important role in the industrial production process, and the temperature control directly affects the quality of industrial production. This paper designs an intelligent incubator based on a single-chip microcomputer, which requires the selection of a suitable main control chip, temperature detector, display and alarm. The hardware design mainly includes temperature acquisition circuit, keyboard circuit, alarm circuit, display circuit and power supply circuit.
Main content: This article uses a single-chip microcomputer as the main controller, measures the temperature in the box through the temperature sensor, and transmits the temperature signal to the main controller. The main controller controls the temperature of the incubator through the corresponding program design, and sends an alarm signal if the temperature is unqualified .
Data link
Schematic engineering files
Schematic screenshots
Simulation model engineering files
Simulation screenshots
Low repetition rate document for thesis, 20962 words
English literature and translation
PPT for the defense

design manual

Summary

With the advancement of science and the continuous development of society, intelligent control systems have become a commonly used technology and are used in all walks of life. Due to the high requirements for temperature control, traditional thermostats cannot achieve high-precision temperatures. control, this paper designs an intelligent thermostat to meet the current system design requirements, and can realize the function of temperature control and alarm
. The research and development direction of this article. Determine the functions that the system needs to realize; analyze the functions of the system; determine the overall system plan for the selection of system components; design the software part of the system. First write the general flow of the program, then write the program for the system's report word module, and finally call the program in the main function to complete the program design, and finally simulate the system through the simulation software to test the system function. The intelligent incubator based on single-chip microcomputer designed in this paper uses STC89C52 single-chip microcomputer as the main control chip; DS18B20 temperature monitoring enables LCD1602 liquid to display system information; the human-computer interaction function is realized through buttons to control the system; the buzzer is used as an acoustic alarm ; LED as optical alarm. The text focuses on the circuits of each part of the software and hardware system, and introduces the principle of the integrated temperature sensor DS18B20 and LCD1602 liquid crystal display.
This design is completed by designing the hardware circuit of the system, writing the program, and finally using the simulation software Proteus to test the system function. This system realizes the control design of the intelligent temperature box, which can be promoted, and the functions are iterated to realize the vigorous application and promotion of intelligence.

Design framework

Foreword... 1

Chapter 1 Introduction... 2

Section 1 Research Background... 2

Section 2 Research Significance... 2

The main research content of the third section... 3

Section 4 Summary of this chapter... 3

The second chapter determines the scheme of the intelligent thermostat system based on the single chip microcomputer... 5

Section 1 System Function Analysis... 5

Section 2 System Design Scheme Selection... 5

1. Plan 1... 5

2. Scheme 2... 6

The third section introduces the main components of the system... 6

1. Introduction to SCM... 6

2. Introduction of LCD display... 6

3. Introduction of temperature sensor... 7

Section 3 General Block Diagram of System Structure... 7

Section 4 Summary of this chapter... 8

Chapter 3 Hardware circuit design of intelligent thermostat system based on MCU... 9

The first section MCU minimum system circuit design... 9

Section 2 Power Circuit Design... 10

Section 3 Button circuit design... 10

Section 4 LED circuit design... 11

Section 5 LCD liquid crystal display circuit design... 11

Section 6 Temperature sensor circuit design... 13

Section 7 Buzzer Alarm Circuit Design... 13

Section 8 System General Circuit Diagram Design... 14

Section 9 Summary of this chapter... 15

The fourth chapter is the software design of the intelligent incubator system based on the single chip microcomputer... 16

The first section Keil software introduction... 16

Section 2 Software Overall Design Process... 17

Section 3 Program Design of Button Module... 18

Section 4 LED module program design... 19

Section 5 Program Design of LCD Liquid Crystal Display Module... 20

Section 6 Temperature Sensor Program Design... 23

Section 7 Program Design of Buzzer Alarm Module... 25

Section 8 Summary of this chapter... 26

Chapter 5 Simulation of Intelligent Thermostat System Based on Single Chip Microcomputer... 27

Section 1 Introduction to Simulation Software... 27

Section 2 System Debugging... 28

Section 3 System Test... 29

Section 4 Summary of this chapter... 33

Summary... 34

Thanks… 35

References... 36

Appendix... 38

1. Original English text... 38

2. English translation... 41

3. Engineering drawings... 43

4. Source code... 44

Design instructions and design documents

insert image description here

insert image description here

insert image description here

Response paper with low repetition rate document, 20962 words

insert image description here

Source code display

void main (void)
{
	u8 key;
	wendu=check_wendu();		  //初始化时调用温度读取函数 防止开机85°C
	Init1602();			  //调用初始化显
  LCD_Write_String(0,0," Intellect Temp");  //开机界面
	LCD_Write_String(1,0,"SET:00  NOW:00.0"); 
	delay_ms(1000);
	wendu=check_wendu();		  //初始化时调用温度读取函数 防止开机85°C
	while (1)        					//主循环
	{
		key=Key_Scan();					//按键扫描
		wendu=check_wendu();	  //读取温度值
		
		if(key==KEY_SET)
		{
			Mode++;
		}		
		switch(Mode)						//判断模式的值
		{
			case 0:								//监控模式
			{
				Display_1602(yushe_wendu,wendu);  //显示预设温度,预设烟雾,温度值,烟雾值
				
				if(wendu>=(yushe_wendu*10))	  //温度大于等于预设温度值时(为什么是大于预设值*10:因为我们要显示的温度是有小数点后一位,是一个3位数,25.9°C时实际读的数是259,所以判断预设值时将预设值*10)
				{
					Buzzer=0;			  			//打开蜂鸣器报警
					Led_Yellow=0;		  			//打开温度报警灯
					Led_Gre   =1;           //关闭未报警指示灯
				}
				else					  					//温度值小于预设值时
				{
					Led_Yellow=1;		  			//关闭报警灯
					Led_Gre   =0;           //打开未报警指示灯
				}
				if((wendu<(yushe_wendu*10)))	  //当烟雾小于预设值并且温度也小于预设值时 (&&:逻辑与,左右两边的表达式都成立(都为真,也就是1)时,该if语句才成立)
				{
					Buzzer=1;			  			//停止报警
				}
				break;
			}
			case 1://预设温度模式
			{
				SelectPosition(1,3) ;					//指定位置
	   		write_com(0x0d);							//阴影闪烁
				if(key==KEY_ADD)							//加键按下
				{
					yushe_wendu++;					    //预设温度值(阀值)加1
					if(yushe_wendu>=99)			 	//当阀值加到大于等于99时
					yushe_wendu=99;					 		//阀值固定为99
					LCD_Write_Char(1,4,yushe_wendu,2) ;//显示预设温度
				}
				if(key==KEY_MINUS)				 		//减键按下
				{
					if(yushe_wendu<=1)					//当温度上限值减小到1时
					yushe_wendu=1;          		//固定为1
					yushe_wendu--;						//预设温度值减一,最小为0
					LCD_Write_Char(1,4,yushe_wendu,2) ;//显示预设温度
				}
				break;			  								//执行后跳出switch
			}			
			default	:	
			{
				write_com(0x38);//屏幕初始化
				write_com(0x0c);//打开显示 无光标 无光标闪烁
				Mode=0;			//恢复正常模式
				break;
			}
		}		
	}
}

Guess you like

Origin blog.csdn.net/qq_22592979/article/details/128108627