ESP32 Medibox
Simulating smart medicine box using ESP32 and Node-RED dashboard.
The ESP32 Medibox is an IoT concept project aimed at simulating a smart medicine box using the ESP32 microcontroller. This project enhances medication management by providing timely reminders, maintaining optimal storage conditions, and controlling light exposure.
This was a solo project done by me in the Embedded Systems module.
Project Objectives
- Automate Medication Reminders: Remind users to take their medication at specific times.
- Maintain Optimal Conditions: Monitor and control temperature and humidity to keep medicines in the required conditions.
- Control Light Exposure: Adjust a motorized curtain to regulate light entering the Medibox.
Key Features
- Microcontroller: Utilizes the ESP32 for its processing power and wireless capabilities.
- Temperature and Humidity Monitoring: Continuous monitoring to ensure medicines are stored properly.
- Motorized Curtain: Controls light exposure to protect sensitive medicines using servo motors.
- Real-Time Notifications: Alerts users if the storage conditions are compromised using buzzer and LEDs.
- Node-RED Integration: Utilizes Node-RED for creating dashboards and handling MQTT requests efficiently.
Hardware Design
The hardware design involves connecting the ESP32 with temperature and humidity sensors, and a servo motor. Additionally it includes - LCD Display, Buzzer, Push Buttons and LEDs.
Software Development
The software is developed using Wokwi and transitioned locally to the Arduino Framework using Platform IO. The code is structured to handle the following:
- Initialization: Setup of all hardware components and initial configurations.
- Main Loop: Continuous monitoring of conditions and managing user inputs.
- MQTT Communication: Efficiently sending and receiving data through Node-RED.
Future Enhancements
- Mobile App Integration: Developing a mobile app to remotely monitor and control the Medibox.
- Advanced Notifications: Incorporating SMS or email notifications for reminders.
- Expanded Storage: Adding more storage for logging a larger history of medication intake.
Conclusion
By integrating various hardware components and developing a robust software system, the Medibox provides a practical solution for medication reminders and optimal storage.
For more details, you can explore the GitHub repository.