0% found this document useful (0 votes)
14 views11 pages

DLD Project

The document outlines a project for an Arduino-based medicine dispenser designed to dispense medication at scheduled times and notify users through a buzzer. It includes details on components used, working mechanisms, block diagrams, features, and potential future enhancements. The project aims to assist elderly patients and individuals on strict medication schedules by ensuring timely medication intake.

Uploaded by

noormajeed359
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views11 pages

DLD Project

The document outlines a project for an Arduino-based medicine dispenser designed to dispense medication at scheduled times and notify users through a buzzer. It includes details on components used, working mechanisms, block diagrams, features, and potential future enhancements. The project aims to assist elderly patients and individuals on strict medication schedules by ensuring timely medication intake.

Uploaded by

noormajeed359
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 11

PIR MEHAR ALI SHAH

ARID AGRICULTURE UNIVERSITY RAWALPINDI


Digital Logic & Design

Project#1

Session: 2024-2028
SUBMITTED TO:
Mr. Suhail Akram

SUBMITTED BY:

Adeel Shazad 24-Arid-4928


Muhammad Tayyab 24-Arid-4965
Noor-ul-Huda 24-Arid-5033
Pakiza syed 24-Arid-5035

DEPARTMENT OF COMPUTER SCIENCES BARANI


INSTITUTE OF SCIENCES
BUREWALA CAMPUS
Table of Content
DLD PROJECT ........................................................................................................................2
1.Components used...................................................................................................................2
2.Working mechanisum(step-By-step)......................................................................................4
3.Block Diagram & Connections...............................................................................................................5
4.Features & Benefits ................................................................................................................................9
5.Possible Future Enhancements..............................................................................................................10
6.Conclusion............................................................................................................................10
DLD PROJECT :

Arduino-Based Medicine Dispenser


Project Overview:
“This medicine dispenser is an Arduino-based project
designed to dispense medicine at scheduled times and notify
the user using a buzzer. It ensures that medicine is taken on
time, especially for elderly patients or those on strict
schedules.”
1.Components used
a) Electronic Components
 Arduino Uno/Nano: Main microcontroller to control the system.
 RTC Module (DS3231): Keeps track of the real-time clock (to trigger
medicine dispensing).
 Stepper Motor (28BYJ-48) + ULN2003 Driver:Rotates the medicine tray
to the correct compartment.
 Buzzer (5V Piezo Buzzer):Alerts the user when it's time to take medicine.
 Push Button Switch – Used to confirm medicine retrieval and stop the
buzzer.
 LCD Display (16x2 with I2C module): Displays the current time and next
medicine schedule.
 LED Indicators:Optional, can be used to show medicine readiness.
 Power Supply (9V adapter or battery pack): To power the Arduino.
2. Working Mechanism (Step-by-Step)

Step 1: Setting Up the Medicine Schedule


 The RTC Module (DS3231) keeps track of the real-time clock.
 The user sets specific medicine-taking times in the Arduino code (e.g.,
8:00 AM, 2:00 PM, 8:00 PM).

Step 2: Time Monitoring


 The Arduino continuously reads the current time from the RTC module.
 If the current time matches a scheduled medicine time, the system triggers
the next step.

Step 3: Medicine Dispensing Mechanism


 The Stepper Motor (28BYJ-48) rotates the medicine tray to align with
the dispensing slot.
 The motor stops once the correct compartment is in position.

Step 4: Alerting the User


 The buzzer sounds continuously, notifying the user to take the medicine.
 The LCD display shows a message: "Take your medicine now!"
 An LED light can also turn on to indicate that medicine is ready.

Step 5: User Confirmation


 The user presses a push button after taking the medicine.
 This stops the buzzer and resets the system for the next scheduled time.
 The system then waits for the next medicine schedule.
3. Block Diagram & Connections

+-------------------+
| Power Supply |
+-------------------+

+-------------------+
| Microcontroller |
+-------------------+
↓ ↓ ↓
+----------------+ +----------------+
| RTC Module | | Display (LCD) |
+----------------+ +----------------+
↓ ↓
+----------------+ +----------------+
| Motor Driver |--->| Stepper Motor |
+----------------+ +----------------+

