SlideShare a Scribd company logo
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 05 Issue: 04 | Apr-2018 www.irjet.net p-ISSN: 2395-0072
© 2018, IRJET | Impact Factor value: 6.171 | ISO 9001:2008 Certified Journal | Page 1964
Obstacle Detection using Ultrasonic sensor in MAV (Micro Air Vehicle)
Sharmila A 1, ,Ramesh P1, Siva Subba Rao Patange 2 ,Dr.S.Raja2, Dr.Aby.K.Thomas1
1Hindustan Institute of Technology and Science, Chennai-603 103.
2CSIR-National Aerospace Laboratories, Bengaluru-560017, India.
---------------------------------------------------------------------***---------------------------------------------------------------------
Abstract: This paper demonstrates the obstacle detection
using ultrasonic sensor in Micro Air Vehicle (MAV). Thesensor
measures the distance range up to 400 cm or 4mtheoretically.
In the presence of many obstacles in front of ultrasonic sensor,
nearer obstacle was detected initially. However,theultrasonic
sensor can be used for detecting the obstacle based on colour
and size and hence collision can be avoided. An algorithm has
to develop for avoiding collisions. This algorithm was
embedded on an ARDUINO Uno that acts as the control board.
The flight control board receives the message from the
ARDUINO board to control the servos. The quad copter servo
motors are controlled in the presence of any obstacle adjacent
to the ultrasonic sensor.
Keywords: Ultrasonic sensor, Arduino Uno board, LED.
1. INTRODUCTION
MAV is a class of miniature UAVs that has a size restriction
and it is autonomous. It can be as small as 15 centimetres.
MAV development is driven by commercial, government,
research, and military purposes. The Ultrasonic sensor is a
device that can measure the distance to an object by using
sound waves. It measures distance by sending out a sound
wave at a specific frequency and listening for that sound
wave to bounce back. By recording the elapsedtimebetween
the sound wave being generated and the sound wave
bouncing back, it is possible to calculate the distance
between the sonar sensor and the object.
2. HARDWARE AND SOFTWARE
2.1 Ultrasonic Sensor
Ultrasonic sensor (HC-SR04) utilizes sonar to measure the
range of an object. Its range is to find the distance of any
object from 2 cm to 400 cm. This sensor uses sonar to detect
the objects. This sensor widely used in robotics to built the
robots, aircrafts, in order to avoid the obstacle. The
hardware component consists of both ultrasonictransmitter
and receiver module. The sensor module consists of 4 pin
namely: trigger, echo, power supply and ground.
Fig 2.1: (a) Ultrasonic sensor HC-SR04,
(b) Working principle of Ultrasonic Sensor [4]
The figure 2.1 showsultrasonic image andworkingprinciple
of ultrasonic sensor. The distance between the source and
target of echo pin and time taken to reflect back from echo
pin considered. The ultrasonic sensor requires a pulse of
high (5V) for 10μS. This sequentially initiates the ultrasonic
sensor and it sends 8 cycles of 40 kHz. Then, it waits to
receive the reflected ultrasonic signal from the obstacle. To
obtain the distance of the object the width of echo pin is
measured as follows: Time=Width of Echo pulse in
microseconds or the speed of the sound may also be
considered
 Distance in centimetres= Time / 58, Distance ininches=
Time / 148.
2.2 LED
Light emitting diodes (LEDs) are semiconductor light
sources. The light emitted from LEDs varies from visible to
infrared and ultraviolet regions. They operateonlowvoltage
and power. LEDs are one of the most common electronic
components and are mostly used as indicators in circuits.
They are also used for luminance and optoelectronic
applications. Based on semiconductor diode, LEDs emit
photons when electrons recombine with holes on forward
biasing. The two terminals of LEDs are anode (+) and
cathode (-) and can be identified by their size. The longerleg
is the positive terminal or anode and shorter one is negative
terminal.
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 05 Issue: 04 | Apr-2018 www.irjet.net p-ISSN: 2395-0072
© 2018, IRJET | Impact Factor value: 6.171 | ISO 9001:2008 Certified Journal | Page 1965
Fig 2.2 Red and Green LED
2.3 ARDUINO UNO Board
 HARDWARE
