Skip to content

isaaclau888/pillguard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

166f93f · · Jun 13, 2026

History

35 Commits
Jun 11, 2026
Jun 11, 2026
Jun 11, 2026
Jun 13, 2026
Jun 11, 2026
Jun 11, 2026
Jun 11, 2026
Jun 13, 2026

Repository files navigation

PillGuard

Have you ever wanted to build a pill dispenser for yourself or your family? For me, the answer is yes!!

So here comes PillGuard, a pill dispenser that keeps track of and tells you when to take your pills. This is a completely open-source project. All the 3D parts and the BOM list are in the folders. You may customise my project..

How to build it

Please print all the 3D parts.

螢幕截圖 2026-06-11 下午5 09 00

First, try placing the bottom part with the HC‑SR04 sensor in it.

螢幕截圖 2026-06-11 下午5 09 55

Secondly, place the middle part with the 28BYJ-48 Stepper Motor + ULN2003 Driver and another HC‑SR04 sensor.

螢幕截圖 2026-06-11 下午5 10 14

Thirdly, place the spinning system above the 28BYJ-48 Stepper Motor.

螢幕截圖 2026-06-11 下午5 10 55

Last but not least, put the cover on top of the bottom part with the 3.5-inch screen and Arduino Mega 2560(The blue shaded place is where you place the screen and the Arduino Board)..

Wiring Diagram

PillGuard Wiring Diagram

Screen: Just follow the diagram.

DS3231 RTC (Real-Time Clock): VCC -> Breadboard (+) Red Rail, GND -> Breadboard (-) Blue Rail, Trig -> Arduino Mega 2560 Pin 20, Echo -> Arduino Mega 2560 Pin 21 2560 Pin 21

HC-SR04(Cup Sensor): VCC -> Breadboard (+) Red Rail, GND -> Breadboard (-) Blue Rail, Trig -> Arduino Mega 2560 Pin 22, Echo -> Arduino Mega 2560 Pin 23 2560 Pin 23

HC-SR04(Pill Drop Sensor): VCC -> Breadboard (+) Red Rail, GND -> Breadboard (-) Blue Rail, Trig -> Arduino Mega 2560 Pin 24, Echo -> Arduino Mega 2560 Pin 25 2560 Pin 25

ULN2003(Steeper Motor Driver): VCC -> Breadboard (+) Red Rail, GND -> Breadboard (-) Blue Rail, IN1 -> Arduino Mega 2560 Pin 26, IN2 -> Arduino Mega 2560 Pin 27, IN3 -> Arduino Mega 2560 Pin 28, IN4 -> Arduino Mega 2560 Pin 29 Mega 2560 Pin 29

Buzzer: Positive(+) -> Arduino Mega 2560 Pin 30, Negative(-) -> Breadboard (-) Blue Raile Raill

Why this project actually exists

The reason why this project exists is that the HKDSE 2026 DAT SBA required students to make a device for medication management and facilitation of medication taking.

Design Problem: Design and make a device for medication management and facilitation of medication taking. This device must satisfy the following requirements: (a) Store at least five different pills separately, allow patients to set different dosages and medication times for each pill, and automatically dispense the required quantity of pills at the right time, for a period of at least one week; (b) Provide medication reminders to patients in a variety of ways at a predetermined time until the patient confirms that the medication has been taken; (c) Include a function that automatically provides the right amount of water to drink when it is time to take the medicine; (d) Add a function that provides practical value to the patients. (For example, properly preserving the medicine.)cine.)

But I removed the part (c) feature in this project.

How I made it

Guess how I made it. I made it by using Fusion 360, which is a completely free CAD app for students. The reason why I made this is that I want to make people not hate taking medicine. By using the dispenser, you can interact with it, making it more fun when you're ill.

SBA_2026-Apr-05_04-36-30AM-000_CustomizedView2692837445_png

How to use it?

The question you may ask is how to use this pill dispenser. To use this dispenser, you must set a timer on the app and select which medicine you're taking. For example, at 1 pm, I need to take 2 Panadol Pills. Then it will follow your instructions and do the task at 1 pm.

Fallout Zine

PillGuard Fallout Zine

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages