设计说明书
总字数:17000+
随着生活节奏的加快,人们对药物的依赖程度不断增加,而药物管理的复杂性也日益凸显。为解决这一问题,设计了一款集成心率血氧检测与远程通信功能的便携式智能药盒系统。
本系统以STM32F103C8T6单片机为核心,具备多种功能。系统通过时钟模块获取时间,并进行按键修正;手机端可配置最多5组服药时间,当时间到达时,语音提醒吃药并控制舵机打开药箱。用户还可通过手机设置药品种类和数量,系统配备光敏电阻监测药箱光照,光照不足自动开补光灯;DHT11检测温湿度,湿度超标时启动除湿功能(风扇和加热片)。MAX30102检测心率血氧,异常时声光报警。OLED用于实时显示时间、温湿度、心率血氧等数据,服药时显示药品信息,关闭药箱后恢复显示。所有数据通过WiFi模块实时发送至手机端,用户可在手机端设置服药参数,实现远程监控和管理。
该系统通过软硬件结合的设计方式,实现了药品存储时间管理、吃药时间配置、存储环境监测以及心率血氧检测等功能,有效提升了药品管理和患者用药的便捷性与安全性,解决了用户药品乱放和忘记吃药的问题,为人们的健康生活提供了有力保障。
关键字:智能药盒;STM32;语音提醒;心率血氧;远程监控
With the acceleration of the pace of life, people’s dependence on drugs continues to increase, and the complexity of drug management is becoming increasingly prominent. To solve this problem, a portable intelligent medication box system integrating heart rate and blood oxygen detection with remote communication functions has been designed.
This system is based on the STM32F103C8T6 microcontroller and has multiple functions. The system obtains time through the clock module and performs key correction; The mobile phone can be configured with up to 5 sets of medication times. When the time is up, voice prompts will be given to take the medication and the servo will be controlled to open the medicine box. Users can also set the type and quantity of drugs through their mobile phones, and the system is equipped with a photoresistor to monitor the lighting of the medicine box. If the lighting is insufficient, the supplementary light will automatically turn on; DHT11 detects temperature and humidity, and activates dehumidification function (fan and heating element) when the humidity exceeds the standard. MAX30102 detects heart rate and blood oxygen levels, and provides audible and visual alarms in case of abnormalities. OLED is used for real-time display of time, temperature and humidity, heart rate, blood oxygen and other data. It displays medication information when taking medication and resumes display after closing the medicine box. All data is sent in real-time to the mobile phone through the WiFi module, and users can set medication parameters on the mobile phone to achieve remote monitoring and management.
The system achieves functions such as drug storage time management, medication time configuration, storage environment monitoring, and heart rate and blood oxygen detection through a combination of software and hardware design. It effectively improves the convenience and safety of drug management and patient medication, solves the problem of users misplacing and forgetting to take medication, and provides strong guarantees for people’s healthy lives.
Key Words:Intelligent medication box; STM32; Voice reminder; Heart rate and blood oxygen; Remote monitoring
目 录
摘 要
Abstract
1 绪论
1.1 研究背景
1.2 研究目的和意义
1.3 国内外发展历程
1.3.1 国内研究现状
1.3.1 国外研究现状
1.4 研究内容
2 总体方案设计
2.1 控制器的选择
2.2 主要元器件选择
2.2.1 主控芯片选择
2.2.2 温湿度传感器选择
2.2.3 心率血氧传感器选择
2.2.4 无线通信模块方案选择
3 系统硬件电路设计
3.1 主控模块电路设计
3.1.1 主控芯片简介
3.1.2 单片机最小系统
3.2 温湿度监测模块电路设计
3.3 光照采集模块电路设计
3.4 心率血氧采集模块电路设计
3.5 舵机模块电路设计
3.6 显示模块电路设计
3.7 语音输出模块电路设计
3.8 继电器模块电路设计
3.9 按键模块电路设计
3.10 时钟模块电路设计
3.11 声光报警模块电路设计
3.12 WiFi模块电路设计
4 系统程序设计
4.1 编程软件介绍
4.2 系统主流程设计
4.3 温湿度检测模块子流程设计
4.4 光照检测模块子流程设计
4.5 心率血氧检测模块子流程设计
4.6 舵机模块子流程设计
4.7 OLED显示子流程设计
4.8 语音播报模块子流程设计
5 系统测试和数据分析
5.1 系统测试
5.2 上电运行实物测试
5.3 定时检测实物测试
5.4 语音播报实物测试
5.5 药箱开关实物测试
5.6 补光实物测试
5.7 除湿实物测试
5.8 心率血氧实物测试
5.9 云平台部分测试
5.10 实物测试功能总结
结 论
参 考 文 献
附录
附录一:原理图
附录二:PCB
附录三:主程序
购买后可查看具体内容!