Arduino boarddesigns use a variety of microprocessorsand
controllers. It consists of 14 input/output pins, 6 analog
inputs, 16 MHz crystal oscillators, USB connections, a power
jack and reset button. The Arduino Uno is microcontroller is
based on the Atmega328. Arduino board does not require
any extra programmer to load a new code; insteadUSBcable
can be used. The ATmega328 supports SPI and I2C pins for
communication with many peripheral devices.
Fig 2.3: Arduino Uno board [6]
The Arduino Uno can power via the USB connection or with
an external power supply. However, the pin may supply less
than 5 V and the board may be unstable. If using more than
12 V the voltage regulator may over heat and damage the
board. The Arduino Uno power pins are Vin, 5 V, 3 V and
GND.
 SOFTWARE
Arduino Uno is open source project to which any hobbyist
can connect for Atmega chips. In this software code can be
written in either C or java script. A program is written onthe
IDE Arduino is called a sketch.
Arduino programs are divided into 3 parts
 Structure
 Values
 Functions
Fig 2.4: Sketch window for Arduino IDE
The fig 2.4 shows sketch window used to write the code for
Arduino IDE. The header files can be included in this
window. The Arduino Uno board is renamed withaspecified
name and saved in the Arduino file. It is compiled, if any
errorsare occurred it is corrected and thiscorrectedandthis
code is further uploaded to the Arduino Uno board.
3. IMPLEMENTATION
The implementation of ultrasonic sensor with Arduino Uno
board is described. Initially, the algorithm wasdeveloped to
find the obstacle for one ultrasonic sensor. The Algorithm
waswritten in c code using Arduino IDE sketch window.The
code is verified and uploaded to the Arduino board. The
measured distance can be seen through the serialmonitorof
IDE.
Fig 3.1: Block diagram of ultrasonic
The figure 3.1 shows the block diagram of ultrasonic sensor
connected with Arduino board. The algorithmhasdeveloped
to find the distance of an obstacle in the IDE software. Once
the algorithm is developed, the code is verifiedanduploaded
to the board using IDE software. The LED is connected with
Arduino to glow if any obstacle ispresent or not. In practical,
the ultrasonic sensor measures the distance range up to400
cm and the angle is 30 degree and operating voltage from
3.3V to 5V.
Fig 3.2: Connection between Arduino Uno board and
ultrasonic sensor
Arduino Uno
Board
Ultrasonic
Sensor
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 05 Issue: 04 | Apr-2018 www.irjet.net p-ISSN: 2395-0072
© 2018, IRJET | Impact Factor value: 6.171 | ISO 9001:2008 Certified Journal | Page 1966
3.1 Algorithm for obstacle detection with one
sensor
Fig 3.3: Algorithm for obstacle detection
4. RESULTS AND DISCUSSION
Initially a single ultrasonic sensor was connected to flight
control board. Before connecting to Mission planner initial
settings were done to obtain the result from ultrasonic
sensor. The cut-off voltage was set to 0.03 V and maximum
range up to which the ultrasonic sensor can detect was also
mentioned in mission planner software. The results were
obtained by telemetry of 915 Mhz. Ultrasonic sensor was
connected to the analog pin of the flight control board. MAV
was connected to mission planner a flight test was
conducted for5 minutes. Ultrasonic sensordisplayedvoltage
and distance on the mission planner software. A graph was
plotted taking distance versus voltage.
Fig 4.1: Ultrasonic sensor Voltage Versus Distance
Fig. 4.2: Serial Plotter showing Distances
5. CONCLUSION
One Ultrasonic sensor was connected to Arduino control
board and the distances were measured by moving the
obstacle. And the mission planner software showing the
voltage and distance of ultrasonic sensor werecaptured.The
sensor which measures the distance up to 315 cm with
5V.The distance was captured through serial monitor of
Arduino IDE software.
For both indoor and outdoor environment the ultrasonic
sensor gives the best result for obstacle detection.
ACKNOWLEDGEMENT
The authors would like to thank the Director, Mr. Jitendra J
Jadhav CSIR-National Aerospace Laboratories for his
persistence to carry out the work and Dr. Satish Chandra,
Head Structural Technologies Division (STTD) for providing
all the facilitiesfor completing thiswork.MySpecialthanksto
Mr. Aravindu B, Technical Officer of Structural Technologies
Division (STTD), CSIR-National Aerospace Laboratories, for
their help.
REFERENCES
[1] Rajan P Thomas, Jithin K K, Hareesh K S,
Habeeburahman C A, Jithin Abraham,“ Range Detection
based on Ultrasonic Principle”, February 2014.
[2] Shridevi A Mali1, G Sravanthi2*, SivaSubbaRaoP3,Raja
S3,Sushma S J1, A R Reddy2, Rohith P Maben3, “An
Algorithm For Obstacle Avoidance Controller Using
Ultrasonic Sensor For Mini Aircraft Applications”
International Journal of Engineering Technology,
Management and Applied Sciences, , Volume 5,Issue
3,March 2017.
[3] G Sravanthi1, Shridevi A Mali2, Siva Subba Rao P3,
Intelligent Landing Technique Using
[4] Ultrasonic Sensor for Mav Applications, International
Journal Of Pure And Applied Mathematics, Volume 114,
No. 12 2017.
[5] Kirtan Gopal Panda, Deepak Agrawal, Arcade
Nshimiyimana, Ashraf Hossain, “The effects of
environment on accuracy of ultrasonic sensor operates
in millimetre range”, 20 February 2016.
[6] “Arduino Uno” https://en.wikipedia.org/
Wiki/Arduino accessed on 14/10/2017.
[7] H. He, and J. Liu, “The design of ultrasonic distance
measurement system based on S3C2410,” Proceedings
of the IEEE International Conference on Intelligent
Computation Technology and Automation, Oct. 2008.
[8] P. Riseborough, “Automatic Take-Off and Landing
Control for Small UAV’s”.

