IoT · 2026
Smart Radar Security System (ESP32)
ESP32, HC-SR04 ultrasonic sensor and servo that sweeps 180 degrees; an LED triggers when an object is within range; distance and angle printed to the serial monitor.
Model
- HC-SR04 pulse-echo distance measurement (speed-of-sound timing)
- Servo sweep mapped to a polar (angle, distance) scan
- Threshold rule: object inside range triggers the LED alarm
Dataset
No dataset — measurements come live from the HC-SR04 at each servo step.
Results & metrics
- Sweep
- 0–180°
- Sensor
- HC-SR04 (~2–400 cm)
- Alert
- LED on detection
Deployment steps
- 1Wire HC-SR04 + servo to the ESP32
- 2Flash the C++ sketch via the Arduino IDE
- 3Calibrate the detection threshold and servo step
- 4Watch the serial monitor for live (angle, distance) readings
Tech stack
- ESP32
- HC-SR04
- Servo
- C++