The Smart Medicine Scheduling and Healthcare Assistant System is designed to improve patient medication ad- herence while providing timely assistance in case of emergencies. The system consists of a master-slave communication setup, whereaWiFi-enabledmasterunitmanagesandsyncsmedication schedules across multiple slave devices, ensuring that patientsare reminded to take their medicine at the right time. Themaster module communicates with the slave units via RS-485 connectivity, providing reliable and long-distance communication, ideal for healthcare facilities or homes with multiple patients.
Inthisupdatedversion,thesystemutilizesamobilenotification system to alert patients and caregivers. When the reminder for medication is triggered, notifications are sent to the patient’s mobile phone, ensuring timely intake. If a patient fails to acknowledge the reminder within a set time frame, a misseddose alert is generated and sent to the caregiver or doctor. The system also features an emergency button that, when pressed, triggers an alert to the healthcare provider, notifying them ofthe patient’s urgent needs.
Additionally,thesystemincludesaguidancefeature,providing patients with detailed information on how to take their medicine, including dosage, timing, and any special instructions. This helps to ensure proper medication management and reduces the riskof errors in drug administration. The ultimate goal of the system is to enhance medication compliance, reduce human error, and provide immediate support during emergencies.
Introduction
Summary:
The Smart Medicine Scheduling and Healthcare Assistant System is an IoT-enabled, microcontroller-based solution designed to improve medication adherence, especially for elderly and chronically ill patients. Using a master-slave architecture with ESP32 microcontrollers communicating via RS485 protocol, the system automates medication reminders, tracks dose adherence, and supports user interaction through visual (LCD/OLED) and auditory alerts.
Key Features:
Central master controller distributes patient-specific medication schedules to multiple slave units.
Slave units include real-time clocks, buzzers, displays, and buttons for “Medicine Taken,” “Help Request,” and “Dosage Information.”
The system maintains local schedule storage and generates alerts on time, reducing missed or incorrect doses.
Caregiver notifications and assistance requests enhance patient safety.
Custom PCBs and battery backup improve portability and reliability.
A web-based interface allows healthcare providers to enter and manage patient data.
Advantages over prior systems:
Offline, reliable operation without cloud dependency via RS485 communication.
Modular, scalable design suitable for hospitals and elder care facilities.
Dual-mode interaction for both patients (via device) and remote caregivers.
Technical Highlights:
Uses ESP32 microcontrollers with MAX485 transceivers for half-duplex serial communication.
RTC modules ensure accurate timing for medication schedules.
Buttons enable direct user input to confirm doses or request help.
The system implements debounce delays and efficient memory use for stable operation.
Motivation:
To address challenges in medication non-adherence caused by forgetfulness, complex regimens, or lack of supervision, especially in low-connectivity or resource-limited settings.
Conclusion
The Smart Medicine Scheduling and Healthcare Assistant System provides a reliable and user-friendly solution to sup- porttimelymedicationintakeforpatients.Byintegrating Wi-Fi-enabled master-slave communication via RS-485 and featureslikeemergencyalertsandmedicationreminders, the system ensures enhanced patient care and scheduling accuracy. The inclusion of custom PCBs, modular ESP32 boards,andadedicatedpowersupplydesignmakesthesystem scalable, compact, and technically robust. This project notonly addresses the problem of missed or incorrect medication intakebutalsooffersapracticalhealthcareassistanceplatform suitable for clinics, hospitals, and home care environments.
References
[1] J. A. Doe and E. R. Smith, “A smart medicine dispenser with medicineidentification and notification system,” J. Med. Inform. Healthc., vol. 6,no. 3, pp. 45–50, 2019. ISSN: 2319-7849.
[2] A. Kumar, N. Saini, and R. Kumar, “IoT-based smart healthcare system with emergency alert feature,” Int. J. Eng. Technol., vol. 10, no. 5, pp. 220–225, 2022. ISSN: 2348-2984.
[3] A. Lee, K. Chen, and S. Lewis, “Automated medication reminder and dispenser system for the elderly,” J. Robot. Autom. Healthc., vol. 12, no. 3, pp. 120–125, 2021. ISSN: 2349-5003.
[4] D. Sharma, R. Verma, and S. Kumar, “Medicine reminder and healthcare monitoring system using IoT,” Int. J. Healthc. Technol., vol. 14, no. 8,
[5] pp. 200–205, 2021. ISSN: 2345-8890.
[6] R. Gupta, M. Sharma, and A. Desai, “Smart pill box with automatic medicine dispensing and reminder system,” Int. J. Embedded Syst. Healthc., vol. 9, no. 4, pp. 90–95, 2018. ISSN: 2349-7890.
[7] IEEE Xplore, “An IoT-Based Smart Healthcare Monitoring System with Medication Alerting and Emergency Detection,” IEEE Access, vol. 8, pp. 202567–202579, 2020.
[8] Adafruit, “Designing power supplies for ESP32 systems.” [Online].
[9] Available: https://learn.adafruit.com/esp32-power-design
[10] Microchip Technology Inc., “ATmega48A/88A/168A/328P Datasheet,” 2019. [Online]. Available:
https://ww1.microchip.com/downloads/aemDocuments/documents/MCU08/ProductDocuments/DataSheets/ATmega48A-PA-88A-PA-168A-PA-328-P-DSDS40002061B.pdf
[11] ResearchGate, “PatientMedicationReminderCircuitUsing ATMEGA328PMicrocontroller:DesignandImplementation,” 2018. [Online]. Available:
https://www.researchgate.net/publication/ 323935861 Patient Medication Reminder Circuit Using ATMEGA328P Microcontroller Design and Implementation
[12] Espressif Systems, “ESP32-WROOM-32 Datasheet,” 2021. [Online]. Available: https://www.espressif.com/sites/default/files/documentation/ esp32-wroom-32 datasheet en.pdf
[13] Texas Instruments, “MAX485 Low-Power RS-485 Transceiver Datasheet,” 2016. [Online]. Available:
https://datasheets. maximintegrated.com/en/ds/MAX1487-MAX491.pdf
[14] Texas Instruments, “7805 Voltage Regulator – LM78XX Series Datasheet,” 2017. [Online]. Available: https://www.ti.com/lit/ds/symlink/ lm7805.pdf
[15] Arduino, “Programming ESP32 with Arduino IDE.” [Online]. Available: https://docs.arduino.cc/learn/microcontrollers/esp32
[16] SparkFun Electronics, “I2C LCD Interface Tutorial.” [Online]. Available: https://learn.sparkfun.com/tutorials/ serial-enabled-lcds-hookup-guide
[17] STMicroelectronics, “DS1307 Real-Time Clock (RTC) Datasheet,” 2017. [Online]. Available: https://www.st.com/resource/en/datasheet/ m41t00.pdf