More Related Content

PDF
Characteristics of Different Sensors used for Distance Measurement
PDF
IRJET- Wireless Data Monitoring and Fault Identification by using IoT in ...
PDF
IRJET- Smart Guide Stick For Blind
PDF
IRJET- Intruder Detection Security System
PDF
IRJET- PC Controlled Wireless Robot for Detecting Human Presence
PDF
IRJET- Real Time Monitoring of Air Pollution
PDF
IRJET - Zigbee based Street Light Control System
PDF
Project Report Distance measurement system
Characteristics of Different Sensors used for Distance Measurement
IRJET- Wireless Data Monitoring and Fault Identification by using IoT in ...
IRJET- Smart Guide Stick For Blind
IRJET- Intruder Detection Security System
IRJET- PC Controlled Wireless Robot for Detecting Human Presence
IRJET- Real Time Monitoring of Air Pollution
IRJET - Zigbee based Street Light Control System
Project Report Distance measurement system

What's hot (20)

PPTX
Arduino radar system
PDF
IRJET- Design of Arduino based Underground Cable Fault Detector
PPTX
Radar Using Arduino
PDF
Autonomous navigation robot
PDF
OBSTACLE AVOIDACE ROBOT USING ARDUINO UNO AND ULTRASONIC SENSOR
PDF
Short Range Radar System using Arduino Uno
PDF
IRJET - Footstep Power Generation using Piezo Electric Sensor
PDF
Distance Measurement Using Ultrasonic Sensor and Nodemcu
DOCX
4th-Yr-PROJECT-REPORT
PDF
IRJET- Microcontroller Based EOG and Accelerometer Guide Wheelchair
PDF
IRJET- Design and Development of Arduino based Radiation Survey Meter wit...
PPT
Pir sensor based security alarm system using um 3561 (2)
DOCX
Project intrusion alert
PDF
Know Your Teacher(KYT)
PDF
B04420812
PDF
Smart Home Automation using Wi-Fi
PDF
B010320711
DOC
Ultrasonic Distance Measurement NRF905 Wireless Transmission System Based on ...
PDF
IRJET- Multi - Purpose Fire Fighter Robot
PDF
IRJET- Arduino based Four-Wheeler Accident Detection and Prevention System
Arduino radar system
IRJET- Design of Arduino based Underground Cable Fault Detector
Radar Using Arduino
Autonomous navigation robot
OBSTACLE AVOIDACE ROBOT USING ARDUINO UNO AND ULTRASONIC SENSOR
Short Range Radar System using Arduino Uno
IRJET - Footstep Power Generation using Piezo Electric Sensor
Distance Measurement Using Ultrasonic Sensor and Nodemcu
4th-Yr-PROJECT-REPORT
IRJET- Microcontroller Based EOG and Accelerometer Guide Wheelchair
IRJET- Design and Development of Arduino based Radiation Survey Meter wit...
Pir sensor based security alarm system using um 3561 (2)
Project intrusion alert
Know Your Teacher(KYT)
B04420812
Smart Home Automation using Wi-Fi
B010320711
Ultrasonic Distance Measurement NRF905 Wireless Transmission System Based on ...
IRJET- Multi - Purpose Fire Fighter Robot
IRJET- Arduino based Four-Wheeler Accident Detection and Prevention System
Ad

