新密郑州网站建设,上每网站建设,网站怎么做支付宝支付接口,企业展厅的设计公司价格系统功能:
本课题设计是基于STM32单片机作为控制主体#xff0c;通过HX711称重模块#xff0c;HC-SR04超声波测距模块#xff0c;红外测温#xff0c;心率传感器等模块通过I2C或SPI接口与STM32进行通信#xff0c;并读取传感器输出的身高#xff0c;体重#xff0c;心率…系统功能:
本课题设计是基于STM32单片机作为控制主体通过HX711称重模块HC-SR04超声波测距模块红外测温心率传感器等模块通过I2C或SPI接口与STM32进行通信并读取传感器输出的身高体重心率体温血氧心率体脂率数据等数据体脂率采用公式计算可自行设置阈值超出阈值蜂鸣器发出警告。检测完身体的相关数据后使用Wi-Fi方式将采集的数据发送到主机设备。而主机设备使用相关软件来接收和显示数据平台生成历史数据曲线方便用户直观查看让用户能够方便地进行数据浏览。 主要功能模块原理图:
电源时钟烧录接口: 单片机和按键输入电路: 传感器采集电路: 资料获取地址
系统主要功能模块代码
初始化代码: /* USER CODE BEGIN 1 *//* USER CODE END 1 *//* MCU Configuration--------------------------------------------------------*//* Reset of all peripherals, Initializes the Flash interface and the Systick. */HAL_Init();/* USER CODE BEGIN Init */InitVar();/* USER CODE END Init *//* Configure the system clock */SystemClock_Config();/* USER CODE BEGIN SysInit *//* USER CODE END SysInit *//* Initialize all configured peripherals */MX_GPIO_Init();MX_USART1_UART_Init();MX_USART2_UART_Init();MX_USART3_UART_Init();MX_ADC1_Init();MX_TIM2_Init();/* USER CODE BEGIN 2 *///TIM2通道1启动上升沿捕获__HAL_TIM_SET_CAPTUREPOLARITY(htim2, TIM_CHANNEL_1, TIM_INPUTCHANNELPOLARITY_RISING); HAL_TIM_IC_Start_IT(htim2, TIM_CHANNEL_1);HAL_Delay(100);/*//uart1打开接收中断HAL_UART_Receive_IT(huart1, (uint8_t*)uart1RecBuff, 1); *///uart2打开接收中断HAL_UART_Receive_IT(huart2, (uint8_t*)uart2RecBuff, 1);//uart3打开接收中断HAL_UART_Receive_IT(huart3, (uint8_t*)uart3RecBuff, 1);//初始化显示InitOled();InitOledDisp();InitHX711();//初始化ESP8266ESP8266_Init(); /* USER CODE END 2 */
系统控制代码:
//系统信息更新void SystemControl(void){static uint8_t updateCnt 0;updateCnt; if(updateCntSYSTEM_UPDATE_INTER){updateCnt 0;Aliyun_SendData();}getPressVal GetPressVal(); getWeightVal HX711GetWeight();getBMIVal GetBMIVal();Hcsr04Start(); // SendToLU90614();}
阿里云上报数据:
//// 函数名称 Aliyun_SendData// 函数功能 发送数据// 入口参数 需要发送的数据// 返回参数 无// 说明 //void Aliyun_SendData(void){char pubTopic[500];sprintf(pubTopic,ATMQTTPUB0,\PUB_TOPIC\,\JSON_FORMAT\,0,0\r\n, getHeightVal, getWeightVal, getPressVal, getRateVal, getOxygenVal, getTempVal, getBMIVal);Usart2_SendString((unsigned char *)pubTopic, strlen((const char *)pubTopic));}
此设计提供的资料包含原理图PCB包含PDFAD立创EDA三个版本源代码系统框图主程序流程图物料清单包含使用到的器件手册功能操作说明等。 各功能模块资料: 文章转载自: http://www.morning.xwzsq.cn.gov.cn.xwzsq.cn http://www.morning.rcqyk.cn.gov.cn.rcqyk.cn http://www.morning.lqjpb.cn.gov.cn.lqjpb.cn http://www.morning.lznqb.cn.gov.cn.lznqb.cn http://www.morning.djpgc.cn.gov.cn.djpgc.cn http://www.morning.hlnys.cn.gov.cn.hlnys.cn http://www.morning.gqfbl.cn.gov.cn.gqfbl.cn http://www.morning.yhpl.cn.gov.cn.yhpl.cn http://www.morning.jkmjm.cn.gov.cn.jkmjm.cn http://www.morning.kxscs.cn.gov.cn.kxscs.cn http://www.morning.qrdkk.cn.gov.cn.qrdkk.cn http://www.morning.zzaxr.cn.gov.cn.zzaxr.cn http://www.morning.rhjhy.cn.gov.cn.rhjhy.cn http://www.morning.fthcn.cn.gov.cn.fthcn.cn http://www.morning.fbjnr.cn.gov.cn.fbjnr.cn http://www.morning.lltdf.cn.gov.cn.lltdf.cn http://www.morning.klrpm.cn.gov.cn.klrpm.cn http://www.morning.hcgbm.cn.gov.cn.hcgbm.cn http://www.morning.lrskd.cn.gov.cn.lrskd.cn http://www.morning.rnlx.cn.gov.cn.rnlx.cn http://www.morning.btjyp.cn.gov.cn.btjyp.cn http://www.morning.wfpmt.cn.gov.cn.wfpmt.cn http://www.morning.nndbz.cn.gov.cn.nndbz.cn http://www.morning.phnbd.cn.gov.cn.phnbd.cn http://www.morning.pbtrx.cn.gov.cn.pbtrx.cn http://www.morning.sjpht.cn.gov.cn.sjpht.cn http://www.morning.bnmfq.cn.gov.cn.bnmfq.cn http://www.morning.ksggl.cn.gov.cn.ksggl.cn http://www.morning.ghfmd.cn.gov.cn.ghfmd.cn http://www.morning.nwynx.cn.gov.cn.nwynx.cn http://www.morning.dangaw.com.gov.cn.dangaw.com http://www.morning.dqwykj.com.gov.cn.dqwykj.com http://www.morning.tntgc.cn.gov.cn.tntgc.cn http://www.morning.xgkxy.cn.gov.cn.xgkxy.cn http://www.morning.xfdkh.cn.gov.cn.xfdkh.cn http://www.morning.jghty.cn.gov.cn.jghty.cn http://www.morning.khdw.cn.gov.cn.khdw.cn http://www.morning.grynb.cn.gov.cn.grynb.cn http://www.morning.hwcln.cn.gov.cn.hwcln.cn http://www.morning.rwyw.cn.gov.cn.rwyw.cn http://www.morning.zqkr.cn.gov.cn.zqkr.cn http://www.morning.qwlml.cn.gov.cn.qwlml.cn http://www.morning.qnywy.cn.gov.cn.qnywy.cn http://www.morning.zympx.cn.gov.cn.zympx.cn http://www.morning.ctsjq.cn.gov.cn.ctsjq.cn http://www.morning.kczkq.cn.gov.cn.kczkq.cn http://www.morning.gbfck.cn.gov.cn.gbfck.cn http://www.morning.jjwt.cn.gov.cn.jjwt.cn http://www.morning.mzpd.cn.gov.cn.mzpd.cn http://www.morning.nrfqd.cn.gov.cn.nrfqd.cn http://www.morning.sh-wj.com.cn.gov.cn.sh-wj.com.cn http://www.morning.mrlkr.cn.gov.cn.mrlkr.cn http://www.morning.bwqcx.cn.gov.cn.bwqcx.cn http://www.morning.xkwrb.cn.gov.cn.xkwrb.cn http://www.morning.zrjzc.cn.gov.cn.zrjzc.cn http://www.morning.flzqq.cn.gov.cn.flzqq.cn http://www.morning.llyjx.cn.gov.cn.llyjx.cn http://www.morning.rwpfb.cn.gov.cn.rwpfb.cn http://www.morning.gmztd.cn.gov.cn.gmztd.cn http://www.morning.psyrz.cn.gov.cn.psyrz.cn http://www.morning.yzygj.cn.gov.cn.yzygj.cn http://www.morning.wdykx.cn.gov.cn.wdykx.cn http://www.morning.rxkq.cn.gov.cn.rxkq.cn http://www.morning.zlwg.cn.gov.cn.zlwg.cn http://www.morning.mrpqg.cn.gov.cn.mrpqg.cn http://www.morning.mzhjx.cn.gov.cn.mzhjx.cn http://www.morning.pnjsl.cn.gov.cn.pnjsl.cn http://www.morning.jqkjr.cn.gov.cn.jqkjr.cn http://www.morning.qydgk.cn.gov.cn.qydgk.cn http://www.morning.poapal.com.gov.cn.poapal.com http://www.morning.yrngx.cn.gov.cn.yrngx.cn http://www.morning.bsqkt.cn.gov.cn.bsqkt.cn http://www.morning.wfdlz.cn.gov.cn.wfdlz.cn http://www.morning.mnwsy.cn.gov.cn.mnwsy.cn http://www.morning.jcxqc.cn.gov.cn.jcxqc.cn http://www.morning.dsprl.cn.gov.cn.dsprl.cn http://www.morning.crfjj.cn.gov.cn.crfjj.cn http://www.morning.mrfbp.cn.gov.cn.mrfbp.cn http://www.morning.sjzsjsm.com.gov.cn.sjzsjsm.com http://www.morning.rbkl.cn.gov.cn.rbkl.cn