SlideShare a Scribd company logo
1 of 38
Distance Measuring Unit
Presented by:
Shanmugavel Ramani
Saima khan
Ankith kumar Hanumanthappa
Ashok Raj
Eshan gozarnoee
1
Content:
2
• Introduction
• Aurdino board
• Zigbee
• X-ctu
• Ultrasonic Sensor
• Aurdino Software
• Program
• FT232RL Breakout Board
• Xbee Shield
• Result and Accuracy
• Conclusion
Project outline:
• Basically a unit which consists of ultrasonic sensor configured using a Arduino board.
• The sensors communicate using a Xbee trans-receiver which is also interconnected using the
Arduino board.
• The ultrasonic sensor here is used to detect objects and its distance from the measuring unit.
• The distance of the object is calculated using the basic principle of sonar where distance is
given by the formula
• Distance(d)=
𝟑𝟒𝟎.𝟐𝟖 𝒎/𝒔(𝒔𝒑𝒆𝒆𝒅 𝒐𝒇 𝒖𝒍𝒕𝒓𝒂𝒔𝒐𝒏𝒊𝒄 𝒔𝒐𝒖𝒏𝒅𝒊𝒏 𝒇𝒓𝒆𝒆 𝒔𝒑𝒂𝒄𝒆)∗𝒕𝒊𝒎𝒆 𝒕𝒂𝒌𝒆𝒏(𝑻)
𝟐
3
FUNCTIONING OF THE SYSTEM: 4
ARDUINO BOARD:
 Description:
We used the Arduino PRO Wifi board! The board contains a WiFly RN-171 802.11b/g Serial
Module from Roving Networks connected to the Atmega328 through a SC16IS750 SPI-to-
UART chip.
The chip allows the RN-171 module to communicate with the atmega328 over the SPI bus
instead of the USART. By keeping the USART bus free, the board is able to communicate with
a PC using a standard USB to Serial Converter.
The Atmega328P is pre-flashed with the Arduino Pro bootloader running at 5V and 16Mhz;
which means it can be directly programmed with the Arduino IDE by just selecting Arduino
Pro 5v/16Mhz w/ Atmega328 during programming.
This board has the ability to server up a website, or act as a client to get information for the
world wide web! The possibilities are endless!
5
SUMMARY :
Microcontroller ATmega328
Operating Voltage 3.3V or 5V
Input Voltage 5 - 12 V (5V versions)
Digital I/O Pins 14 (of which 6 provide PWM output)
Analog Input Pins 6
DC Current per I/O Pin 40 mA
Flash Memory
32KB (ATmega328) of which 2 KB used by
bootloader
SRAM 2 KB (ATmega328)
EEPROM 1 KB (ATmega328)
Clock Speed 16 MHz (5V versions)
Summary
6
Memory
 The ATmega328 has 32 KB of flash memory for storing code (of which 2 KB is used for
the bootloader). It has 1 KB of SRAM and 512 bytes of EEPROM (which can be read and
written with the EEPROM library). The ATmega328 has 32 KB of flash, 2 KB of SRAM, and
1 KB of EEPROM
Communication
 The Arduino Pro has a number of facilities for communicating with a computer, another
Arduino, or other microcontrollers. The ATmega168 and ATmega328 provide UART TTL
serial communication, which is available on digital pins 0 (RX) and 1 (TX). The Arduino
software includes a serial monitor which allows simple textual data to be sent to and
from the Arduino board via a USB connection.
7
Input and Output
 Each of the 14 digital pins on the Pro can be used as an input or output, using pinMode(), digitalWrite(), and digitalRead()functions. They operate at 3.3 volts. Each pin
can provide or receive a maximum of 40 mA and has an internal pull-up resistor (disconnected by default) of 20-50 kOhms. In addition, some pins have specialized
functions:
 Serial: 0 (RX) and 1 (TX). Used to receive (RX) and transmit (TX) TTL serial data. These pins are connected to the TX-0 and RX-1 pins of the six pin header.
 External Interrupts: 2 and 3. These pins can be configured to trigger an interrupt on a low value, a rising or falling edge, or a change in value. See
the attachInterrupt() function for details.
 PWM: 3, 5, 6, 9, 10, and 11. Provide 8-bit PWM output with the analogWrite() function.
 SPI: 10 (SS), 11 (MOSI), 12 (MISO), 13 (SCK). These pins support SPI communication, which, although provided by the underlying hardware, is not currently included in
the Arduino language.
 LED: 13. There is a built-in LED connected to digital pin 13. When the pin is HIGH value, the LED is on, when the pin is LOW, it's off.
 The Pro has 6 analog inputs, each of which provide 10 bits of resolution (i.e. 1024 different values). By default they measure from ground to VCC, though is it possible
to change the upper end of their range using the AREF pin and some low-level code. Additionally, some pins have specialized functionality:
 I2C: 4 (SDA) and 5 (SCL). Support I2C (TWI) communication using the Wire library.
 There are a couple of other pins on the board:
 AREF. Reference voltage for the analog inputs. Used with analogReference().
 Reset. Bring this line LOW to reset the microcontroller. Typically used to add a reset button to shields which block the one on the board.
