Arduino Project
Arduino Radar System Project with Ultrasonic Sensor V8
Course Introduction
In this project, we’ll build a Radar Warning System using an ultrasonic sensor, servo, LCD, stepper motor, and buzzer.
The servo scans the area, and when an object comes within 20 cm, the system enters ALERT mode: the LCD shows a warning, the red LED and buzzer blink, and the stepper motor sweeps back and forth. Once the object leaves, the system resets to normal with the green LED on and “Area is Empty” displayed.
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 | Passive Buzzer | 1 | |
6 | Ultrasonic Sensor Module | 1 | |
7 | 1kΩ resistor | 4 | |
8 | I2C LCD 1602 | 1 | |
9 | 4-Digit Segment Display Module | 1 | |
10 | LED | 4 | |
11 | Stepper Motor 28BYJ-48 ULN2003 Drive Module 5 | 1 |
Wiring

Common Connections:
LED
Red LED: Connect the LEDs anode to a 1kΩ resistor then to the 3 on Arduino, and the LEDs cathode to negative power bus on the breadboard.
Green LED: Connect the LEDs anode to a 1kΩ resistor then to the 4 on Arduino, and the LEDs cathode to negative power bus on the breadboard.
Digital Servo Motor
Connect to breadboard’s positive power bus.
Connect to breadboard’s negative power bus.
Connect to 7 on the Arduino.
Buzzer
Connect to breadboard’s negative power bus.
Connect to 2 on the Arduino.
Ultrasonic Sensor Module
Trig: Connect to 6 on the Arduino.
Echo: Connect to 5 on the Arduino.
GND: Connect to breadboard’s negative power bus.
VCC: Connect to breadboard’s red power bus.
Stepper Motor 28BYJ-48 ULN2003 Drive Module 5
IN1: Connect to 11 on the Arduino.
IN2: Connect to 10 on the Arduino.
IN3: Connect to 9 on the Arduino.
IN4: Connect to 8 on the Arduino.
I2C LCD 1602
SDA: Connect to A4 on the Arduino.
SCL: Connect to A5 on the Arduino.
GND: Connect to breadboard’s negative power bus.
VCC: Connect to breadboard’s red power bus.
Writing the Code
Note
You can copy this code into Arduino IDE.
To install the library, use the Arduino Library Manager and search for LiquidCrystal_I2C and Stepper and install it.
Don’t forget to select the board(Arduino UNO R4 WIFI) and the correct port before clicking the Upload button.
