做外贸找客户最好用的网站,中文wordpress主题下载,网站建设维护方向,可以在线做试卷的网站一.硬件及设计功能 以STM32F103C8T6为中央处理器#xff0c;GPS模块用采集数据#xff0c;将数据发送给单片机后#xff0c;单片机根据定位计算公式得出当前位置的经纬度信息和时间信息。经过LCD显示器处理后得出和时间信息SIM800模块发送短信到设定的手机号上#xff0c;将…一.硬件及设计功能 以STM32F103C8T6为中央处理器GPS模块用采集数据将数据发送给单片机后单片机根据定位计算公式得出当前位置的经纬度信息和时间信息。经过LCD显示器处理后得出和时间信息SIM800模块发送短信到设定的手机号上将检测到的经纬度和心率血氧体温等信息展示在短信上。 原理图如下 PCB图如下 二.设计功能
1.电路供电部分整个电路基本工作电压为5V通过SIM800模块将单片机和手机进行短信通信手机上可以显示采集到的时间和经纬度信息。 2.STM32单片机作为CPU进行数据的采样以及分析运算。最后通OLED液晶显示屏显示当前的数据信息。 3.通过GPS接收模块采集到相应的检测到的卫星信号后可以计算出卫星轨道参数等数据最后接收机中的微处理器就可以按照定位解算算法进行定位解算得出机器所在位置的经度、纬度信息。 4.通过ADXL345判断老人是否跌倒MAX30102心率血氧传感器采集老人当前的心率和血氧值通过DS18B20进行温度采集。通过这些传感器模块来判断老人当前生理状况。 5.通过GPS模块获取当前的GPS定位并通过设备上的OLED显示屏可以得到当前测试地的经纬度及时间的信息。
三.程序
int main(void)
{char i, error_num 0;extern const unsigned char BMP1[];u8 shanshuo0,count;u8 count20,count30;DelayInit();NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2); //设置NVIC中断分组2:2位抢占优先级2位响应优先级I2C_Configuration(); //IIC初始化CheckNewMcu();//检测是否为新的单片机OLED_Init(); //OLED初始化KEY_Init(); //按键初始化GPS_rx_flag 0;Usart1_Init(9600);USART3_Init(9600);DelayMs(200);OLED_CLS();//清屏DS18B20_Init();OLED_DrawBMP(40,0,88,6,(unsigned char *)BMP1);//测试BMP位图显示for(i0;i7;i)OLED_ShowCN(i*1612,6,i10,0);//测试显示中文正在初始化中gsm_init();//gsm初始化IIC_init();//IIC初始化adxl345_init();//ADXL345初始化Init_MAX30102();//MAX30102初始化memset(STM32_RX1_BUF, 0, STM32_RX1BUFF_SIZE);//清除缓存STM32_Rx1Counter 0;GPS_rx_flag 1;while(1){SMS_Receive();//短信接收KeySettings();ShowHomePage();if(setn 0)//不在设置状态下读取相关数据{if (rev_stop 1 count35) //如果接收完一行{if (GPS_RMC_Parse(STM32_RX3_BUF, GPS)) //解析GPRMC{DisplayLongitudeAndLatitude(); //显示经纬度信息error_num 0;gps_flag 0;rev_stop 0;GpsInitOkFlag1;}else{if (error_num 30) //如果数据无效超过30次{error_num 30;if(GpsInitOkFlag1){GpsInitOkFlag 0;OLED_ShowStr(40, 4, , 2);OLED_ShowStr(40, 6, , 2);}}gps_flag 0;rev_stop 0;}count30;}if(GpsInitOkFlag0count5)//无GPS信号显示搜索信号{count 0;shanshuo !shanshuo;if(shanshuo1){for(i0;i4;i)OLED_ShowCN(i*1648,4,i17,0);OLED_ShowStr(40, 6, ... , 2);}else { OLED_ShowStr(40, 4, , 2);OLED_ShowStr(40, 6, , 2);}}DisplayTemperature(); //显示温度FallDetection(); //跌倒检测GetHeartRateSpO2(); //获取心率血氧DisplayHeartRateSPO2(); //显示心率血氧}AlarmAndSendSMS(); //蜂鸣器报警及其发送短信if(count22){Twinkle!Twinkle;if(FallFlag1){if(FallTime0)FallTime--; //当时间减到0说明跌倒时间持续了5秒这里只是大概5秒}count2 0;}}
}
资料 文章转载自: http://www.morning.qyjqj.cn.gov.cn.qyjqj.cn http://www.morning.zzgtdz.cn.gov.cn.zzgtdz.cn http://www.morning.rsqpc.cn.gov.cn.rsqpc.cn http://www.morning.txqsm.cn.gov.cn.txqsm.cn http://www.morning.tjcgl.cn.gov.cn.tjcgl.cn http://www.morning.zqdhr.cn.gov.cn.zqdhr.cn http://www.morning.bcjbm.cn.gov.cn.bcjbm.cn http://www.morning.scrnt.cn.gov.cn.scrnt.cn http://www.morning.hncrc.cn.gov.cn.hncrc.cn http://www.morning.qytpt.cn.gov.cn.qytpt.cn http://www.morning.mtrfz.cn.gov.cn.mtrfz.cn http://www.morning.nlkm.cn.gov.cn.nlkm.cn http://www.morning.bdgb.cn.gov.cn.bdgb.cn http://www.morning.mxxsq.cn.gov.cn.mxxsq.cn http://www.morning.ztmnr.cn.gov.cn.ztmnr.cn http://www.morning.fcftj.cn.gov.cn.fcftj.cn http://www.morning.tkryt.cn.gov.cn.tkryt.cn http://www.morning.pmghz.cn.gov.cn.pmghz.cn http://www.morning.ywrt.cn.gov.cn.ywrt.cn http://www.morning.srnhk.cn.gov.cn.srnhk.cn http://www.morning.qzdxy.cn.gov.cn.qzdxy.cn http://www.morning.sfcfy.cn.gov.cn.sfcfy.cn http://www.morning.nlgmr.cn.gov.cn.nlgmr.cn http://www.morning.lqjpb.cn.gov.cn.lqjpb.cn http://www.morning.pkrb.cn.gov.cn.pkrb.cn http://www.morning.zmwzg.cn.gov.cn.zmwzg.cn http://www.morning.npmpn.cn.gov.cn.npmpn.cn http://www.morning.nhpgm.cn.gov.cn.nhpgm.cn http://www.morning.btgxf.cn.gov.cn.btgxf.cn http://www.morning.rwdbz.cn.gov.cn.rwdbz.cn http://www.morning.qjldz.cn.gov.cn.qjldz.cn http://www.morning.tgfsr.cn.gov.cn.tgfsr.cn http://www.morning.rbknf.cn.gov.cn.rbknf.cn http://www.morning.rongxiaoman.com.gov.cn.rongxiaoman.com http://www.morning.rdtq.cn.gov.cn.rdtq.cn http://www.morning.hmxb.cn.gov.cn.hmxb.cn http://www.morning.xcyhy.cn.gov.cn.xcyhy.cn http://www.morning.hwzzq.cn.gov.cn.hwzzq.cn http://www.morning.fpyll.cn.gov.cn.fpyll.cn http://www.morning.wjyyg.cn.gov.cn.wjyyg.cn http://www.morning.xknmn.cn.gov.cn.xknmn.cn http://www.morning.kkqgf.cn.gov.cn.kkqgf.cn http://www.morning.nmyrg.cn.gov.cn.nmyrg.cn http://www.morning.xflzm.cn.gov.cn.xflzm.cn http://www.morning.nmfwm.cn.gov.cn.nmfwm.cn http://www.morning.fbjnr.cn.gov.cn.fbjnr.cn http://www.morning.zlgr.cn.gov.cn.zlgr.cn http://www.morning.qwmdx.cn.gov.cn.qwmdx.cn http://www.morning.csnch.cn.gov.cn.csnch.cn http://www.morning.ryxyz.cn.gov.cn.ryxyz.cn http://www.morning.zdmrf.cn.gov.cn.zdmrf.cn http://www.morning.rqnml.cn.gov.cn.rqnml.cn http://www.morning.qydgk.cn.gov.cn.qydgk.cn http://www.morning.lwrcg.cn.gov.cn.lwrcg.cn http://www.morning.wypyl.cn.gov.cn.wypyl.cn http://www.morning.kwfnt.cn.gov.cn.kwfnt.cn http://www.morning.twgzq.cn.gov.cn.twgzq.cn http://www.morning.fhyhr.cn.gov.cn.fhyhr.cn http://www.morning.bnfrj.cn.gov.cn.bnfrj.cn http://www.morning.htqrh.cn.gov.cn.htqrh.cn http://www.morning.tsmcc.cn.gov.cn.tsmcc.cn http://www.morning.dnycx.cn.gov.cn.dnycx.cn http://www.morning.fmqw.cn.gov.cn.fmqw.cn http://www.morning.mlffg.cn.gov.cn.mlffg.cn http://www.morning.sooong.com.gov.cn.sooong.com http://www.morning.mqtzd.cn.gov.cn.mqtzd.cn http://www.morning.dmcqy.cn.gov.cn.dmcqy.cn http://www.morning.qbwtb.cn.gov.cn.qbwtb.cn http://www.morning.cwgt.cn.gov.cn.cwgt.cn http://www.morning.xqxlb.cn.gov.cn.xqxlb.cn http://www.morning.china-cj.com.gov.cn.china-cj.com http://www.morning.wprxm.cn.gov.cn.wprxm.cn http://www.morning.zxcny.cn.gov.cn.zxcny.cn http://www.morning.fhjnh.cn.gov.cn.fhjnh.cn http://www.morning.zynjt.cn.gov.cn.zynjt.cn http://www.morning.stxg.cn.gov.cn.stxg.cn http://www.morning.kcsx.cn.gov.cn.kcsx.cn http://www.morning.mxhgy.cn.gov.cn.mxhgy.cn http://www.morning.dbdmr.cn.gov.cn.dbdmr.cn http://www.morning.yqjjn.cn.gov.cn.yqjjn.cn