8
minimum number of connections –
power (3.3 V), ground, data in and data
out (UART), with other recommended
lines being Reset and Sleep. Additionally,
most XBee families have some other flow
control, I/O, A/D and indicator lines built
in. A version of the XBees called the
programmable XBee has an additional
onboard processor for user’s code. The
programmable XBee and a new surface
mount (SMT) version of the XBee radios
were both introduced in 2010.
XBee is the brand name from Digi International
for a family of form factor compatible radio
modules. The first XBee radios were introduced
under the MaxStream brand in 2005 and were
based on the 802.15.4-2003 standard designed
for point-to-point and star communications at
over-the-air baud rates of 250 kbit/s.
Two models were initially introduced a lower
cost 1 mW XBee and the higher power 100 mW
XBee-PRO. Since the initial introduction, a
number of new XBee radios have been
introduced and all XBees are now marketed
and sold under the Digi brand.
9
10
11
What type of Modulation is used?
QPSK modulation is used for both XBee Series 1 and XBee-PRO series
1,however the emission designation is slightly different.
12
Why QPSK?
QPSK uses two basis functions, a sine and a cosine whereas BPSK
uses just one. By varying the phase of each of these carriers we can
send two bits per each signal. The dimensionality of a modulation
is defined by the number of basis functions used . That make QPSK
a two dimensional signal . Not because it sends two bits per
symbol, but because it uses two independent signals (a sine and a
cosine) to create the symbols.
13
14
15
16
17
Ultrasonic Sensor:
1. How do humans sense distance?
Humans estimate distance using their eyes, which is usually not a
very accurate method.
2. How do bats sense distance?
Bats sense distance using sound. They emit sound waves and
receive back reflected waves. The time it takes to receive the waves
back provides them with a very good estimate of the distance. This
is exactly how ultrasonic sensors estimate distance.
3. Example for bats: calls made by mouth > ears hear reflected waves
> brain decides what to do > wing muscles move > flight path
changed, as needed. Bats use this same method to catch mosquitoes
too.
18
Ultrasonic Sensor:
AN ULTRASONIC SENSOR HAS TWO PARTS:
• A TRANSMITTER THAT SENDS OUT A SIGNAL THAT HUMANS
CANNOT HEAR
• A RECEIVER THAT RECEIVES THE SIGNAL AFTER IT HAS BOUNCED
OFF NEARBY OBJECTS
THE SENSOR SENDS OUT ITS SIGNAL AND DETERMINES HOW LONG THE
SIGNAL TAKES TO COME BACK.
If the object is very close to the sensor, the signal comes back quickly
If the object is far away from the sensor, the signal takes longer to come back
If objects are too far away from the sensor, the signal takes so long to come back
(or is very weak when it comes back) .
The sensor sends a message back to the controller telling it the time taken for the
signal to return. Then it uses this info to compute how far away the object is.
19
20
Echolocation
 Bats produce a very high-pitch sound (ultrasonic, beyond the human hearing
range greater than 20 KHZ). Those sound waves travel through air and bats
listen carefully to any echoes that return.
 By determining how long echoes take to return, bats estimate the distances of
the objects. Bats also determine how big objects are and in which direction
they are located. The bat brain processes the echoes similarly to human brains.
How does an ultrasonic sensor work?
 The ultrasonic sensor emits a sound pulse and measures the distance of the
object depending on the time taken by the echo to return back to the other
side.
 Electrical energy is converted to sound to send the pulse,
and then the sound received back is converted to electricity.
21
How Can We Measure Distance?
The ultrasonic sensor sends out sound from one side and receives
sound reflected from an object on the other side.
The sensor uses the time it takes for the sound to come back from
the object in front to determine the distance of an object.
The “sonic” in ultrasonic refers to sound, and “ultra” means that
humans cannot hear it (but bats and dogs can hear those sounds).
The ultrasonic sensor can measure distances in centimeters and
inches. It can measure from 0 to 2.5 meters.
22
Ultrasonic Sensor Application
Ultrasonic sensors have diversified functions including
 Detection
 Measurement
 Destruction
 Eye axis length
A probe applied to the surface of the cornea transmits an ultrasonic wave and receives the echo. From the
propagation time of the echo, the length of the eye axis (the distance between the surface of the eye (cornea) and
the back end of the eye (retina) = Diameter of the eyeball) can be determined.
 Cells
Applying ultrasonic energy into the human body will generate thermal energy, which causes a heating effect that
can destroy cells. This application is useful for treatment of cancer.
23
 Level Measuring
Level measuring is used in a wide variety of applications. They
accurately monitor the fill level of silos or tanks used by dairies,
chemical plants, mineral companies, and many others.
 Vehicle detection in Barrier System
In car parking lots and parking garages, entry
is controlled using barrier systems. The barrier must not be
lowered when there is a vehicle underneath. Ultrasonic
sensors are particularly suitable for controlling this process.
 Spray Nozels
Using ultrasonic sensors can save on pesticides by detecting tree
gaps. As soon as one of these gaps is recognized, the spraying
process temporarily stops.
24
Aurdino Software :
 The Arduino Integrated Development Environment (IDE) is a cross-platform application written
in Java.
 It easy to write code and upload it to the board.
 It includes a code editor with features such as syntax highlighting and brace matching
 Arduino programs are written in C or C++
 Users only need define two functions to make a runnable cyclic executive program:
 Setup()
 Loop()
25
Program to find the Distance using sensor:
int Sig= 3;
void setup()
{
Serial.begin(9600);
}
void loop()
{
float dis;
int time;
pinMode(Sig,OUTPUT);
digitalWrite(Sig,HIGH);
delay(500);
digitalWrite(Sig,LOW);
pinMode(Sig,INPUT);
time= pulseIn(Sig,HIGH);
dis=(((time/2)*34.029)/1000));
Serial.write(dis);
Serial.print(" cm ");
Serial.print(‘n’);
delay(2000);
}
26
FT232RL Breakout Board
 This is a breakout board also known as FTDI USB to UART IC (FT232RL)
 There are two options for communicating:
