Smart Helmet - Hindhu College
Smart Helmet - Hindhu College
SYNOPSIS
INTRODUCTION
BLOCK DIAGRAM
BLOCK DIAGRAM DESCRIPTION
CIRCUIT DIAGRAM
CIRCUIT DIAGRAM DESCRIPTION
COMPONENTS DETAILS
COMPONENTS DESCRIPTION
SOFTWARE USED
CONCLUSION
FUTURE DEVELOPMENT
BIBILIOGRAPHY
SYNOPSIS
Synopsis
An accident is a specific, unexpected, unusual and unintended
external action which occurs in a particular time and place, with no
apparent and deliberate cause. Carelessness of the driver is the
major factor of such accidents. The traffic authorities give a lot of
instructions to the vehicle operators. But many of them do not obey
the rules. Two wheelers accounts for 25% of total road crash death.
Hence the ratio of road accidents that take place frequently increases
causing immense loss of life due to poor emergency facilities. Main
causes behind these road accidents are lack of training institutes,
unskilled drivers, poor road conditions, use of cell phone during
driving, consuming alcohol while driving, over loading and poor
governmental plans in this regard. Plenty of solutions have been
applied to prevent these road accidents, like designing stringent
rules and regulations. But most of them failed to prevent accidents.
This paper provides an intelligent system for two wheeler accident
prevention and detection for human life safety. The prevention part
involves, Smart Helmet, which automatically checks whether the
person is wearing the helmet and has non-alcoholic breath while
driving. The relay does not ON the engine if these two conditions
are not satisfied. The microcontroller controls the function of relay
and thus the ignition. The Microcontroller continuously records all
the parameters of automobile for prevention and detection of
accident.
INTRODUCTION
INTRODUCTION
Transmitter side:
Power supply
Alcohol
sensor
Pic16f877a RF
Transmitter
Helmet switch With encoder
Receiver side:
Power supply
RF
Receiver
With Relay Engine
decoder
BLOCK DIAGRAM
DESCRIPTION
BLOCK DIAGRAM DESCRIPTION
Fig 3.11:PIC16F877
The hardware capabilities of PIC devices range from 8-pin DIP chips up
to 100-pin SMD chips, with discrete I/O pins, ADC and DAC modules,
and communications ports such as UART, I2C, CAN, and even USB.
Low-power and high-speed variations exist for many types. The
manufacturer supplies computer for software development has known as
MPLAB, assemblers and C/C++ compilers, and programmer/debugger
hardware under the MPLAB and PIC Kit series. Third party and some
open-source tools are also available. Some parts have in-circuit
programming capability; low-cost development programmers are
available as well has high-production programmers. The PIC
microcontroller is used to interface the energy measurement unit and
GSM module. The PIC microcontroller used here is PIC16F877A.PIC
devices are popular with both industrial developers and hobbyists due to
their low cost, wide availability, large user base, and extensive collection
of application notes, availabilities of low cost or free development
tools, serial programming, and re-programmable Flash-memory
capability.
Pin Diagram of PIC16F877A
Limitations of Microcontroller
One accumulator.
Register-bank switching is required to access the entire RAM of
many devices.
Operations and registers are not orthogonal; some instructions
address RAM and/or immediate constants, while others can use the
accumulator only.
Resistor
Capacitor
Figure Capacitor
LED
Alcohol Sensor
RF MODULE
An RF module (radio frequency module) is a (usually) small
electronic device used to transmit and/or receive radio signals between
two devices. In an embedded system it is often desirable to communicate
with another device wirelessly. This wireless communication may be
accomplished through optical communication or through radio frequency
(RF) communication. For many applications the medium of choice is RF
since it does not require line of sight. RF communications incorporate
a transmitter and a receiver. They are of various types and ranges. Some
can transmit up to 500 feet. RF modules are widely used in electronic
design owing to the difficulty of designing radio circuitry. Good
electronic radio design is notoriously complex because of the sensitivity
of radio circuits and the accuracy of components and layouts required to
achieve operation on a specific frequency.
RF Transmitter
An RF transmitter module is a small PCB sub-assembly capable
of transmitting a radio wave and modulating that wave to carry data.
Transmitter modules are usually implemented alongside a micro
controller which will provide data to the module which can be
transmitted. RF transmitters are usually subject to regulatory
requirements which dictate the maximum allowable transmitter power
output, harmonics, and band edge requirements.
RF Receiver
An RF receiver module receives the modulated RF signal,
and demodulates it. There are two types of RF receiver modules: super
heterodyne and super-regenerative receivers. Super-regenerative modules
are usually low cost and low power designs using a series of amplifiers to
extract modulated data from a carrier wave. Super-regenerative modules
are generally imprecise as their frequency of operation varies considerably
with temperature and power supply voltage. Super heterodyne receivers
have a performance advantage over super-regenerative; they offer
increased accuracy and stability over a large voltage and temperature
range. This stability comes from a fixed crystal design which in the past
tended to mean a comparatively more expensive product. However,
advances in receiver chip design now mean that currently there is little
price difference between super heterodyne and super-regenerative receiver
modules.
LCD
LCD (Liquid Crystal Display) screen is an electronic display module
and find a wide range of applications. A 16x2 LCD display is very
basic module and is very commonly used in various devices and
circuits. A 16x2 LCD means it can display 16 characters per line and
there are 2 such lines. The 16×2 LCD Board makes it easy to
interface a module with low cost microcontroller development board
which do not have built in support for LCD modules. 16×2 LCD
module (you can choose either a green or a blue backlight LCD).
The contrast adjust resistor. Backlight current limiting resister.
Pin
Pin Name: Description
No:
2 Vdd (+5 Volt) Powers the LCD with +5V (4.7V – 5.3V)
7 Data Pin 0
8 Data Pin 1
9 Data Pin 2
10 Data Pin 3
Data pins 0 to 7 forms a 8-bit data line. They can be
11 Data Pin 4 connected to Microcontroller to send 8-bit data.
13 Data Pin 6
14 Data Pin 7
Relay
WORKING PRINCIPLE
Alcohol sensing element: The alcohol sensing element used here is MQ-3
kind sensor, the facility offer to the alcohol sensing element is controlled
through a NPN power electronic transistor TIP122 by the microcontroller
unit. The bottom terminal of the voltage divider is connected to MCU
through 1K resistance, from RC0 . The output of alcohol sensing element
is connected to a voltage divider using 100K and 470 K variable. The
output of the resistor is fed to op-amp’s non-inverting voltage divider
supported LM358. Output of non-inverting electronic equipment is fed to
RA0/AN0 of the microcontroller. The presence of alcohol is detected by
the microcontroller through this pin. During this system MQ3 is employed
as LPG sensing element. This LPG/ alcohol sensing element is
appropriate for detection terribly tiny presents of LPG in its surroundings.
It's a high sensitivity and fast response. Sensing element provides analog
resistive output depends on alcohol concentration. The drive circuit wants
a resistance solely. a straight forward interface may well be a 0- 3.3V
ADC. Resistance worth of MQ-3 is distinction varied to numerous sorts
and various concentration gases. Once exploitation of this element,
sensitivity adjustment is extremely necessary. Once accurately activity,
the correct alarm purpose for the gas detector output to be determined and
considering the temperature and humidness influence. Microcontroller
unit: PIC16F73 is employed because the MCU. MCU gets power only the
helmet is weared. That additionally checks the output of alcohol sensing
element whether or not alcohol is present or not. If the condition of
alcohol is traditional then MCU communicate to the RF transmitter
through the RF encoder circuit. Here the favored microcontroller PIC
16F73 from semiconductor unit Corporation is used because the
mainframe of the system. PIC microcontrollers are the most popular eight
bit microcontroller in the world. They are available in wide variety in pin
outs, memory capacity and have lots of integrated peripherals like ADCs,
SERIAL modules. The PIC16F73 is accessible in twenty eight pin DIP
package and have program memory capability of 4Kb and ram of 368
bytes. They're operating in clock speed vary of zero rate to twenty
megahertz and therefore the additional operation is totally static also.
They have three I/O ports named as passage, PORTB and PORTC.
Among these PORT A is half-dozen bit wide and every one alternative
port is eight bit wide. Most of the peripheral I/O functions are multiplexed
with PORTC pins. The ADC inputs are available in PORT A. The PIC
controllers have fourteen bit wide program memory area by that
instruction occupies just one memory area. This allows additional
program capacity. These are addressed with a 13 bit wide program
counter throughout execution. The program memory is addressed from
0000h to 1fffh and also the reset vector is at 0000h and interrupt vector is
at 0004h. The program counter points the address of the memory location
to be executed next and increments in every machine cycles. One machine
cycle consists of four clock cycles. Generally they are low power devices
and works in voltage range of 2v to5V. They have 13 interrupt sources
like external pulse interrupt and serial receive interrupt etc. These chips
area unit are in circuit serial programming facility and are flash
technology also. The non-volatile storage is re written a thousand times.
Speed of operation of MCU depends on the clock provided. In this project
4MHz clock is used with 232 pF capacitors. First pin (master clear) of the
IC is connected to +5V through 47K Electrical relay: A relay is under
controller that opens and closes underneath the control of another
electrical circuit. In the original form, the switch is operated by an
electromagnet to open or shut one or many sets of contacts. Because a
relay is able to control an output circuit of upper power than the input
circuit, it is thought of to be, in a broad sense, a form of an electrical
amplifier. A simple electromagnetic relay is an adaptation of an
electromagnet. It consists of a coil of wire surrounding a soft iron core, an
iron yoke, which provides a low reluctance path for magnetic flux, a
movable iron coil, and a set, or sets, of contacts. The coil is hinged to the
yoke and automatically linked to a moving contact or contacts. It's control
in place by a spring so that when the relay is de-energized there is an air
gap in the magnetic circuit. In this condition, one of the 2 sets of contacts
in the relay pictured is closed, and the other set is open. different relays
may have a lot of or fewer sets of contacts depending on their operate
when an electrical current is passed through the coil, the resulting
magnetic field attracts the armature and the consequent movement of the
movable contact or contacts either makes or breaks a connection with a
fixed contact. If the set of contacts was closed when the relay was de-
energized, then the movement opens the contacts and breaks the
connection, and vice versa if the contacts were open, when the current to
the coil is reduced to zero, the armature is returned by a force,
approximately as strong as the magnetic force, to its relaxed position.
Usually this force is provided by a spring, but gravity is also used
commonly in industrial motor starters. Most relays are manufactured to
operate quickly. In a low voltage application, this is to reduce noise.
SOFTWARE USED
MPLAB IDE
Introduction
Microchip offers a wide range of tightly integrated development tools to ease the
application development process. These can be broken down into the core
development tools and the supplemental tools.
• Language Products
- MPASM Assembler
- MPLAB-C C Compiler
• Device Programmers
• Development Boards
Note: The most current version may be downloaded from Microchip’s web site or
BBS for free.
In addition to Microchip, there are many third party vendors. Microchip’s Third
Party Handbook gives an overview of the manufactures and their tools.
The core set of development tools operate under the IDE umbrella, called MPLAB.
This gives a consistent look and feel to all the development tools so that minimal
learning of the new tool interface is required. The MPLAB IDE integrates all the
following aspects of development:
• Project management
• Device emulation
• Device programming
MPLAB IDE
- Editor
- Emulator
- Simulator
• A project manager
• Customizable tool bar and key mapping
• Debug using:
- Program memory
• Run or Single-step
- Program memory
- Source file
- Absolute listing
Microchip’s simulator, MPLAB-SIM, operates under the same platform as the
PICMASTER emulator. This allows the user to learn a single tool set which
functions equivalently for both the simulator and the full featured emulator.
- Source code
• Programmer support (in this case PRO MATE pull down menu)
To make the device operate as desired in the application, a software program needs
to be written for the microcontroller. This software program needs to be written in
one of the programming languages for the device. Currently MPLAB supports two
of Microchip’s language products:
Other language products that support Common Object Description (COD) may
also work with MPLAB
Assembler (MPASM)
MPASM offers full featured Macro capabilities, conditional assembly, and several
source and listing formats. It generates various object code formats to support
Microchip's development tools as well as third party programmers.
MPASM allow full symbolic debugging from the Microchip Universal Emulator
System (PICMASTER).
MPASM has the following features to assist in developing software for specific
use applications.
• Provides translation of Assembler source code to object code for all Microchip
microcontrollers.
• Produces all the files (Object, Listing, Symbol, and special) required for symbolic
debug with Microchip’s emulator systems.
• Supports Hex (default), Decimal and Octal source and listing formats.
MPASM provides a rich directive language to support programming of the PIC
micro. Directives are helpful in making the development of your assemble source
code shorter and more maintainable.
Compiler (MPLAB-C)
The MPLAB-C is a complete ‘C’ compiler for Microchip’s PIC micro family of
microcontrollers. The compiler provides powerful integration capabilities and ease
of use not found with other compilers. For easier source level debugging, the
compiler provides symbol information that is compatible with the MPLAB IDE
memory display, Watch windows, and File register windows.
PROTEUS PROFESSIONAL
Introduction Proteus Professional design combines the ISIS schematic capture and
ARES PCB layout programs to provide a powerful, integrated and easy to use tools
suite for education and professional PCB design. As professional PCB design
software with integrated shape based auto router, it provides features such as fully
featured schematic capture, highly configurable design rules, interactive spice
circuit simulator, extensive support for power plane, industry standard CADCAM
and OD++ output, and integrated 3D viewer. We will use ISIS for simulating PIC
response, it has many variety modeling libraries, and its powerful concentrates in
MCUs and MPUs modeling, along with wide range of supporting chips such that
AVR MCU series, 8051 MCU series, Basic stamp, HC11 MCU series, ARM CPU,
Z80, Motorola 68K CPU, and most PIC's families, also it has a debugger, registers
contents viewer and many other featur
ADVANTAGES
Used to avoid accidents
A safe 2 wheeler journey is possible which would decrease the
head injuries throughout accidents caused from the absence of
helmet.
Additionally reduce the accident rate due to drunken driving.
APPLICATION
On road
While driving at anywhere
CONCLUSION
CONCLUSION