Radar System Report
Radar System Report
Department Electronics
ELE-397 Microprocessor Based LAB
“Radar System”
Report
Names of student ID
NASEEB ULLAH 04101613044
BABAR ALI 04101613035
ABDUL QADEER KHAN 04101613018
Submitted to
Sir . Adil
Radar System
“Rangefinder”
Abstract:
A rangefinder is a device that measures the distance from the target to the
observer, for the purposes of surveying, determining focus in photography, or
accurately aiming a weapon . In this technical project, we make a simple radar
using the ultrasonic sensor, this radar works by measuring a range from 3cm to 40
cm as non-contact distance, with angle range between 15˚ and 165˚.The
movement of the sensor is controlled by using a small servo motor. Information
received from the sensor will be used by “Processing Development Environment”
software to illustrate the result on a PC screen.
1- Introduction:
The main components in any ultrasonic radar are the ultrasonic Sensors.
Ultrasonic sensors work on a principle similar to radar or sonar which evaluates
attributes of a target by interpreting the echoes from radio or sound waves
respectively.
Radar’s information will appear in different ways. Basic and old radar station
used sound alarm or LED, modern radar uses LCD display to show detailed
information of the targeted object. We use Computer screen to show the
information (distance and angle).
Fig(2-1).Arduino UNO
Specifications
Free to download and open source
Interactive programs with 2D, 3D or PDF output
OpenGL integration for accelerated 2D and 3D
For GNU/Linux, Mac OS X, and Windows
Over 100 libraries extend the core software
Well documented, with many books available
The basic principle of work. Fig (4-2).
Tiny and lightweight with high output power. The servo can rotate
approximately 180 degrees (90 in each direction), and works just like the standard
kinds but smaller Fig (5). You can use any servo code, hardware or library to
control these servos.
Specifications
Weight: 9 g
Dimension: 22.2 x 11.8 x 31 mm approx.
Stall torque: 1.8 kg f cm
Operating speed: 0.1 s/60 degree
Operating voltage: 4.8 V (~5V)
Temperature range: 0 ºC – 55 ºC
Fig(5).ServoMotor
Tower Pro Micro Servo 9g
Fig(6).ServoMotor.cable code
2-5 Breadboards:
Fig(7).Breadboard
3- Work procedure:
Components needed for this Project
Arduino Board UNO Model.
Processing software.
Ultrasonic sensor HC- SR04.
Servo Motor tower pro micro servo 9g.
Breadboard and Jump Wires.
And the servo motor to the pin number 12 on the Arduino Board. Fig (8)
shows circuit structure for the project.
MyServo = 13.
Fig(9).Ultrasonic Base
Here’s the final appearance of the project:
Fig(10).Final appearance
We wrote a sketch in IDE, for this project we need to include some
libraries. We use (Serial.h) built-in library for transfer data through the
serial
port with processing software. Therefore, we add the last library for servo
motor (Servo.h) and added NewPing library which includes the last update
functions and features for the ultrasonic sensor. Fig (11).
Then, we make a code and upload it to the Arduinoboard to enable the interaction
between the Arduino and the Processing IDE Fig(12).
Fig(12).Project Code
3-3 Write and upload sketch to Processing
The values for the angle and the distance measured by the sensor will be
read from the Arduino board by the Processing IDE using the SerialEvent()
function which reads the data from the Serial Port. Thesevalues will be used
for drawing the lines, the detected objects and some texts.
For drawing the radar display we make this function drawRadar() which consist of
arc() and line() functions Fig(13).
For drawing the detected objects we made the drawObject() function. It
receives the distance from the ultrasonic sensor, transforms it into pixels. Then,
using the angle detected by the sensor it draws the object on the radar screen
Fig
(15).
To illustrate the text on the screen, we make the draw Text() function that
draws texts on some particular locations. All of these functions are called in
the maindraw( ) function which is repeated in each iteration to draw the screen
details.
We are using the fill( ) function with 2 parameters for simulating motion
blur and slow fade of the moving line. Fig (16) shows the final
appearance of the radar screen:
Fig(16). Radar Screen
Conclusion