Similar to IRJET- Obstacle Detection using Ultrasonic Sensor in MAV (Micro Air Vehicle) (20)

PDF
2014_04_msw_a4_format (2)
PPTX
Radar using ultrasonic sensor and arduino.pptx
PPTX
diploma major project ppt for ultrasonnic
PPTX
Final year Engineering project
PPTX
Arduino Ultrasonic Sensor
PPTX
Experiment 3133 (Ultrasonic Sensor).pptx
PPTX
IOT_PPT_PRESENTATION_2025.pptx and radar using sensor
PPTX
RADAR SYSTEM USING ARDUINO AND ULTRASONIC .pptx
PPTX
Ultrasonic Radar Sensors with arduino applications S.pptx
PPTX
Copy-of-Building-a-Basic-Radar-System-with-Arduino-and-Ultrasonic-Sensor.pptx
PDF
IRJET- Automated Targeting System for Open Space Military Area
PPTX
Ultrasonic radar mini project
PPTX
Artificial Intelligence(radar).pptx
PPTX
Self Obstacle Avoiding Rover
PDF
Sonar Project Report
DOC
ULTRASONIC SENSOR DISTANCE CALCULATE
PPTX
avoiding accidents on ghat roads and u turns by using IOT
PPTX
Distance measuring using ultra sonic sensor (2).pptx
PPTX
Interfacing ultrasonic rangefinder with avr mc us
PPTX
1.4 Distance Measurement_UltrasonicSensor.pptx
2014_04_msw_a4_format (2)
Radar using ultrasonic sensor and arduino.pptx
diploma major project ppt for ultrasonnic
Final year Engineering project
Arduino Ultrasonic Sensor
Experiment 3133 (Ultrasonic Sensor).pptx
IOT_PPT_PRESENTATION_2025.pptx and radar using sensor
RADAR SYSTEM USING ARDUINO AND ULTRASONIC .pptx
Ultrasonic Radar Sensors with arduino applications S.pptx
Copy-of-Building-a-Basic-Radar-System-with-Arduino-and-Ultrasonic-Sensor.pptx
IRJET- Automated Targeting System for Open Space Military Area
Ultrasonic radar mini project
Artificial Intelligence(radar).pptx
Self Obstacle Avoiding Rover
Sonar Project Report
ULTRASONIC SENSOR DISTANCE CALCULATE
avoiding accidents on ghat roads and u turns by using IOT
Distance measuring using ultra sonic sensor (2).pptx
Interfacing ultrasonic rangefinder with avr mc us
1.4 Distance Measurement_UltrasonicSensor.pptx
Ad

More from IRJET Journal (20)

PDF
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
PDF
Utilizing Biomedical Waste for Sustainable Brick Manufacturing: A Novel Appro...
PDF
Kiona – A Smart Society Automation Project
PDF
DESIGN AND DEVELOPMENT OF BATTERY THERMAL MANAGEMENT SYSTEM USING PHASE CHANG...
PDF
Invest in Innovation: Empowering Ideas through Blockchain Based Crowdfunding
PDF
SPACE WATCH YOUR REAL-TIME SPACE INFORMATION HUB
PDF
A Review on Influence of Fluid Viscous Damper on The Behaviour of Multi-store...
PDF
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
PDF
Explainable AI(XAI) using LIME and Disease Detection in Mango Leaf by Transfe...
PDF
BRAIN TUMOUR DETECTION AND CLASSIFICATION
PDF
The Project Manager as an ambassador of the contract. The case of NEC4 ECC co...
PDF
"Enhanced Heat Transfer Performance in Shell and Tube Heat Exchangers: A CFD ...
PDF
Advancements in CFD Analysis of Shell and Tube Heat Exchangers with Nanofluid...
PDF
Breast Cancer Detection using Computer Vision
PDF
Auto-Charging E-Vehicle with its battery Management.
PDF
Analysis of high energy charge particle in the Heliosphere
PDF
A Novel System for Recommending Agricultural Crops Using Machine Learning App...
PDF
Auto-Charging E-Vehicle with its battery Management.
PDF
Analysis of high energy charge particle in the Heliosphere
PDF
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
Utilizing Biomedical Waste for Sustainable Brick Manufacturing: A Novel Appro...
Kiona – A Smart Society Automation Project
DESIGN AND DEVELOPMENT OF BATTERY THERMAL MANAGEMENT SYSTEM USING PHASE CHANG...
Invest in Innovation: Empowering Ideas through Blockchain Based Crowdfunding
SPACE WATCH YOUR REAL-TIME SPACE INFORMATION HUB
A Review on Influence of Fluid Viscous Damper on The Behaviour of Multi-store...
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
Explainable AI(XAI) using LIME and Disease Detection in Mango Leaf by Transfe...
BRAIN TUMOUR DETECTION AND CLASSIFICATION
The Project Manager as an ambassador of the contract. The case of NEC4 ECC co...
"Enhanced Heat Transfer Performance in Shell and Tube Heat Exchangers: A CFD ...
Advancements in CFD Analysis of Shell and Tube Heat Exchangers with Nanofluid...
Breast Cancer Detection using Computer Vision
Auto-Charging E-Vehicle with its battery Management.
Analysis of high energy charge particle in the Heliosphere
A Novel System for Recommending Agricultural Crops Using Machine Learning App...
Auto-Charging E-Vehicle with its battery Management.
Analysis of high energy charge particle in the Heliosphere
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...

