KAPSÜL | Smart Medication Management
GE401 · Bilkent University Senior Design

KAPSÜL

Smart Medication Management System

An IoT-enabled smart pill dispenser that automates medication scheduling, ensures accurate dispensing, and keeps caregivers informed — in real time.

24
Dose Capacity
24h
Battery Backup
75dB
Alarm Volume
Real
-Time Sync
Scroll
50%

of patients with chronic conditions do not take their medications as prescribed — with elderly patients being the most affected group.

125,000+annual deaths linked to non-adherence (US alone)
$300Bin preventable healthcare costs each year

Medication adherence is a critical, unsolved problem.

Complex dosage schedules, cognitive decline, and lack of real-time oversight leave millions of elderly patients vulnerable to missed or incorrect doses.

“Non-adherence is the world’s most prescribed, but least taken medicine.”

— WHO, Adherence to Long-Term Therapies Report

KAPSÜL addresses this directly: an automated dispenser that removes the guesswork, connects patients to caregivers, and creates a safety net that works even during power outages.

Everything a smart dispenser should be.

Designed from the ground up for reliability, accessibility, and peace of mind.

14-Dose Carousel

The rotating disc with 14 slots provides up to 1 week of coverage with twice-daily use.

Power Failure Redundancy

A load-sharing topology seamlessly switches to a 4000 mAh Li-Ion battery during outages, ensuring zero downtime and 24+ hours of backup operation.

75 dB Audible Alarm

A PWM-driven speaker generates high-volume alerts when doses are due, with distinct tone patterns for medication reminders vs. critical system errors.

Wi-Fi IoT Connectivity

The ESP32-WROOM-32 connects via IEEE 802.11 b/g/n for real-time data sync with Firebase Cloud, keeping schedules and logs always up to date.

Secure Authentication

Each physical device is paired to the app via a unique registration key. Encrypted session tokens protect patient data end-to-end.

Elderly-First Interface

A 2.4″ TFT LCD shows time, next dose, and battery status at a glance. Three large tactile buttons eliminate complexity for non-tech-savvy users.

Caregiver Mobile App

A cross-platform Flutter application gives caregivers complete remote visibility. View adherence history, receive missed-dose alerts, and manage schedules — from anywhere in the world.

FCMInstant push notifications
FirebaseReal-time cloud sync
iOS & AndroidFlutter cross-platform
Live GraphsDaily / weekly / monthly

Simple for users. Sophisticated inside.

From initial setup to a missed-dose alert reaching the caregiver — here’s the full flow.

01

Pair & Authenticate

The caregiver registers the device using a unique key via the mobile app. Firebase validates the key and links the device to the account.

02

Schedule Doses

Up to 14 dose times are configured through the Dosage Scheduler. Schedules sync to Firebase and download to the ESP32 via Wi-Fi.

03

Alarm & Dispense

At scheduled time, the stepper motor aligns the correct compartment and a 75 dB alarm sounds. The patient presses Dispense to release the pill.

04

Log & Alert

Status is written to Firebase as “TAKEN” or “MISSED”. Missed doses trigger an instant FCM push notification to the caregiver’s phone.

Your medication hub, in your pocket.

The companion app keeps both patients and caregivers in the loop — with real-time sync, rich adherence analytics, and smart notifications.

Patient's medication add page
Medication Add
Patient's main dashboard
Patient Dashboard
Caregiver's main page
Caregiver View

Built on a solid engineering foundation.

Every component chosen for precision, reliability, and cost-effectiveness.

Hardware Core

Control & Processing
ESP32-WROOM-32 MCU240 MHz dual-core, 4 MB flash, 520 KB SRAM, integrated Wi-Fi & BT
28BYJ-48 Stepper MotorHigh-precision carousel rotation via ULN2003A driver array
SG90 Servo MotorPWM-controlled dispensing lid (trapdoor) mechanism
2.4″ TFT LCD (240×320)SPI bus interface; displays time, battery, next-dose info

Software Stack

App & Cloud
Flutter FrameworkSingle codebase for iOS (14.0+) and Android (10.0+) deployment
Firebase FirestoreReal-time NoSQL cloud database for dosage plans and adherence logs
Firebase AuthenticationEncrypted session tokens + unique device registration key system
HTTPS REST API (JSON)Bidirectional device-cloud sync; offline-resilient with local caching

Power Budget Analysis

Worst-case scenario · Battery operation · Full dispense mode
2.60 A
Peak Draw (with 30% margin)
vs. 4.0 A rated capacity
4000 mAh
Li-Ion Battery
3.7V nominal · 3200 mAh usable
~24 h
Battery Runtime
Typical usage scenario
85%
Boost Converter Efficiency
MT3608 / XL6009 target
Design Verdict: PASS — Safe for all operational modes

Team 12

Bilkent University · GE 401-402 · Innovative Design and Entrepreneurship · 2026