DLD Project
DLD Project
Project#1
Session: 2024-2028
SUBMITTED TO:
Mr. Suhail Akram
SUBMITTED BY:
+-------------------+
| Power Supply |
+-------------------+
↓
+-------------------+
| Microcontroller |
+-------------------+
↓ ↓ ↓
+----------------+ +----------------+
| RTC Module | | Display (LCD) |
+----------------+ +----------------+
↓ ↓
+----------------+ +----------------+
| Motor Driver |--->| Stepper Motor |
+----------------+ +----------------+
↓
+----------------+
| Servo Motor | (Tray Open)
+----------------+
↓
+---------------------------+
| User Input (Buttons) |
+---------------------------+
↓
+----------------------+
| Buzzer & LEDs | (Alerts)
+----------------------+
Explanation:
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.
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.
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.
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.
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.
Benefit:
Provides both sound and visual alerts for better user awareness.
Helps remind the user if they forget their medication.
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.
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.