Final Project – Automated Pill Dispenser
A 31-day automated pill dispenser designed for my grandfather, who often forgets to take his medication. The device organizes pills by day and time, dispenses them automatically, and alerts the user with visual and sound reminders. A local web server (no internet required) lets family members track medication intake in real time.
At this stage I was still exploring different ideas. I wanted something meaningful, functional, and connected either to a real problem or to a personal interest. Below are the main ideas I considered before choosing the pill dispenser.
Other ideas considered
Pothole & Speed-Bump Detection
A sensor-based device to help drivers detect potholes and speed bumps, especially when they are hard to see because of poor lighting, weather conditions, or road deterioration. It could use sensors to warn the driver through visual or sound signals.
Smart Compost Box
A compost box that triturates organic waste and stores it while it turns into compost. The system would monitor pH, humidity, and temperature to support optimal composting conditions.
Electric Skateboard
A personal-interest project focused on designing the board, selecting motors, batteries, and controllers, and integrating all components into a functional and safe mobility product.
Chosen: Automated Pill Dispenser
One of my main ideas was continuing a project I worked on in high school: an automated pill dispenser. At that time, because of time and technical limitations, I designed a dispenser that worked for 7 days, with 3 pill schedules per day.
The idea now is to redesign and improve it into a dispenser that works for 31 days. This project is intended for my grandfather, who often forgets to take his medication. The device would help organize pills by day and time, remind the user when to take them, and reduce mistakes.
The approach focuses on organizing pills by day and time, automating the dispensing process, adding visual and/or sound reminders, and making the system simple, clear, and safe to use.
View Onshape Design
First Approach and Next Steps
At this point, I was comparing the ideas by sketching early concepts, evaluating feasibility, and identifying which project could become the strongest final direction.
The first sketches focused on defining the main components, user interaction, scale, and general form of each proposal before narrowing down to a single project.
First Sketches
In this phase, I started by creating rough sketches for each idea. These sketches did not focus on aesthetics, but on understanding scale, mechanisms, and how users would interact with the device.
Progress so far
These are the weeks and assignments that directly contributed to the final project.
Week 02 – Computer-Aided Design
Designed the base 3D structure of the dispenser housing in Onshape. This was the first physical approach to the shape and compartment layout.
Go to Week 02 →
Week 04 – Embedded Programming
Built a proof-of-concept alarm integrating a buzzer, LED, servo motor, and stepper motor — the exact actuators the final dispenser will use.
Go to Week 04 →
Electronics Design & Production
Designed and fabricated a modular PCB for the XIAO ESP32-S3. Later updated in Week 12 to support I2C communication between modules.
Go to PCB week →
Week 11 – Networking & Communications
Configured the ESP32 to host an offline web server so users can track medication intake from any phone or computer — no internet required.
Go to Week 11 →System diagram
The XIAO ESP32-S3 is the central controller. It coordinates all hardware modules through the custom modular PCB and hosts a local web server for medication tracking.
Tasks to complete
1. Dispensing mechanism
Define the strategy: one central motor with pre-mixed compartments, or one motor per compartment with an individual gate. Build the chosen mechanical prototype.
2. Test code (firmware)
Integrate stepper motor, servo, LED, buzzer, and web server into a single sketch. Validate dispensing timing and schedule logic for 31 days × 3 daily doses.
3. Electrical connections
Wire the modular PCB to all actuators. Verify power supply, I2C signals, and the ESP32 Wi-Fi for the offline server.
4. Final housing
Design and fabricate the enclosure: 31 daily compartments, 3 schedules per day, all modules integrated, clear labelling for the end user.
5. Full integration
Assemble mechanics + electronics + firmware into the final housing. Run functional tests and usability adjustments.
6. Final documentation
Document the entire process: design, fabrication, code, testing, and final presentation on the Fab Academy site.
Schedule
| Week | Dates | Main task | Status |
|---|---|---|---|
| Wk 1–2 | Apr 15 – 28 | Define dispensing mechanism; first mechanical prototype (CAD + 3D print) | In progress |
| Wk 3 | Apr 29 – May 5 | Test code: motor + servo + buzzer + LED + web server integrated | Pending |
| Wk 4 | May 6 – 12 | Full electrical connections; PCB tests with all modules | Pending |
| Wk 5 | May 13 – 19 | Design and fabricate final housing (31 days × 3 schedules) | Pending |
| Wk 6 | May 20 – 26 | Full integration: assembly, functional tests, and user adjustments | Pending |
| Wk 7 | May 27 – Jun 2 | Final documentation + video of the working project | Pending |
| Presentation | Jun 4, 2026 | Fab Academy Final Project Presentation | Deadline |