INTRODUCTION
The application of Smart Medicine Reminder is very wide and can be used by patients at home, doctors at hospitals and many other places to take medicine on time. We are making a simple Medicine Reminder Using Arduino which reminds us to take medicines 1 or 2 or 3 times a day. The time slot can be selected using push buttons. Also, it shows the current Date and Time.
HARDWARE REQUIRED
- Arduino Uno with USB cable -1
- RTC DS3231 module -1
- 16x2 LCD Display -1
- Buzzer B-10 – 1
- Led 5mm red – 1
- 830 pt. Breadboard -1
- Push Button – 4
- 10K Potentiometer -1
- Resistor 10K - 4, 1K -1
- Jumper Wires (Male to Male) - 20pcs
- Jumper Wires(Male to Female)- 20pcs
- Single strand wire 2mt -1
SOFTWARE REQUIRED
Arduino IDE 1.8.10 (programmable platform for Arduino)
Click To Download: https://www.arduino.cc/en/Main/Software
LIBRARY REQUIRED
Before uploading the code, you must install this library:
Liquid Crystal - https://drive.google.com/open?id=14CpOZPTgmPcHedB1oDqeTVFI4eMwMcf7
RTClib - https://drive.google.com/open?id=1AxQfcdvPMK37FLtGTzzdTTGBCBBH58mX
Wire - https://drive.google.com/open?id=1Ej-R75OikJAlHrj275zYvKNzDN3cm0zi
After downloading all these libraries go to sketch -> include libraries -> add .zip libraries
CIRCUIT CONNECTION
- Connect the GND pin and VCC pin of Arduino Uno on the breadboard for making further GND and VCC connection
- Connect Digital pin 3 of Arduino to the D7 pin of the 16x2 LCD.
- Connect Digital pin 4 of Arduino to the D6 pin of the 16x2 LCD.
- Connect Digital pin 5 of Arduino to the D5 pin of the 16x2 LCD.
- Connect Digital pin 6 of Arduino to the D4 pin of the 16x2 LCD.
- Connect Digital pin 7 of Arduino to the 3rd push button pin
- Connect Digital pin 8 of Arduino to the 2nd push button pin
- Connect Digital pin 9 of Arduino to the 1st push button pin
- Connect Digital pin 11 of Arduino to the EN pin of the 16x2 LCD.
- Connect Digital pin 12 of Arduino to the RS pin of the 16x2 LCD.
- Connect Digital pin 13 of Arduino to the positive pin of the buzzer or you can add led also (given in the kit)
- Connect Digital pin 12 of Arduino to the RS pin of the 16x2 LCD.
- Connect Analog pin 0 (To stop the button) of Arduino to the 4th push button pin
- Connect Analog pin 4 of Arduino to the SDA pin of DS3231 RTC Module
- Connect Analog pin 5 of Arduino to the SCL pin of DS3231 RTC Module
- Connect Analog pin 3.3V/5V of Arduino to the VCC pin of DS3231 RTC Module
CODE
Click to see the code
https://drive.google.com/open?id=1_QqmBwnIfnGi_Y51ROzGj6YwKhD68LKT
WORKING AND OUTPUT
Welcome to the Arduino-based project.
The Pill Reminder Alarm is powered using a 5V supply. When it first boots up, it shows a welcome message as “Welcome to HealthcareREES52”. The LCD screen is set to cycle in three screens. The 1st screen shows a message as “Stay Healthy, Get Well Soon”. The second screen is a help screen which tells to press the push button to select any one-time slot to remind (once/twice/thrice in a day). The time slot is changeable in the program and can be configured accordingly. Right now we have fixed this into three durations i.e. 8 am, 2 pm, and 8 pm.
We have divided time slots into three modes. Mode 1 selects to take medicine once/day at 8 am when the user presses 1st push button. Mode 2 selects to take medicine twice/day at 8 am and 8 pm when the user presses the 2nd push button. Mode 3 selects to take medicine thrice/day at 8 am, 2 pm and 8 pm if the user presses the 3rd push button.
When the user selects desired slots by pressing push buttons, the user input is recorded and the time is taken from RTC. When time is matched with the selected time slot then the buzzer starts buzzing. Users can stop the buzzer by pressing the STOP button. The same process continues for the next slot reminder.