设计说明书
总字数:17000+
摘要
随着人口老龄化加剧及慢性病患者数量增多,规律服药成为保障健康的关键环节。然而,老年人记忆力衰退、年轻人生活节奏快等因素,常导致漏服、错服药物,影响治疗效果;传统药箱仅具备存储功能,缺乏主动提醒与智能交互能力,难以满足精准用药需求。因此,研发一种能实现定时提醒、自动开关、远程反馈的智能提醒药箱,具有重要的实用价值。
本设计提出了一种基于 STM32F103C8T6 单片机的智能提醒药箱。系统主要功能包括:通过单片机内部时钟模块获取实时时间,为用药提醒提供时间基准;借助按键模块实现时间修改,支持添加 / 删除用药提醒时间,同时可手动控制药箱开关;当到达预设提醒时间时,TTS 语音模块自动播放 “请吃药” 提醒,SG90 舵机驱动药箱自动打开,红外避障管检测药品取用与放回状态,放回后 5 秒内舵机驱动药箱自动关闭;通过 OLED 显示屏实时展示当前时间、用药提醒时间及药箱状态;依托 ECBO2 蓝牙模块与手机端连接,提醒时间到时同步发送 “吃药时间到,请吃药” 短信,确保用户及时接收提醒。
该智能提醒药箱的作用在于,构建了 “定时提醒 – 自动开关 – 状态检测 – 远程反馈” 的一体化用药管理方案。通过多维度提醒与智能控制,有效避免漏服药物问题,简化用药操作流程,同时为家人远程关注用药情况提供支持,助力用户养成规律用药习惯,保障用药安全与治疗效果。
关键词:单片机;智能药箱;用药提醒;自动开关;远程交互
Intelligent reminder medicine box
Abstract
With the worsening of population aging and the increasing number of chronic disease patients, regular medication has become a key link in ensuring health. However, factors such as memory decline in the elderly and fast pace of life in young people often lead to missed or incorrect medication, which affects the effectiveness of treatment; Traditional medicine boxes only have storage functions and lack active reminders and intelligent interaction capabilities, making it difficult to meet the needs of precise medication. Therefore, developing an intelligent reminder medicine box that can achieve timed reminders, automatic switching, and remote feedback has important practical value.
This design proposes an intelligent reminder medicine box based on STM32F103C8T6 microcontroller. The main functions of the system include: obtaining real-time time through the internal clock module of the microcontroller, providing a time reference for medication reminders; By using the button module to modify the time, it supports adding/deleting medication reminder times, and can also manually control the medicine box switch; When the preset reminder time is reached, the TTS voice module automatically plays the “please take medicine” reminder, the SG90 servo motor drives the medicine box to automatically open, the infrared obstacle avoidance tube detects the medication retrieval and retrieval status, and within 5 seconds after retrieval, the servo motor drives the medicine box to automatically close; Real time display of current time, medication reminder time, and medication box status through OLED display screen; By relying on the ECBO2 Bluetooth module and connecting to the mobile phone, the reminder time will be synchronized to send a “medication time is up, please take medication” SMS to ensure that users receive the reminder in a timely manner.
The function of this intelligent reminder medicine box is to build an integrated medication management solution of “timed reminder automatic switch status detection remote feedback”. Through multi-dimensional reminders and intelligent control, the problem of missed medication is effectively avoided, the medication operation process is simplified, and support is provided for family members to remotely monitor medication situations, helping users develop regular medication habits and ensuring medication safety and treatment effectiveness.
Keywords:microcontroller; Intelligent medicine box; Medication reminder; Automatic switch; remote interaction
目 录
1 绪论
1.1 研究背景及意义
1.2 国内外研究现状
1.3 主要内容
2 系统总体方案设计
2.1系统总体设计
2.2 主要模块方案选择
3 系统硬件设计
3.1 总体硬件框架
3.2 主控模块电路设计
3.3 时钟模块电路设计
3.4 按键模块电路设计
3.5 红外避障模块电路设计
3.6 显示模块电路设计
3.7 TTS 语音模块电路设计
3.8 舵机驱动模块电路设计
3.9 蓝牙通信模块电路设计
4 系统程序设计
4.1 编程软件介绍
4.2 系统主流程设计
4.3 独立按键
4.4 时钟模块子流程
4.5蓝牙模块子流程
4.6 OLED显示流程设计
4.7 舵机模块子流通
5 实物制作与功能测试
5.1 实物制作
5.2 时钟与时间设置功能测试
5.3 按键与提醒管理功能测试
5.4 红外避障与舵机联动功能测试
5.5 TTS 语音提醒功能测试
5.6 蓝牙通信与手机提醒功能测试
6 总结
参考文献
致谢
附录A 原理图
附录B PCB
附录C 主程序
购买后可查看具体内容!