⭐ Found this useful? Star the repo — it helps other makers find it.
Demo GIF and wiring photo coming soon.
An intelligent ESP32-based medicine reminder system that helps users manage their medication schedules with automated reminders, health monitoring, and emergency notifications. The system features an 8-chamber medicine dispenser with LED indicators, buzzer alerts, GSM connectivity for SMS/call notifications, and a web-based interface for easy management.
- 8-Chamber Medicine Dispenser - Organized storage for different medications
- LED Indicators - Visual cues for each medicine chamber
- Reed Switch Detection - Confirms when medicines are taken
- Buzzer Alerts - Audio reminders for medication times
- Scheduled Notifications - Set custom reminder times for each medicine
- Progressive Alert System - Escalating notifications if medicine is not taken
- SMS Notifications - Text message reminders via GSM module
- Emergency Calls - Automatic calls for critical missed medications
- WiFi Access Point - Direct connection for device management
- Web Interface - User-friendly browser-based control panel
- Real-Time Clock - Accurate timekeeping for schedules
- LittleFS Storage - Persistent data storage for schedules and settings
- Medicine Adherence Tracking - Monitor medication compliance
- Schedule Management - Add, edit, and delete medicine schedules
- Status Monitoring - Real-time system and battery status
- ESP32 Development Board (ESP32-DOIT-DEVKIT-V1)
- RTC Module (DS3231 or DS1307)
- GSM Module (SIM800L or similar)
- Buzzer (Active or Passive)
- 8x LEDs (for chamber indicators)
- Reed Switches (magnetic door sensors)
- Medicine Storage Chambers (8 compartments)
LED Pins: 13, 12, 14, 27, 26, 25, 33, 32
Reed Switch: Pin 19
Buzzer: Pin 5
GSM Module: RX-16, TX-17
I2C (RTC): SDA-21, SCL-22
- Schedule medicine reminders
- Monitor system status
- View medicine adherence history
- Configure emergency contacts
- System settings management
- SMS reminder notifications
- Emergency call system
- Status update messages
- Network connectivity monitoring
- PlatformIO development environment
- ESP32 development board
- Required hardware components (see Hardware Requirements)
-
Clone the Repository
git clone https://github.com/Saipreetham0/Smart-Medicine-Reminder-System-with-Health-Monitoring-esp32.git cd Smart-Medicine-Reminder-System-with-Health-Monitoring-esp32 -
Open in PlatformIO
- Open the project folder in PlatformIO IDE
- All dependencies will be automatically downloaded
-
Hardware Setup
- Connect components according to pin configuration
- Ensure proper power supply for all modules
- Insert SIM card in GSM module
-
Upload Code
pio run --target upload
-
Access Web Interface
- Connect to WiFi AP: "Medicine Reminder"
- Password: "medkit123"
- Open browser to:
http://192.168.4.1
const char* ssid = "Medicine Reminder";
const char* password = "medkit123";- Insert active SIM card
- Configure emergency contact numbers
- Set SMS service center number
- Use web interface to add schedules
- Set chamber number (1-8)
- Configure reminder times
- Enable/disable emergency calls
The system is built with modular design:
main.cpp- Main application logic and setupdata_structures.h- Core data structures for schedules and usersfile_storage.h- LittleFS file operationsweb_server.h- HTTP server and API endpointsgsm_module.h- GSM communication functionshtml_assets.h- Web interface HTML/CSS/JS
- Fail-safe Operation - System continues working even if WiFi/GSM fails
- Battery Backup - RTC maintains time during power outages
- Data Persistence - Schedules saved to flash memory
- Emergency Protocols - Automatic escalation for critical medicines
This project is available for purchase at kspelectronics.in
Complete kits include:
- Pre-programmed ESP32 board
- All required hardware components
- Assembly instructions
- Technical support
This is an open-source project. Contributions are welcome!
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
This project is open source and available under the MIT License.
Sai Preetham Koyyala
- GitHub: @Saipreetham0
- Website: kspelectronics.in
For technical support or commercial inquiries:
- Visit: kspelectronics.in
- Email: Contact through website
- GitHub Issues: For bug reports and feature requests
- Mobile application for remote monitoring
- IoT cloud integration
- Advanced health analytics
- Multi-user support
- Voice command integration
- Bluetooth connectivity
⚡ Powered by ESP32 | 💊 Healthcare Technology | 🏠 Smart Home Innovation