1) Virtual COM Port (VCP) drivers for RS-232 style serial ports.
• Virtual COM port (VCP) drivers cause the USB device to appear as
an additional COM port available to the PC
2) Special Dynamic Link Library (DLL) to directly control access to the USB
device and pin I/O
 Three LEDs telling you the status of RX (red), TX (green) and POWER (blue).
27
FT232Rl Pin Description 28
FT232RL Breakout Board
Features:
• Implements full v2.0 USB protocol
• Needs no external crystal
• 14 I/O lines for use with RS-232, bit-bang, or special function modes
• Provides USB Bus power of 5V up to 500mA and regulated 3.3V up to 50mA
• Clock generator to drive microcontrollers (6, 12, 24, and 48 MHz)
• Easy logic level selection jumper
• All pins are labeled
29
Bread board
30
XBEE SHIELD 31
Significance of LED’S
LED LABEL LED COLOR OPERATIONS
PWR Red Power is present
DIO5 Green blinks when the XBee is associated with another
XBee.
DOUT Red Indicates wireless data is being received.
DIN Green Indicates wireless data is being transmitted.
RSSI Green
Indicates relative signal strength (RSSI) of last
received transmission.
32
DIN and DOUT pins can be connected to either the UART pins
or any digital pin on the Arduino (D2 and D3 default)
33
Result,Accuracy,Conclusion:
 We were able to find the distance between the Obstacle and Sensor
 Ultrasonic sensor is unable to measure the distance below 2cm
 The precision of the sensor is 2 cm to 2.6 metre under lab
condition
 We successfully transmitted the signal through Zigbee radio
34
34
ANY QUERIES?
35
36
Result and Accuracy:
 We were able to find the distance between the Obstacle and Sensor
 Ultrasonic sensor is unable to measure the distance below 2cm
 The precision of the sensor is 2 cm to 2.6 metre under lab
condition
 We successfully transmitted the signal through Zigbee radio
37
Bibliography: 38
 www.wikipedia.com
 www.atmel.com
 Xp rf module
 Jconsystem1
 www.aurdino.com
 Building of WSN textbook

More Related Content

What's hot

Distance Measurement by Ultrasonic Sensor
Distance Measurement by Ultrasonic SensorDistance Measurement by Ultrasonic Sensor
Distance Measurement by Ultrasonic SensorEdgefxkits & Solutions
 
object detection using ultra sonic sensors
object detection using ultra sonic sensorsobject detection using ultra sonic sensors
object detection using ultra sonic sensorsvijay kumar
 
Distance Measurement Using Ultrasonic Sensor and Nodemcu
Distance Measurement Using Ultrasonic Sensor and NodemcuDistance Measurement Using Ultrasonic Sensor and Nodemcu
Distance Measurement Using Ultrasonic Sensor and NodemcuIRJET Journal
 
Radar Using Arduino
Radar Using ArduinoRadar Using Arduino
Radar Using ArduinoGolu Jain
 
Hc sr04 users-manual
Hc sr04 users-manualHc sr04 users-manual
Hc sr04 users-manualnguyen nam
 
Obstacle detection using ultra sonic sensor
Obstacle detection using ultra sonic sensorObstacle detection using ultra sonic sensor
Obstacle detection using ultra sonic sensorsatyashanker
 
Short Range Radar System using Arduino Uno
Short Range Radar System using Arduino UnoShort Range Radar System using Arduino Uno
Short Range Radar System using Arduino UnoIRJET Journal
 
Arduino microcontroller and nRF24L01+ transceivers
Arduino microcontroller and nRF24L01+ transceiversArduino microcontroller and nRF24L01+ transceivers
Arduino microcontroller and nRF24L01+ transceiversPavlos Kallis
 
Wireless transmission of voice signal using nRF24L01 module
Wireless transmission of voice signal using nRF24L01 moduleWireless transmission of voice signal using nRF24L01 module
Wireless transmission of voice signal using nRF24L01 moduleSunil Kumar Shesma
 
Ultrasonic Distance Measurement NRF905 Wireless Transmission System Based on ...
Ultrasonic Distance Measurement NRF905 Wireless Transmission System Based on ...Ultrasonic Distance Measurement NRF905 Wireless Transmission System Based on ...
Ultrasonic Distance Measurement NRF905 Wireless Transmission System Based on ...Wanita Long
 
Minor Project Report on - short range personal 'RADAR'.
Minor Project Report on - short range personal 'RADAR'.Minor Project Report on - short range personal 'RADAR'.
Minor Project Report on - short range personal 'RADAR'.Sarvesh Kushwaha
 
Spectrum Analyzer
Spectrum AnalyzerSpectrum Analyzer
Spectrum AnalyzerManasa K
 
Ultrasonic radar using 8051
Ultrasonic radar using 8051Ultrasonic radar using 8051
Ultrasonic radar using 8051YOGEESH M
 
A report on Rf controlled car
A report on Rf controlled car A report on Rf controlled car
A report on Rf controlled car itfakash
 

What's hot (20)

Distance Measurement by Ultrasonic Sensor
Distance Measurement by Ultrasonic SensorDistance Measurement by Ultrasonic Sensor
Distance Measurement by Ultrasonic Sensor
 
