MediBox is a smart medication reminder system designed to assist patients in taking their medications on time. The device uses an OLED display, a DHT sensor for temperature and humidity, and a buzzer for alarms. It connects to a WiFi network to synchronize time using an NTP server.
- Name: Gathsara J.A.S
- Index Number: 210180L
The following libraries are used in this project:
Wire.h
: I2C communicationAdafruit_GFX.h
: Graphics displayAdafruit_SSD1306.h
: OLED displayDHTesp.h
: DHT sensorWiFi.h
: WiFi connection
- OLED Display (128x64 pixels)
- DHT22 Sensor
- Buzzer
- LEDs
- Push Buttons
- ESP32 Development Board
- Time Synchronization: Synchronizes time with an NTP server to ensure accurate timekeeping.
- Alarm System: Sets multiple alarms to remind users to take their medications.
- Temperature and Humidity Monitoring: Monitors and displays the temperature and humidity levels using the DHT22 sensor.
- User Interaction: Allows users to set the time zone, configure alarms, and navigate through the menu using push buttons.
- Notifications: Provides audible and visual notifications when it is time to take medication.
-
Setup:
- Connect the hardware components as per the circuit schematic.
- Upload the code to the ESP32 development board.
- Power on the device.
-
Connecting to WiFi:
- The device will automatically attempt to connect to the predefined WiFi network.
- Ensure that the WiFi credentials in the code match your network details.
-
Setting Time Zone:
- Navigate to the "Set Time Zone" mode using the push buttons.
- Adjust the time zone by setting the hour and minute offsets.
-
Setting Alarms:
- Navigate to the alarm settings mode.
- Set the desired time for each alarm using the push buttons.
-
Monitoring Temperature and Humidity:
- The device continuously monitors the temperature and humidity.
- Alerts are displayed on the OLED screen if the temperature or humidity goes beyond predefined thresholds.
-
Alarm Notifications:
- When an alarm is triggered, the buzzer will sound, and the LED will light up.
- Press the cancel button to stop the alarm.
This device is a helpful tool for ensuring that medications are taken on time and for monitoring environmental conditions to store medications properly.