Arduino Project

Arduino Radar System Project with Ultrasonic Sensor V10

Course Introduction

In this lesson, you’ll build an ultrasonic safety scanner using a servo, LEDs, and a buzzer. The servo sweeps the ultrasonic sensor to detect distance, while the LEDs change from green to yellow to red based on how close an object is. In danger zones, the buzzer sounds an alert with different beeping patterns.

Note

If this is your first time working with an Arduino project, we recommend downloading and reviewing the basic materials first.

1.1 Install Arduino IDE(Important)
1.2 Introduction of Arduino IDE

Required Components

In this project, we need the following components:

SN

COMPONENT INTRODUCTION

QUANTITY

PURCHASE LINK

1

Arduino UNO R4 Minima/Arduino UNO R4 WIFI

1

2

USB Type-C cable

1

×

3

Breadboard

1

BUY

4

Wires

Several

5

Buzzer Module

1

6

Ultrasonic Sensor Module

1

7

Traffic Light LED

1

8

I2C LCD 1602

1

9

Digital Servo Motor

1

Wiring

7.webp__PID:a8af6410-d3b5-44cc-8501-4934a9f81701

Common Connections:

Traffic light LED
R: Connect to 2 on the Arduino.
Y: Connect to 3 on the Arduino.
G: Connect to 4 on the Arduino.
GND: Connect to GND on the Arduino.

Digital Servo Motor
Connect to breadboard’s positive power bus.
Connect to breadboard’s negative power bus. 
Connect to 12 on the Arduino.

Buzzer Modudle
I/O:
Connect to 5 on the Arduino.
GND: Connect to breadboard’s negative power bus.
VCC: Connect to breadboard’s red power bus.

Ultrasonic Sensor Module
Trig: Connect to 11 on the Arduino.
Echo: Connect to 10 on the Arduino.
GND: Connect to breadboard’s negative power bus.
VCC: Connect to breadboard’s red power bus.

Writing the Code

Note
Build the circuit.
Upload the code to the Arduino board using Arduino IDE.
In the Arduino IDE, check the current Arduino port(COMx).
To install the library, use the Arduino Library Manager and search for LiquidCrystal_I2C and install it.
The ArduinoRadarGUI is used here. You can click here Radar_Guard9.0.zip to download it.
Open ArduinoLidarGUI.pde in the Processing IDE .
Modify the code in line 35 to ensure the correct port number(COMx).
Run the Processing sketch to visualize the radar data.