{"schema_version":1,"id":"omkar703-car-dangerzone-detection","name":{"en":"Car Danger Zone","zh":"用 ESP32 车辆遥测、地理围栏和 Android 导航实现动态限速与危险区预警。"},"summary":{"en":"Dynamic Car Speed Controller (DSC) & Danger Zone Detection: Cyber-physical vehicle speed regulation with ESP32 telemetry, geospatial geofencing, and Android Jetpack Compose supervisory navigation.","zh":"用 ESP32 车辆遥测、地理围栏和 Android 导航实现动态限速与危险区预警。"},"purpose":"vehicle speed alert","tier":"community","author":"omkar703","repository":"https://github.com/omkar703/Car_DangerZone_detection","license":"Apache-2.0","shape":"robot","scenes":["tools"],"boards":[{"name":"ESP32"}],"motion":true,"hardware":{"en":"ESP32-class board. Verify the exact board revision, display, power source and wiring in the upstream build guide.","zh":"ESP32 类开发板；请在上游构建文档中核对具体板型、屏幕、供电与接线。"},"notes":{"en":"A four-wheel test car carries an ESP32 DevKit with a NEO-6M GPS on UART2, an HC-SR04 on the front bumper, an L298N driving the motors and a 5 V piezo horn; a Kotlin and Jetpack Compose phone app does the map, the geofencing and the talking. 61 accident hotspots from Indian highways are stored as 500 m circles, split into high (40 km/h) and medium (50 km/h) risk, and the car's position is compared with the Haversine formula. Inside a zone, PWM drops from 100% to 65% or 31%; below 35 cm the ultrasonic sensor forces 0% and stops the car. Reported latencies are 42.5 ms for a geofence and 28 ms for the emergency stop. Building the app needs Android SDK 35, JDK 17 and Google Maps, OpenRouteService and Firebase keys; the firmware is one .ino that needs TinyGPSPlus.","zh":"一辆四轮小车当试验台：ESP32 DevKit 接 NEO-6M GPS（UART2）、车头 HC-SR04、L298N 双 H 桥和 5V 蜂鸣器，手机上的 Kotlin + Jetpack Compose 应用负责地图、地理围栏和语音提示。数据里是印度几条干线上的 61 个事故热点，每个按 500 米半径成圈，分高（40 km/h）、中（50 km/h）两档限速，车辆位置用 Haversine 公式比对。进圈后 PWM 从 100% 降到 65% 或 31%，前方 35 cm 内有障碍时超声直接压到 0% 刹停。论文里给的围栏延迟是 42.5 ms，急停反应 28 ms。手机端要 Android SDK 35、JDK 17，还要自己填 Google Maps、OpenRouteService 和 Firebase 的密钥；单片机端只有一个 .ino，依赖 TinyGPSPlus。"},"readme_excerpts":[{"label":"Sensor","quote":"an HC-SR04 ultrasonic obstacle sensor"},{"label":"Geofence","quote":"A geofence activation condition triggers when"},{"label":"Dataset","quote":"Records: 61 georeferenced hotspots"},{"label":"Result","quote":"Mean Geofence Detection Latency: $42.5\\text{ ms}$"},{"label":"App","quote":"A native Android application built with Kotlin and Jetpack Compose"}],"images":{"type":"gallery","primary":"https://esp32gallery.com/previews/omkar703-car-dangerzone-detection/poster.jpg","poster":"https://esp32gallery.com/previews/omkar703-car-dangerzone-detection/poster.jpg","sources":["https://esp32gallery.com/previews/omkar703-car-dangerzone-detection/frames/view-001.jpg","https://esp32gallery.com/previews/omkar703-car-dangerzone-detection/frames/view-002.jpg","https://esp32gallery.com/previews/omkar703-car-dangerzone-detection/frames/view-003.jpg","https://esp32gallery.com/previews/omkar703-car-dangerzone-detection/frames/view-004.jpg"]},"media_credit":{"status":"upstream-project-media","creator":"omkar703","source":"https://github.com/omkar703/Car_DangerZone_detection/tree/9b615b386d1b8a1799b80c4d44a1ef31294f6298","note":{"en":"Screenshots from the upstream README. Code and firmware were not executed. License notices are included.","zh":"来自上游 README 的真实截图；未运行代码或固件，预览包保留许可证声明。"},"reviewed":"2026-10-20"},"preview":{"browser_playable":false,"kind":"media_gallery","label":{"en":"Project screenshots","zh":"项目截图"},"width":960,"height":720,"shape":"square","source_commit":"9b615b386d1b8a1799b80c4d44a1ef31294f6298"},"stars":0,"pushed_at":"2026-10-18T01:24:36Z","added_at":"2026-10-20T14:44:01+08:00","urls":{"html":"https://esp32gallery.com/projects/omkar703-car-dangerzone-detection/","html_zh":"https://esp32gallery.com/zh/projects/omkar703-car-dangerzone-detection/","json":"https://esp32gallery.com/data/catalog/projects/omkar703-car-dangerzone-detection.json","markdown":"https://esp32gallery.com/data/catalog/projects/omkar703-car-dangerzone-detection.md"}}
