Professional Documents
Culture Documents
A PROJECT REPORT
SUBMITTED BY
VASUDEVAN M (16EUEC162)
GOWRISHANKAR B
(17EUEC507)
BACHELOR OF ENGINEERING
In
1
APRIL 2018
2
SRI KRISHNA COLLEGE OF ENGINEERING AND TECHNOLOGY
(An Autonomous Institution)
(Approved by AICTE and Affiliated to Anna University, Chennai)
ACCREDITED BY NAAC WITH “A” GRADE
BONAFIDE CERTIFICATE
Certified that this project report “CRACK DEPTH MEASUREMENT
USING ARDUINO AND MOBILE APPLICATION” is the bonafide work of
VASUDEVAN M (16EUEC162)
AQIL NAZEER (16EUEC011)
GOWRISHANKAR B (17EUEC507)
who carried out the project work under my supervision.
SIGNATURE SIGNATURE
DR S SOPHIA , PhD., MS ANIE SELVA JOTHI, M.Tech.,
HEAD OF THE DEPARTMENT SUPERVISOR
DEPARTMENT OF ELECTRONICS AND DEPARTMENT OF ELECTRONICS AND
COMMUNICATION ENGINEERING COMMUNICATION ENGINEERING
SRI KRISHNA COLLEGE OF ENGINEERING SRI KRISHNA COLLEGE OF ENGINEERING
AND TECHNOLOGY AND TECHNOLOGY
KUNIYAMUTHUR KUNIYAMUTHUR
COIMBATORE - 641008 COIMBATORE - 641008
We convey our heartiest thanks to Dr. S. SOPHIA, M.E. PhD.., Professor and
Head, Department of Electronics and Communication Engineering for providing
facilities required to carry out the project.
We convey our thanks to our project guide Ms. ANIE SELVA JOTHI, M.Tech.,
Assistant Professor, Department of Electronics and Communication Engineering
for her personal guidance and constant advice regarding this project.
We convey our thanks to all faculty members who rendered that help directly as
well as indirectly foe the completion of our project.
We also thank our friends for the strong support and inspiration they have
provided in the bringing out this volume.
ABSTRACT
The core objective of the project is to develop a device to measure the depth
of cracks in dams and view the result through a customized mobile application.
The position and direction of the ultrasonic sensor which is used to measure the
depth of the crack can also be controlled through the mobile application. Remote
controlling is achieved with the help of blue-tooth which acts as a channel
between the device and the mobile application. This project will be useful in
“Collection of data in respect of dams in distress conditions”. Thus this project
can measure the depth of cracks in Dams which will aid in analyzing the
condition of dams and hence the information obtained will enable us to carry out
necessary corrective and preventive measures,especially in distress situations.
TABLE OF CONTENTS
3 PROPOSED SYSTEM 16
ACRONYM EXPANSION
WI-Fi Trademarked term meaning
“IEEE 802.11x”
IDE Integrated Development Environment
MRI Magnetic Resonance Imaging
MP3/MPEG-3 Moving Picture Experts Group
FTDI Future Technology Devices International
USB Universal Serial Bus
UHF Ultra High Frequency
ISM Band Industrial, Scientific and Medical Band
PIC Programmable Intelligent Computer
LCD Liquid Crystal Display
AVR Advanced Virtual RISC
SRAM Static Random Access Memory
EEPROM Electrically Erasable Programmable
Read-Only Memory
GND Ground
UART Universal Asynchronous
Receiver-Transmitter
TTL Transistor-Transistor Logic
SMS Short Message Service
HTML Hyper Text Markup Language
APK Android Package
GNU A Recursive Acronym for “GNU’s”
MIT Massachusetts Institute of Technology
RGB Red, Green and Blue
RGBA Red Green Blue Alpha
CHAPTER 1
INTRODUCTION
1.1EMBEDDED SYSTEM
1.3 ULTRASONIC
Ultrasound is sound waves with frequencies higher than the upper audible
limit of human hearing. Ultrasound is no different from 'normal' (audible) sound
in its physical properties, except in that humans cannot hear it. This limit varies
from person to person and is approximately 20 kilohertz (20,000 hertz) in healthy
young adults. Ultrasound devices operate with frequencies from 20 kHz up to
several gigahertz. Ultrasound is used in many different fields. Ultrasonic devices
are used to detect objects and measure distances. Ultrasound imaging or
Sonography is often used in medicine. In the nondestructive testing of products
and structures, ultrasound is used to detect invisible flaws. Industrially,
ultrasound is used for cleaning, mixing, and to accelerate chemical processes.
Animals such as bats and porpoises use ultrasound for locating prey and
obstacles.Scientist are also studying ultrasound using graphene diaphragms as a
method of communication.
LITERATURE SURVEY
The authors propose a radar made with the ultrasonic sensor type HC -
SR04, developed for Arduino. The novelty added by this paper is the
development of specific libraries aiming to interface the sensor produced for
Arduino with the micro controller PIC 18F, manufactured by Microchip. We
have taken into account the temperature influence on the ultrasound. The radar
can detect objects located at distances between 2 cm and 4 meters and displays
the value of distance to the object. The object detection is performed inside an
angle of 180 degrees. The motion sensor that covers this angle uses a stepper
motor. Data are presented on a LCD display, the motor movement being
synchronized with the browsing of the radar screen. Synchronization is made by
programming the timers of the micro controller. These timers generate
interruptions at preset moments, correlated with the completion of a specific area
of the graphic display.
Radio detection and ranging, that is, RADAR is a radio wave technique to
determine the scope of the object, angle or speed. It is object detection
technology. It is used to detect aircraft, ships, spacecraft, missiles, motor vehicles,
weather formation and terrain. The proposed "Ultrasonic Radar System" uses an
ultrasonic module that includes an ultrasonic transmitter and receiver as well as
an AVR micro-controller ATmega128. It works by launching a short pulse at the
ear audible frequency, after that micro-controller listens for echoes. The
information about the distance to the object is given at the time elapsed during
transmission to the echo reception. Here, the objective is to design an ultrasonic
radar system by plotting its graph with the help of Matlab to identify the location
of the object and its angle in the unauthorized area.
CHAPTER 3
PROPOSED SYSTEM
User-Friendly Interface
Remote Controllable
Low Cost
Accurate Measurement
3.3 BLOCK DIAGRAM
ULTRASONIC SENSOR
ANDROID
APPLICATION
(SMART PHONE)
ARDUINO SERVO MOTOR
UNO
20
4.1.2.1 Power pins
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 - 20V),
the USB connector (5V), or the VIN pin of the board (7-20V). Supplying
voltage via the 5V or 3.3V pins bypasses the regulator, and can damage the
board.
3V3: A 3.3 volt supply generated by the on-board regulator. Maximum
current draw is 50 mA.
GND: Ground pins.
4.1.2.2 Memory
There are three pools of memory in the micro-controller used on Avr-based
Arduino boards :
Flash memory (program space), is where the Arduino sketch is stored.
SRAM (static random access memory) is where the sketch creates and
manipulates variables when it runs.
EEPROM is memory space that programmers can use to store long-term
information.
Flash memory and EEPROM memory are non-volatile (the information
persists after the power is turned off). SRAM is volatile and will be lost when the
power is cycled.
The ATmega328 chip found on the UNO has the following amounts of memory:
Flash 32k bytes (of which .5k is used for the boot-loader)
SRAM 2k bytes
EEPROM 1k
byte
4.1.2.3 Input and Output
Each of the 14 digital pins and 6 Analog pins on the Uno can be used as an
input or output, using pinmode(),digitalWrite(), and digitalRead() functions.
They operate at 5 volts. Each pin can provide or receive 20 mA as recommended
operating condition and has an internal pull-up resistor (disconnected by default)
of 20-50k ohm. A maximum of 40mA is the value that must not be exceeded on
any I/O pin to avoid permanent damage to the micro-controller.The Uno has 6
analog inputs, labeled A0 through A5, each of which provide 10 bits of
resolution (i.e. 1024 different values). By default they measure from ground to 5
volts, though is it possible to change the upper end of their range using the AREF
pin and the analogReference() function.
In addition, some pins have specialized functions:
Serial: pins 0 (RX) and 1 (TX). Used to receive (RX) and transmit (TX)
TTL serial data. These pins are connected to the corresponding pins of the
ATmega8U2 USB-to-TTL Serial chip.
External Interrupts: pins 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.
PWM(Pulse Width Modulation) 3, 5, 6, 9, 10, and 11 Can provide 8-bit
PWM output with the analogWrite() function.
SPI(Serial Peripheral Interface): 10 (SS), 11 (MOSI), 12 (MISO), 13
(SCK). These pins support SPI communication using the SPI library.
TWI(Two Wire Interface): A4 or SDA pin and A5 or SCL pin. Support
TWI communication using the Wire library.
AREF(Analog REFerence: Reference voltage for the analog inputs.
4.1.3 COMMUNICATION
The Arduino/Genuino Uno has a number of facilities for communicating
with a computer, another Arduino/Genuino board, or other micro-controllers. The
ATmega328 provides UART TTL (5V) serial communication, which is available
on digital pins 0 (RX) and 1 (TX). An ATmega16U2 on the board channels this
serial communication over USB and appears as a virtual com port to software on
the computer. The 16U2 firmware uses the standard USB COM drivers, and no
external driver is needed. However, on Windows, a .inf file is required. The
Arduino Software (IDE) includes a serial monitor which allows simple textual
data to be sent to and from the board. The RX and TX LED’s on the board will
flash when data is being transmitted via the USB-to-serial chip and USB
connection to the computer (but not for serial communication on pins 0 and 1). A
Software-Serial library allows serial communication on any of the Uno digital
pins.
4.1.4 PROGRAMMING
The Arduino UNO can be programmed with the Arduino software. The
ATmega328 on the Arduino Uno comes pre-programmed with a boot-loader that
allows to upload new code to it without the use of an external hardware
programmer. It communicates using the original STK500 protocol. The Uno also
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. A program for Arduino hardware may
be written in any programming language with compilers that produce binary
machine code for the target processor. Atmel provides a development
environment for their 8-bit AVR and 32-bit ARM Cortex-M based micro-
controllers: AVR Studio (older) and Atmel Studio (newer).
4.1.5 AUTOMATIC (SOFTWARE) RESET
Rather than requiring a physical press of the reset button before an upload,
the Arduino/Genuino Uno board is designed in a way that allows it to be reset by
software running on a connected computer. One of the hardware flow control
lines (DTR) of the ATmega8U2/16U2 is connected to the reset line of the
ATmega328 via a 100 nano farad capacitor. When this line is asserted (taken
low), the reset line drops long enough to reset the chip. This setup has other
implications. When the Uno is connected to either a computer running Mac OS X
or Linux, it resets each time a connection is made to it from software (via USB).
For the following half-second or so, the boot-loader is running on the Uno. While
it is programmed to ignore malformed data (i.e. anything besides an upload of
new code), it will intercept the first few bytes of data sent to the board after a
connection is opened.
4.2 ULTRA-SONIC SENSOR
Ultrasonic sensors are a type of acoustic sensor divided into three broad
categories: transmitters, receivers and transceivers. Transmitters convert
electrical signals into ultrasound, receivers convert ultrasound into electrical
signals, and transceivers can both transmit and receive ultrasound.In a similar
way to radar and sonar, ultrasonic transducers are used in systems which evaluate
targets by interpreting the reflected signals. For example, by measuring the time
between sending a signal and receiving an echo the distance of an object can be
calculated. Passive ultrasonic sensors are basically microphones that detect
ultrasonic noise that is present under certain conditions. Ultrasonic probes and
ultrasonic baths apply ultrasonic energy to agitate particles in a wide range of
materials. Ultrasonic systems typically use a transducer which generates sound
waves in the ultrasonic range, above 18 kHz, by turning electrical energy into
sound, then upon receiving the echo turn the sound waves into electrical energy
which can be measured and displayed. The technology is limited by the shapes of
surfaces and the density or consistency of the material. Foam, in particular, can
distort surface level readings. This technology, as well, can detect approaching
objects and track their positions. Ultrasonic transducers convert AC into
ultrasound, as well as the reverse. Ultra-sonic, typically refers to piezoelectric
transducers or capacitive transducers Piezoelectric crystals change size and shape
when a voltage is applied; AC voltage makes them oscillate at the same
frequency and produce ultrasonic sound. Capacitive transducers use electrostatic
fields between a conductive diaphragm and a backing plate. The beam pattern of
a transducer can be determined by the active transducer area and shape, the
ultrasound wavelength, and the sound velocity of the propagation medium. The
diagrams show the sound fields of an unfocused and a focusing ultrasonic
transducer in water, plainly at differing energy levels. Since piezoelectric
materials generate a voltage when force is applied to them, they can also work as
ultrasonic detectors. Some systems use separate transmitters and receivers, while
others combine both functions into a single piezoelectric transceiver.
As we know that Vcc and Gnd of the module goes to Vcc and Gnd of
Arduino.The TXD pin goes to RXD pin of Arduino and RXD pin goes to TXD
pin of Arduino i.e(digital pin 0 and 1).The user can use the on board Led.But
here,Led is connected to digital pin 12 externally for betterment of the process.
It is tiny and lightweight with high output power. This servo can rotate
approximately 180 degrees (90 in each direction), and works just like the
standard kinds but smaller. You can use any servo code, hardware or library to
control these servos.It comes with a 3 horns (arms) and hardware.
Specifications
Temperature range: 0 ºC – 55 ºC
To connect SG90 micro servo motor to Arduino Uno we require the following
soft wares Arudino Uno and Arduino IDE(1.0.6V). The SG90 micro servo motor
has 3 wire interface in which the connections should made as follows:
Red wire-5V
Brown wire-
Ground
SOFTWARE DESCRIPTION
HARDWARE RESULT
SOFTWARE RESULT
8.2 BOOKS
[1] ‘Arduino For Dummies’ by “John Nussey”.
[2] ‘Rapid Android Development’ by “Daniel Sauter ”.
[3] ‘Android Application Development in 24 Hours, Sams Teach Yourself 4th
Edition’,by “Carmen Delessio, Lauren Darcey and Shane Conder”.
TABLE OF CONTENTS
ABSTRACT
LIST OF FIGURES
LIST OF
ABBREVATION
1 INTRODUCTION
2 LITERATURE SURVEY
3 EXISTING SYSTEM
4 PROPOSED SYSTEM
5 TOOLS DESCRIPTION
6 ALGORITHM
7 RESULTS
8 BENCHMARKING/
CONTRASTING
9 CONCLUSION
10 REFERENCE