Recently uploaded (20)

PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PPTX
Artificial Intelligence
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
communication and presentation skills 01
PPTX
Fundamentals of safety and accident prevention -final (1).pptx
PPT
A5_DistSysCh1.ppt_INTRODUCTION TO DISTRIBUTED SYSTEMS
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PDF
null (2) bgfbg bfgb bfgb fbfg bfbgf b.pdf
PDF
A SYSTEMATIC REVIEW OF APPLICATIONS IN FRAUD DETECTION
PPTX
CURRICULAM DESIGN engineering FOR CSE 2025.pptx
PPTX
Current and future trends in Computer Vision.pptx
PPT
INTRODUCTION -Data Warehousing and Mining-M.Tech- VTU.ppt
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPT
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
PDF
COURSE DESCRIPTOR OF SURVEYING R24 SYLLABUS
PDF
Level 2 – IBM Data and AI Fundamentals (1)_v1.1.PDF
PDF
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
PPT
introduction to datamining and warehousing
PDF
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
PDF
SMART SIGNAL TIMING FOR URBAN INTERSECTIONS USING REAL-TIME VEHICLE DETECTI...
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
Artificial Intelligence
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
communication and presentation skills 01
Fundamentals of safety and accident prevention -final (1).pptx
A5_DistSysCh1.ppt_INTRODUCTION TO DISTRIBUTED SYSTEMS
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
null (2) bgfbg bfgb bfgb fbfg bfbgf b.pdf
A SYSTEMATIC REVIEW OF APPLICATIONS IN FRAUD DETECTION
CURRICULAM DESIGN engineering FOR CSE 2025.pptx
Current and future trends in Computer Vision.pptx
INTRODUCTION -Data Warehousing and Mining-M.Tech- VTU.ppt
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
COURSE DESCRIPTOR OF SURVEYING R24 SYLLABUS
Level 2 – IBM Data and AI Fundamentals (1)_v1.1.PDF
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
introduction to datamining and warehousing
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
SMART SIGNAL TIMING FOR URBAN INTERSECTIONS USING REAL-TIME VEHICLE DETECTI...

