Download - Documentation of Blind Person Nw (Repaired)
-
8/13/2019 Documentation of Blind Person Nw (Repaired)
1/30
1
CHAPTER-1
INTRODUCTION
Technology is the word coined for the practical application of scientific
knowledge in the industry. The advancement in technology cannot be justified
unless it is used for leveraging the users purpose. Technology, is today, imbibed
for accomplishment of several tasks of varied complexity, in almost all walks of
life.
The society as a whole is exquisitely dependent on science and
technology. Technology has played a very significant role in improving the
quality of life. One way through which this is done is by automating several tasks
using complex logic to simplify the work.
1.1 Introduction To The Project
In this project we are going to design a system which forms the
prototype to sense the obstacle and alerts when an obstacle is detected and
automatically changes its direction. This forms the prototype to alert the blind
person. In this system, a stick is given to blind people. An obstacle sensor
(ultrasonic) is placed in particular direction and according to the surroundings
being sensed voice will be announced to change the direction like right or left.
Like that obstacles in three directions will be known. This makes easy to blind
people. So according to the announcements he must change the direction of stick
and he can go easily. A speaker will be given to the blind people to hear the
voice.
In this system we have an obstacle sensor. Whenever the sensor observes
an obstacle the announcement will be made using speaker to the blind person.
This will be done with the help of voice processing section which stores and
playbacks the voice. AT8051 micro controller is used to control the sections.
Sensors output will be given to controller. According to the program written in
the controller it will give instructions to the voice IC. Initially voice IC will be
recorded with two different voice command and they will be play back with
-
8/13/2019 Documentation of Blind Person Nw (Repaired)
2/30
2
respect to micro controller instructions. In this project, ultrasonic sensor is also
used to detect the distance at which the obstacle.
An LCD is interfaced to a microcontroller (AT8051). The distance that
is detected by the sensor will be displayed in the LCD.
-
8/13/2019 Documentation of Blind Person Nw (Repaired)
3/30
3
CHAPTER -2
EMBEDED SYSTEMS
2.1 Introduction
An embedded system is a specialized computer system that is housed in
a large system in order to carry out certain specific applications. Some embedded
systems include operating systems and most are so specialized such that the
entire logic can be implemented as a single program.
2.2 Application of Embedded System
Industrial machines Automobiles Medical equipment Cameras Household appliances Airplanes
Vending machines Toys2.3 Sensor
A sensor (also called detector) is a converter that measures a physical
quantity and converts it into a signal which can be read by an observer or by an
(today mostly electronic) instrument.
2.3.1 Different kinds of sensor
Acoustic, sound, vibration Automotive, transportation Chemical Electric current, electric potential, magnetic, radio
Environment, weather, moisture, humidity
-
8/13/2019 Documentation of Blind Person Nw (Repaired)
4/30
4
2.4 Ultrasonic sensor
It is also known as transrecevier when they both send and receive ,but
More generally called as transducers)works on a priniciple similar to radar or
sonar which evaluate attributes of a target by interpreting echoes.ultrasonic
sensor generate high frequencysound waves and evaluate echo which is received
back by sensor and it will calculate the time interval between sending the signal
and receiving the echo to determine the distance to an object.
FIG 2.4 ULTRASONIC SENSOR
This technology can be used for measuring wind speed and direction
(anemometer), tank or channel level, and speed through air or water. For
measuring speed or direction a device uses multiple detectors and calculates the
speed from the relative distances to particulates in the air or water
-
8/13/2019 Documentation of Blind Person Nw (Repaired)
5/30
5
CHAPTER-3
MICROCONTROLLER
3.1 Introduction
A microcontroller is a computer on a chip. It is an integrated chip that is
usually a part of an embedded system. It is a microprocessor that is meant to be
more self contained independent and yet function as a tiny, dedicated computer.
It lays emphasis on high integration, low power consumption, self sufficiency
and cost effectiveness.
It is typically designed using the CMOS (complementary metal oxide
semiconductor) technology and has the following features:a central processing
unit
A central processing unit discrete input and output pins serial input/output ports(UARTs) peripherals such as timers, counters RAM,ROM,EPROM,Flash Memory(EEPROM) Clock generator May include analog to digital converters
Fig: 3.1 MICROCONTROLLER
Micro controller
Memory
(RAM/ROM)
I/O ports
Peripherals
-
8/13/2019 Documentation of Blind Person Nw (Repaired)
6/30
6
3.2 Advantages
Design with microcontrollers has the following advantages:
It has low overall system cost as all the peripherals are integrated ontoa single chip.
The product size is small, therefore the product is handy. System design and troubleshooting is simple. Since the peripherals are integrated on the same chip, the system is reliable. Additional RAM and ROM can be easily interfaced as and when required. Microcontrollers with on-chip ROM provides a software security feature.
3.3 ATMEL 89S52
ATMEL 89C51 is a low power, high performance CMOS 8 bit
microcomputer with 4K bytes of flash programmable and erasable read only
memory (PEROM).The device is manufactured using Atmels high density,
nonvolatile memory technology and is compatible with industry standard MCS-
51 instruction set. It provides highly flexible and cost effective solution to many
embedded control applications.
3.4 Features of ATMEL 89S52
It has 4K bytes of in-system reprogrammable flash memory (1000write/erase cycles).
Fully static operation: 0-24 MHz Three level program memory lock 128 bytes internal RAM 32 programmable I/O lines(4 ports) Two 16 bit timers/counters Six interrupt sources Programmable serial channel Low power idle and Power down modes 8 bit CPU optimized for controlled applications
-
8/13/2019 Documentation of Blind Person Nw (Repaired)
7/30
7
64 K of external program memory Full Duplex UART
3.5 Pin description of AT89S52
-
8/13/2019 Documentation of Blind Person Nw (Repaired)
8/30
8
VCC (PIN 40)
It will take +5v DC Supply voltage.
GND (PIN 20)
Ground
Port 0 (PIN 32-39)
Port 0 is an 8-bit open drain bidirectional I/O port. As an output port,
each pin can sink eight TTL inputs. When 1s are written to port 0 pins, the pins
can be used as high-impedance inputs. Port 0 can also be configured to be the
multiplexed low-order address/data bus during accesses to external program and
data memory. In this mode, P0 has internal pull-ups.External pull-ups are
required during program verification.
Port 1 (PIN 1-8)
Port 1 is an 8-bit bidirectional I/O port with internal pull-ups. The Port 1
output buffers can sink/source four TTL inputs. When 1s are written to Port 1
pins, they are pulled high by the internal pull-ups and can be used as inputs. As
inputs, Port 1 pins that are externally being pulled low will source current (IIL)
because of the internal pull-ups.
Port 2 (PIN 21-28)
Port 2 is an 8-bit bidirectional I/O port with internal pull-ups. The Port 2
output buffers can sink/source four TTL inputs. When 1s are written to Port 2
pins, they are pulled high by the internal pull-ups and can be used as inputs. As
inputs, Port 2 pins that are externally being pulled low will source current (IIL)
because of the internal pull-ups. Port 2 emits the high-order address byte during
fetches from external program memory and during accesses to external data
memory that use16-bit
-
8/13/2019 Documentation of Blind Person Nw (Repaired)
9/30
9
Port 3 (PIN 10-17)
Port 3 is an 8-bit bidirectional I/O port with internal pull-ups. The Port 3output buffers can sink/source four TTL inputs. When 1s are written to Port 3
pins, they are pulled high by the internal pull-ups and can be used as inputs. As
inputs, Port 3 pins that are externally being pulled low will source current (IIL)
because of the pull-ups.
RST (PIN 9)
Reset input. A high on this pin for two machine cycles while theoscillator is running resets the device. This pin drives high for 98 oscillator
periods after the Watchdog times out. The DISRTO bit in SFR AUXR (address
8EH) can be used to disable this feature. In the default state of bit DISRTO, the
RESET HIGH out feature is enabled.
ALE/PROG (PIN 30)
Address Latch Enable (ALE) is an output pulse for latching the low byte
of the address during accesses to external memory. This pin is also the program
pulse input (PROG) during Flash programming. In normal operation, ALE is
emitted at a constant rate of 1/6 the oscillator frequency and may be used for
external timing or clocking purposes. With the bit set, ALE is active only during
a MOVX or MOVC instruction. Otherwise, the pin is weakly pulled high.
PSEN (PIN 29)
Program Store Enable (PSEN) is the read strobe to external program
memory. When the AT89S52 is executing code from external program memory,
PSEN is activated twice each machine cycle..
EA/VPP (PIN 31)
External Access Enable. EA must be strapped to GND in order to enable
the device to fetch code from external program memory locations starting at
0000H up to FFFFH. Note, however, that if lock bit 1 is programmed, EA will be
-
8/13/2019 Documentation of Blind Person Nw (Repaired)
10/30
10
internally latched on reset. EA should be strapped to VCC for internal program
executions..
-
8/13/2019 Documentation of Blind Person Nw (Repaired)
11/30
11
CHAPTER-4
DESIGN AND IMPLEMENTATION
4.1 Design and Implementation
Power supply circuit supplies +5V DC to all the passive components likeresistors, capacitors, IC and Microcontroller.
Here voltage regulator is used to convert 12v DC to 5v DC.
4.2 Block Diagram
Fig : 4.2 BLOCK DIAGRAM
MICRO
CONTROLLER
POWER
SUPPLY
SPEAKER
LCD
OBSTACLE
SENSOR
VOICE
PROCESSOR
-
8/13/2019 Documentation of Blind Person Nw (Repaired)
12/30
12
4.3 : power supply(12V,1.3A)
Itis a device that supplies electric power to an electrical load. The termis most Commonly applied to electric power converters that convert one form of
electrical energy to another , though it may also refer to devices that convert
another form of energy (mechanical ,chemical, solar) to electrical energy.
A regulated power supply is one that controls the output voltage or current to a
specific value.
FIG: 4.3 POWERSUPPLY
4.4 obstacle sensor (GH311 module)
Obstacle sensor is used to detect the objects (obstacle) placed at a certain
distance. In this project sensor sense the object (obstacle) using ultrasonic sensor
depending upon range the sensor can detect up to 2m distance.
FIG:4.4 ULTRASONIC SENSOR
-
8/13/2019 Documentation of Blind Person Nw (Repaired)
13/30
13
4.5: speaker
A loudspeaker(or "speaker") is an electro acoustic transducer thatproduces sound in response to an electrical audio signal input. Non-electrical
loudspeakers were developed accessories to telephone systems
FIG: 4.5 SPEAKER
4.6: voice processor (APR9600 MODULE)
The external device may be a controller, which is a device that provides
the human playable interface and may or may not produce sounds of its own, or a
sequencer, which is computer Hardware or software designed to play electronic
musical instruments. Connections between sounds modules, controllers, and
sequencers are generally made with MIDI (Musical Instrument Digital Interface),
which is a standardized protocol designed for this purpose.
-
8/13/2019 Documentation of Blind Person Nw (Repaired)
14/30
14
FIG: 4.6 VOICE PROCESSOR
4.7: LCD (16 bit LCD)
It is a flat panel display, electronic visual display, or video display that
uses the light modulating properties of liquid crystals. Liquid crystals do not emit
light directly.
LCDs are used in a wide range of applications including computer
monitors, televisions, instrument panels, aircraft cockpit displays, and signage.
They are common in consumer devices such as video players, gaming
FIG : 4.7 LCD DISPLAY
-
8/13/2019 Documentation of Blind Person Nw (Repaired)
15/30
15
4.8: Regulator(7805)
A device that maintains a designated characteristic, as in: Battery regulator Pressure regulator Diving regulator Voltage regulator Regulator (economics), an agency established by central government for the
control of or intervention in the operation of markets
FIG: 4.8 REGULATOR
4.9:A crystal oscillator
Is an electronic oscillator circuit that uses the mechanical resonance of a
vibrating crystal of piezoelectric material to create an electrical signal with a very
precise frequency. This frequency is commonly used to keep track of time(as
in quartz wristwatches), to provide a stable clock signal for digital integrated
circuits, and to stabilize frequencies.
FIG: 4.9 CRYSTALOSCILLATOR
-
8/13/2019 Documentation of Blind Person Nw (Repaired)
16/30
16
4.10: The Intel MCS-5)
CISC instruction set ,single chip microcontroller (C) series which was
developed by Intel in 1980 for use in embedded systems. Intel's original versions
were popular in the 1980s and early 1990s and enhanced binary
compatible derivatives remain popular today.
Fig: 4.10 MICROCONTROLLER
Intel's original MCS-51 family was developed using NMOS technology, but
later versions, identified by a letter C in their name (e.g., 80C51) used
CMOS technology and consume less power than their NMOS predecessors.
This made them more suitable for battery-powered devices .Some derivatives
integrate a digital signal processor (DSP).
4.11: light-emitting diode (LED)
Is a semiconductor light source.LEDs are used as indicator lamps in
many devices and are increasingly used for other lighting. Appearing as practical
electronic components in 1962, early LEDs emitted low-intensity red light, but
modern versions are available across
the visible, ultraviolet,and infrared wavelengths, with very high brightness
.
FIG: 4.11 LED
-
8/13/2019 Documentation of Blind Person Nw (Repaired)
17/30
-
8/13/2019 Documentation of Blind Person Nw (Repaired)
18/30
18
A resistor is a two-terminal electronic component that produces a
voltage across its terminals that isproportional to theelectric current through it in
accordance withOhm's law (V = IR)
Resistors are elements ofelectrical networks and electronic circuits. The
primary characteristics of a resistor are the resistance, the tolerance,maximum
working voltage and thepower rating. Other characteristics include temperature
coefficient,noise,andinductance.
http://en.wikipedia.org/wiki/Terminal_%28electronics%29http://en.wikipedia.org/wiki/Terminal_%28electronics%29http://en.wikipedia.org/wiki/Electronic_componenthttp://en.wikipedia.org/wiki/Voltagehttp://en.wikipedia.org/wiki/Proportionality_%28mathematics%29#Direct_proportionhttp://en.wikipedia.org/wiki/Electric_currenthttp://en.wikipedia.org/wiki/Ohm%27s_lawhttp://en.wikipedia.org/wiki/Ohm%27s_lawhttp://en.wikipedia.org/wiki/Electrical_networkshttp://en.wikipedia.org/wiki/Electrical_resistancehttp://en.wikipedia.org/wiki/Engineering_tolerance#Electrical_component_tolerancehttp://en.wikipedia.org/wiki/Electric_power#In_circuitshttp://en.wikipedia.org/wiki/Electric_power#In_circuitshttp://en.wikipedia.org/wiki/Temperature_coefficienthttp://en.wikipedia.org/wiki/Temperature_coefficienthttp://en.wikipedia.org/wiki/Electrical_noisehttp://en.wikipedia.org/wiki/Inductancehttp://en.wikipedia.org/wiki/Inductancehttp://en.wikipedia.org/wiki/Electrical_noisehttp://en.wikipedia.org/wiki/Temperature_coefficienthttp://en.wikipedia.org/wiki/Temperature_coefficienthttp://en.wikipedia.org/wiki/Electric_power#In_circuitshttp://en.wikipedia.org/wiki/Engineering_tolerance#Electrical_component_tolerancehttp://en.wikipedia.org/wiki/Electrical_resistancehttp://en.wikipedia.org/wiki/Electrical_networkshttp://en.wikipedia.org/wiki/Ohm%27s_lawhttp://en.wikipedia.org/wiki/Electric_currenthttp://en.wikipedia.org/wiki/Proportionality_%28mathematics%29#Direct_proportionhttp://en.wikipedia.org/wiki/Voltagehttp://en.wikipedia.org/wiki/Electronic_componenthttp://en.wikipedia.org/wiki/Terminal_%28electronics%29 -
8/13/2019 Documentation of Blind Person Nw (Repaired)
19/30
19
CHAPTER-5
SOFTWARE USED
5.1 Vision3 software
The Vision3 IDE is a windows based software development platform
that combines a robust editor, project manager, and integrated make facility.
Vision3 integrates all tools including the C compiler, macro assembler,
linker/locator, and HEX file generator. Vision3 helps expedite the development
process of our embedded applications by providing the following:
Full-featured source code editor Device database for configuring the development tool setting Project manager for creating and maintaining our projects Integrated make facility for assembling, compiling, and linking our embedded
applications
Dialogs for all development tool settings True integrated source level Debugger with high-speed CPU and peripheral
simulator
Advanced GDI interface for software debugging in the target hardware and forconnection to keil ULINK
Flash programming utility for downloading the application program into FlashROM
Links to development tools manuals, device datasheets and users guides. In the Build Mode, we maintain the project files and generate the application.
In the Debug Mode,we verify our program either with a powerful CPU and
peripheral simulator or with the Keil ULINK USB-JTAG Adapter (or other
AGDI drivers) that connect the debugger to the target system. The ULINK
allows us also to download our application into Flash ROM of our target
system.
-
8/13/2019 Documentation of Blind Person Nw (Repaired)
20/30
20
5.2 Features and benefits
Feature Benefit
The Vision3 Simulator is the
only Debugger that completely
simulates all on-chip peripherals.
Write and test the application code before
production hardware is available.
Investigate different hardware
configurations to optimize the hardware
design.
Simulation capabilities may be
expanded using the Advanced
Simulation Interface (AGSI).
Sophisticated systems can be accurately
simulated by adding our own peripheral
drivers.
The Code Coverage feature of the
Vision3 Simulator provides
analysis of our programs
execution.
Safety-critical systems can be thoroughly
tested and validated. Execution analysis
reports can be viewed and printed for
certification requirements.
The Vision3 Device Database
automatically configures the
development tools for the target
micro controller.
Mistakes in tool settings are practically
eliminated and tool configuration time is
minimized.
The Vision3 IDE integrates
additional third-party tools like
VCS, CASE, and FLASH/DeviceProgramming.
Quickly access development tools and
third-party tools. All configuration details
are saved in the Vision3 project.
-
8/13/2019 Documentation of Blind Person Nw (Repaired)
21/30
21
5.3 Software Development Life Cycle
When you use the Keil Vision3, the project development cycle is
roughly the same as it is for any other software development project.
1. Create a project, select the target chip from the device database, and configurethe tool settings.
2. Create source files in C or assembly.3. Build our application with the project manager.4. Correct errors in source files.5. Test the linked application.
The following block diagram illustrates the complete Vision3 software
development cycle. Each component is described below.
5.4 Process To Run Keil Software
Create Project file and Select CPU Project Workspace-Books Create New Source Files Add Source Files to the Project Create Files Groups Set tool Options for Target Hardware Configure the CPU Start-up Code Build Project and Generate Application Program Code Create a HEX File for PROM Programming5.5 Description:
5.5.1 Create Project file and Select CPU
To create a new project file, go to the Vision3 menu and select Project
New Vision Project.The Create New Project dialog asks us for the new
project file name. At this time navigate to the folder where our new project will
reside. It's a good idea to use a separate folder for each project. Use the icon
-
8/13/2019 Documentation of Blind Person Nw (Repaired)
22/30
22
Create New Folder in this dialog to create a new empty folder. Select this folder
and enter the file name for the new project, i.e. Project1. Vision3 creates a new
project file with the name PROJECT1.UV2which contains a default target and
file group name. We can see these names in the Project WorkspaceFiles.
5.5.2 Select Microcontroller from Device Database
When we create a new project Vision3 asks us to select a CPU for our
project. The Select Devicedialog box shows the Vision3 device database. Just
select the microcontroller you use.
5.5.3 Tips and Tricks
The following section discusses advanced techniques we may use with
the Vision3 Project Manager.
Start External Tools after Build Process shows how to execute programsafter a successful build command which is useful for post-processing as
required for symbol information by some emulators or programmers.
Specify a Separate Folder for Listing and Object Files lets us direct theobject and listing files of your project to specific folders.
Use a CPU that is not in the Vision Device Database explains how todefine new Devices that can be selected from the Device Database.
Create a Library File gives us the tool setup that is required for creatinglibrary files.
File Extensions allows us to set the file extension for the various file types ofa project.
Import Project Files from Vision Version 1 explains you how to importexisting Vision Version 1 *.PRJfiles.
Version and Serial Number Information allows you to view project specifictool version information.
-
8/13/2019 Documentation of Blind Person Nw (Repaired)
23/30
23
CHAPTER-6
PROJECT DESCRIPTION
The input unit comprises of an ultrasonic sensor in order to compute the
distance to the point on the surface of any object and also to project a structured
wave grid on the objects in the field of vision. The voice processor and control
unit performs the necessary integration between the sensed data streams from the
sensors, and the computation needed in order to relate distance to each grid point
in the field of vision. Control unit also functions to adapt the sensors to any
required depth of the field of vision. The input unit is wired or wirelessly linked
via port to the controller unit. This link enables bi-directional flow of
information.
6.1: Working Module
The kit is powered by 12v 1.3A battery.The 12v supply is converted to
5v using 7805regulator. This supply is given to microcontroller, ultrasonic sensor
and voice module or playback module APR9600.The ultrasonic sensor GH311
module comprises of two sections transmitter and receiver. The transmitter
rapidly transmits the waves and if any object (obstacle) obstructs the path of the
wave, they get reflected. The receiver receives the reflected waves at a particular
frequency.
The pulse is received by a microcontroller. According to the program
code the microcontroller enables the voice module and gives the output. The
voice module is programmed with two playback voices . In this a voice IC is used
to control the frequency of the voice. If the obstacle is detected in the front
direction it instructs the blind person to take right and in case if there is any
obstacle in this direction also it instructs the blind person to take left.In the due
course sensor detects the distance of the obstacle and displays it on the LCD.
-
8/13/2019 Documentation of Blind Person Nw (Repaired)
24/30
24
6.2 : Pin Connections
1. Ultrasonic sensor connected to port pin 2.2(pin 24)
2. Voice module connected to port 1 (pin 1-8)
3 .Lcd connected to port pin 2.7 (pin 28)
4 .Crystal oscillator connected to XTAL1, XTAL2(pin 18-19)
-
8/13/2019 Documentation of Blind Person Nw (Repaired)
25/30
25
FIG :6.2 :schematics
-
8/13/2019 Documentation of Blind Person Nw (Repaired)
26/30
-
8/13/2019 Documentation of Blind Person Nw (Repaired)
27/30
27
CHAPTER-8
Code Implementation
#include
sbit sensor=p3^0;
sbit voice1=p1^0;
sbit voice2=p1^1;
unsigned char check=1;
void delay (unsigned int n)
{
unsigned int j,k;
for (j=0;j
-
8/13/2019 Documentation of Blind Person Nw (Repaired)
28/30
28
{
check=0;
voice1=0;
delay(200);
voice1=1;
}
else if (check==0)
{
check=1;
voice2=0;
delay(200);
voice2=1;
}
else;
while(sensor==1);
delay(500);
}
else if(sensor==0)
{
voice1=1;
voice2=1;
}
}
}
-
8/13/2019 Documentation of Blind Person Nw (Repaired)
29/30
29
CONCLUSION:
A multi system controller allows several electronic gadgets to be controlled by a
single device. This enables automation in any environment that has several
electronic devices. During the course of our project, we have developed a
working model to demonstrate the functioning of a multi system controller using
RF communication. The device developed is simple and controls three devices
i.e. bulbs, fan and a remote controlled car. This device is capable of controlling
devices that run on both ac and/or dc power supply.
FUTURE SCOPE:
With increased complexity, this device can be successfully used in any
environment where automation is desired. If we increase the number of sensors
to three we can detect the obstacles at an angle of 270degrees.with further
automation we convert the distance displayed on the LCD to be played on the
headset (speaker).
-
8/13/2019 Documentation of Blind Person Nw (Repaired)
30/30
APPENDIX
BIBLIOGRAPHY
REFERENCE SITES:
www.keil.com
www.wisegeek/microcontroller.com
www.wikipedia.com
www.mytutorialcafe.com
www.avrfreaks.com
www.softpedia.com
www.rfsolutions.co.uk
www.freewebs.com
www.tpub.com
www.electronics4u.com
www.ipic.co.jp
www.electronics.howstuffworks.com
www.consumer.phillips.com
www.amazon.co.uk
www.directron.com
www.remotecontroltechnology.com
www.zilog.com
www.atmel.com