Three pill boxes that beep and open on schedule, so no dose is missed.
Built and tested by Aboobacker sidheeq K P · Industrial Robotics Institute

A medicine reminder that helps people take their medicines on time. Three compartments each hold a different medicine and are opened by their own servo motor. At each scheduled time the buzzer sounds for 2 seconds, then the right compartment opens to release the dose and closes again.
| Component | Qty |
|---|---|
| Arduino Uno | 1 |
| Servo Motors (SG90) | 3 |
| Buzzer | 1 |
| Medicine Boxes (compartments) | 3 |
| Lithium-ion Batteries | 2 |
| Battery Case with Switch | 1 |
| Jumper Wires | As needed |
| From | Connect to |
|---|---|
| Servo 1 signal | Pin 3 |
| Servo 2 signal | Pin 5 |
| Servo 3 signal | Pin 6 |
| All servo VCC | 5V |
| All servo GND | GND |
| Buzzer + | Pin 8 |
| Buzzer − | GND |
| Battery + (via switch) | VIN |
| Battery − | GND |
Complete, tested Arduino C++ code for this project. Copy it into Arduino IDE and upload it to the Arduino Uno.
#include <Servo.h>
Servo servo1;
Servo servo2;
Servo servo3;
int buzzer = 8;
// Time intervals (in milliseconds)
unsigned long time1 = 5000; // First dose after 5 sec
unsigned long time2 = 10000; // Second dose after 10 sec
unsigned long time3 = 15000; // Third dose after 15 sec
unsigned long startTime;
void dispense(Servo &servo)
{
digitalWrite(buzzer, HIGH);
delay(2000);
digitalWrite(buzzer, LOW);
servo.write(90); // Open box
delay(2000);
servo.write(0); // Close box
}
void setup()
{
servo1.attach(3);
servo2.attach(5);
servo3.attach(6);
pinMode(buzzer, OUTPUT);
servo1.write(0);
servo2.write(0);
servo3.write(0);
startTime = millis();
}
void loop()
{
unsigned long currentTime = millis();
if (currentTime - startTime >= time1) { dispense(servo1); time1 = 99999999; }
if (currentTime - startTime >= time2) { dispense(servo2); time2 = 99999999; }
if (currentTime - startTime >= time3) { dispense(servo3); time3 = 99999999; }
}A medicine reminder that helps people take their medicines on time. Three compartments each hold a different medicine and are opened by their own servo motor.
You need: Arduino Uno (1), Servo Motors (SG90) (3), Buzzer (1), Medicine Boxes (compartments) (3), Lithium-ion Batteries (2), Battery Case with Switch (1), Jumper Wires. Software: Arduino IDE, Servo library.
Yes. It is rated beginner and takes about 2–3 hours to build, using the Arduino Uno. The guide on this page explains every connection and step.
The complete, tested Arduino C++ code is free on this page. Copy it into Arduino IDE and upload it to the board.
Yes. IRI sells a kit with the parts for this project (PRJ-038). Message IRI on WhatsApp at +91 86060 82634 for the kit price and delivery details.