IRJET- Obstacle Detection using Ultrasonic Sensor in MAV (Micro Air Vehicle)

  • 1. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 05 Issue: 04 | Apr-2018 www.irjet.net p-ISSN: 2395-0072 © 2018, IRJET | Impact Factor value: 6.171 | ISO 9001:2008 Certified Journal | Page 1964 Obstacle Detection using Ultrasonic sensor in MAV (Micro Air Vehicle) Sharmila A 1, ,Ramesh P1, Siva Subba Rao Patange 2 ,Dr.S.Raja2, Dr.Aby.K.Thomas1 1Hindustan Institute of Technology and Science, Chennai-603 103. 2CSIR-National Aerospace Laboratories, Bengaluru-560017, India. ---------------------------------------------------------------------***--------------------------------------------------------------------- Abstract: This paper demonstrates the obstacle detection using ultrasonic sensor in Micro Air Vehicle (MAV). Thesensor measures the distance range up to 400 cm or 4mtheoretically. In the presence of many obstacles in front of ultrasonic sensor, nearer obstacle was detected initially. However,theultrasonic sensor can be used for detecting the obstacle based on colour and size and hence collision can be avoided. An algorithm has to develop for avoiding collisions. This algorithm was embedded on an ARDUINO Uno that acts as the control board. The flight control board receives the message from the ARDUINO board to control the servos. The quad copter servo motors are controlled in the presence of any obstacle adjacent to the ultrasonic sensor. Keywords: Ultrasonic sensor, Arduino Uno board, LED. 1. INTRODUCTION MAV is a class of miniature UAVs that has a size restriction and it is autonomous. It can be as small as 15 centimetres. MAV development is driven by commercial, government, research, and military purposes. The Ultrasonic sensor is a device that can measure the distance to an object by using sound waves. It measures distance by sending out a sound wave at a specific frequency and listening for that sound wave to bounce back. By recording the elapsedtimebetween the sound wave being generated and the sound wave bouncing back, it is possible to calculate the distance between the sonar sensor and the object. 2. HARDWARE AND SOFTWARE 2.1 Ultrasonic Sensor Ultrasonic sensor (HC-SR04) utilizes sonar to measure the range of an object. Its range is to find the distance of any object from 2 cm to 400 cm. This sensor uses sonar to detect the objects. This sensor widely used in robotics to built the robots, aircrafts, in order to avoid the obstacle. The hardware component consists of both ultrasonictransmitter and receiver module. The sensor module consists of 4 pin namely: trigger, echo, power supply and ground. Fig 2.1: (a) Ultrasonic sensor HC-SR04, (b) Working principle of Ultrasonic Sensor [4] The figure 2.1 showsultrasonic image andworkingprinciple of ultrasonic sensor. The distance between the source and target of echo pin and time taken to reflect back from echo pin considered. The ultrasonic sensor requires a pulse of high (5V) for 10μS. This sequentially initiates the ultrasonic sensor and it sends 8 cycles of 40 kHz. Then, it waits to receive the reflected ultrasonic signal from the obstacle. To obtain the distance of the object the width of echo pin is measured as follows: Time=Width of Echo pulse in microseconds or the speed of the sound may also be considered  Distance in centimetres= Time / 58, Distance ininches= Time / 148. 2.2 LED Light emitting diodes (LEDs) are semiconductor light sources. The light emitted from LEDs varies from visible to infrared and ultraviolet regions. They operateonlowvoltage and power. LEDs are one of the most common electronic components and are mostly used as indicators in circuits. They are also used for luminance and optoelectronic applications. Based on semiconductor diode, LEDs emit photons when electrons recombine with holes on forward biasing. The two terminals of LEDs are anode (+) and cathode (-) and can be identified by their size. The longerleg is the positive terminal or anode and shorter one is negative terminal.
  • 2. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 05 Issue: 04 | Apr-2018 www.irjet.net p-ISSN: 2395-0072 © 2018, IRJET | Impact Factor value: 6.171 | ISO 9001:2008 Certified Journal | Page 1965 Fig 2.2 Red and Green LED 2.3 ARDUINO UNO Board  HARDWARE Arduino boarddesigns use a variety of microprocessorsand controllers. It consists of 14 input/output pins, 6 analog inputs, 16 MHz crystal oscillators, USB connections, a power jack and reset button. The Arduino Uno is microcontroller is based on the Atmega328. Arduino board does not require any extra programmer to load a new code; insteadUSBcable can be used. The ATmega328 supports SPI and I2C pins for communication with many peripheral devices. Fig 2.3: Arduino Uno board [6] The Arduino Uno can power via the USB connection or with an external power supply. However, the pin may supply less than 5 V and the board may be unstable. If using more than 12 V the voltage regulator may over heat and damage the board. The Arduino Uno power pins are Vin, 5 V, 3 V and GND.  SOFTWARE Arduino Uno is open source project to which any hobbyist can connect for Atmega chips. In this software code can be written in either C or java script. A program is written onthe IDE Arduino is called a sketch. Arduino programs are divided into 3 parts  Structure  Values  Functions Fig 2.4: Sketch window for Arduino IDE The fig 2.4 shows sketch window used to write the code for Arduino IDE. The header files can be included in this window. The Arduino Uno board is renamed withaspecified name and saved in the Arduino file. It is compiled, if any errorsare occurred it is corrected and thiscorrectedandthis code is further uploaded to the Arduino Uno board. 3. IMPLEMENTATION The implementation of ultrasonic sensor with Arduino Uno board is described. Initially, the algorithm wasdeveloped to find the obstacle for one ultrasonic sensor. The Algorithm waswritten in c code using Arduino IDE sketch window.The code is verified and uploaded to the Arduino board. The measured distance can be seen through the serialmonitorof IDE. Fig 3.1: Block diagram of ultrasonic The figure 3.1 shows the block diagram of ultrasonic sensor connected with Arduino board. The algorithmhasdeveloped to find the distance of an obstacle in the IDE software. Once the algorithm is developed, the code is verifiedanduploaded to the board using IDE software. The LED is connected with Arduino to glow if any obstacle ispresent or not. In practical, the ultrasonic sensor measures the distance range up to400 cm and the angle is 30 degree and operating voltage from 3.3V to 5V. Fig 3.2: Connection between Arduino Uno board and ultrasonic sensor Arduino Uno Board Ultrasonic Sensor
  • 3. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 05 Issue: 04 | Apr-2018 www.irjet.net p-ISSN: 2395-0072 © 2018, IRJET | Impact Factor value: 6.171 | ISO 9001:2008 Certified Journal | Page 1966 3.1 Algorithm for obstacle detection with one sensor Fig 3.3: Algorithm for obstacle detection 4. RESULTS AND DISCUSSION Initially a single ultrasonic sensor was connected to flight control board. Before connecting to Mission planner initial settings were done to obtain the result from ultrasonic sensor. The cut-off voltage was set to 0.03 V and maximum range up to which the ultrasonic sensor can detect was also mentioned in mission planner software. The results were obtained by telemetry of 915 Mhz. Ultrasonic sensor was connected to the analog pin of the flight control board. MAV was connected to mission planner a flight test was conducted for5 minutes. Ultrasonic sensordisplayedvoltage and distance on the mission planner software. A graph was plotted taking distance versus voltage. Fig 4.1: Ultrasonic sensor Voltage Versus Distance Fig. 4.2: Serial Plotter showing Distances 5. CONCLUSION One Ultrasonic sensor was connected to Arduino control board and the distances were measured by moving the obstacle. And the mission planner software showing the voltage and distance of ultrasonic sensor werecaptured.The sensor which measures the distance up to 315 cm with 5V.The distance was captured through serial monitor of Arduino IDE software. For both indoor and outdoor environment the ultrasonic sensor gives the best result for obstacle detection. ACKNOWLEDGEMENT The authors would like to thank the Director, Mr. Jitendra J Jadhav CSIR-National Aerospace Laboratories for his persistence to carry out the work and Dr. Satish Chandra, Head Structural Technologies Division (STTD) for providing all the facilitiesfor completing thiswork.MySpecialthanksto Mr. Aravindu B, Technical Officer of Structural Technologies Division (STTD), CSIR-National Aerospace Laboratories, for their help. REFERENCES [1] Rajan P Thomas, Jithin K K, Hareesh K S, Habeeburahman C A, Jithin Abraham,“ Range Detection based on Ultrasonic Principle”, February 2014. [2] Shridevi A Mali1, G Sravanthi2*, SivaSubbaRaoP3,Raja S3,Sushma S J1, A R Reddy2, Rohith P Maben3, “An Algorithm For Obstacle Avoidance Controller Using Ultrasonic Sensor For Mini Aircraft Applications” International Journal of Engineering Technology, Management and Applied Sciences, , Volume 5,Issue 3,March 2017. [3] G Sravanthi1, Shridevi A Mali2, Siva Subba Rao P3, Intelligent Landing Technique Using [4] Ultrasonic Sensor for Mav Applications, International Journal Of Pure And Applied Mathematics, Volume 114, No. 12 2017. [5] Kirtan Gopal Panda, Deepak Agrawal, Arcade Nshimiyimana, Ashraf Hossain, “The effects of environment on accuracy of ultrasonic sensor operates in millimetre range”, 20 February 2016. [6] “Arduino Uno” https://en.wikipedia.org/ Wiki/Arduino accessed on 14/10/2017. [7] H. He, and J. Liu, “The design of ultrasonic distance measurement system based on S3C2410,” Proceedings of the IEEE International Conference on Intelligent Computation Technology and Automation, Oct. 2008. [8] P. Riseborough, “Automatic Take-Off and Landing Control for Small UAV’s”.