A radar system built with Arduino to detect objects using an ultrasonic sensor. The detected data is visualized in real-time using the Processing IDE.
- SG90 Micro-Servo Motor
- Ultrasonic Sensor HC-SR04
- Arduino UNO
- Arduino IDE
- Processing IDE
- The ultrasonic sensor is mounted on the servo motor, which rotates to scan the surrounding area.
- The sensor scans within a range of up to 200 cm.
- Based on distance data:
- Green lines are displayed if no object is within 40 cm.
- Red lines appear when an object is detected within the threshold.
- Radar visuals are displayed using the Processing IDE.
- VCC β 5V
- GND β GND
- TRIG β Pin 2
- ECHO β Pin 3
- RED β 5V
- BROWN β GND
- ORANGE β Pin 4
Note: Sensor is temporarily mounted on the servo using a glue gun.
- Reads distance using HC-SR04.
- Rotates the servo motor between predefined angles.
- Sends distance and angle data to the Processing IDE via serial communication.
- Reads serial data from Arduino.
- Visualizes radar sweep.
- Changes radar color based on object detection (green/red lines).
- Real-time object detection and radar visualization.
- Successfully simulates a basic radar system for educational and prototyping purposes.
- Embedded Systems Programming
- Sensor Integration
- Serial Communication
- Real-time Data Visualization
- Hardware Prototyping