Arduino Based RADAR Report
Arduino Based RADAR Report
INTRODUCTION
1.1 A Brief Introduction
RADAR is an object detection system which uses radio waves to determine
the range, altitude, direction, or speed of objects. Radar systems come in a variety of
sizes and have different performance specifications. Some radar systems are used for
air-traffic control at airports and others are used for long range surveillance and earlywarning systems. A radar system is the heart of a missile guidance system. Small
portable radar systems that can be maintained and operated by one person are
available as well as systems that occupy several large rooms.
Radar was secretly developed by several nations before and during World War II. The
term RADAR itself, not the actual development, was coined in 1940 by the United
States Navy as an acronym for radio Detection and Ranging. The term radar has since
entered English and other languages as the common noun radar, losing all
capitalization.
The modern uses of radar are highly diverse, including air traffic control, radar
astronomy, air-defense
systems, antimissile
systems; marine
radars to
locate
landmarks and other ships; aircraft anti-collision systems; ocean surveillance systems,
outer
space
surveillance
precipitation
monitoring; altimetry and flight control systems; guided missile target locating
systems; and ground-penetrating radar for geological observations. High tech radar
systems are associated with digital signal processing and are capable of extracting
useful information from very high noise levels.
Chapter 2
LITERATURE SURVEY
2.1 The Idea
Army, Navy and the Air Force make use of this technology. The use of such
technology has been seen recently in the self parking car systems launched by AUDI,
FORD etc. And even the upcoming driverless cars by Google like Prius and Lexus.
The project made by us can be used in any systems the customer may want to use like
in a car, a bicycle or anything else. The use of Arduino [1] in the project provides
even more flexibility of usage of the above-said module according to the
requirements.
The idea of making an Ultrasonic RADAR came as a part of a study carried out on the
working and mechanism of Automobiles of Future. Also, being students of ECE,
we have always been curious about the latest ongoing technology in the world like
Arduino, Raspberry Pi, Beagle-Bone boards etc. An hence this time we were able to
get a hold of one of the Arduino boards, Arduino UNO R3. So, knowing about the
power and vast processing capabilities of the Arduino, we thought of making it big
and a day to day application specific module that can be used and configured easily at
any place and by anyone.
Moreover, in this fast moving world there is an immense need for the tools that can be
used for the betterment of the mankind rather than devastating their lives. Hence, we
decided to make some of the changes and taking the advantage of the processing
capabilities of Arduino [1], we decided to make up the module more application
specific.
Hence, from the idea of the self driving cars came the idea of self parking cars. The
main problem of the people in India and even most of the countries is safety while
driving. So, we came up with a solution to that by making use of this project to
continuously scan the area for traffic, population etc. and as well as protection of the
vehicles at the same time to prevent accidents or minor scratches to the vehicles.
Chapter 3
"Uno" means one in Italian and is named to mark the upcoming release of Arduino
1.0. The Uno and version 1.0 will be the reference versions of Arduino, moving
forward. The Uno is the latest in a series of USB Arduino boards, and the reference
model for the Arduino platform; for a comparison with previous versions, see
the index of Arduino Boards.
Microcontroller
Operating Voltage
Input Voltage
ATmega328
5V
7-12V
(recommended)
Input Voltage (limits)
Digital I/O Pins
Analog Input Pins
DC Current per I/O Pin
DC Current for 3.3V Pin
Flash Memory
6-20V
14 (of which 6 provide PWM output)
6
40 mA
50 mA
32 KB (ATmega328) of which 0.5 KB used by
SRAM
EEPROM
Clock Speed
bootloader
2 KB (ATmega328)
1 KB (ATmega328)
16 MHz
is
by Atmel and
belongs to the mega AVR series. The high-performance Atmel 8-bit AVR RISC-based
microcontroller
combines
with
read-while-write
oscillator
is
an electronic
oscillator circuit
that
uses
the
circuits,
and
to
stabilize
frequencies
for radio
transmitters and receivers. The most common type of piezoelectric resonator used is
7
the quartz crystal, so oscillator circuits incorporating them became known as crystal
oscillators, but other piezoelectric materials including polycrystalline ceramics are
used in similar circuits.
Quartz crystals are manufactured for frequencies from a few tens of kilohertz to
hundreds of megahertz. More than two billion crystals are manufactured annually.
Most are used for consumer devices such as wristwatches, clocks, radios, computers,
and cell phones. Quartz crystals are also found inside test and measurement
equipment, such as counters, signal generators, and oscilloscopes.
Ultrasonic sensors [7] (also known as transceivers when they both send and
receive, but more generally called transducers) work on a principle similar
to radar or sonar which evaluate attributes of a target by interpreting the echoes from
radio or sound waves respectively. Ultrasonic sensors generate high frequency sound
waves and evaluate the echo which is received back by the sensor. Sensors calculate
the time interval between sending the signal and receiving the echo to determine the
distance to an object.
This technology can be used for measuring wind speed and direction (anemometer),
tank or channel level, and speed through air or water. For measuring speed or
direction a device uses multiple detectors and calculates the speed from the relative
distances to particulates in the air or water. To measure tank or channel level, the
sensor measures the distance to the surface of the fluid. Further applications
include: humidifiers, sonar, medical
ultra
sonography, burglar
destructive testing.
Systems typically use a transducer which generates sound waves in the ultrasonic
range, above 18,000 hertz, by turning electrical energy into sound, then upon
receiving the echo turn the sound waves into electrical energy which can be measured
and displayed.
10
Chapter 4
PRACTICAL IMPLEMENTATION
4.1 Making own Arduino Uno Board/Boot Loading the ATmega328
Since, we believe in learning by doing. So, we decided to make our own arduino
board instead of using the readymade board. So, the steps required to make an arduino
board [8] are as follows:
Boot loading an Atmega328 using the Arduino board by uploading the boot loader
program to the Microcontroller.
11
12
After you have done all this, then only the minimum circuitry like crystal oscillator,
capacitors, connectors, power supply is required to complete the board. The same
circuit can be made on the PCB, either designed or general purpose. Since, Arduino is
an Open-Source. Hence, it is easy to make and can have any enhancements as per the
requirements.
14
15
16
Arduino integrated
development
environment (IDE)
is
a cross-
platform application written in Java, and is derived from the IDE for the Processing
programming language and the Wiring projects. It is designed to introduce
programming to artists and other newcomers unfamiliar with software development. It
includes a code editor with features such as syntax highlighting, brace matching, and
automatic indentation, and is also capable of compiling and uploading programs to the
board with a single click. A program or code written for Arduino is called a "sketch".
Arduino programs are written in C or C++. The Arduino IDE comes with a software
library called "Wiring" from the original Wiring project, which makes many common
input/output operations much easier. Users only need define two functions to make a
run able cyclic executive program:
Setup(): a function run once at the start of a program that can initialize settings
Open the Arduino IDE software and select the board in use. To select the board:
Go to Tools.
Select Board.
Under board, select the board being used, in this case Arduino Uno.
Go to Tools and to Port and select the port at which the arduino board is
connected.
17
Write the code in the space provided and click on compile. Once the code is compiled,
click on upload to upload the sketch to the Arduino board.
4.5 Using the Processing Software
Processing is
an open
source programming
development environment (IDE) built for the electronic arts, new media art,
and visual design communities with the purpose of teaching the fundamentals
of computer programming in a visual context, and to serve as the foundation for
electronic
sketchbooks.
The
project
was
initiated
in
2001
by Casey
Reas and Benjamin Fry, both formerly of the Aesthetics and Computation Group at
the MIT Media Lab. One of the stated aims of Processing is to act as a tool to get nonprogrammers started with programming, through the instant gratification of visual
feedback. The language builds on the Java language, but uses a simplified syntax and
graphics programming model.
18
The Arduino boards are available readily in the electronics market, but we decided
to make our own Arduino board instead of buying one. So, the first problem was
where to start from to achieve this goal. Since, all parts on an arduino board are
SMDs, so we had to find a way to replace the SMDs with DIP ICs and also had to
make an AVR programmer in order to pursue our further work. Hence, it took us some
days to determine and plan our course of action.
After that we had to boot load the AVR chip so as to make it compatible with the
Arduino IDE software. Hence, we had to find a way to boot load the Arduino using
the AVR programmer. It took us a long time to make the AVR programmer by
19
Another major problem related to the Arduino board was the communication with it
from PC. Since, we require RS-232 to TTL conversion for the communication, so we
tried some methods:
1. Firstly we used the MAX-232 IC to communicate with the Arduino as with the
8051 but due to large voltage drop and mismatch in the speed, it failed to
communicate.
2. Next, we tried to use a dedicated AVR as USB to Serial converter as in the original
arduino board, the difference being DIP AVR used by us instead of the SMD
Mega16U2 controller. But, unfortunately we were unable to communicate through
it.
3. At last we had no other choice but to complete the project in time by using the
FTDI FT-232R chip for USB to Serial conversion. Finally IT WORKED!!!
4.6.3
this we used VB.NET to form the RADAR screen but interfacing it with the Arduino
input was a little bit of a problem and not synchronized with the Arduino input. After
a lot of trials, we came to know about the Processing software (Version 2.0). So, we
had to go through a lot of programs to finally program it to form the RADAR screen.
Chapter 5
20
5.1 Applications
in Air
Force
In aviation, aircraft are equipped with radar devices that warn of aircraft or
other obstacles in or approaching their path, display weather information, and give
accurate altitude readings. The first commercial device fitted to aircraft was a 1938
Bell Lab unit on some United Air Lines aircraft. Such aircraft can land in fog at
airports equipped with radar-assisted ground-controlled approach systems in which
the plane's flight is observed on radar screens while operators radio landing directions
to the pilot.
21
22
Figure 5.4 Army Using Radar to Spot Suicide Bombers From100 Yards [12]
Two
video
cameras automatically detect and track individuals walking anywhere near the system,
within the range of a soccer field. Low-level radar beams are aimed at them and then
reflected back to a computer, which analyzes the signals in a series of algorithms. It
does this by comparing the radar return signal (which emits less than a cell phone) to
an extensive library of normal responses. Those responses are modeled after people
of all different shapes and sizes (SET got around to adding females in 2009). It then
compares the signal to another set of anomalous responses any anomaly, and
horns go off. Literally, when the computer detects a threat, it shows a red symbol and
sounds a horn. No threat and the symbol turns green, greeting the operators with a
pleasant piano riff.
5.4 Meteorological Applications
Meteorologists [13] use radar to monitor precipitation and wind. It has become
the primary tool for short-term weather forecasting and watching for severe
weather such
storms,
precipitation
types,
24
25
26
REFERENCES
[1] http://www.arduino.cc/
[2] http://www.arduinoproducts .cc/
[3] http://www.atmel.com/atmega328/
[4] http://en.wikipedia.org/wiki/File:16MHZ_Crystal.jpg
[5]http://www.google.co.in/imgres?imgurl=http://www.electrosome.com/wpcontent/uploads/2012/06/ServoMotor.gif&imgrefurl=http://www.electrosome.co
m/tag/servomotor/&h=405&w=458&sz=67&tbnid=rcdlwDVt_x0DdM:&tbnh=1
00&tbnw=113&zoom=1&usg=__6J2h0ZocdoSMrS1qgK1I2qpTQSI=&docid=lE
fbDrEzDBfzbM&sa=X&ei=a_OKUvTbD8O5rgeYv4DoDQ&ved=0CDwQ9QE
[6] http//:www.sproboticworks.com/ic%20pin%20configuration/7805/Pinout.jpg/
[7] http://www.sproboticworks.com/ic%ultrasonicsensor%20pinout.jpg
[8] http://www.instructables.com/id/ ATMega328-using-Arduino-/
[9] http://www.motherjones.com/files/blog_google_driverless_car.jpg
[10] http://www.google.co.in/imgres/Radar_antenna.jpg&w=546&h=697&ei=wuuK
[11] http://www.radomes.org/museum/photos/equip/ANSPS17.jpg
[12] http://www.wired.com/dangerroom/2011/07/ suicide-bombers-from-100-yards/
[13] http://upload.wikimedia.org/wikipedia/commons/Radaraccumulationseng.png
[14] http://arduino.cc/en/Tutorial/BarGraph/
[15] http://arduino.cc/en/Tutorial/LiquidCrystal/
[16] http://fritzing.org/
27