This project implements an ultrasonic radar system using Arduino for hardware control and Processing for visualization. The system scans surroundings by rotating a servo motor with an ultrasonic sensor and displays detected objects on a radar interface.
Preview video (youtube): Simple Arduino Security Prototype
- 180° area scanning using servo motor rotation
- Distance measurement using ultrasonic sensor
- Sound detection capability
- Light-dependent activation (LDR sensor)
- Visual (LED) and audio (buzzer) warnings
- Timeout warning system with button reset
- Real-time radar visualization interface
- Arduino board
- Ultrasonic sensor (HC-SR04)
- Servo motor
- Sound sensor
- Light Dependent Resistor (LDR)
- LED
- Buzzer
- Button
- Connecting wires
main.c- Arduino code for sensor control and data processingradar.java- Processing code for the radar visualization interface
- Connect components to Arduino according to defined pin configuration in
main.c - Upload
main.cto Arduino board - Set the correct serial port in
radar.java(currently "COM5") - Run the Processing sketch to start the visualization
- The system activates when sufficient light is detected by the LDR
- The servo rotates between 15° and 115° continuously
- Distance is measured at each angle position
- Warnings are triggered when objects are detected within 10cm (can be adjust) or loud sounds are detected
- A timeout warning activates after 5 minutes of operation
- The button resets warnings and timeout

