253【Complete Courses】Design of Timing Ignition Based on 51 Single Chip Computer-Boost

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

51 Timing Ignition Design-Boost-Digital Tube-RELAY-TP4056-KEY

This design is composed of STC89C52 single-chip circuit + kilovolt boost module circuit + digital tube display module circuit + relay module circuit + lithium battery power supply circuit.

1. The countdown time of the relay can be set by pressing the button, and the countdown time can be set: 1 to 99 minutes. When the time is up, the relay is closed, and the boost module discharges.

2. The relay can be disconnected unless the reset button is pressed again or the power is turned off.


//数码管位选定义
sbit smg_we1 = P3^4;	    //数码管位选定义
sbit smg_we2 = P3^5;
sbit smg_we3 = P3^6;
sbit smg_we4 = P3^7;

uchar dis_smg[8] =  {0x90,0xf5,0x1c,0x34,0x71,0x32,0x12,0xf4};	
bit flag_500ms;
sbit relay = P2^3;
uchar a_a;
uchar menu_1;	   	//设置参数用

uchar fen,miao,weimiao;     		// 倒计时数
uchar num_value;    // 用做中间的变量
bit flag_num_en ;   // 倒计时器开始计时使能标志位
uchar set_fen = 30; // 设置倒计时数的启始值 
uchar set_miao = 0; // 设置倒计时数的启始值 

 

Guess you like

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