Care Mate Logo
University of Bahrain College of Information Technology Department of Computer Engineering
Smart Medication Tracker and Automated Dispenser for Eldercare Their Health Is Always Our Priority
Abstract The Smart Medication Tracker and Automated Dispenser for Eldercare is designed to support elderly individuals by ensuring timely, accurate, and safe medication intake. Medication non-adherence is a common challenge among older adults, often leading to health complications and increased reliance on caregivers. This project addresses these challenges by combining automated medication dispensing with real-time tracking and user-friendly feedback. The system is built around an ESP32-C3 microcontroller and features seven automatic dispensing compartments for daily medications and one manual compartment for emergency use. Object-detection sensors verify medication dispensing, while a buzzer, NeoPixel LED strip, and LCD display provide clear visual, audio, and textual feedback to guide users. Manual dispensing can be activated through physical buttons when immediate access to medication is required. By integrating automation, IoT connectivity, and remote monitoring through a mobile application, the system helps caregivers and healthcare providers track and manage medication schedules efficiently. Overall, the solution improves medication adherence, enhances safety, reduces caregiver burden, and promotes independent living for elderly individuals through reliable and intelligent technology.
Objectives
  • Ensure timely and accurate medication intake through automated and manual dispensing.
  • Provide a dual-compartment system with automatic daily slots and a manual emergency slot.
  • Improve safety and user awareness using visual, audio, and on-screen feedback.
  • Enable remote monitoring and schedule management through a mobile application.
  • Reduce medication errors and caregiver effort while supporting independent living through smart automation.
Objectives SVG
Methodology Simple system architecture diagram
Methodology Step 1
System Architecture Design
Methodology Step 2
Device Operation Flowchart
Methodology Step 3
Mobile Application Flowchart
Methodology Step 4
Refilling Flowchart
Tools and Frameworks used
The mobile application was developed using the .NET framework due to its cross-platform capabilities, high performance, and secure communication support. The application is deployed on Android devices to provide caregivers with reliable and immediate access to the medication dispenser. To ensure scalability and maintainability, the application follows a three-layer architecture, consisting of a User Interface (UI) layer for user interaction, an Application Programming Interface (API) layer for data exchange, and a Background Service layer responsible for device communication and synchronization. Development Approach
The mobile application was developed using the .NET framework due to its cross-platform capabilities, high performance, and secure communication support. The application is deployed on Android devices to provide caregivers with reliable and immediate access to the medication dispenser.To ensure scalability and maintainability, the application follows a three-layer architecture, consisting of a User Interface (UI) layer for user interaction, an Application Programming Interface (API) layer for data exchange, and a Background Service layer responsible for device communication and synchronization.
Datasets and Hardware
Methodology Step 1
Database Set
Methodology Step 2
Hardware Parts
Technologies
Methodology Step 3
C Language
Methodology Step 3
Arduino IDE
Methodology Step 3
.NET Maui Blazor
Methodology Step 3
PostgreSQL
Methodology Step 3
ESP32
Methodology Step 3
LCD
Methodology Step 3
Buzzer
Methodology Step 3
Servo motor 360 continuous rotation
Methodology Step 3
Push Button
Results
Methodology Step 3
App UI
Methodology Step 3
Searching for a reliable Wi-Fi Connection
Methodology Step 3
Connected to the Wi-Fi
Methodology Step 3
System Idle
Methodology Step 3
Choosing the right container to refill
Methodology Step 3
Dumping all pills function
Methodology Step 3
Refilling the Chosen Container
Methodology Step 3
Configuring the Application with the Device
Methodology Step 3
Medication Dispensing
Methodology Step 3
Medication Dispensed
Methodology Step 3
Pills Dispensed
Demo
English Elevator Pitch
Arabic Elevator Pitch
Live Demo
Conclusion & Future Work The project successfully created and tested an automated, IoT-enabled medication dispenser that improves accuracy, safety, and remote caregiver management for elderly users. The ESP32-C3, servo motors, and visual interface operated reliably and helped reduce errors and caregiver workload. Future work includes upgrading the hole mechanism, exploring the use of a smart servo motor, and adding Bluetooth communication for direct connectivity. Additional enhancements may allow the dispenser to automatically source pills from pharmacies and notify suppliers when refills are needed. To prevent an excess of untaken pills remaining in the tray, there will be an additional piece to push out the untaken pills after a while, and a reminder will also be added when it’s time to take the medication to further improve adherence and safety.