Skip to content

SkullkyAI/IoT-Elderly-Monitoring

Repository files navigation

IoT-Elderly-Monitoring

An IoT system for monitoring elderly individuals by detecting unusual movement and sound. The system consists of multiple components working together:

System Components

  1. IoT Device (ESP32)
  • Located in IoT-Project/
  • Uses Arduino framework with ESP32 microcontroller
  • Captures and sends images via BLE
  • Configure and build using PlatformIO:
cd IoT-Project/
pio run
  1. Web Application (Angular)
  • Located in WaveSafe/
  • Frontend interface for monitoring
  • Installation:
npm install -g @angular/cli
cd WaveSafe/
npm install
ng serve -o
  1. Backend API (Deno)
  • Located in WaveSafe-api/
  • Handles data processing and business logic
  • Installation & running:
cd WaveSafe-api/
# Create .env file with required environment variables
deno task dev
  1. Database (SurrealDB)
  • Stores monitoring data and user information
  • Start the database:
surreal start -A --log debug surrealkv://./database/surrealdb.db

Prerequisites

  • Node.js & npm
  • Angular CLI
  • Deno 2.0+
  • SurrealDB
  • PlatformIO (for ESP32 development)
  • Python dependencies:
pip install -r requirements.txt

Getting Started

  1. Clone the repository
  2. Setup database by running SurrealDB
  3. Start the backend API server
  4. Launch the Angular frontend
  5. Flash the ESP32 device with the IoT code

Development Workflow

  1. IoT Device Development
  1. Frontend Development
  1. Backend Development
  • Deno server in WaveSafe-api/
  • Development mode with auto-reload: deno task dev

Configuration

  • ESP32: Update BLE settings in IoT-Project/src/main.cpp
  • Backend: Create .env file in WaveSafe-api/
  • Database: Configure connection settings

Note

  • The system processes images and sound data from the IoT device
  • Uses BLE for communication between ESP32 and backend
  • Implements fall detection and sound monitoring
  • Stores monitoring data in SurrealDB

Project Structure

.
├── AudioProcessor/         # Audio processing components
├── Edge/                  # Edge computing models
├── IoT-Project/          # ESP32 device code
├── WaveSafe/             # Angular frontend
├── WaveSafe-api/         # Deno backend
└── database/             # Database files

About

IoT system for monitoring elderly individuals by detecting unusual movement and sound.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •