262 [Complete course design] Design of the elderly physiological monitoring system based on 51 single-chip microcomputer. Heart rate ds18b20-GSM

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

51 elderly physiological monitoring system design-mq135-heart rate-ds18b20-adxl345-sim800a

This design consists of STC89C52 single-chip circuit + smoke sensor circuit + temperature sensor circuit + acceleration sensor + heart rate sensor circuit + SIM800A_GSM module circuit + power supply circuit.

The system monitors whether the elderly falls in real time, whether there is fire around, and the heart rate.

1. If the smoke sensor detects that the smoke exceeds the standard, GSM will send to the specific mobile phone: Smoke!

2. If ADXL345 detects that the old man has fallen, GSM sends to the specific mobile phone: Fall! At the same time, the buzzer will alarm. If the elderly does not fall, the buzzer will not alarm. If the old man does not fall, but bends over, etc., which is a false alarm, the old man can cancel the alarm by pressing the cancel button.

3. If the heart rate sensor detects that the heart rate of the elderly is higher than 120, GSM will send to the specific mobile phone: High Heart!

4. If the temperature exceeds 38 degrees, GSM sends to the specific mobile phone: has a cold!

4. Note that this design can only trigger one report message for each of the above situations when it is powered on once, and it will not be sent continuously.

5. GSM signal lights indicate the process of SMS processing.

unsigned char i; 
unsigned char i_i=0,timecount=0,displayOK=0,rate=0,aa=0; //定义变量
unsigned int time[6]={0};
unsigned char ReadAdxl345;	   //定时读取adxl345数据
unsigned long time_20ms=0; 	//	系统定时计数
unsigned long ReportLater=10; //上报延时
char Crtl_Z[1]={0x1a};	   //发送短信最后字节
unsigned char reportFlag =0;   //上报标识
unsigned char first1; 		//保证一次上电上报一次
unsigned char first2;
unsigned char first3;
unsigned char first4;

xdata int temp1;		//温度读取值
xdata float temperature; //实际温度
unsigned char checkT = 0;
bit ReadTempFlag=0;//定义读时间标志

unsigned char sdLater = 0;
void Init_Timer0(void);				//函数声明
void TIM2Inital(void);
void SendStr(unsigned char *s,unsigned char length);
void UART_Init(void);
void SendByte(unsigned char dat);

 

Guess you like

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