+----------------+
| Servo Motor | (Tray Open)
+----------------+

+---------------------------+
| User Input (Buttons) |
+---------------------------+

+----------------------+
| Buzzer & LEDs | (Alerts)
+----------------------+
Explanation:

1. Power Supply → Microcontroller (Arduino/ESP32)

Connection:
The power supply (9V adapter or battery) directly powers the
Microcontroller.
Working:
The Microcontroller requires a 5V or 9V power source to operate.
Benefit:
Ensures smooth operation of the entire system without power failures.

2. RTC Module → Microcontroller

Connection:
The RTC Module (DS3231) is connected to the Microcontroller’s I2C
pins (SDA, SCL).
Working:
It is a real-time clock that keeps track of the exact time and tells the
microcontroller when to dispense medicine.
Benefit:
Provides accurate timing for automatic medicine reminders.

3. Display (LCD/OLED) → Microcontroller

Connection:
The Display is connected to the Microcontroller’s I2C pins or parallel
pins.
Working:
It shows important information like time, medicine schedule, and
alerts.
Benefit:
The user can easily check when to take the medicine.
Provides direct notifications without needing a mobile device.

4. Motor Driver → Microcontroller

Connection: The Motor Driver (ULN2003/L298N) is connected to


the Microcontroller’s digital PWM pins.
Working:
 The Microcontroller cannot directly power the Stepper Motor
because it requires more current.
 The Motor Driver acts as a bridge between the Microcontroller and
the Stepper Motor.
Benefit:
Ensures smooth and precise movement of the Stepper Motor for
accurate pill dispensing.

5.Stepper Motor → Motor Driver → Microcontroller

Connection:
The Stepper Motor (28BYJ-48) is connected to the Motor Driver.
The Motor Driver is controlled by the Microcontroller.
Working:
It rotates the pill tray to the correct compartment for dispensing the
right medicine.
Benefit:
Ensures medicine is dispensed correctly at the scheduled time.
6.Servo Motor → Microcontroller

Connection:
The Servo Motor is connected to the Microcontroller’s PWM pin.
Working:
It opens and closes the pill tray to allow medicine to be retrieved.
Benefit:
Enables automatic pill tray opening, reducing the need for manual
handling.

7. User Input (Push Button) → Microcontroller

Connection:
The Push Button is connected to the Microcontroller’s digital input
pin.
Working:
The user presses the button to confirm that they have taken the
medicine.
Benefit:
The system records that the user has taken their dose.
Stops the buzzer and LED alerts after confirmation.

8. Buzzer & LEDs → Microcontroller


Connection:
The Buzzer and LEDs are connected to the Microcontroller’s digital
pins.
Working:
The Buzzer alerts the user when it is time to take the medicine.
The LEDs indicate the system’s status:
Red LED = "Missed Dose"
Green LED = "Ready to Dispense"

Benefit:
Provides both sound and visual alerts for better user awareness.
Helps remind the user if they forget their medication.

4.Features & Benefits


1. Accurate Timing: Uses an RTC module for precise medicine
scheduling.

2. Automated Medicine Dispensing: The stepper motor moves the


tray to dispense medicine.

3.User Alert System: A buzzer and LCD alert the user when it's time
to take medicine.

4.Easy Confirmation: A push button stops the buzzer after the user
takes medicine.

5.LCD Display for Information: Shows the next scheduled medicine


time.

6. No Internet Required: Works offline with no dependency on WiFi


or cloud services.
5. Possible Future Enhancements

 Multiple Medicine Compartments:


Use multiple stepper motors for different medicines.
 Voice Alert System:
Replace the buzzer with a speaker for audio reminders.
 Mobile App Integration:
Add Bluetooth or WiFi to control schedules from a smartphone.
 Pill Count Tracking:
Use IR sensors to detect medicine levels.

Conclusion:
This Arduino-based medicine dispenser is a simple
yet effective project that ensures timely medication while being
affordable and easy to build. It helps elderly patients and busy
individuals never miss their medicine.

You might also like