object detection using ultra sonic sensors
object detection using ultra sonic sensorsobject detection using ultra sonic sensors
object detection using ultra sonic sensors
 
Distance Measurement Using Ultrasonic Sensor and Nodemcu
Distance Measurement Using Ultrasonic Sensor and NodemcuDistance Measurement Using Ultrasonic Sensor and Nodemcu
Distance Measurement Using Ultrasonic Sensor and Nodemcu
 
Radar Using Arduino
Radar Using ArduinoRadar Using Arduino
Radar Using Arduino
 
Hc sr04 users-manual
Hc sr04 users-manualHc sr04 users-manual
Hc sr04 users-manual
 
Obstacle detection using ultra sonic sensor
Obstacle detection using ultra sonic sensorObstacle detection using ultra sonic sensor
Obstacle detection using ultra sonic sensor
 
Final year Engineering project
Final year Engineering project Final year Engineering project
Final year Engineering project
 
Short Range Radar System using Arduino Uno
Short Range Radar System using Arduino UnoShort Range Radar System using Arduino Uno
Short Range Radar System using Arduino Uno
 
Arduino microcontroller and nRF24L01+ transceivers
Arduino microcontroller and nRF24L01+ transceiversArduino microcontroller and nRF24L01+ transceivers
Arduino microcontroller and nRF24L01+ transceivers
 
4th-Yr-PROJECT-REPORT
4th-Yr-PROJECT-REPORT4th-Yr-PROJECT-REPORT
4th-Yr-PROJECT-REPORT
 
Arduino Radar System
Arduino Radar SystemArduino Radar System
Arduino Radar System
 
Wireless transmission of voice signal using nRF24L01 module
Wireless transmission of voice signal using nRF24L01 moduleWireless transmission of voice signal using nRF24L01 module
Wireless transmission of voice signal using nRF24L01 module
 
Ultrasonic Distance Measurement NRF905 Wireless Transmission System Based on ...
Ultrasonic Distance Measurement NRF905 Wireless Transmission System Based on ...Ultrasonic Distance Measurement NRF905 Wireless Transmission System Based on ...
Ultrasonic Distance Measurement NRF905 Wireless Transmission System Based on ...
 
Minor Project Report on - short range personal 'RADAR'.
Minor Project Report on - short range personal 'RADAR'.Minor Project Report on - short range personal 'RADAR'.
Minor Project Report on - short range personal 'RADAR'.
 
Spectrum Analyzer
Spectrum AnalyzerSpectrum Analyzer
Spectrum Analyzer
 
Spectrum analyzer
Spectrum  analyzerSpectrum  analyzer
Spectrum analyzer
 
Ultrasonic radar using 8051
Ultrasonic radar using 8051Ultrasonic radar using 8051
Ultrasonic radar using 8051
 
Emi fifth-sem-spectrum-analyzer
Emi fifth-sem-spectrum-analyzerEmi fifth-sem-spectrum-analyzer
Emi fifth-sem-spectrum-analyzer
 
Spectrum analyzer
Spectrum analyzerSpectrum analyzer
Spectrum analyzer
 
A report on Rf controlled car
A report on Rf controlled car A report on Rf controlled car
A report on Rf controlled car
 

Viewers also liked

Capacitive touch panel towards simplification
Capacitive touch panel towards simplificationCapacitive touch panel towards simplification
Capacitive touch panel towards simplificationSeekcomponents
 
Measurement of speed of wind
Measurement of speed of windMeasurement of speed of wind
Measurement of speed of windPooja Dubey
 
automatic plant irrigation using aurdino and gsm technology
automatic plant irrigation using aurdino and gsm technologyautomatic plant irrigation using aurdino and gsm technology
automatic plant irrigation using aurdino and gsm technologythamil arasan
 
Capacitive touch screen
Capacitive touch screenCapacitive touch screen
Capacitive touch screenLavin Katiyar
 
Intoduction to mTouch Capacitive Touch Sensing
Intoduction to mTouch Capacitive Touch SensingIntoduction to mTouch Capacitive Touch Sensing
Intoduction to mTouch Capacitive Touch SensingPremier Farnell
 
Overview zigbee-2012-03-26
Overview zigbee-2012-03-26Overview zigbee-2012-03-26
Overview zigbee-2012-03-26Philip Wu
 
Ultrasonic based distance measurement system
Ultrasonic based distance measurement systemUltrasonic based distance measurement system
Ultrasonic based distance measurement systemMrinal Sharma
 
Introduction to arduino
Introduction to arduinoIntroduction to arduino
Introduction to arduinoAhmed Sakr
 
3D printer Technology _ A complete presentation
3D printer Technology _ A complete presentation3D printer Technology _ A complete presentation
3D printer Technology _ A complete presentationVijay Patil
 
Ppt on water level indicator
Ppt on water level indicatorPpt on water level indicator
Ppt on water level indicatorpalwinder virk
 
Mobile-First SEO - The Marketers Edition #3XEDigital
Mobile-First SEO - The Marketers Edition #3XEDigitalMobile-First SEO - The Marketers Edition #3XEDigital
Mobile-First SEO - The Marketers Edition #3XEDigitalAleyda Solís
 

Viewers also liked (15)

Capacitive touch panel towards simplification
Capacitive touch panel towards simplificationCapacitive touch panel towards simplification
Capacitive touch panel towards simplification
 
Aurdino presentation
Aurdino presentationAurdino presentation
Aurdino presentation
 
Measurement of speed of wind
Measurement of speed of windMeasurement of speed of wind
Measurement of speed of wind
 
