260【Complete Course Design】Design of automatic control device for household soybean milk machine based on 51 single chip microcomputer

[Resource Download] The download address is as follows:
https://docs.qq.com/doc/DTlRSd01BZXNpRUxl

Design of automatic control device for household soymilk machine-RELAY-BELL-DS18B20-KEY-liquid level

The design is composed of STC89C52 single-chip circuit + heating relay module circuit + motor relay module circuit + sound and light alarm circuit + DS18B20 temperature detection circuit (waterproof) + button circuit + 2 liquid level sensor circuits + total power supply relay circuit + power supply circuit.

1. The working process of the system is as follows: heating --- crushing 1- - heating --- crushing 2- - heating --- complete alarm

2. The heating time, crushing 1 time, and crushing 2 time can be set by pressing the button. The time setting range is: 0-10 seconds

3. When the liquid level is higher than the upper limit or lower than the lower limit, the relay is disconnected and the buzzer alarms.

4. Liquid crystal display processing status and time.

5. When each action is completed, a sound and light alarm will be displayed.

6. The LCD displays the current temperature value in real time.

unsigned int setR = 5;   // 设置 温度
unsigned int setF1 = 5;   //设置 湿度
unsigned int setF2 = 5;

bit startFlag = 0;//开始运行
unsigned int timeLater =0 ; //初始化时间
unsigned char step = 0 ;//运行步骤

bit disFlag = 0;//显示标志
unsigned char SetFlag =0 ;//设置标志

void Init_Timer0(void);//函数命令
void CheckKey(void);
void dealYunXing(void);

void main (void)
{
	Init_Timer0();        //定时器0初始化

	LCD_Init();           //初始化液晶
	DelayMs(20);          //延时有助于稳定
	LCD_Clear();          //清屏
	buzzer = 1;		 //关闭蜂鸣器

	while(1)         //主循环
	{	

 

Guess you like

Origin blog.csdn.net/theroadon/article/details/109261259