[Resource Download] The download address is as follows:
https://docs.qq.com/doc/DTlRSd01BZXNpRUxl
51 heart rate detection Bluetooth upload design-heart rate-Bluetooth-LCD1602
This design consists of STC89C52 single-chip circuit + LCD1602 liquid crystal display circuit + pulse/heart rate sensor circuit + LM393 comparator module circuit + Bluetooth module circuit + power supply circuit.
1. Detect pulse/heart rate through pulse/heart rate sensor.
2. Real-time display of pulse/heart rate on the LCD.
3. Upload the pulse/heart rate to the mobile APP through the Bluetooth module.
4. If the heart rate exceeds 150, the device sends an alarm message to the APP.
unsigned char i_i=0,timecount=0,displayOK=0,rate=0,aa=0;//定义变量
unsigned int time[6]={0};
unsigned char tab_sk[16]="WO DE BI SHE "; //第一行显示
unsigned char tab_ht[16]="XL:000/min "; //第二行显示心率和温度
unsigned long time_50ms=0; //定时器变量
unsigned char sys_times=0;
void time_init(void); //函数定义
void init_int0(void);
void SendStr(unsigned char *s,unsigned char length);
void SendByte(unsigned char dat);
void UART_Init(void);
void main()
{
UART_Init();
time_init(); //初始化定时器
init_int0(); //外部中断0初始化程序