Embedded Systems / Arduino / Hardware

MedBot | Smart Medication Companion

MedBot is an embedded smart medication assistance system designed to help users take their pills on time, reduce missed doses, and simplify daily medication management through reminders, alerts, and automatic dispensing.

Offline-firstEmbedded intelligenceArduino prototype

Overview

Medication adherence can be difficult for many people, especially elderly users, busy individuals, or anyone managing multiple prescriptions. MedBot was developed as a compact embedded solution that reminds, guides, and assists the user during the medication process.

The system combines real-time scheduling, progressive alerts, user confirmation, and automatic pill dispensing in a single Arduino-based prototype.

Problem Statement

Many users face challenges such as:

  • forgetting to take medication
  • taking it at the wrong time
  • missing proper follow-up
  • struggling with daily routine management

These issues can reduce treatment effectiveness and increase health risks.

Proposed Solution

MedBot addresses this problem by providing:

  • scheduled medication reminders using a real-time clock
  • progressive alerts that become more noticeable over time
  • automatic pill dispensing
  • on-screen guidance through an LCD display
  • user confirmation through a keypad
  • a simple embedded system that works offline

Prototype

Click the image to open, zoom in/out, and inspect details.

MedBot physical prototype

Circuit Design

Click the image to open, zoom in/out, and inspect wiring like a document viewer.

Hardware circuit design used in MedBot

Key Features

  • multiple reminders per day
  • progressive alert escalation
  • automatic pill release mechanism
  • user confirmation through keypad input
  • LCD feedback and status display
  • full hardware and software integration
  • standalone embedded operation without internet connection

Technologies Used

Hardware

  • Arduino Uno R3
  • RTC DS1307
  • LCD 1602
  • Servo motor
  • 28BYJ-48 stepper motor
  • ULN2003 driver
  • Keypad
  • Buzzer
  • LED

Software

  • Arduino IDE
  • Embedded C++ with Arduino

Hardware Architecture

ComponentFunction
Arduino Uno R3Main controller
RTC DS1307Keeps track of real time
LCD 1602Displays time and system messages
Servo MotorControls the trap door
Stepper Motor + ULN2003Rotates the dispensing mechanism
KeypadUser input and confirmation
BuzzerAudio alert
LEDVisual alert

Pin Configuration

ComponentPins
LCD 16022, 12, 13, A0, A1, A2
RTC DS1307A4 (SDA), A5 (SCL)
Servo Motor7
Stepper Motor + ULN20038, 9, 10, 11
Buzzer3
LEDA3
Keypad4, 5, 6

System Workflow

  1. 1. The RTC module continuously tracks the current time.
  2. 2. When a scheduled medication time is reached, MedBot triggers an alert.
  3. 3. The buzzer and LED notify the user.
  4. 4. The LCD displays a message indicating that it is time to take the medication.
  5. 5. The servo opens the trap door.
  6. 6. Pills are dispensed into the container.
  7. 7. The user confirms the intake using the keypad.
  8. 8. The stepper motor prepares the next dose cycle.
  9. 9. The system resets and waits for the next programmed reminder.

Why This Project Matters

MedBot is not just a dispensing mechanism. It is a user-centered embedded system designed to improve autonomy, safety, and medication adherence in a simple and accessible way.

  • practical real-world use case
  • complete integration of electronics, programming, and mechanical design
  • offline operation
  • strong potential for future healthcare applications

Innovation

MedBot simulates intelligent assistance using embedded logic only. It does not rely on cloud services or internet connectivity. Instead, it uses local scheduling, hardware control, and contextual feedback to create a reliable and self-contained user experience.

Future Improvements

  • voice interaction
  • mobile application integration
  • IoT connectivity
  • health monitoring and usage analytics
  • improved pill detection
  • more secure dose verification
  • multi-user support
  • compact enclosure redesign

Project Status

This project is currently a functional prototype developed for academic and demonstration purposes.

Disclaimer

MedBot is a prototype and is not a certified medical device. It should not be used as a replacement for professional medical equipment or medical supervision.

Repository Structure

Starhack-2026/
├── medbot-prototype.png
├── medbot-circuit.png
├── README.md
└── Code_Starhack_2026_equipe2.ino