Академический Документы
Профессиональный Документы
Культура Документы
1 . INTRODUCTION
RADAR stands for Radio Detection and Ranging. RADAR is an electromagnetic
system used to detect the location and distance of an object from the point where the
RADAR is placed. It works by radiating energy into space and monitoring the Echo or
reflected signal from the objects. It operates in the UHF and microwave range RADAR
information is obtained in different ways sound alarm or LED, modern uses LCD display or
a PC to show detailed information of the targeted object (distance and angle).The main
principle of RADAR system depends on the type of ultrasonic sensor which evaluates
attributes of a target by interpreting the echoes from radio or sound waves. When instead of
electromagnetic waves, we use ultrasonic waves; it is called ultrasonic radar.
RADAR’s are of different types, mostly based on application specified, two major
types of radars are primary and secondary radars. While the primary radar work on basis of
detecting echo of radio waves transmitted by earth station, the secondary radar depends of
signal from transponders onboard the aircraft.
1. Surveillance Radars
2. Tracking Radars
3. Meteorological Radars
4. Imaging Radar
5. Radar Altimetry
1.1 HISTORY
The history of radar started with experiments by Heinrich hertz in the late
19th century that showed that radio waves were reflected by metallic objects. The first for
of RADAR created was Telemobilescope used to detect ships to avoid collisions. During
the 1970s digital technology underwent a tremendous advance, which made practical the
signal and processing required for modern radar. Significant advances also were made in
airborne pulse Doppler radar, greatly enhancing its ability to detect aircraft in the midst of
heavy ground clutter. The U.S. Force’s airborne-warning-and-control-system (AWACS)
radar and military airborne-intercept radar depend on the pulse Doppler principle. It
might be noted too, that radar began to be used in spacecraft for remote sensing of
the environment during the 1970s.
Over the next decade radar methods evolved to a point where radars were able to
distinguish one type of target from another. Serial production of phased-array radars for air
defense (the Patriot and Aegis systems), airborne bomber radar (B-1B aircraft), and ballistic
missile detection (Pave Paws) also became feasible during the 1980s. Advances in remote
sensing made it possible to measure winds blowing over the sea, the geoids (or mean sea
level), ocean roughness, ice conditions, and other environmental effects. Solid-state
technology and integrated microwave circuitry permitted new radar capabilities that had
been only academic curiosities a decade or two earlier.
The first ballistic missile defense radars were conceived and developed in the mid-
1950s and 1960s. Development in the United States stopped, however, with the signing in
1972 of the antiballistic missile (ABM) treaty by the Soviet Union and the United States.
The use of tactical ballistic missiles during the Persian Gulf War (1990–91) brought back
the need for radars for defense against such missiles. Russia (and before that, the Soviet
Union) continually enhanced its powerful radar-based air-defense systems to engage
tactical ballistic missiles. The Israelis deployed the Arrow phased-array radar as part of an
ABM system to defend their homeland. The United States developed a mobile active-
aperture (all solid-state) phased-array called Theater High Altitude Area Defense Ground
Based Radar (THAAD GBR) for use in a theatrewide ABM system.
Advances in digital technology in the first decade of the 21st century sparked
further improvement in signal and data processing, with the goal of developing (almost) all-
digital phased-array radars. High-power transmitters became available for radar application
in the millimeter-wave portion of the spectrum (typically 94 GHz), with average powers
100 to 1,000 times greater than previously.
We come across situations where we need to keep a watch over prohibited areas to
avoid trespassing. Now keeping human labor for this purpose is costly and also not reliable
for keeping a watch over an area 24×7. So for this purpose ultrasonic radar project for
unauthorized human / animal or object detection system can be used. The system can
monitor an area of limited range and alerts authorities. The radar keeps monitoring the
environment checking the ultrasonic sensor echo. As soon as an object is detected the data
of detection is processed and sent to authorities with an alert of where exactly the object
was detected. Thus ultrasonic radar proves to be a very useful system for 24×7 monitoring
of a particular area/region.
1.7 CONCLUSION
The objective of this project was to design and implement an Ultrasonic Distance
Measurement device. As described in this a system is developed that can calculate the
distance of the tracked object. With respect to the requirements for an ultrasonic
rangefinder the followings can be concluded.
The system can calculate the distance of the obstruction with sufficient accuracy.
This device has the capability to interact with other peripheral if used as a secondary
device.
This can also communicate with pc through its serial port.
This offers a low cost and efficient solution for non-contact type distance
measurements.
2. LITERATURE REVIEW
wire serial interface, SPI serial-port, a 6-channel 10bit ADC, The device operates between
1.8-5. 5volts.
"Uno" means one in Italian and was chosen to mark the release of Arduino Software
(IDE) 1.0. The Uno board and version 1.0 of Arduino Software (IDE) were the reference
versions of Arduino, now evolved to newer releases.
2.1.2 Why Arduino and differences between arduino and other boards
For eg. The 8051 is a microcontroller that has its microprocessor and also has the input
output pins and other stuff such as timers, counters etc. all on board. So basically a
microcontroller is a microprocessor based electronic device that can be deployed for real-
time applications and can be programmed. In a similar sense, an Arduino is simply a
microcontroller based development board.
The Uno differs from all preceding boards in that it does not use the FTDI USB-to-
serial driver chip. Instead, it features the Atmega16U2 (Atmega8U2 up to version R2)
programmed as a USB-to-serial converter.
2.1.3 Power
The Arduino Uno board can be powered via the USB connection or with an external
power supply. The power source is selected automatically. External (non-USB) power can
come either from an AC-to-DC adapter (wall-wart) or battery. The adapter can be
connected by plugging a 2.1mm center-positive plug into the board's power jack. Leads
from a battery can be inserted in the GND and Vin pin headers of the POWER connector.
The board can operate on an external supply from 6 to 20 volts. If supplied with less than
7V, however, the 5V pin may supply less than five volts and the board may become
unstable. If using more than 12V, the voltage regulator may overheat and damage the
board. The recommended range is 7 to 12 volts.
Vin: The input voltage to the Arduino/Genuino board when it's using an external
power source (as opposed to 5 volts from the USB connection or other regulated
power source). You can supply voltage through this pin, or, if supplying voltage via
the power jack, access it through this pin.
5V: This pin outputs a regulated 5V from the regulator on the board. The board can
be supplied with power either from the DC power jack (7 - 12V), the USB
connector (5V), or the VIN pin of the board (7-12V). Maximum current draw is 50
mA.
GND: Ground pins.
IOREF: This pin on the Arduino/Genuino board provides the voltage reference with
which the microcontroller operates. A properly configured shield can read the
IOREF pin voltage and select the appropriate power source or enable voltage
translators on the outputs to work with the 5V or 3.3V.
Microcontroller - ATmega328
Operating Voltage - 5V
SRAM - 2 KB (ATmega328)
EEPROM - 1 KB (ATmega328)
Length - 68.6 mm
Width - 53.4mm
PIN 10 VCC=+5V
PIN 11 GND
PIN 12 XTAL2
PIN 13 XTAL1
PIN 33-
PAx: I/O,ADCx (Where x is 7 – 0)
PIN 40
Features Atmega328P
Pin count 28
Flash 32K
SRAM 2K
EEPROM 1K
SPI 2
TWI 1
USART 1
ADC channels 8
Timers/Counters 8-bit 2
Timers/Counters 16-bit 1
The main function of the CPU core is to ensure correct program execution. The CPU
must therefore be able to access memories, perform calculations, control peripherals, and
handle interrupts.
ALU – Arithmetic Logic Unit: The high-performance AVR ALU operates in direct
connection with all the 32 general purpose working registers. Within a single clock cycle,
arithmetic operations between general purpose registers or between a register and an
immediate are executed. The ALU operations are divided into three main categories –
arithmetic, logical, and bit-functions. Some implementations of the architecture also
provide a powerful multiplier supporting both signed/unsigned multiplication and fractional
format.
Status Register: The Status Register contains information about the result of the most
recently executed arithmetic instruction. This information can be used for altering program
flow in order to perform conditional operations.
When addressing I/O Registers as data space using LD and ST instructions, the
provided offset must be used. When using the I/O specific commands IN and OUT, the
offset is reduced by 0x20, resulting in an I/O address offset within 0x00 - 0x3F.
Bit 7 – I: Global Interrupt Enable, The Global Interrupt Enable bit must be set for
the interrupts to be enabled. The individual interrupt enable control is then
performed in separate control registers. If the Global Interrupt Enable Register is
cleared, none of the interrupts are enabled independent of the individual interrupt
enable settings.
Bit 6 – T: The Bit Copy instructions BLD (Bit Load) and BST (Bit Store) use the
T-bit as source or destination for the operated bit. A bit from a register in the
Register File can be copied into T by the BST instruction, and a bit in T can be
copied into a bit in a register in the Register File by the BLD instruction.
Bit 5 – H: Half Carry Flag, The Half Carry Flag H indicates a Half Carry in some
arithmetic operations. Half Carry Flag is useful in BCD arithmetic.
General Purpose Register File: The Register File is optimized for the AVR Enhanced
RISC instruction set. In order to achieve the required performance and flexibility, the
following input/output schemes are supported by the Register File:
X-register, Y-register, Z-register including High and Low byte used in the different
addressing modes these address registers have functions as fixed displacement, automatic
increment, and automatic decrement.
Stack Pointer: The Stack is mainly used for storing temporary data, for storing local
variables and for storing return addresses after interrupts and subroutine calls. The Stack is
implemented as growing from higher to lower memory locations. The Stack Pointer
Register always points to the top of the Stack. The Stack Pointer points to the data SRAM
Stack area where the Subroutine and Interrupt Stacks are located.
A Stack PUSH command will decrease the Stack Pointer. The Stack in the data
SRAM must be defined by the program before any subroutine calls are executed or
interrupts are enabled.
Instruction Execution Timing: This section describes the general access timing concepts
for instruction execution. The AVR CPU is driven by the CPU clock (clkCPU), directly
generated from the selected clock source for the chip. No internal clock division is used.
The Figure below shows the parallel instruction fetches and instruction executions enabled
by the Harvard architecture and the fast-access Register File concept. This is the basic
pipelining concept to obtain up to 1 MIPS per MHz with the corresponding unique results
for functions per cost, functions per clocks, and functions per power-unit.
The following Figure shows the internal timing concept for the Register File. In a
single clock cycle an ALU operation using two register operands is executed, and the result
is stored back to the destination register.
Interrupt Response Time: The interrupt execution response for all the enabled AVR
interrupts is four clock cycles minimum. After four clock cycles the program vector address
for the actual interrupt handling routine is executed. During this four clock cycle period, the
Program Counter is pushed onto the Stack. The vector is normally a jump to the interrupt
routine, and this jump takes three clock cycles. If an interrupt occurs during execution of a
multi-cycle instruction, this instruction is completed before the interrupt is served. If an
interrupt occurs when the MCU is in sleep mode, the interrupt execution response time is
increased by four clock cycles. This increase comes in addition to the start-up time from the
selected sleep mode. A return from an interrupt handling routine takes four clock cycles.
During these four clock cycles, the Program Counter (two bytes) is popped back from the
Stack, the Stack Pointer is incremented by two, and the I-bit in SREG is set.
through air or water. Further applications include: humidifiers, sonar, medical ultra
pornography, burglar alarms and non-destructive testing. Systems typically use a transducer
which generates sound waves in the ultrasonic range, above 20,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.
2.4.1 Transducer
Transducers are defined as elements which can convert one form of energy to
another. The Ultrasonic transducers convert electrical energy into the sound waves and vice
versa. There are basically two kind of transducers used here, one to convert the electrical
waves into the sound waves which is called Ultrasonic Transmitter and the other to convert
the sound waves into the electrical waves or energy, called Ultrasonic Receiver. Below we
have explained the various blocks that the project could be broken into.
a. Transmitter circuit
The Ultrasonic sensors used in this project work at the frequency of 40 KHz. The 40
KHz signal is generated in the Micro Controller (uc). We use Atmega328 as the
microcontroller. Atmega328 has a feature of timers which has been exploited to generate 40
kHz. This was a major challenge as we required exact 40 kHz for our circuit. This is then
amplified before it is fed into the transmitter. The output of Micro Controller is amplified
using an Open Collector Buffer (OCB) circuit.
The open collector buffer is an inverter with the open collector at the output. We
attach, say a 10K resistor from the output pin to 15V. To keep the signal polarity the same
as the input (not inverted) we place an inverter before the open collector one (inverting
twice). We have used the inverter IC 7406 to perform the operation of open collector buffer
and the IC 7404 to invert the output of Micro Controller.
The reason for not using traditional ways for amplifying like the Operation
Amplifier (say LM741) because Op Amps like LM741 will not have the bandwidth to
output a decent square wave at 40 kHz and the output becomes triangular.
b. Receiver Circuit
The Ultrasonic Receiver receives the sound waves if any and converts them into
electrical pulses which are mostly sinusoids. The amplitude of the received signal is about
40 mVolts to 50 mVolts which is quite less to carry out any kind of processing with. The
signal hence is amplified using to about 100 times so that it comes in the range of few volts.
Here we can use an Op Amp because we are not concerned with the shape of the pulses; we
just measure the amplitude to generate an interrupt.
Pin
Pin Name Description
Number
1 Vcc The Vcc pin powers the sensor, typically with +5V
The Timing diagram is shown below. You only need to supply a short 10uS pulse to the trigger
input to start the ranging, and then the module will send out an 8 cycle burst of ultrasound at 40 kHz
and raise its echo. The Echo is a distance object that is pulse width and the range in proportion .You
can calculate the range through the time interval between sending trigger signal and receiving echo
signal.
Formula:
uS / 58 = centimeters or
uS / 148 =inch;
The servo motor we used in this project is Servo Motor tower pro micro servo 9g, A
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. You can use any
servo code, hardware or library to control these servos.
1. Weight: 9 g,
2. Dimension: 22.2 x 11.8 x 31 mm approx,
3. Stall torque: 1.8 kg f cm,
4. Operating speed: 0.1 s/60 degree,
5. Operating voltage: 4.8 V (~5V),
6. Temperature range: 0 ºC – 55 ºC,
used to plug things into. Male-to-male jumper wires are the most common and what you
likely will use most often. When connecting two ports on a breadboard, a male-to-male
wire is what you’ll need. Jumper wires male to male, male to female, and female to female.
3. METHODOLOGY
The designed ultrasonic radar system, as shown in figure, consists of the following parts:
The operation of the whole system after connections are made is shown below:
4. IMPLEMENTATION
Setup( ) is a function that only runs up on controller reset loop( ) is where the code
that runs over and over goes (your program). Loop( ) and setup( ) are functions. A function
with void, in front is a void function and so will not return a value. The void after means
that the function will accept no arguments.
digitalWrite( )
4.2 PROCESSING3
Processing is an open source computer programming language and integrated
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 Fig (3).
4.2.1 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.
Serial : The Serial library reads and writes data to and from external devices one
byte at a time. It allows two computers to send and receive data. This library has the
flexibility to communicate with custom microcontroller devices and to use them as
the input or output to Processing programs. The serial port is a nine pin I/O port that
exists on many PCs and can be emulated through USB.
Void draw( ):Void draw( ) is called directly after setup(), the draw() function
continuously executes the lines of code contained inside its block until the program
is stopped or noLoop() is called. draw() is called automatically and should never be
called explicitly. All Processing programs update the screen at the end of draw( ).
PinMode( ): PinMode( ) configures a pin to act either as input (INPUT), or input
with internal pull-up resistor (INPUT_PULLUP), or input with internal pull-down
resistor (INPUT_PULLDOWN) or output (OUTPUT).Unlike on Arduino, where
pins are implicitly set to inputs by default, it is necessary to call this function for
any pin you want to access, including input pins.
Fill( ): Fill( ) Sets the color used to fill shapes. For example, if you run fill(204,
102, 0), all subsequent shapes will be filled with orange. This color is either
specified in terms of the RGB or HSB color depending on the current colorMode( ).
The default color space is RGB, with each value in the range from 0 to 255.
Size( ): Size( ) defines the dimension of the display window width and height in
units of pixels. In a program that has the setup() function, the size() function must
be the first line of code inside setup().
Stroke( ): Stoke( ) sets the color used to draw lines and borders around shapes. This
color is either specified in terms of the RGB or HSB color depending on the
current colorMode(). The default color space is RGB, with each value in the range
from 0 to 255.
Rect( ): Rect( ) draws a rectangle to the screen. A rectangle is a four-sided shape
with every angle at ninety degrees. By default, the first two parameters set the
location of the upper-left corner, the third sets the width, and the fourth sets the
height. The way these parameters are interpreted, however, may be changed with
the rectMode() function.
the 9th pin of Arduino board ,VCC of the sensor to the 5volts pin of Arduino board
and finally ground pin sensor to any ground pin Arduino board using male to female
jumper wires.
Step 2: Connection of Servo motor to the Arduino board Servo motor has different
connection parameters compared to the ultrasonic sensor; the red wire of motor is
connected to 3.32v of arduino board, Orange wire is connected to pin 10 of arduino
board, brown wire is connected to ground pin of arduino board.
Step 3: Writing and executing the code After connecting all components interface
the arduino board to PC using a cable, then open arduino ide, open a new file, write
code for the sensor and motor to work after that save and compile the code, then
after dump the compiled code into board as a result we observe the rotation of the
motor. Then using processing ide the output is observed.
As mentioned in our project we are using two software ide’s one for operation of all
hardware components and other one to display the tracking of objects in other
words output of our project.
Finally the distance calculated based upon the pulse width of the echo signal is send
to the display segment and the range is displayed in centimeters with angle in degrees. This
ultrasonic rangefinder can measure distances up to 2.5 meters at accuracy of 0.1 centimeter.
5. RESULT
5.2 CONCLUSION
The object of this project was to design and implement an Ultrasonic Distance
Measurement device. As described in this a system is developed that can calculate the
distance of the tracked object. With respect to the requirements for an ultrasonic
rangefinder the followings can be concluded.
The system can calculate the distance of the obstruction with sufficient accuracy.
This device has the capability to interact with other peripheral if used as a secondary
device.
This can also communicate with pc through its serial port.
This offers a low cost and efficient solution for non-contact type distance
measurements.
The project made by us can be used in any systems you may want to use like in a
car, a bicycle or anything else. The use of Arduino in the project provides the flexibility of
usage of the above-said module according to the requirements.