HomeEngineering Projects For YouA Smart Pillbox For Timely Medication

A Smart Pillbox For Timely Medication

efy-tested-1

As families grow busier, maintaining medication schedules for seniors, home-bound patients, and children who may not fully understand medication routines can become increasingly difficult, especially when medicines must be taken at irregular intervals of two to four days.

This pillbox offers a low-cost, fully electronic, circuit-based solution, requiring minimal human intervention. The user only needs to fill the weekly dosage and ensure uninterrupted power supply.

The system provides medication reminders through both visual and audio alerts. As continuous audio signals may irritate patients, special care has been taken in the design. To prevent false triggering in the audio section (using the BT66/UM66 IC), optical isolation has been implemented through an optocoupler IC.

- Advertisement -

Each day, the reminder circuit activates a corresponding LED for about ten seconds to indicate the specific day of the week. In addition, an audio alert is generated for a preset duration (again, ten seconds in the present design) at every 24-hour interval.

After the ten-second alerts each day, the system resets itself to initiate the next 24-hour cycle. For demonstration purposes, the timing interval can be reduced to ten seconds (from 24 hours) and the alert duration to one second (from ten seconds), making it more convenient for video recording and testing.

- Advertisement -

The proposed setup functions as a combined LED and buzzer alert system. Fig. 1 shows the author’s prototype of the complete setup, while Fig. 2 shows the system’s block diagram. To build this system, the required components are listed under Table 1 for the Bill of Materials.

Table 1 Bill Of Materials
ComponentsQuantityPurpose
555 timer IC2One for astable (24 hours), one for monostable (10 sec)
CD4017 IC1For 7-day LED sequencing
BT66 music IC1Alert sound via the speaker
BC549 transistor8To switch the LEDs on/off and for the speaker
PC817 IC1To isolate BT66 from 555 IC
5mm LEDs7One/day: Monday to Sunday
Resistor R1 (26.6MΩ)1For 24-hour time in 555 IC
Resistor R2 (1KΩ)1For 24-hour time in 555 IC
Resistor (1MΩ)1For 10-sec time in 2nd 555 IC
Capacitor (4700µf)1For 555 timing (24-hour)
Capacitor (9/10µf)1For 555 timing (10-sec)
Capacitor (0.0µf)2For noise removal
Speaker (8Ω, 0.5W)1For playing the sound
Breadboard2For prototyping the circuit
Jumper wiresFor all connections
Power supply (5V)1Battery or DC adaptor
Diode 1N40071To protect IC PC817
Table 2 Main Component Pin Connections
ConnectionIC555A (24-hour Astable)IC555B (10-second Monostable)CD4017PC817BT66SpeakerBC549
GNDPin 1Pin 1Pin 8Pin 2Negative (–)Emitter
+5VPin 8, Pin 4Pin 8, Pin 4Pin 16Pin 4Positive (+)
Control VoltagePin 50.01µF to GNDPin 50.01µF to GND
Timing NetworkPins 2 and 64700µF to GND; Pin 7 26.6MΩ to +5V; 1kΩ between Pins 6 and 7Pins 6 and 71MΩ to +5V and 9µF to GND
Trigger/InputPin 2Pin 14 (clock from IC 555A Pin 3)Pin 1 via 470ΩInput from PC817Base
OutputPin 3CD4017 Pin 14 and IC 555B Pin 2Pin 3PC817 and BC549 baseQ0-Q6 outputsPins 3 and 4 BT66Output BC549 baseDriven by BC549Collector  Speaker
Reset/EnablePin 13GND, Pin 15Pin 6 (Q7 reset)
Other PinsPins 9, 11, 12 Not connected

Circuit and working

Fig. 3 shows the circuit diagram of the pillbox with an adjustable reminder, designed to provide a daily audio alert in a sequential manner. It is built around two NE555 timers, a CD4017 decade counter, BC549 transistors, optocoupler PC817, a speaker, and a few other components.

EFY Icon

EFY++ CONTENT: ACCESS TO THIS CONTENT IS FREE! BUT YOU NEED TO BE A REGISTERED USER.

Oops! This is an EFY++ article, which means it's our Premium Content. You need to be a Registered User of our website to read its complete content.

Good News: You can register to our website for FREE! REGISTER NOW

Already a registered member? If YES, then simply login to you account below. (TIP: Use 'forgot password' feature and reset and save your new password in your browser, if you forgot the last one!)

Dr. Geetali Saha, Faculty, GCET, Gujarat
Dr. Geetali Saha, Faculty, GCET, Gujarat
Dr. Geetali Saha is a researcher and technologist specializing in time series forecasting, data mining, and the intersection of electronics, IoT, and environmental sustainability. She holds a Ph.D. in Time Series Forecasting and has a strong focus on applying data-driven insights to real-world challenges, particularly in water systems, climate resilience, and sustainable development. Her work reflects a deep commitment to advancing education, innovation, and environmental stewardship in India. Dr. Saha has contributed to several impactful projects, including EU-funded ERASMUS initiatives on inclusive and equitable education for higher education institutions in India. She has also led and supported technology-driven projects such as smart helmets, agri-drones, and water-focused innovations funded by government-backed programs. Recognized globally for her contributions, Dr. Saha is an approved Ocean Expert under UNESCO’s Intergovernmental Oceanographic Commission (IOC) and an active stakeholder in the UN Ocean Decade initiative aligned with SDG 14: Life Below Water. She has participated as a delegate at multiple COP summits and is actively involved in international working groups focused on ocean observation, hydrography, climate communication, and plastic pollution. In addition, she is a life member of professional bodies such as the Indian Meteorological Society and the Indian Society for Technical Education. Her work continues to bridge technology, sustainability, and education, with a strong emphasis on empowering the next generation through innovation and knowledge.

SHARE YOUR THOUGHTS & COMMENTS

EFY Prime

Unique DIY Projects

Truly Innovative Electronics

Electronics News

Latest DIY Videos

Electronics Components

Electronics Jobs

Calculators For Electronics