Академический Документы
Профессиональный Документы
Культура Документы
Bachelor of Engineering
in
Electronics and Communication Engineering
Submitted by
Rajesh C S 1KG13EC084
Suhas R M 1KG13EC101
Sunil Kumar S 1KG13EC104
Suresh J 1KG13EC107
Dr Girish. V. Attimarad
Professor and HOD
Department of ECE
KSSEM, Bangalore
Certificate
This is to certify that the project work entitled Design and Implementation of a
Programmable Smart Stick for Visually Impaired using ARM7 is a bonafide work
carried out by
Rajesh C S 1KG10EC084
Suhas R M 1KG13EC101
Sunil Kumar S 1KG13EC104
Suresh J 1KG13EC107
University Examiners:
______________________________ ______________________________
Name and Signature of Examiner-1 Name and Signature of Examiner-2
K.S. School of Engineering and Management
No. 15, Mallasandra, off Kanakapura Road, Bangalore-560062
Declaration
We,
Rajesh C S 1KG10EC084
Suhas R M 1KG13EC101
Sunil Kumar S 1KG13EC104
Suresh J 1KG13EC107
1 1KG13EC084 Rajesh C S
2 1KG13EC101 Suhas R M
4 1KG13EC107 Suresh J
Date:
Place: Bangalore
Acknowledgement
The successful completion of task would be incomplete without complementing
those who made it possible, whose guidance and encouragement made our efforts
successful.
With deep sense of gratitude, we acknowledge the help and encouragement of our
internal guide Dr Girish. V. Attimarad, Professor and HOD, Department of ECE,
KSSEM, Bangalore, for his exemplary guidance valuable suggestion, expert advice and
encouragements.
Last but not the least, we take this opportunity in expressing our gratitude and
respect to all those who directly helped and encouraged us during the course of this project.
RAJESH C S 1KG13EC104
SUHAS R M 1KG13EC101
SURESH J 1KG13EC107
i
Abstract
The smart stick helps the visually impaired people and the blind to find obstacles in
front of them, while walking in the street, in new unknown places which makes it safe. The
smart stick comes as a proposed solution to enable them to identify the world around them.
Earlier can guides used active RFID for navigation. In this device we use ultrasonic sensor
and infrared sensor to detect obstacles in front of the user and also for navigating the visually
impaired.
The vibration motor is activated when water presence is detected. Two wires from
the circuit are extended from the circuit board and connected at the bottom. Whenever the
stick is placed in the water the circuit becomes closed and the motor starts vibrating. The
person can be located with the help of GPS if lost. ARM7 is programmed with the care
takers mobile number. Any number of caretakers can be added into the program.
When impact is found on the sensor, GPS gets activated and sends accident detected
message through GSM to the care taker.
This proposed system uses ARM7, Arduino UNO, vibration motor, infrared sensor,
ultrasonic sensor, impact sensor, water detector circuit, speaker, LCD display, GPS and
GSM. The stick is capable of detecting all obstacles and gives a suitable respective message
empowering visually impaired to move twice his normal speed because the person feels safe.
The smart stick is of low cost, fast response and low power consumption.
ii
Nomenclature
Abbreviations:
IR Infrared
iii
Contents
Acknowledgement ................................................................................................................ i
Abstract ................................................................................................................................ ii
Nomenclature .....................................................................................................................iii
Contents .............................................................................................................................. iv
List of Figures ..................................................................................................................... vi
List of Tables ..................................................................................................................... vii
Chapter 1 .................................................................................................................................. 1
Introduction ......................................................................................................................... 1
1.1 Existing Problem ............................................................................................................................. 1
1.2 Proposed Solution to the Problem ................................................................................................... 1
1.3 Scope of the Project ......................................................................................................................... 3
1.4 Summary ......................................................................................................................................... 3
1.5 Organization of the Report .............................................................................................................. 4
Chapter 2 .................................................................................................................................. 5
Literature Review ............................................................................................................... 5
2.1 Literature on Earlier Cane Guides ................................................................................................... 5
2.2 Literature on ARM7 ........................................................................................................................ 5
2.3 Literature on Arduino ...................................................................................................................... 6
2.4 Literature on GPS ............................................................................................................................ 7
2.5 Literature on GSM System for Mobile ............................................................................................ 7
2.6 Literature on Sensors ....................................................................................................................... 9
2.7 Literature on Voice Recognition Kit (APR33A) ........................................................................... 11
2.8 Aim, Objectives and Methodology ................................................................................................ 12
Chapter 3 ................................................................................................................................ 14
Design and Implementation ............................................................................................. 14
3.1 System Requirement and Block Diagram ..................................................................................... 14
3.2 ARM7 LPC2148 ........................................................................................................................... 15
3.3 LPC2148 Microcontroller ............................................................................................................. 16
3.4 Arduino design .............................................................................................................................. 19
3.5 Arduino Platform........................................................................................................................... 21
3.6 Arduino hardware .......................................................................................................................... 21
3.7 Sensors .......................................................................................................................................... 22
3.8 Infrared Sensor .............................................................................................................................. 22
3.9 Water sensor .................................................................................................................................. 24
3.10 Ultrasonic sensor ........................................................................................................................... 28
3.11 Liquid Crystal Diode ..................................................................................................................... 29
3.12 Power Supply Unit ........................................................................................................................ 34
3.13 Buffer, Driver and Relay ............................................................................................................... 35
3.14 Software Implementation for LPC2148 ........................................................................................ 38
iv
Chapter 4 ................................................................................................................................ 42
Results and Discussions .................................................................................................... 42
4.1 Infrared Sensor .............................................................................................................................. 43
4.2 Water sensor .................................................................................................................................. 43
4.3 GPS and GSM ............................................................................................................................... 44
4.4 Vibrator Sensor ............................................................................................................................. 45
4.5 Buzzer ........................................................................................................................................... 46
Chapter 5 ................................................................................................................................ 47
Conclusion and Future Scope .......................................................................................... 47
5.1 Conclusion ..................................................................................................................................... 47
5.2 Future Scope .................................................................................................................................. 47
References .......................................................................................................................... 48
Annexures .......................................................................................................................... 50
v
List of Figures
Figure 2.1: Mechanism of IR Sensor ...................................................................................... 10
Figure 2.2: Principle of Water Pit Sensing ............................................................................. 10
Figure 3.1: Block Diagram of the Proposed System .............................................................. 15
Figure 3.2: LPC2148 .............................................................................................................. 17
Figure 3.3: Pin Diagram of LPC2148 Microcontroller .......................................................... 19
Figure 3.4: Block Diagram of Arduino................................................................................... 20
Figure 3.5: Arduino uno Board ............................................................................................... 20
Figure 3.6: Circuit Diagram of IR module ............................................................................. 23
Figure 3.7: PIN OUT DIAGRAM OF TIMER IC 555 .......................................................... 25
Figure 3.8: Circuit Diagram of Water Detector ...................................................................... 27
Figure 3.9: Circuit Diagram of Obstacle Detection ................................................................ 28
Figure 3.10: Timing Diagram of Ultrasonic Sensor ............................................................... 29
Figure 3.11: LCD 162 .......................................................................................................... 30
Figure 3.12: LCD Pin Diagram .............................................................................................. 33
Figure 4.1: Project Module ..................................................................................................... 42
Figure 4.2: Infrared Sensor ..................................................................................................... 43
Figure 4.3: Water Sensor used in Arduino ............................................................................. 43
Figure 4.4: LCD Display ........................................................................................................ 44
Figure 4.5: GSM ..................................................................................................................... 44
Figure 4.6: GPS ...................................................................................................................... 45
Figure 4.7: Vibrator Sensor .................................................................................................... 45
Figure 4.8: Buzzer .................................................................................................................. 46
Figure 4.9: Working Model .................................................................................................... 46
vi
List of Tables
Table 3.1: Command to LCD Instruction Register ................................................................. 31
Table 3.2: Pin Configuration of LCD 162 ............................................................................ 32
vii
Introduction
Chapter 1
Introduction
In todays world the population and vehicular density has been rapidly increasing and
the number of accidents have also increased so it is very difficult for visually impaired
people to navigate from one place to another. The normal cane guides and dogs used earlier
were not safe and effective for guiding visually impaired people. Due to the advancements in
technology and reduction of costs of components it is cheaper to build sticks in built with
sensors and navigation systems. The navigation system in this project focuses on designing a
device for visually impaired people that help them to travel independently. The proposed
device is used for guiding individuals who are blind or partially sighted.
The stick is linked with ultrasonic sensor and water detector to identify the obstacle
and sense through the buzzer and vibrator respectively.
GSM is used to send the present location of the visually impaired person from the
GPS to the authorized people. The whole device is designed to be compact, light and also
affordable for everyone.
There are many devices available in the market for higher prices. In todays metro
cities these available smart sticks are not efficient and accurate. They are bulky and
heavy.
Although there are various technologies available to the blind community to help
them to navigate, they all either limit the freedom of the user or too expensive. Current
technologies that aim to help the blind person to navigate usually consist of vibrator or voice
feedback. The feedback technology should be more pertinent and the feedback from the
device should be trusted by the person. So our goal is to build a device which gives more
accurate feedbacks in any environment which is compact and more durable.
GPS (Global Positioning System) and GSM (Global System for Mobile
Communication) is used for navigation purpose. Infrared and water sensors are used for anti-
collision and water detection in the walking path.
The decreasing cost of GPS unit coupled with recent growth in the availability of
voice recognition services, presents an opportunity to create a low cost solution. The system
can advise the user where he or she is currently located, and provides spoken direction to
travel to the destination.
GSM (Global System for Mobile Communications) networks operate in a number of
different carrier frequency ranges, with most 2G GSM networks operating in 900 MHz or
1800 MHz bands. For 3G networks in Europe operate in 2100 MHz GSM modem is
specialized type of modem which accepts a SIM card, and operates over a subscription from
a mobile operator, just like a mobile phone. When a GSM modem is connected to a
computer, this allows the computer to use the GSM modem to communicate over the mobile
network.
Infrared sensors have greater advantage over the ultrasonic sensors. The main
concept of operation is a pulse of IR signal is transmitted by the transmitter, and then the
signal travels out in the environment. In case of no obstacle, the signal is never reflected.
The IR transmitter contains: IR photodiode and an optical lens while the IR receiver contains
an optical lens and a linear Charge Coupled Device (CCD) array detector. When the
transmitter emits IR wave, it goes through the transmitter's optical lens and hits the obstacle
then reflects back. The intensity of reflected wave varies according to the obstacle surface
and the distance of obstacle from sensor. Then, the reflected wave is bundled by receiver
optical lens and the receiver store information about obstacle surface and distance.
A water detector is a small electronic device that is designed to detect the presence of
water. By using water sensor, as soon as it touches the water, it will short the circuit and this
will cause a closed circuit then obtain the output that we desired. The water sensor is useful
in a normally occupied area near any appliance that has the potential to leak water.
Vibrator is connected to water detector. When an obstacle or water is detected in the
path the vibratory circuit vibrates. The intensity of the vibration is proportional to the
distance of the obstacle.
Voice or speech recognition is the ability of a machine or program to receive and
interpret dictation or to understand and carryout spoken commands. A speech analysis is
done after the user speaks in a microphone and inputs are thus taken. The manipulation of
input audio signal is done at the system level. The speech recognition consists of two
Dept. of ECE, K.S. School of Engineering and Management Page 2
Introduction
distinguished faces. The first one is training session, while the second one is referred to as
operation session. During training phase, speaker has to provide samples of their speech to
train the system. During the recognition phase speaker has to give samples of his speech to
match existing database and provides exact match.
ARM7 LPC2148 is the microcontroller which is the heart of the device. ARM7 is a
group of older 32-bit RISC ARM processor cores licensed by ARM
Holdings for microcontroller use. The most widely used ARM7 designs implement the
ARMv4T architecture, but some implement ARMv3 or ARMv5TEJ. All these devices
use Von Neumann architecture. Some ARM7 cores are obsolete. One historically significant
model, the ARM is notable for having introduced JTAG based on-chip debugging; the
preceding ARM6 cores did not support it. The original ARM7 was based on the earlier
ARM6 design and used the same ARMv3 instruction set. The ARM710 variant was used in a
CPU module for the Acorn RISC PC, and the first ARM based System on a Chip designs
ARM7100 and ARM7500 used this core. We are using Arduino ,ultrasonic and water
detector on the stick.
Efficiency: The whole system should work under all circumstances and on a long run it
should work efficiently.
Cost-Effectiveness: Hardware and software implementations used here cost less when
compared to present devices.
Reliability: Applications used in this stick perform well in the long run without any
upgrades required regularly.
1.4 Summary
With the proposed system, if developed with at most accuracy, the blind people will
able to move from one place to another without others help. If such a system is developed, it
will act as a basic platform for the generation of more such devices for the visually impaired
in the future which will be cost effective. And as far as the localization is concerned it will
be able to provide accurate details of the location of the blind if in case they are lost with
help of the impact. The present location of the user is sent to the authorized people using
GSM. It will be real boon for the blind. The developed prototype gives good results in
detecting obstacles placed at distance in front of the user.
Chapter 1: This chapter gives the definitions of the basic terms required for the report.
Chapter 2: This chapter gives the literature survey and methodology of the project.
Summary of the literature survey and also the problem statement and objectives are given in
this chapter.
Chapter 3: The block diagram is represented and the different blocks are explained in this
chapter. This chapter completely deals with the ARM7 controller and Arduino uno.
Architecture and features explanation of all parts include in this chapter.
Chapter 4: This chapter deals with different results obtained after dumping and discussion
regarding those obtained results.
Chapter 5: This deals with the final conclusion and the future scope of project.
References: This section deals with the various papers referred for the development of the
project.
Annexure: This gives description about hardware and software components of the project.
Chapter 2
Literature Review
Literature survey is an important part of the project. The chapter elaborates the
fundamental concepts pertaining to the background of the work in this thesis and reviews of
previous works and related topics. Literature survey enables assimilation of knowledge
required for the project right from the problem definition, finding a solution for the same and
its execution. The following sections summaries the literature survey carried out for the
project.
The earlier solutions to guide the visually impaired people used dogs. Later smart
sticks with infrared sensor and ultrasonic sensors were used which were able to detect
obstacles and staircases in front of the user within a four meter range. To avoid puddles and
other water present surfaces, another sensor was placed at the bottom of the stick. The
feedback to the user was given through voice and vibration depending upon the range of
obstacle. The smart sticks used microcontroller 18F46K80 along with ISD1932 flash
memory and vibration motor. The stick detected all obstacles in the range of 4 meter during
39ms and gave a suitable respective message empowering blind to move twice his normal
speed. These were low cost, fast response, low power consumption, light weight and ability
to fold [1].
In this thesis we are implementing navigation systems like GPS for navigation and
infrared sensors and water sensors. These sensors help to detect any obstacle and water
presence in front of the user. Voice commands of directions are fed through ear piece. The
person is alerted through vibration if any obstacle is present, intensity of vibration increases
depending upon the range of the obstacle. This stick is more safe and effective in guiding the
visually impaired person.
The improved versions of the various ARM processor is the ARM7 processor which
is used for the implementation of various sensors and modules. The ARM7 design use Von
Dept. of ECE, K.S. School of Engineering and Management Page 5
Literature Review
Neumann architecture, having separate CPU and memory. ARM6 cores did not support
JTAG based on-chip debugging. It is a versatile processor designed for mobile devices and
other low power electronics. This processor architecture is capable of up to 130 MIPS on a
typical 0.13 m process. The ARM7 which we are using is ARM architecture v4T. The
processor supports both 32-bit and 16-bit instructions via the ARM and Thumb instruction
sets. The ARM7TDMI (ARM7+Thumb tag Debug fast Multiplier enhanced ICE) processor
is a 32-bit RISC CPU designed by ARM, and licensed for manufacture by an array of
semiconductor companies. In 2009 it remains one of the most widely used ARM cores, and
is found in numerous deeply embedded system designs [2] [3].
GPS receiver calculates its position by the timing the signals sent by the GPS
satellites above the Earth. Each satellite continually transmits messages containing the time
the message was sent, through the GPS satellites. Geometric trilateration is used to combine
these distances with the location of the satellites to determine the receiver's location. The
position is displayed, perhaps with a moving map display or latitude and longitude.
It might seem three satellites are enough to solve for position, since space has three
dimensions.
The GPS is actually a constellation of 27 Earth-orbiting satellites (24 in operation
and three extras in case one fails). The U.S. military developed and implemented this
satellite network as a military navigation system A GPS receiver's job is to locate four or
more of these satellites, figure out the distance to each, and use this information to deduce its
own location. This operation is called trilateration. [2] [5] [6].
2.5.3 REQUIREMENTS
Frequency Range: The antenna needs to cover the full Standard and Extended GSM-
900 bands, (800 MHz to 960 MHz).
Size: The antenna needs to be small and compact; the goal is to be easily portable
from one to place to another.
Gain: The antenna should have a reasonable gain.
Build: The antenna should be easy to build and require tools and materials that are
easy and cheap to acquire.
A little bit of maths: An important measurement in radio is the distance between the
same points on two consecutive Wave cycles, this distance is known as the
wavelength and is denoted with the symbol (lambda). To calculate the wavelength
of a radio signal we take the speed of light in a Vacuum and divide it by the
frequency in Hertz (the number of full wave cycles per second).
The centre frequency for my antenna design is 920 MHz so the wavelength is:
Light weight components integrated to the stick which makes it user friendly.
Fast response of obstacles in near range and up to 200 cm using IR sensors
Avoidance confusion by playing comprehensible speech message through an
earphone.
Detection of stairs and its direction stairs [9].
Ultrasonic sensor is used for obstacle detection, the ultrasound propagate through any
kind of media like solids, liquids and gases. The ultrasonic waves typically emitted are
mainly focused on obstacles so that useful reflection are based on interaction of ultrasonic
energy with the objects that are acquired as ultrasonic signals that are in the form of waves.
This device offers true single chip voice recording, non-volatile storage and playback
capability for 40 to 60 seconds. The device supports both random and sequential access of
multiple messages. Sample rates are user selectable, allowing designers to customize their
design for unique quality and storage time needs. Integrated output amplifier, microphone
amplifier.
Portable voice recorders, toys and many other consumer and industrial applications.
A differential microphone amplifier, including integrated AGC is included on chip for
application requiring its use. The amplified microphone signal is fed into the device by
connecting the analog out pin to the analog input pin through DC blocking capacitor,
however, the connection between analog in and analog out is still required for playback, in
between it is connected to ARM processor which analog is converted to digital by A/D
converter. The anti-aliasing filter is used to filter the high frequency signals which are noise
signals. The filter automatically adjusts its response according to the sampling frequency.
After anti-aliasing filtering is accomplished the signal is ready to be clocked into the
memory array. This storage is accomplished through a combination of the sample and hold
circuit and the analog write and read circuit. These circuits are clocked by either the internal
oscillator or an external clock source [8].
Aim:
The aim of the overall system is to provide a low cost and efficient navigation aid for
visually impaired which gives a sense of artificial vision by providing information about the
environmental scenario around them through voice and vibration feedback.
The thesis presents a theoretical model and a system concept to provide a smart
electronic aid for these people. The system is intended to provide overall measures object
detection, real-time assistance via global positioning system (GPS). The system consists of
Water sensor, Infrared sensor, GPS module, and voice feedback system as well as vibratory
circuit.
Objectives:
1. To study the earlier technologies used for smart stick implementation for visually
impaired people.
2. To arrive at the specific sensors and technical parameters of the hardware used in the
project.
3. To design the actual smart stick hardware and calibrate the sensors.
4. To detect the sensor responses for various purposes and design an appropriate
program.
5. To test and validate the smart stick sensors and other hardware.
Methodology:
Methodology for Objective 1:
1. Literature survey will be made to study the different commercially available smart
stick equipment available around the world, and the different technologies and
sensors used.
1. The technical specifications and data regarding of the types of sensors used in the
smart stick will be extracted from the available literature and hardware manuals.
2. Depending upon the advantages and limitations of the technologies, we will arrive at
the specific sensors and hardware components required, as well as their design
specifications along with the appropriate technical parameters.
Methodology for Objective 3:
1. Hardware components will be mounted upon the chosen stick.
2. Depending upon the usage of the stick, the thresholds and limits of the different
sensors will be determined.
1. Initial calibrations will be performed and the operation of the stick and the processing
hardware will be observed.
2. The performance of the designed hardware and the program will be compared with
the existing commercially available systems, and conclusions will be drawn based on
the validation studies.
Chapter 3
Design and Implementation
In this chapter, the design and the working procedure of the system is explained in
detail. All the details related to the proposed system such as the processors, controllers,
sensors and the modules are explained that are used in the proposed system.
The requirement for implementing the smart stick for visually impaired are as
follows:
Hardware Requirements
ARM7 Controller
Arduino UNO
GPS Module
GSM Module
Voice Recognition Kit
Infrared Sensor
Ultrasonic Sensor
Water Detector
Vibrator Motor
LCD Display
Software Requirements
Programming Tool for ARM7: Keil Vision
Language for ARM7: Embedded C
Block diagram is shown in Figure 3.1. ARM is the core for both microcontroller and
microprocessor. It uses a 32-bit RISC processor. The ARM7TDMI-S is a general purpose
32-bit microprocessor, which offers a high performance and very low power consumption.
The architecture in ARM is based on Reduced Instruction Set Computer (RISC) principles,
and the instruction set and related decode mechanism are much simpler than those of micro
programmed Complex instruction set computers. In simple word ARM is Processor
Architecture which stands for Advanced RISC Machine.
time clock with independent power and dedicated 32 kHz clock input. Multiple serial
interfaces including two UARTs(16C550), two fast 12C-bus(400 Kbit/s),SPI and SSP with
buffering and variable data length capabilities.
Most commonly used ARM processor is ARM7LPC2148 processor has 16k bytes of
on chip RAM and 256k Bytes of on chip ROM. ARM processor can be operated in three
different modes:
1. Regular mode: In this mode ARM7 acts as a 32bit microcontroller with 32bit
instruction set.
2. Thumb mode: In this mode ARM7 acts as a 16bit microcontroller with 16bit
instruction set.
3. Jazelle mode: In this mode ARM7 acts as an 8bit microcontroller with 16bit
instruction set.
The key idea behind THUMB is that of a super-reduced instruction set. Essentially
the ARM7TDMI-S processor has two instruction sets:
The THUMB sets 16-bit instruction length allows it to approach twice the density of
standard ARM code while retaining most of the ARMs performance advantage over a
traditional 16-bit processor using 16-bit registers. This is possible because THUMB code
operates on the same 32-bit register set as ARM code. THUMB code is able to provide up to
65% of the code size of ARM, and 160% of the performance of an equivalent ARM
processor connected to a 16-bit memory system.
The lpc2148 microcontroller is based on 32/16 bit ARM7TDMI-S CPU with real-
time emulation and embedded trace support, that combines the microcontroller with
embedded high speed flash memory ranging from 32kb to 512kb. A 128-bit wide memory
interface and unique accelerator architecture enable 32-bit code execution at the maximum
clock rate. For the critical code size applications, the alternatively 16-bit Thumb mode
reduces the code by more than 30% with minimal amount of performance penalty.
Due to the small size and low power consumption conditions, LPC2148 are ideal for
applications where miniaturization is a key requirement, such as access control and point-of-
sale. A blend of serial communications interfaces ranging from usb 2.0 full speed device,
multiple UARTS, SPI,SSP to ICs and on-chip SRAM of 8Kb upto 40 Kb, make these
devices very well suited for communication gateways and protocol converters, soft modems,
voice recognition and low end imaging, providing both large buffer size and high processing
power.
There are different types of 32-bit timers, single or dual 10-bit ADC(s), 10-bit
DAC,PWM channels and 45 fast GPIO lines with up to nine edge or level sensitive external
interrupt pins make these microcontrollers particularly suitable for the industrial control and
the systems. Module is shown in Figure 3.2.
a 2 megabyte range of address at the very top of the 4 gigabyte ARM memory space. Each
AHB peripheral is allocated a 16Kb address space within the AHB address space. LPC2148
peripheral functions (other than the interrupt controller) are connected to the VPB bus. The
AHB to VPB bridge interfaces the VPB bus to the AHB bus.
The VPB peripherals are also allocated a 2 megabyte range of address, beginning at
the 3.5gigabyte address point. Each VPB peripheral is allocated with a 16Kb address space
within the VPB address space. The connection of on-chip peripherals to device pins is
controlled by a pin connect block.
This must be configured by software to fit specific application requirements for the
use of peripheral functions and pins. The LPC2148 consists of ADC, SPI(serial
interfaces),DAC, general purpose I/O pin. The pin diagram is shown in Figure 3.3.
The Figure 3.4 Shows the block diagram of Arduino interfaced with other hardware
components.
Arduino UNO is as shown in the Figure. It is different from other platforms on the
market because of these features:
The Arduino board is a small microcontroller board, (which is a small circuit). The
board that contains a whole computer on a small chip the microcontroller. This computer is
at least a thousand times less powerful than the MacBook and its a lot cheaper and very
useful to build interesting devices. The board has black chip with 28 pins and that chip is the
ATmega328, the heart of the board. The Arduino board is a small microcontroller board. The
board that contains a whole computer on a small chip is a microcontroller.
The Arduino manufacturer has placed on this board all the components that are
required for this microcontroller to work properly and to communicate with your computer.
There are many versions of this board; the one that is used here is Arduino Uno, which is the
simplest one to use.
3.7 Sensors
Sensors are used in everyday objects such as touch-sensitive elevator buttons tactile
sensor and lamps which dim or brighten by touching the base, besides innumerable
applications of which most people are never aware. With advances in micro machinery and
easy-to-use micro controller platforms, the uses of sensors have expanded beyond the more
traditional fields of temperature, pressure or flow measurement, for example into MARG
sensors. Moreover, analog sensors such as potentiometers and force-sensing resistors are still
widely used. Applications include manufacturing and machinery, airplanes and aerospace,
cars, medicine and robotics.
An IR sensor can measure the heat of an object as well as detects the motion. These
types of sensors measure only infrared radiation, rather than emitting. IR sensor is used to
detect objects and obstacles in front of sensor in a narrow angle useful in robotic
applications. The sensor keeps transmitting modulated infrared light and when any object
comes near, it is detected by the sensor by monitoring the reflected light from the object.
Infrared sensors typically use infrared lasers and LEDs with specific infrared
wavelengths as sources. When an object is close to the sensor, the light from the LED
bounces off the object and into the light sensor. This results in a large jump in the intensity,
which we already know can be detected using a threshold.
To avoid getting false detection the solution is to send pulses of IR light at a certain
frequency instead of a constant beam, and build a receiver that would only detect IR pulses
of the same exact frequency, cutting of all pulses of higher or lower frequency. The circuit is
as shown in Figure 3.6.
The standard 555 timer is housed in an 8-pin DIL package and operates from supply
rail voltages of between 4.5V and 15V. This encompasses the normal range for TTL devices
and thus the device is ideally suited for use in conjunction with TTL circuitry.
The circuit diagram shows how the timer IC 555 can be used as a Rising Light Level
Switch. In Monostable pulse generator mode, pin 4 is connected to pin 8 and that to +Vcc.
The threshold pin 6 and the discharge pin 7 are connected together to +Vcc by a resistance
R3. The control pin 5 is connected to ground via capacitor C2. The trigger input pin 2 is
connected to +Vcc using a pull-up resistor R1.Here the Light Detector, R2 & C1 gives the
triggering pulse needed for Multivibrator. Pin diagram of monostable vibrator is shown
Figure 3.7.
GROUND 1 8 VCC
TRIGGER 2 7
DISCHARGE
555
OUTPUT 3 6 THRESHOLD
RESET 5 CONTROL
4
This sensor buffers a piezoelectric transducer. As the transducer is displayed from the
mechanical neutral axis, bending creates strain within the piezoelectric element and
generates voltages.
displacement, velocity or acceleration depends on the frequencies of interest and the signal
levels involved.
3.9.4 Specifications
The Vibration Sensor Detector is designed for the security practice. When Vibration
Sensor Alarm recognizes movement or vibration, it sends a signal to either control panel.
Developed a new type of Omni-directional high sensitivity Security Vibration Detector with
Omni-directional detection:
Pin 12 is made as an OUTPUT pin in this setup, which is connected to one terminal
of the LED. The other terminal of the LED is connected to GND. So whenever the state of
Pin 12 is HIGH, the LED glows as shown in Figure 3.8.
Now, whenever the water is in contact with both the wires immersed in the container,
the circuit gets completed, and pin 4 (INPUT pin in the setup) reads HIGH.
In the Arduino code, the logic is that whenever pin 4 reads HIGH, Pin 12 is given a
digital output of HIGH too. In summary, whenever the water circuit gets complete, pin 4
reads high, which makes pin 12 HIGH, and this glows the LED.
The 100 K Ohm resistor connected between pin 4 and GND acts as a pull down
resistor. If 100 K Ohm resistor is not available, any other resistor of high value can be used,
but make sure that it is not very high too.
The basic principle of work involves IO trigger for at least 10us high level signal.
The Module automatically sends eight 40 kHz and detect whether there is a pulse signal
back. Depending upon the time taken to receive the signal back, it detects how close the
object is
Pin Specifications:
5V supply
Trigger pulse input
Echo pulse output
0V ground
A LCD is a thin, flat electronic visual display that uses the light modulating
properties of LCs. LCs do not emit light directly. They are used in a wide range of
applications, which includes computer monitors, television, instrument panels, aircraft
cockpit displays, etc. They are common in consumer devices such as video players, gaming
devices, clocks, watches, calculators, and telephones.
LCDs have displaced CRT displays in most applications. They are usually more
compact, lightweight, portable, less expensive, more reliable, and easier on the eyes. They
are available in a wider range of screen sizes than CRT and plasma displays, and since they
do not use phosphors, they cannot suffer image burning. LCDs are more energy efficient and
offer safer disposal than CRTs. Its low electrical power consumption enables it to be used in
battery-powered electronic equipment. It is very important to keep a track of the working of
Dept. of ECE, K.S. School of Engineering and Management Page 29
Design and Implementation
LCD 162 screen is shown in Figure 3.11 is a commonly used display module. These
modules are replacing seven segments and other multi segment LEDs for these purposes.
The reasons being: LCDs are economical, easily programmable, have no limitation of
displaying special and even custom characters (unlike in seven segments), animations and so
on. LCD can be easily interfaced with a microcontroller to display a message or status of a
device.
The LCD can display 16 characters per line and there are 2 such lines. In this LCD
each character is displaced in 57 pixel matrix. This LCD has two registers.
The LCD consists of 14 pins totally in which the 8 pins are dedicated for the data to
be transferred from the controller for the display purpose. The power supply is provided
through the VDD, VEE and VSS are used for adjusting the brightness in back light and the
contrast respectively.
Dept. of ECE, K.S. School of Engineering and Management Page 30
Design and Implementation
2 Return home
4 Decrement cursor
6 Increment cursor
E Display ON cursor NO
1 VSS Ground 0V
VEE pin is meant for adjusting the contrast of the LCD display and the contrast can
be adjusted by varying the voltage at this pin. This is done by connecting one end of a POT
to the VCC (5V), other end to the GND and connecting the centre terminal (wiper) of the
POT to the VEE pin. See the circuit diagram for better understanding. Pin configuration of
LCD 162 is shown in Table 3.1 and Table 3.2.
High logic at the RS pin will select the data register and Low logic at the RS pin will
select the command register. If we make the RS pin high and put the data in the 8 bit data
line (DB0 to DB7), the LCD module will recognize it as a data to be displayed. If we make
RS pin low and put a data on the data line, the module will recognize it as a command. R/W
pin is meant for selecting between read and write modes.
High level at this pin enables read mode and low level at this pin enables write mode.
E pin is for enabling the module. A high to low transition at this pin will enable the module.
DB0 to DB7 are the data pins. The data to be displayed and the command instructions are
placed on these pins. LED+ is the anode of the back light LED and this pin must be
connected to VCC through a suitable series current limiting resistor. LED- is the cathode of
the back light LED and this pin must be connected to ground as shown in the Figure 3.12.
This section needs two different voltages +5V & +12V to work. These dual voltages
are supplied by this specially designed power supply is constructed to get regulated power
supplies. The circuit diagram of full wave regulated power supply is shown in the Figure
3.13.
D1 forward biased and D2 reverse biased. Therefore diode D1 conducts and D2 does not.
During the negative half-cycle, end A of the secondary winding becomes negative and the
end B positive. Therefore diode D2 conducts and D1 does not. Note that current across the
centre tap terminal in the same direction for both half-cycles of input A.C. voltage.
Therefore, pulsating D.C. is obtained at point C with respect to ground.
Buffers do not affect the logical state of a digital signal (i.e. a logic 1 input results in
a logic 1 output whereas logic 0 input results in logic 0 output). Buffers are normally used to
provide extra current drive at the output but can also be used to regularize the logic present
at an interface.
This section is used to drive the relay where the output is complement of the input which is
applied to the drive but current will be amplified.
When the user programs the schedule for the automation using GUI software, it actually
sends 5-bit control signals to the circuit. The present circuit provides interfacing with the
Microcontroller and the controlling circuitry. The circuit takes the 5-bit control signal,
isolates the CONTROLLER from this circuitry, boosts control signals for required level and
finally fed to the driver section to actuate relay. These five relays in turn sends RC5 coded
commands with respect to their relay position.
First the components used in this Module are discussed and then the actual circuit is
described in detail.
mountable SOICs (suffix L). All devices are pinned with outputs opposite inputs to facilitate
ease of circuit board layout.
The input of ULN 2003 is compatible open-collector outputs. As each of these
outputs can sink a maximum collector current of 500 mA, miniature Controller relays can be
easily driven. No additional free-wheeling clamp diode is required to be connected across the
relay since each of the outputs has inbuilt free-wheeling diodes. The series ULN20x4A/L
features series input resistors for operation directly from 6 to 15V CMOS or PMOS logic
outputs.
1N4148 signal diode: Signal diodes are used to process information (electrical
signals) in circuits, so they are only required to pass small currents up to 100mA. General
purpose signal diodes such as the 1N4148 are made from silicon and have a forward voltage
drop of 0.7V. The whole circuit of buffer, driver and relay is shown in Figure 3.14.
The Hex Buffer/Inverter IC1s working voltage of +5V is applied at pin-1 and five
control signals are applied at input pins 3, 5, 7, 9 & 11. Thus the signal supplying circuit [i.e.
CONTROLLER] is isolated from this buffer & driver circuit. Further the grounding resistors
R1 to R5 prevents the abnormal voltage levels passing inside the IC1. The buffered outputs
are acquired at pins 2, 4, 6, 10 & 12. Thus the varying input is further stabilized and fed to
signal diodes [D1 to D5]. As the load is inductive, there is a chance of providing back
E.M.F, signal diodes are used. But this signal level is not strong enough to drive the low
impedance relay. So, IC2 Darlington driver is used. Its working voltage is +12V and only
five input/output pins are used. The output signal from the Darlington driver IC is strong
enough to actuate five relays.
These relays with +12V working voltage can be used to produce five command
signals with RC5 format, the normally open contact of each relay produces one command
signal with the help of RC5 Transmitter circuit.
It is an electromagnetic device which is used to drive the load connected across the
relay and the output of relay can be connected to controller or load for further processing.
3.14.1 Embedded C
It is a set of language extensions for the C Programming language by the C standards
committee to address commonality issues that exist between C extensions for different
embedded system. Historically, embedded C programming requires nonstandard extensions
to the C language in order to support exotic features such as fixed-point arithmetic, multiple
distinct memory banks, and basic I/O operations.
In 2008, the C Standards Committee extended the C language to address these issues
by providing a common standard for all implementation to adhere to. It includes a number of
features not available in normal C, Such as, fixed point arithmetic, named address spaces,
and basic I/O hardware addressing. Embedded C uses most of the syntax and semantics of
standard c. e.g., main() function, variable definition, data type declaration, conditional
statements (if, switch, case), loops (while, for), functions, arrays and strings, structures and
bit operations, macros, etc.
3.14.2 Necessity
During infancy of microprocessor based system, programs were developed using
assemblers and fused into the EPROMs. There used to be no mechanism to find what the
programs were doing. LEDs, switches, etc., were used to check for correction of extension of
the program. Some very fortunate developers had In-Circuit but they were too costly and
were not quite reliable as well. As time progressed, use of microprocessor specific assembly
only as the programming language reduced and embedded system moved onto C as the
embedded programming language of choice. C is the most widely used programming
language for embedded processors.
Assembly is also used but mainly to implement those portions of the code where very
high timing accuracy, code size efficiency are the prime requirements. To overcome this
disadvantage, several high level languages, including C, came up. Some other languages like
PLM, module 2, also came but couldnt find wide acceptance. Among those, C got wide
acceptance for not only embedded systems, but also for desktop applications. Even though C
might have lost its sheen as mainstream language for general purpose applications, it still is
having a strong hold in embedded programming. Due to the wide acceptance of C in the
embedded systems, various kinds of support tools like compilers and cross compilers, ICE,
came up and all facilitated development of embedded systems using C.
Compiler is a program that translates source code into object code. The compiler
derives its name from the way it works, looking at the entire piece of source code and
collecting and reorganising the instruction. See there is a little difference between compiler
and interpreter, Interpreter just interprets whole program at a while compiler analyses and
execute each line of source code in succession, without looking at the entire program.
The advantage of interprets is that they can execute a program immediately. Second
programs produced by compilers run much faster than the same programs executed by an
interpreter. However compilers require some time before an executable program emerges.
Now as compilers translate source code into object code, which is unique for each type of
computer, many compilers are available for the same language.
The Kiel C Compiler for the microcontroller is the most popular C Compiler in the
world. It provides more features than any other C compiler available today. It allows you to
write 8051microcontroller applications in C that, once compiled, have efficiency and speed
of assembly language. The C51 Compiler translates C source files into re-locatable object
modules which contains full symbolic information for debugging with the micro Vision
debugger or an in circuit emulator. In addition to object file, the compiler generates a listing
file which may optically include symbol table and cross reference.
Chapter 4
Results and Discussions
The following section details the result of the surveys, knowledge gained from this process
of setting up, discussion of the focus groups and further includes an overview of the success
of the experiment.
Project module of the system is as shown in the Figure 4.1. The complete implemented
system is shown in figure the system consist of ARM7, GPS, GSM, Sensors.
Infrared sensor is as shown Figure 4.2. Infrared sensor is used to navigate the person with the
directions.
The water sensor is as shown in Figure 4.3. It is used to detect the presence of water and it is
detected through vibrator.
This technology is used to track the location and when vibration is detected longitude
and latitude values is displayed on the Lcd screen as shown in Figure 4.4.
The vibrator sensor is as shown in Figure 4.7. It detects the presence of water.
4.5 Buzzer
The final implementation on the stick is as shown in Figure 4.8. This makes the sound when
there is presence of any obstacle.
Final Stick: The final stick with ultrasonic sensor and the water detector is as shown in
Figure 4.9.
Chapter 5
Conclusion and Future Scope
5.1 Conclusion
RFID
Using active RFID indoor navigation can be implemented.
Gyroscope
It is useful in the detection of orientation of the stick.
Antitheft detection
It is used to detect the presence of stick in and around if misplaced.
Accelerometer
An accelerometer is an electromechanical device that will measure acceleration
forces. These forces may be static, like the constant force of gravity pulling at your
feet, or they could be dynamic - caused by moving or vibrating the accelerometer.
Heat Detection
If any heat object is detected it can be sensed and it can be given instructed to the
person for his cautious about the heat.
References
[1] Ayat Nada, Ahmed Farag Seddik, Samia Mashali, and Mahmoud A. Fakhr, "Effective
Fast Response Smart Stick for Blind People," in Proceedings of the Second
International Conference on Advances in Bio-Informatics and Environmental
Engineering (ICABEE), Rome, 2015, pp. 1-7.
[2] Pankaj Patil, Kunal Bonage, Bhimsen Gire, and Pranjali R Phirke, "Voice Navigation
Stick for Blind," International Journal of Electrical and Electronics Engineers, vol. 7,
no. 1, pp. 302-309, January 2015.
[3] P. A. Silpa and Anoop Thomas, "Realization of Image Processing Platform on ARM9
for Face Recognition," , Cochin, 2014, pp. 80-83.
[4] Pushkar Singh and Sanghamitra Saikia, "Arduino-Based Smart Irrigation Using Water
Flow Sensor, Soil Moisture Sensor, Temperature Sensor and ESP8266 WiFi Module,"
in Humanitarian Technology Conference (R10-HTC), Noida, 2016, pp. 1-4.
[5] Jie Yang, Weiyi Yang, Matthias Denecke, and Alex Waibel, "Smart Sight: A Tourist
Assistant System," in The Third International Symposium Digest of Papers, San
Francisco, 1999, pp. 73-78.
[6] Juthamas Punwilai, Tamotsu Noji, and Hiroyuki Kitamura, "The Design of a Voice
Navigation System for the Blind in Negative Feelings Environment," in 9th
International Symposium on Communications and Information Technology, Icheon,
june 2009, pp. 53-58.
[7] Vaishali Adagale and Sanjivani Mahajan, "Route Guidance System for Blind People
using GPS and GSM," International Journal of Electrical and Electronic Engineering
and Telecommunications, vol. 4, no. 2, pp. 16-21, April 2015.
[9] Ayat A. Nada, Mahmoud A. Fakhr, and Ahmed F. Seddik, "Assistive Infrared Sensor
Based Smart Stick for Blind People," in Science and Information Conference (SAI),
London, UK, July 2015, pp. 1149-1154.
[10] Harsh Singhal and Dr. Rahul Dayal, "Development of Low Cost Stick for Blind using
Smart Sensors giving Protection from Water and Fire," International Journal of
Engineering Applied Sciences and Technology, vol. 1, no. 9, pp. 196-199, July/August
2016.
[11] Daniel Busuttil, Glenn Camilleri, and Mario Farrugia, "Mechatronics for Water
Injection in SI Engine," in Proceedings of the 16th International Conference on
Mechatronics , Brno, 2014, pp. 308-313.
[12] Ananth Noorithaya, Kishore Kumar M, and Dr. Sreedevi A, "Voice Assisted Navigation
System for the Blind," in Proceedings of International Conference on Circuits,
Communication, Control and Computing, Bangalore, 2014, pp. 177-181.
[13] Shruti Dambhare and Prof. A.Sakhare, "Smart stick for Blind: Obstacle Detection,
Artificial vision and Real-time assistance via GPS," in 2nd National Conference on
Information and Communication Technology (NCICT), Nagpur, 2011, pp. 31-33.
Annexures
A.ARM7 LPC2148
One or two (LPC2141/42 vs. LPC2144/46/48) 10-bit ADCs provide a total of 6/14
analog inputs, with conversion times as low as 2.44 ms per channel.
Single 10-bit DAC provides variable analog output (LPC2142/44/46/48 only).
Two 32-bit timers/external event counters (with four capture and four compare
channels each), PWM unit (six outputs) and watchdog.
Low power Real-Time Clock (RTC) with independent power and 32kHz clock input.
B. Arduino:
Arduino is the controller used both at the transmitting and receiving end. Arduino
encodes and decodes signals at the transmitting and receiving end respectively for further
processing. It is a series of credit card sized single board computer. Arduino can be coded in
many different languages like python, C++, JAVA and there are many different versions of
this controller. It is a multiport device which is capable of handling audio, video,
transmitting and receiving data.
Arduino UNO
The Arduino Uno is a microcontroller board shown in above figure is based on the
ATmega328 (datasheet). It has 14 digital input/output pins (of which 6 can be used as PWM
outputs), 6 analog inputs, a 16 MHz crystal oscillator, a USB connection, a power jack, an
ICSP header, and a reset button. It contains everything needed to support the
microcontroller; simply connect it to a computer with a USB cable or power it with an AC-
to-DC adapter or battery to get started.
Technical Specifications
Microcontroller ATmega328
Operating Voltage 5V
Maximum supply voltage 20V
(not recommended)
Supply voltage (recommended) 7-12V
Digital I/O Pins 14 (of which 6 provide PWM output)
Analog Input Pins 6
DC Current per I/O Pin 40mA
DC Current for 3.3V 50mA
Flash Memory 32KB (ATmega) of which 0.5KB used by boot loader
SRAM 2KB (ATmega328)
EEPROM 1KB (ATmega328)
Clock Speed 16Mhz
Power:
The Arduino Uno board can be powered via the USB connection or with an external
power supply. The power source is selected automatically.
External (non- USB) power can come either from an AC-to-DC adapter (wall-wart) or
battery. The adapter can be connected by plugging a 2.1mmcentre-positive plug into the
boards power jack. Leads from a battery can be inserted in the GND and Vin headers of the
POWER connector.
The board can operate on an external supply from 6 to 20 volts. If supplied with less than 7v,
however, the 5V pin may supply less than five volts and the board may become unstable. If
using more than 12v, the voltage regulator may overheat and damage the board. The
recommended range is 7 to 12 volts.
Vin: The input voltage to the Arduino/Genuino board when its using an external
power source(as opposed to 5 volts from the USB connection or other regulated
power source). You can supply voltage through this pin, or, if supplying voltage via
the power jack, access it through this pin.
5V: This pin outputs a regulated 5V from the regulator on the board. The board can
be supplied with power either from the DC power jack (7-12V), the USB connector
(5V),or 3.3V pins bypasses the regulator, and can damage your board. We dont
advise it.
3.3V: A 3.3 volt supply generated by the on-board regulator. Maximum current draw
is 50 mA
GND: Ground pins.
IOREF: this pin on the Arduino board provides the voltage reference with which the
microcontroller operates. A properly configured shield can read the IOREF pin
voltage and select the appropriate power source or enable voltage translators on the
outputs to work with the 5V or 3.3V.
Memory:
The ATMEGA 328 has 32KB (with 0.5 KB occupied by the bootloader). It also has 2
KB of SRAM and 1KB of EEPROM (which can read and written with the EEPROM
library).
Each of the 14 digital pins on the Uno can be used as an input or output, using pin mode
digital write, and digital read functions. They operate at 5volts. Each pin can provide or
receive 20 mA as recommended operating condition and has internal pull-up resistor
(disconnected by default) of 20-50k ohm. A maximum of 40 mA is the value that must not
be exceeded on any I/O pin to avoid permanent damage to the microcontroller.
Serial-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 ATMEGA 8U2 USB-to-
TTL serial chip.
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.
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 using the SPI library.
LED-13: there is a built-in LED driven by digital pin 13. When the pin is HIGH
value, the LED is on, when the pin is LOW, its off.
TWI-A4 or SDA pin and A5 or SCL pin: supports TWI communication using the
wire library.
Programming:
The Arduino Uno uses Arduino software IDE 1.8.2. The board comes pre-programmed
with an RTOS that handles USB connection and allows us to upload new code without the
use of an external hardware programmer. It communicates using the DFU software.
Todays consumers demand the best in audio/voice. They want crystal-clear sound
wherever they are in whatever format they want to use. APLUS delivers the technology to
enhance a listeners audio/voice experience. The aPR33A series are powerful audio
processor along with high performance audio analog-to-digital converters (ADCs) and
digital-to-analog converters (DACs). The aPR33A series are a fully integrated solution
offering high performance and unparalleled integration with analog input, digital processing
and analog output functionality. The aPR33A series incorporates all the functionality
required to perform demanding audio/voice applications. High quality audio/voice systems
with lower bill-of-material costs can be implemented with the aPR33A series because of its
integrated analog data converters and full suite of quality-enhancing features such as sample-
rate convertor. The aPR33A series C2.0 is specially designed for simple key trigger, user can
record and playback the message averagely for 1, 2, 4 or 8 voice message(s) by switch, It is
suitable in simple interface or need to limit the length of single message, e.g. toys, leave
messages system, answering machine etc. Meanwhile, this mode provides the power-
management system. Users can let the chip enter power-down mode when unused. It can
effectively reduce electric current consuming to 15uA and increase the using time in any
projects powered by batteries.
C.Audio Processor
Features:
Record Message:
During the REC pin drove to VIL, chip in the record mode. When the message pin (M0,
M1, M2 to M7) drove to VIL in record mode, the chip will playback beep tone and
message record starting. The message record will continue until message pin released or full
of this message, and the chip will playback beep tone 2 times to indicate the message
record finished. If the message already exist and user record again, the old ones message
will be replaced. The following fig. showed a typical record circuit for 8-message mode. We
connected a slide-switch between REC pin and VSS, and connected 8 tact-switches between
M0 ~ M7 pin and VSS. When the slide-switch fixed in VSS side and any tact-switch will be
pressed, chip will start message record and until the user releases the tact-switch.