automatic plant irrigation using aurdino and gsm technology
automatic plant irrigation using aurdino and gsm technologyautomatic plant irrigation using aurdino and gsm technology
automatic plant irrigation using aurdino and gsm technology
 
Capacitive touch screen
Capacitive touch screenCapacitive touch screen
Capacitive touch screen
 
Intoduction to mTouch Capacitive Touch Sensing
Intoduction to mTouch Capacitive Touch SensingIntoduction to mTouch Capacitive Touch Sensing
Intoduction to mTouch Capacitive Touch Sensing
 
Overview zigbee-2012-03-26
Overview zigbee-2012-03-26Overview zigbee-2012-03-26
Overview zigbee-2012-03-26
 
Ultrasonic based distance measurement system
Ultrasonic based distance measurement systemUltrasonic based distance measurement system
Ultrasonic based distance measurement system
 
Zigbee
ZigbeeZigbee
Zigbee
 
Total station
Total stationTotal station
Total station
 
Introduction to arduino
Introduction to arduinoIntroduction to arduino
Introduction to arduino
 
3D printer Technology _ A complete presentation
3D printer Technology _ A complete presentation3D printer Technology _ A complete presentation
3D printer Technology _ A complete presentation
 
Ppt on water level indicator
Ppt on water level indicatorPpt on water level indicator
Ppt on water level indicator
 
Mobile-First SEO - The Marketers Edition #3XEDigital
Mobile-First SEO - The Marketers Edition #3XEDigitalMobile-First SEO - The Marketers Edition #3XEDigital
Mobile-First SEO - The Marketers Edition #3XEDigital
 
Slideshare ppt
Slideshare pptSlideshare ppt
Slideshare ppt
 

Similar to Distance measuring unit with zigbee protocol, Ultra sonic sensor

robotics and embedded system ppt
robotics and embedded system pptrobotics and embedded system ppt
robotics and embedded system pptNilgiri publicity
 
Microcontroller Based Obstacle Detection Device Using Voice Signal for the V...
Microcontroller Based Obstacle Detection Device Using Voice  Signal for the V...Microcontroller Based Obstacle Detection Device Using Voice  Signal for the V...
Microcontroller Based Obstacle Detection Device Using Voice Signal for the V...IJMER
 
Sensor Based Blind Stick
Sensor Based Blind StickSensor Based Blind Stick
Sensor Based Blind StickGagandeep Singh
 
OBSTACLE AVOIDACE ROBOT USING ARDUINO UNO AND ULTRASONIC SENSOR
OBSTACLE AVOIDACE ROBOT USING ARDUINO UNO AND ULTRASONIC SENSOROBSTACLE AVOIDACE ROBOT USING ARDUINO UNO AND ULTRASONIC SENSOR
OBSTACLE AVOIDACE ROBOT USING ARDUINO UNO AND ULTRASONIC SENSORLeTsKnOw1
 
Iaetsd ethernet based intelligent security system
Iaetsd ethernet based intelligent security systemIaetsd ethernet based intelligent security system
Iaetsd ethernet based intelligent security systemIaetsd Iaetsd
 
Security System Based on Ultrasonic Sensor Technology
Security System Based on Ultrasonic Sensor TechnologySecurity System Based on Ultrasonic Sensor Technology
Security System Based on Ultrasonic Sensor TechnologyIOSR Journals
 
Smart walking Stick for blinds
Smart walking Stick for blindsSmart walking Stick for blinds
Smart walking Stick for blindsAmbikaR4
 
Arduino Blind Aid
Arduino Blind AidArduino Blind Aid
Arduino Blind AidRohithND
 
Analysis and Construction of a Robot controlled by a Universal Remote Control
Analysis and Construction of a Robot controlled by a Universal Remote ControlAnalysis and Construction of a Robot controlled by a Universal Remote Control
Analysis and Construction of a Robot controlled by a Universal Remote ControlIJERD Editor
 
speaking hands
speaking handsspeaking hands
speaking handssamaadel2
 
Automatic Door Opener using PIR Sensor
Automatic Door Opener using PIR SensorAutomatic Door Opener using PIR Sensor
Automatic Door Opener using PIR SensorRAGHUVARMA09
 
Smart Container
Smart ContainerSmart Container
Smart ContainerSupritha k
 
IRJET- Iot Based Route Assistance for Visually Challenged
IRJET- Iot Based Route Assistance for Visually ChallengedIRJET- Iot Based Route Assistance for Visually Challenged
IRJET- Iot Based Route Assistance for Visually ChallengedIRJET Journal
 
Earthquake_Early_warning_system.pptx
Earthquake_Early_warning_system.pptxEarthquake_Early_warning_system.pptx
Earthquake_Early_warning_system.pptxJohanJai
 
Self Obstacle Avoiding Rover
Self Obstacle Avoiding RoverSelf Obstacle Avoiding Rover
Self Obstacle Avoiding RoverEmam Hasan
 

Similar to Distance measuring unit with zigbee protocol, Ultra sonic sensor (20)

robotics and embedded system ppt
robotics and embedded system pptrobotics and embedded system ppt
robotics and embedded system ppt
 
Ultrasonic_Based_Security_System
Ultrasonic_Based_Security_SystemUltrasonic_Based_Security_System
Ultrasonic_Based_Security_System
 
Microcontroller Based Obstacle Detection Device Using Voice Signal for the V...
Microcontroller Based Obstacle Detection Device Using Voice  Signal for the V...Microcontroller Based Obstacle Detection Device Using Voice  Signal for the V...
Microcontroller Based Obstacle Detection Device Using Voice Signal for the V...
 
Sensor Based Blind Stick
Sensor Based Blind StickSensor Based Blind Stick
Sensor Based Blind Stick
 
OBSTACLE AVOIDACE ROBOT USING ARDUINO UNO AND ULTRASONIC SENSOR
OBSTACLE AVOIDACE ROBOT USING ARDUINO UNO AND ULTRASONIC SENSOROBSTACLE AVOIDACE ROBOT USING ARDUINO UNO AND ULTRASONIC SENSOR
OBSTACLE AVOIDACE ROBOT USING ARDUINO UNO AND ULTRASONIC SENSOR
 
ULTRASONIC PERIPATETIC SCANNER FOR AUTONOMOUS TEST BENCH USING RASPBERRY Pi
ULTRASONIC PERIPATETIC SCANNER FOR AUTONOMOUS TEST BENCH USING RASPBERRY PiULTRASONIC PERIPATETIC SCANNER FOR AUTONOMOUS TEST BENCH USING RASPBERRY Pi
ULTRASONIC PERIPATETIC SCANNER FOR AUTONOMOUS TEST BENCH USING RASPBERRY Pi
 
Iaetsd ethernet based intelligent security system
Iaetsd ethernet based intelligent security systemIaetsd ethernet based intelligent security system
Iaetsd ethernet based intelligent security system
 
Security System Based on Ultrasonic Sensor Technology
Security System Based on Ultrasonic Sensor TechnologySecurity System Based on Ultrasonic Sensor Technology
Security System Based on Ultrasonic Sensor Technology
 
Smart walking Stick for blinds
Smart walking Stick for blindsSmart walking Stick for blinds
Smart walking Stick for blinds
 
Arduino Blind Aid
Arduino Blind AidArduino Blind Aid
Arduino Blind Aid
 
B010320711
B010320711B010320711
B010320711
 
batch 7.pptx
batch 7.pptxbatch 7.pptx
batch 7.pptx
 
Analysis and Construction of a Robot controlled by a Universal Remote Control
Analysis and Construction of a Robot controlled by a Universal Remote ControlAnalysis and Construction of a Robot controlled by a Universal Remote Control
Analysis and Construction of a Robot controlled by a Universal Remote Control
 
speaking hands
speaking handsspeaking hands
speaking hands
 
Automatic Door Opener using PIR Sensor
Automatic Door Opener using PIR SensorAutomatic Door Opener using PIR Sensor
Automatic Door Opener using PIR Sensor
 
Smart Container
Smart ContainerSmart Container
Smart Container
 
IRJET- Iot Based Route Assistance for Visually Challenged
IRJET- Iot Based Route Assistance for Visually ChallengedIRJET- Iot Based Route Assistance for Visually Challenged
IRJET- Iot Based Route Assistance for Visually Challenged
 
Radar Detector
Radar Detector Radar Detector
Radar Detector
 
Earthquake_Early_warning_system.pptx
Earthquake_Early_warning_system.pptxEarthquake_Early_warning_system.pptx
Earthquake_Early_warning_system.pptx
 
Self Obstacle Avoiding Rover
Self Obstacle Avoiding RoverSelf Obstacle Avoiding Rover
Self Obstacle Avoiding Rover
 

Recently uploaded

Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxhumanexperienceaaa
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 

Recently uploaded (20)

Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 

Distance measuring unit with zigbee protocol, Ultra sonic sensor

  • 1. Distance Measuring Unit Presented by: Shanmugavel Ramani Saima khan Ankith kumar Hanumanthappa Ashok Raj Eshan gozarnoee 1
  • 2. Content: 2 • Introduction • Aurdino board • Zigbee • X-ctu • Ultrasonic Sensor • Aurdino Software • Program • FT232RL Breakout Board • Xbee Shield • Result and Accuracy • Conclusion
  • 3. Project outline: • Basically a unit which consists of ultrasonic sensor configured using a Arduino board. • The sensors communicate using a Xbee trans-receiver which is also interconnected using the Arduino board. • The ultrasonic sensor here is used to detect objects and its distance from the measuring unit. • The distance of the object is calculated using the basic principle of sonar where distance is given by the formula • Distance(d)= 𝟑𝟒𝟎.𝟐𝟖 𝒎/𝒔(𝒔𝒑𝒆𝒆𝒅 𝒐𝒇 𝒖𝒍𝒕𝒓𝒂𝒔𝒐𝒏𝒊𝒄 𝒔𝒐𝒖𝒏𝒅𝒊𝒏 𝒇𝒓𝒆𝒆 𝒔𝒑𝒂𝒄𝒆)∗𝒕𝒊𝒎𝒆 𝒕𝒂𝒌𝒆𝒏(𝑻) 𝟐 3
  • 4. FUNCTIONING OF THE SYSTEM: 4
  • 5. ARDUINO BOARD:  Description: We used the Arduino PRO Wifi board! The board contains a WiFly RN-171 802.11b/g Serial Module from Roving Networks connected to the Atmega328 through a SC16IS750 SPI-to- UART chip. The chip allows the RN-171 module to communicate with the atmega328 over the SPI bus instead of the USART. By keeping the USART bus free, the board is able to communicate with a PC using a standard USB to Serial Converter. The Atmega328P is pre-flashed with the Arduino Pro bootloader running at 5V and 16Mhz; which means it can be directly programmed with the Arduino IDE by just selecting Arduino Pro 5v/16Mhz w/ Atmega328 during programming. This board has the ability to server up a website, or act as a client to get information for the world wide web! The possibilities are endless! 5
  • 6. SUMMARY : Microcontroller ATmega328 Operating Voltage 3.3V or 5V Input Voltage 5 - 12 V (5V versions) Digital I/O Pins 14 (of which 6 provide PWM output) Analog Input Pins 6 DC Current per I/O Pin 40 mA Flash Memory 32KB (ATmega328) of which 2 KB used by bootloader SRAM 2 KB (ATmega328) EEPROM 1 KB (ATmega328) Clock Speed 16 MHz (5V versions) Summary 6
  • 7. Memory  The ATmega328 has 32 KB of flash memory for storing code (of which 2 KB is used for the bootloader). It has 1 KB of SRAM and 512 bytes of EEPROM (which can be read and written with the EEPROM library). The ATmega328 has 32 KB of flash, 2 KB of SRAM, and 1 KB of EEPROM Communication  The Arduino Pro has a number of facilities for communicating with a computer, another Arduino, or other microcontrollers. The ATmega168 and ATmega328 provide UART TTL serial communication, which is available on digital pins 0 (RX) and 1 (TX). The Arduino software includes a serial monitor which allows simple textual data to be sent to and from the Arduino board via a USB connection. 7
  • 8. Input and Output  Each of the 14 digital pins on the Pro can be used as an input or output, using pinMode(), digitalWrite(), and digitalRead()functions. They operate at 3.3 volts. Each pin can provide or receive a maximum of 40 mA and has an internal pull-up resistor (disconnected by default) of 20-50 kOhms. In addition, some pins have specialized functions:  Serial: 0 (RX) and 1 (TX). Used to receive (RX) and transmit (TX) TTL serial data. These pins are connected to the TX-0 and RX-1 pins of the six pin header.  External Interrupts: 2 and 3. These pins can be configured to trigger an interrupt on a low value, a rising or falling edge, or a change in value. See the attachInterrupt() function for details.  PWM: 3, 5, 6, 9, 10, and 11. Provide 8-bit PWM output with the analogWrite() function.  SPI: 10 (SS), 11 (MOSI), 12 (MISO), 13 (SCK). These pins support SPI communication, which, although provided by the underlying hardware, is not currently included in the Arduino language.  LED: 13. There is a built-in LED connected to digital pin 13. When the pin is HIGH value, the LED is on, when the pin is LOW, it's off.  The Pro has 6 analog inputs, each of which provide 10 bits of resolution (i.e. 1024 different values). By default they measure from ground to VCC, though is it possible to change the upper end of their range using the AREF pin and some low-level code. Additionally, some pins have specialized functionality:  I2C: 4 (SDA) and 5 (SCL). Support I2C (TWI) communication using the Wire library.  There are a couple of other pins on the board:  AREF. Reference voltage for the analog inputs. Used with analogReference().  Reset. Bring this line LOW to reset the microcontroller. Typically used to add a reset button to shields which block the one on the board. 8
  • 9. minimum number of connections – power (3.3 V), ground, data in and data out (UART), with other recommended lines being Reset and Sleep. Additionally, most XBee families have some other flow control, I/O, A/D and indicator lines built in. A version of the XBees called the programmable XBee has an additional onboard processor for user’s code. The programmable XBee and a new surface mount (SMT) version of the XBee radios were both introduced in 2010. XBee is the brand name from Digi International for a family of form factor compatible radio modules. The first XBee radios were introduced under the MaxStream brand in 2005 and were based on the 802.15.4-2003 standard designed for point-to-point and star communications at over-the-air baud rates of 250 kbit/s. Two models were initially introduced a lower cost 1 mW XBee and the higher power 100 mW XBee-PRO. Since the initial introduction, a number of new XBee radios have been introduced and all XBees are now marketed and sold under the Digi brand. 9
  • 10. 10
  • 11. 11
  • 12. What type of Modulation is used? QPSK modulation is used for both XBee Series 1 and XBee-PRO series 1,however the emission designation is slightly different. 12
  • 13. Why QPSK? QPSK uses two basis functions, a sine and a cosine whereas BPSK uses just one. By varying the phase of each of these carriers we can send two bits per each signal. The dimensionality of a modulation is defined by the number of basis functions used . That make QPSK a two dimensional signal . Not because it sends two bits per symbol, but because it uses two independent signals (a sine and a cosine) to create the symbols. 13
  • 14. 14
  • 15. 15
  • 16. 16
  • 17. 17
  • 18. Ultrasonic Sensor: 1. How do humans sense distance? Humans estimate distance using their eyes, which is usually not a very accurate method. 2. How do bats sense distance? Bats sense distance using sound. They emit sound waves and receive back reflected waves. The time it takes to receive the waves back provides them with a very good estimate of the distance. This is exactly how ultrasonic sensors estimate distance. 3. Example for bats: calls made by mouth > ears hear reflected waves > brain decides what to do > wing muscles move > flight path changed, as needed. Bats use this same method to catch mosquitoes too. 18
  • 19. Ultrasonic Sensor: AN ULTRASONIC SENSOR HAS TWO PARTS: • A TRANSMITTER THAT SENDS OUT A SIGNAL THAT HUMANS CANNOT HEAR • A RECEIVER THAT RECEIVES THE SIGNAL AFTER IT HAS BOUNCED OFF NEARBY OBJECTS THE SENSOR SENDS OUT ITS SIGNAL AND DETERMINES HOW LONG THE SIGNAL TAKES TO COME BACK. If the object is very close to the sensor, the signal comes back quickly If the object is far away from the sensor, the signal takes longer to come back If objects are too far away from the sensor, the signal takes so long to come back (or is very weak when it comes back) . The sensor sends a message back to the controller telling it the time taken for the signal to return. Then it uses this info to compute how far away the object is. 19
  • 20. 20
  • 21. Echolocation  Bats produce a very high-pitch sound (ultrasonic, beyond the human hearing range greater than 20 KHZ). Those sound waves travel through air and bats listen carefully to any echoes that return.  By determining how long echoes take to return, bats estimate the distances of the objects. Bats also determine how big objects are and in which direction they are located. The bat brain processes the echoes similarly to human brains. How does an ultrasonic sensor work?  The ultrasonic sensor emits a sound pulse and measures the distance of the object depending on the time taken by the echo to return back to the other side.  Electrical energy is converted to sound to send the pulse, and then the sound received back is converted to electricity. 21
  • 22. How Can We Measure Distance? The ultrasonic sensor sends out sound from one side and receives sound reflected from an object on the other side. The sensor uses the time it takes for the sound to come back from the object in front to determine the distance of an object. The “sonic” in ultrasonic refers to sound, and “ultra” means that humans cannot hear it (but bats and dogs can hear those sounds). The ultrasonic sensor can measure distances in centimeters and inches. It can measure from 0 to 2.5 meters. 22
  • 23. Ultrasonic Sensor Application Ultrasonic sensors have diversified functions including  Detection  Measurement  Destruction  Eye axis length A probe applied to the surface of the cornea transmits an ultrasonic wave and receives the echo. From the propagation time of the echo, the length of the eye axis (the distance between the surface of the eye (cornea) and the back end of the eye (retina) = Diameter of the eyeball) can be determined.  Cells Applying ultrasonic energy into the human body will generate thermal energy, which causes a heating effect that can destroy cells. This application is useful for treatment of cancer. 23
  • 24.  Level Measuring Level measuring is used in a wide variety of applications. They accurately monitor the fill level of silos or tanks used by dairies, chemical plants, mineral companies, and many others.  Vehicle detection in Barrier System In car parking lots and parking garages, entry is controlled using barrier systems. The barrier must not be lowered when there is a vehicle underneath. Ultrasonic sensors are particularly suitable for controlling this process.  Spray Nozels Using ultrasonic sensors can save on pesticides by detecting tree gaps. As soon as one of these gaps is recognized, the spraying process temporarily stops. 24
  • 25. Aurdino Software :  The Arduino Integrated Development Environment (IDE) is a cross-platform application written in Java.  It easy to write code and upload it to the board.  It includes a code editor with features such as syntax highlighting and brace matching  Arduino programs are written in C or C++  Users only need define two functions to make a runnable cyclic executive program:  Setup()  Loop() 25
  • 26. Program to find the Distance using sensor: int Sig= 3; void setup() { Serial.begin(9600); } void loop() { float dis; int time; pinMode(Sig,OUTPUT); digitalWrite(Sig,HIGH); delay(500); digitalWrite(Sig,LOW); pinMode(Sig,INPUT); time= pulseIn(Sig,HIGH); dis=(((time/2)*34.029)/1000)); Serial.write(dis); Serial.print(" cm "); Serial.print(‘n’); delay(2000); } 26
  • 27. FT232RL Breakout Board  This is a breakout board also known as FTDI USB to UART IC (FT232RL)  There are two options for communicating: 1) Virtual COM Port (VCP) drivers for RS-232 style serial ports. • Virtual COM port (VCP) drivers cause the USB device to appear as an additional COM port available to the PC 2) Special Dynamic Link Library (DLL) to directly control access to the USB device and pin I/O  Three LEDs telling you the status of RX (red), TX (green) and POWER (blue). 27
  • 29. FT232RL Breakout Board Features: • Implements full v2.0 USB protocol • Needs no external crystal • 14 I/O lines for use with RS-232, bit-bang, or special function modes • Provides USB Bus power of 5V up to 500mA and regulated 3.3V up to 50mA • Clock generator to drive microcontrollers (6, 12, 24, and 48 MHz) • Easy logic level selection jumper • All pins are labeled 29
  • 32. Significance of LED’S LED LABEL LED COLOR OPERATIONS PWR Red Power is present DIO5 Green blinks when the XBee is associated with another XBee. DOUT Red Indicates wireless data is being received. DIN Green Indicates wireless data is being transmitted. RSSI Green Indicates relative signal strength (RSSI) of last received transmission. 32
  • 33. DIN and DOUT pins can be connected to either the UART pins or any digital pin on the Arduino (D2 and D3 default) 33
  • 34. Result,Accuracy,Conclusion:  We were able to find the distance between the Obstacle and Sensor  Ultrasonic sensor is unable to measure the distance below 2cm  The precision of the sensor is 2 cm to 2.6 metre under lab condition  We successfully transmitted the signal through Zigbee radio 34 34
  • 36. 36
  • 37. Result and Accuracy:  We were able to find the distance between the Obstacle and Sensor  Ultrasonic sensor is unable to measure the distance below 2cm  The precision of the sensor is 2 cm to 2.6 metre under lab condition  We successfully transmitted the signal through Zigbee radio 37
  • 38. Bibliography: 38  www.wikipedia.com  www.atmel.com  Xp rf module  Jconsystem1  www.aurdino.com  Building of WSN textbook