Skip to content

🚀 Radar System using Arduino - #85

Closed
shirshanag wants to merge 5 commits into
acesdit:mainfrom
shirshanag:feat/ultrasonic-sensor
Closed

🚀 Radar System using Arduino#85
shirshanag wants to merge 5 commits into
acesdit:mainfrom
shirshanag:feat/ultrasonic-sensor

Conversation

@shirshanag

Copy link
Copy Markdown
Contributor

🛰️ Overview

This project implements a Radar System using an Arduino, Ultrasonic Sensor (HC-SR04), Servo Motor, and I2C LCD Display.
The system continuously scans the surroundings using a servo-mounted ultrasonic sensor and displays the angle and distance of detected objects in real-time on the LCD.


⚙️ Features

  • 🔄 Servo motor sweep from 0° → 180° → 0°
  • 📏 Real-time distance measurement
  • 💡 Clear LCD display output
  • 🧠 Beginner-friendly and well-commented code

🔌 Hardware Connections

Component Arduino Pin Description
Servo Motor D3 PWM Signal
Ultrasonic Trig D9 Trigger Pin
Ultrasonic Echo D10 Echo Pin
LCD SDA A4 I2C Data
LCD SCL A5 I2C Clock
Power 5V, GND Power Connections

🧩 Libraries Used

  • Servo.h
  • Wire.h
  • LiquidCrystal_I2C.h

🧠 Working Principle

  1. The servo rotates the ultrasonic sensor from 0° to 180°.
  2. The HC-SR04 sensor measures the distance of nearby objects.
  3. The LCD displays both the angle and distance (in cm).
  4. The process repeats continuously to simulate a radar scan.

🧾 Output Example

Angle: 90°
Dist: 22 cm


📦 Future Improvements

  • ⚠️ Add LED/Buzzer alert for close obstacles
  • 📊 Visualize radar scan on PC or serial monitor
  • 🌐 Send data to IoT dashboard (ThingSpeak / Blynk)

Status: Ready for Review
Tested on: ESP32
Simulation Support: Optional (Tinkercad / Wokwi)


🧑‍💻 Contributor: @shirshanag

This code implements a radar system using a servo and ultrasonic sensor. It displays the angle and distance on an LCD while sweeping the servo.
This readme provides an overview of the Arduino Radar System project, including components, working principle, pin connections, code overview, and features.
@shirshanag shirshanag closed this Oct 20, 2025
@shirshanag
shirshanag deleted the feat/ultrasonic-sensor branch October 20, 2025 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant