How naveen-prakash-sk/nexora-smart-cabin-automation works
Nexora is an embedded cabin-automation system: an ESP32-CAM detects motion and signals a main ESP32, which combines that confirmation with ultrasonic proximity and environmental readings to control lighting and fan speed. A separate camera-webserver sketch provides optional WiFi streaming; its HTTP handlers serve an embedded camera page and image streams. The main firmware implementation was not excerpted, so its documented behavior and links are based on the README, not direct source inspection.
Main entry points: app_httpd.cpp Camera HTTP server · main_controller.ino Occupancy confirmation · camera_controller.ino Camera motion detection · camera_index.h Embedded camera page
Components 15
Occupancy Detection
- Camera motion detection
firmware/camera_controller/camera_controller.ino - Camera GPIO signal
firmware/camera_controller/camera_controller.ino - Ultrasonic proximity
firmware/main_controller/main_controller.ino
Cabin Control
- Main controller
firmware/main_controller/main_controller.ino - Environment sensing
firmware/main_controller/main_controller.ino - Occupancy confirmation
firmware/main_controller/main_controller.ino - Automatic lighting
firmware/main_controller/main_controller.ino - Temperature fan control
firmware/main_controller/main_controller.ino
Camera Streaming
- Camera HTTP server
firmware/camera_webserver/app_httpd.cpp - Embedded camera page
firmware/camera_webserver/camera_index.h
Other components
- Cabin occupant
- Light load
- Fan relays
- Camera hardware
- Stream viewer
Connections 17
- Cabin occupant → Camera motion detection: moves before
README.md - Camera motion detection → Camera GPIO signal: signals presence
README.md - Camera GPIO signal → Main controller: GPIO signal
README.md - Cabin occupant → Ultrasonic proximity: approaches sensor
README.md - Ultrasonic proximity → Occupancy confirmation: reports distance
README.md - Main controller → Occupancy confirmation: combines signals
README.md - Main controller → Environment sensing: reads conditions
README.md - Environment sensing → Automatic lighting: provides brightness
README.md - Environment sensing → Temperature fan control: provides temperature
README.md - Occupancy confirmation → Automatic lighting: gates lighting
README.md - Occupancy confirmation → Temperature fan control: gates fan
README.md - Automatic lighting → Light load: switches
README.md - Temperature fan control → Fan relays: sets speed
README.md - Stream viewer → Camera HTTP server: requests stream
README.md - Camera HTTP server → Camera hardware: captures frames
firmware/camera_webserver/app_httpd.cpp - Camera HTTP server → Embedded camera page: serves embedded page
firmware/camera_webserver/app_httpd.cpp - Camera HTTP server → Stream viewer: streams MJPEG
README.md