In this article, we use the Arduino development board and ultrasonic sensor to design a radar model for detection and ranging.RADAR is an object detection system that uses radio waves to identify the range, height, direction, and speed of objects.The radio wave pulses emitted by the radar antenna will be reflected from any object in its path.The object returns a part of the wave and is received by the receiver, which is on the same line as the transmitter.
This Arduino radar project aims to implement a radar system prototype based on the Arduino development board, capable of detecting stationary and moving objects.
Required components
In order to design an Arduino radar model using an ultrasonic sensor, we need the following components.
● Arduino UNO development board
● Servo motorSG90
● Ultrasonic sensorHC-SR04
● Buzzer
● 1602 LCD display
● Breadboard
● Connection line
Block diagram and connection
The following is the block diagram of the Arduino radar model:
The core of the project uses the Arduino UNO development board, which detects the objects in front through ultrasonic waves, uses a motor to change the angle, and displays the results on the LCD display.The specific circuit connection is as follows:
Working process of Arduino radar prototype using ultrasonic sensor
The Arduino development board sends a +5V signal to the trigger pin of the ultrasonic sensor HC-SR04, which triggers the sensor, and then provides a rotation action on the servo motor mechanically installed with the ultrasonic sensor HC-SR04 so that it can detect moving objects and Positioned within 180 degrees.
Arduino sends (10S) HIGH pulse width on the TRIGGER pin of the sensor to regenerate a series of ultrasonic waves propagating in the air until it touches an obstacle, and then returns to the sensor pin ECHO in the opposite direction.The sensor detects the width of the pulse to calculate the distance.The sensor keeps the signal on the pin ECHO in the HIGH position during the transmission, so as to measure the duration of the ultrasonic round-trip to determine the distance.
The LCD display shows the calculated distance and rotation angle.The buzzer is an additional component. When an obstacle is detected, it will sound and the LED will light up at the same time.These two LEDs and the buzzer together determine the area (near or far) where the object is located.