[Resource Download] The download address is as follows:
https://docs.qq.com/doc/DTlRSd01BZXNpRUxl
51 Heart Rate, Body Temperature and Weight Detection System Design-LCD1602-Heart Rate-DS18B20-HX711
This design is composed of STC89C52 single-chip circuit + LCD1602 liquid crystal display circuit + pulse/heart rate sensor circuit + LM393 comparator module circuit + DS18B20 temperature sensor circuit + HX711 weighing detection circuit + power supply circuit.
1. Detect pulse/heart rate through pulse/heart rate sensor.
2. Detect body temperature through temperature sensor DS18B20.
3. Detect body weight through load cell.
3. Real-time display of pulse/heart rate, body temperature and weight (0-100KG) on the LCD.
unsigned char i_i=0,timecount=0,displayOK=0,rate=0,aa=0;//定义变量
unsigned int time[6]={0};
unsigned long time_50ms=0; //定时器变量
unsigned char sys_times=0;
char dis0[16]; //打印数组初始化
char dis1[16]; //打印数组初始化
xdata long Weight_mp=0; //毛重
xdata long Weight_Shiwu=0; //实物重量
xdata unsigned long Weight_Maopi=0; //读取初始化值
void time_init(void); //函数声明
void init_int0(void);
void main()
{
int temp;
float temperature;
time_init(); //初始化定时器
init_int0(); //外部中断0初始化程序
LCD_Init(); //初始化液晶
DelayMs(20); //延时有助于稳