Skip to content

SurbhiSBharti/Object-detection-using-Arduino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Radar System using Arduino and Ultrasonic Sensor

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.

πŸ› οΈ Components and Supplies

  • SG90 Micro-Servo Motor
  • Ultrasonic Sensor HC-SR04
  • Arduino UNO

πŸ’» Platforms Used

  • Arduino IDE
  • Processing IDE

βš™οΈ How It Works

  • 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.

πŸ”Œ Hardware Connections

Ultrasonic Sensor ↔ Arduino

  • VCC β†’ 5V
  • GND β†’ GND
  • TRIG β†’ Pin 2
  • ECHO β†’ Pin 3

Servo Motor ↔ Arduino

  • RED β†’ 5V
  • BROWN β†’ GND
  • ORANGE β†’ Pin 4

Note: Sensor is temporarily mounted on the servo using a glue gun.

πŸ’» Software Implementation

Arduino IDE

  • Reads distance using HC-SR04.
  • Rotates the servo motor between predefined angles.
  • Sends distance and angle data to the Processing IDE via serial communication.

Processing IDE

  • Reads serial data from Arduino.
  • Visualizes radar sweep.
  • Changes radar color based on object detection (green/red lines).

πŸ“ˆ Outcome

  • Real-time object detection and radar visualization.
  • Successfully simulates a basic radar system for educational and prototyping purposes.

πŸ“Œ Skills Demonstrated

  • Embedded Systems Programming
  • Sensor Integration
  • Serial Communication
  • Real-time Data Visualization
  • Hardware Prototyping

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published