Automatic Pill Dispenser
This project originates from a previous version I made on high school for my grandfather, who takes the same medications every day. However sometimes he forgets to take them, and most of the time only my mother or his caregivers know exactly which pills he needs and whether he has already taken them.
Sometimes other family members and I help with refills or by bringing him his medication during breakfast/dinner, but we do not always know the routine with complete certainty. Even when the medication is the same (there might be some changes from time to time depending on the doctor's instructions), the pill presentation can change depending on the pharmacy where it was bought, which makes it harder to identify each dose only by appearance.
This is why I decided to make a motorized pill dispenser for my final project. It was thought to support people who take medication at the same times for long periods, while also making the routine clearer for the family members or caregivers who help them. The device has a carousel with 16 compartments, but since one space is used as the dispensing opening (dispensing ocures thanks to gravity when the compartment is aligned with the opening), it can hold up to 15 single doses or (7 1/2 days when AM and PM doses are needed).
The system does not dispense automatically without the user. When the RTC reaches a
programmed alarm time, the buzzer keeps the reminder active until the user either
confirms the dose or postpones it if there is a temporary issue. After confirmation,
a 28BYJ-48 stepper motor advances the carousel to release the scheduled compartment.
A XIAO ESP32 controls the mechanism, drives an OLED display, reads the buttons, and
hosts its own WiFi Access Point so the schedule can be configured locally.
Use case
Long-term medication routines with fixed schedules
Capacity
15 single doses, or 7.5 days with AM and PM doses
Interaction
Alarm stays active until confirmation or postponement
Controller
XIAO ESP32, RTC, OLED, buttons, buzzer, local WiFi Access Point
Motion
28BYJ-48 stepper motor advances the dispensing carousel
Fabrication
3D printing, laser cutting, CNC routing, PCB milling