A wearable detection system that uses sensor data to detect medical emergencies (such as falls) and automatically alerts to a companion application. Finding the nearest 'Medic' to aid the user for a chance to prolong life expectancy while awaiting professional help, which then generates AI-powered incident reports.
This project combines embedded hardware, device communication, and AI-based report generation to detect fall incidents and produce structured incident reports in real time. The system is designed for applications such as elderly care, workplace safety, and personal health monitoring.
- Fall detection using accelerometer data
- ESP32-based wireless communication
- Push-button confirmation incident trigger
- Automatic AI-generated incident reports
- Cloud integration for data storage and retrieval
- Sensor Node (Arduino-based)
- Detects falls using an accelerometer
- Sends events via serial communication
- ESP32 Gateway
- Receives fall and button events
- Handles wireless transmission
- Mobile / Cloud Application
- Generates incident reports using AI
- Stores reports in Firebase
- ESP32
- MMA7660 Accelerometer
- RGB LCD Backlight
- Push Button
- Arduino IDE
- I2C, UART
- Swift (iOS – Xcode)
- Firebase
- Gemini AI API
- The accelerometer continuously monitors motion along the Z-axis.
- A sudden acceleration drop exceeding a defined threshold triggers a fall event.
- A manual button press can confirm an incident is occuring and needs attention.
- Events are transmitted to the ESP32 via serial communication.
- The ESP32 forwards incident data to FireBase.
- The application uses AI to generate a structured incident report and stores it in Firebase.
- Open the Arduino code in Arduino IDE
- Connect the hardware components
- Upload the sensor firmware
- Upload the ESP32 firmware
- Clone the repository
- Open the project in Xcode
- Configure Firebase
- Add Gemini API credentials
- Build and run on an iOS device or simulator
- Adjust fall detection thresholds in the Arduino code
- Configure Firebase project settings