当前位置: 首页 > news >正文

【dz-1014】基于单片机的智能药箱

摘 要

日常生活中,按时服药对治疗和康复至关重要,特别是老年人或慢性病患者。但记忆力下降或生活忙碌常导致忘记服药或混淆药品。因此,设计一款智能多功能储药箱具有重要意义。

本设计以STM32F103C8T6单片机为控制合作,通过RTC获取实时时间;通过手机配置5组吃药时间、药品种类和数量;通过光敏电阻检测药箱内光照值,当光照低于设定最小值时自动开启补光灯;通过DHT11检测药箱内温湿度,当湿度高于设定最大值时进行除湿,温度高于设定最大值时自动控制制冷片打开;通过OLED显示测量数据,吃药时间到后显示吃药种类和数量,关闭药箱后恢复显示测量数据;通过WIFI模块将监测数据发送到手机端,并可在手机端设置吃药时间和种类。

测试结果表明,该系统运行稳定,能够准确提醒用户按时服药,有效避免了因忘记服药或混淆药品种类和剂量而导致的问题,为老年人或患有慢性疾病的人群提供了极大的便利。

关键词 储药箱;单片机;传感器;WiFi;远程控制

Abstract

In daily life, taking medication on time is crucial for treatment and rehabilitation, especially for elderly or chronic disease patients. But memory decline or busy life often leads to forgetting to take medication or confusing drugs. Therefore, designing an intelligent multifunctional medicine storage box is of great significance.

This design is controlled by the STM32F103C8T6 microcontroller and utilizes RTC to obtain real-time time; Configure 5 sets of medication times, types, and quantities through mobile phones; Detect the light level inside the medicine box through a photoresistor, and automatically turn on the supplementary light when the light level is below the set minimum value; By using DHT11 to detect the temperature and humidity inside the medicine box, dehumidification is carried out when the humidity is higher than the set maximum value. When the temperature is higher than the set maximum value, the refrigeration unit is automatically controlled to turn on; Display measurement data through OLED, display the type and quantity of medication after the medication time is up, and restore the display of measurement data after closing the medicine box; Send monitoring data to the mobile phone through the WIFI module, and set the medication time and type on the mobile phone.

The test results show that the system runs stably and can accurately remind users to take medication on time, effectively avoiding problems caused by forgetting to take medication or confusing the types and doses of drugs, providing great convenience for the elderly or people with chronic diseases.

Keywords:medicine storage box; singlechip; Sensors; WiFi; Remote control

目 录

摘 要

Abstract

1 绪论

1.1 研究背景及研究意义

1.2 国内外发展现状

1.3 本系统的主要功能

2 系统的整体结构设计

2.1 控制系统结构

2.2 硬件介绍

2.2.1 单片机

2.2.2 时钟模块-DS1302

2.2.3 光照监测5516

2.2.4 温湿度-DHT11

2.2.4 舵机-SG90

2.2.5 语音播报-TTS

2.2.6 按键-独立按键

2.2.7 显示-OLED

2.2.8 继电器模块

2.2.9 无线通信WiFi

2.3 本章小结

3 系统硬件设计

3.1 单片机最小系统设计

3.2 模块电路设计

3.2.1 时钟模块-DS1302

3.2.2 光照监测5516

3.2.3 温湿度-DHT11

3.2.4 舵机-SG90

3.2.5 语音播报-TTS

3.2.6 按键-独立按键

3.2.7 显示-OLED

3.2.8 继电器模块

3.2.9 无线通信WiFi

3.3 本章小结

4 系统软件设计

4.1 系统主流程设计

4.2 温湿度检测模块子流程

4.3 光照检测模块子流程

4.4 舵机模块子流程

4.5 OLED显示子流程设计

4.6语音播报模块子流程设计

4.7 本章小结

5 系统调试与测试

5.1 硬件调试

5.2 软件调试

5.3 实物功能测试

5.3.1 定时检测实物测试

5.3.2 语音播报实物测试

5.3.3 药箱开关实物测试

5.3.4 补光实物测试

5.3.5 加热除湿实物测试

5.3.6 云平台部分测试

结 论

参考文献

谢 辞

附 录A

附 录B

附 录C

http://www.jsqmd.com/news/268658/

相关文章:

  • 2025年度经济数据点评:稳中有进,向新向优收官“十四五”
  • 【dz-1010】基于单片机的药品生产车间环境监测
  • 更弱智的算法学习 day48
  • Flux.1-dev创意变现:非商用的合法途径
  • 【dz-1011】酒窖存储环境监测与控制系统设计
  • 学生党福利:NewBie-image-Exp0.1云端体验,比买显卡省90%
  • 数字员工提升AI销冠系统与AI提效软件系统的生产力和运营效益
  • ue5 默认相机设置
  • 为什么高并发普遍用Java不用C++,C#,Rust或go?
  • Qwen3-VL多模态开发:免GPU调试技巧
  • C++ 的核心究竟是什么?学到什么程度才算精通?
  • 没CUDA也能玩Live Avatar?云端方案解救配置恐惧症
  • springcloud技术体系里有gateway网关,那还需要nginx吗?
  • DeepSeek-R1-Distill-Qwen-1.5B企业内网方案:云端专属GPU集群
  • 数据库性能优化:SQL 语句的优化(原理+解析+面试)
  • C++ dll 设计接口时,能否用shared_ptr作为接口返回值?
  • gpt-oss-20b-WEBUI文本生成实战:云端3步快速体验
  • VibeThinker-1.5B降本秘诀:夜间3毛/小时,错峰实验省千元
  • Llama3-8B问答系统搭建:云端GPU3步搞定,1小时1块钱
  • Wan2.2开箱即用镜像:0配置部署,1块钱起体验最新模型
  • Qwen-Image-Edit-2511智能修图入门:5分钟云端体验,零技术门槛
  • 2026最新指南:作业帮下载安装全流程详解与实用技巧
  • BGE-Reranker-v2-m3快速原型开发:云端IDE+GPU,效率翻倍
  • 【2026 最新】飞火动态壁纸下载安装教程|从下载到配置的完整流程解析
  • DeepSeek-R1长期运行方案:云端GPU+自动启停,省心省钱
  • 当遇到MFCD42D.DLL文件丢失找不到问题 免费下载方法分享
  • AI视频医疗应用:快速搭建医学影像分析与教育视频平台
  • Supertonic商业应用评估:按需付费测试,省下80%成本
  • 《Advanced Optical Materials》最新研究:布洛赫点作为“光学拓扑处理器”的理论与仿真突破
  • 新手必看!Lora训练开箱即用方案,没显卡也能当炼丹师