0% found this document useful (1 vote)
141 views49 pages

Smart Helmet - Hindhu College

This document provides an overview of a smart helmet system that prevents motorcycle accidents. The system uses an alcohol sensor and switch in the helmet that communicates wirelessly via radiofrequency to a receiver on the motorcycle. The receiver is connected to the ignition relay, so the engine will not start if the helmet is not properly worn or if alcohol is detected on the rider's breath. The system aims to enforce safety rules and reduce accidents caused by unhelmeted or intoxicated driving. It uses a microcontroller to control the wireless communication and ignition relay.

Uploaded by

Siva Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (1 vote)
141 views49 pages

Smart Helmet - Hindhu College

This document provides an overview of a smart helmet system that prevents motorcycle accidents. The system uses an alcohol sensor and switch in the helmet that communicates wirelessly via radiofrequency to a receiver on the motorcycle. The receiver is connected to the ignition relay, so the engine will not start if the helmet is not properly worn or if alcohol is detected on the rider's breath. The system aims to enforce safety rules and reduce accidents caused by unhelmeted or intoxicated driving. It uses a microcontroller to control the wireless communication and ignition relay.

Uploaded by

Siva Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 49

Accident prevention using

smart helmet system


CONTENTS
CONTENTS

 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

Nowadays most of the countries are forcing the motor riders to


wear the helmet and not to use the vehicles when the person is in drunken
condition. But still the rules are being violated by the users. In order to
overcome such cases, the project introduces an intelligent system, which
automatically checks whether the person is wearing the helmet and has
non- alcoholic breath while driving. Here we have a transmitter at the
helmet and the receiver at the bike. There is a switch used to sure the
wearing of helmet on the head. The ON condition of the switch ensures the
placing of the helmet in proper manner. An alcohol sensor is placed near
to the mouth of the driver in the helmet to detect the presence of alcohol.
The data to be transferred is coded and transmitted through radiofrequency
transmitter. The receiver at the bike receives the data and decodes it. The
engine should not ON if any of the two conditions is violated.MCU
controls the function of relay and thus the ignition, it control the engine
through a relay and a relay interfacing circuit. A motorcycle’s helmet is a
type of protective headgear used by the motorcyclist. The main purpose is
for safety, which is to protect the rider's head from the impact during an
accident. It protects the rider’s head as the helmet provides ventilation
system. Speeding and not wearing a helmet are the main reasons of
fatalities and injuries. It is proven that, as the speed of motorcycles
increased, so did the number of accident and fatalities [1]. This is again
due to the shock of an impact during the accident. The objective of this
project is to build a safety system in a helmet and speed alert for a better
safety of motorcyclists. The safety helmet that we created is embedded
with sensors which act as detectors for rider’s head and the safety belt
itself. The engine of the motorcycle can start only if the rider has buckle up
its ‘helmet safety belt. A microcontroller is used in this project to control
the system. The microcontroller used to operate the project is Peripheral
Interface Controller (PIC) 16F877A. The PIC is an 8- bit controller. Since
it has a small number of inputs and output, PIC kit software is needed to
write the program in basic compiler language. Other than that, alcohol
sensor is used as sensor to operate this project. Therefore, the scopes of the
project will be using that sensors which is alcohol sensor. 315 MHz Radio
Frequency Module is used since the range between the circuits is short.
While the microcontroller Peripheral Interface Controller (PIC) 16F877A
is used to control the system.
BLOCK DIAGRAM
BLOCK DIAGRAM

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

The project introduces an intelligent system, which automatically checks


whether the person is wearing the helmet and has non- alcoholic breath
while driving. Here we have a transmitter at the helmet and the receiver at
the bike. There is a switch used to sure the wearing of helmet on the head.
The ON condition of the switch ensures the placing of the helmet in
proper manner. An alcohol sensor is placed near to the mouth of the driver
in the helmet to detect the presence of alcohol. The data to be transferred
is coded and transmitted through radiofrequency transmitter. The receiver
at the bike receives the data and decodes it. The engine should not ON if
any of the two conditions is violated.MCU controls the function of relay
and thus the ignition, it control the engine through a relay and a relay
interfacing circuit.
PIC CONTROLLER (PIC16F877A)
PIC is a family of modified Harvard architecture
microcontrollers made by Microchip Technology, derived from the
PIC1650 originally developed by General Instrument's Microelectronics
Division. The name PIC initially referred to Peripheral Interface
Controller. The first parts of the family were available in 1976; by 2013
the company had shipped more than twelve billion individual parts, used
in a wide variety of embedded systems. Early models of PIC had read-
only memory (ROM) or field-programmable EPROM for program
storage, some with provision for erasing memory. All current models use
Flash memory for program storage, and newer models allow the PIC to
reprogram itself. Program memory and data memory are separated. Data
memory is 8-bit, 16-bit and in latest models, 32- bit wide. Program
instructions vary in bit-count by family of PIC, and may be 12, 14, 16, or
24 bits long.

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

Fig 3.12: Pin diagram of PIC16F877A


Advantages of Microcontroller

 Small instruction set to learn.


 RISC architecture.
 Built-in oscillator with selectable speeds.
 Easy entry level, in-circuit programming plus in-circuit debugging PIC
Kit units available for less than $50.
 Inexpensive microcontrollers.
 Wide range of interfaces including I²C, SPI, USB, USART, A/D,
programmable comparators, PWM, LIN, CAN, PSP, and Ethernet.
 Availability of processors in DIL package made them easy to handle for
hobby use.

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

Resistor is a device which is used to resist the flow of


current when connected in series and it is used to resist the voltage
when connected in parallel with the load. A device used in electrical
circuits to maintain a constant relation between current flow and
voltage. Resistors are used to step up or lower the voltage at
different points in a circuit and to transform a current signal into a
voltage signal or vice versa, among other uses. The electrical behavior of
a resistor obeys Ohm's law for a constant resistance; however, some
resistors are sensitive to heat, light, or other variables.

Figure 2.1 Resistor

Variable resistors or rheostats:

They have a resistance that may be varied across a certain range,


usually by means of a mechanical device that alters the position of one
terminal of the resistor along a strip of resistant material.

The length of the intervening material determines the resistance.


Mechanical variable resistors are also called potentiometers, and are
used in the volume knobs of audio equipment and in many other
devices.

Figure 2.2 Variable Resistor

Capacitor

An electrical device consisting of two conducting plates separated


by an electrical insulator (the dielectric), designed to hold an electric
charge. Charge builds up when a voltage is applied across the plates,
creating an electric field between them. Current can flow through a
capacitor only as the voltage across it is changing, not when it is
constant.

Capacitors are used in power supplies, amplifiers, signal


processors, oscillators, and logic gates. A capacitor is charged when
electrons from a power source, such as a battery, flow to one of the
two plates. Because the electrons cannot pass through the insulating
layer, they build up on the first plate, giving it a negative charge.
Electrons on the other plate are attracted to the positive terminal of the
battery, causing that plate to become positively charged.

Figure Capacitor

LED

An electronic semiconductor device that emit light when an electric current


passing through it. They are considerably more efficient than incandescent bulbs,
and rarely burn out. LEDs are used in many applications such as flat-screen video
displays, and increasingly as general sources of light.
Power supply

A power supply is an electrical device that supplies electric power to


an electrical load. The primary function of a power supply is to
convert electric current from a source to the correct voltage, current,
and frequency to power the load. As a result, power supplies are
sometimes referred to as electric power converters. Some power supplies
are separate standalone pieces of equipment, while others are built into
the load appliances that they power. Examples of the latter include power
supplies found in desktop computers and consumer electronics devices.
Other functions that power supplies may perform include limiting the
current drawn by the load to safe levels, shutting off the current in the
event of an electrical fault, power conditioning to prevent electronic
noise or voltage surges on the input from reaching the load, power-factor
correction, and storing energy so it can continue to power the load in the
event of a temporary interruption in the source power (uninterruptible
power supply).
There are many types of power supply. Most are designed to
convert high voltage AC mains electricity to a suitable low voltage supply
for electronic circuits and other devices the power supply gives the
constant voltages of 5v, 9v, 12v. IC 78XX is the fixed positive voltage
regulator & IC 79XX is the fixed negative voltage regulator.
Figure 2.1 power supply

Alcohol Sensor

Sensitive material of MQ-3 gas sensor is SnO2, which with lower


conductivity in clean air. When the target alcohol gas exist, the sensor’s
conductivity gets higher along with the gas concentration rising. Users can
convert the change of conductivity to correspond output signal of gas
concentration through a simple circuit. MQ-3 gas sensor has high
sensitivity to alcohol gas and can resistant to the interference of gasoline,
smoke and vapour. It is with low cost and suitable for various applications
of detecting alcohol at different concentration.
Figure 2.2 Alcohol sensor
MQ3 alcohol sensor is suitable for detecting alcohol concentration on
your breath. It just likes a common breathalyzer. It has a high sensitivity
and fast response time.

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.

Figure 2.3 LCD

LCD PIN CONFIGURATION

Pin
Pin Name: Description
No:

1 Vss (Ground) Ground pin connected to system ground

2 Vdd (+5 Volt) Powers the LCD with +5V (4.7V – 5.3V)

Decides the contrast level of display. Grounded to


3 VE (Contrast V)
get maximum contrast.

Connected to Microcontroller to shit between


4 Register Select
command/data register
Used to read or write data. Normally grounded to
5 Read/Write
write data to LCD

Connected to Microcontroller Pin and toggled


6 Enable
between 1 and 0 for data acknowledgement

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.

These LCD’s can also operate on 4-bit mode in such


12 Data Pin 5 case Data pin 4,5,6 and 7 will be left free.

13 Data Pin 6

14 Data Pin 7

15 LED Positive Backlight LED pin positive terminal

16 LED Negative Backlight LED pin negative terminal

Relay

Relays are switches that open and close circuits


electromechanically or electronically. Relays control one electrical
circuit by opening and closing contacts in another circuit.
As relay diagrams show, when a relay contact is normally open (NO),
there is an open contact when the relay is not energized. A relay is an
electrical switch that uses an electromagnet to move the switch from the off to on
position instead of a person moving the switch. It takes a relatively small amount
of power to turn on a relay but the relay can control something that draws much
more power.

Figure 2.4 Relay

WORKING PRINCIPLE

MQ-3 gas detector (alcohol sensor) is suitable for detecting alcohol


content from the breath. So it can be placed just below the face defend and
above the additional face protection. The surface of the sensor is sensitive
to various alcoholic concentrations. It detects the alcohol from the rider’s
breath; the resistance value drops leads to change in voltage (Temperature
variation occurs).Generally the illegal consumption of alcohol during
driving is 0.08mg/L as per the government act. Except for demonstration
purpose, we have a tendency to program the drink limit as 0.04 mg/L.
Threshold will be adjusted mistreatment exploitation. An ear lobe detector
sense that is fitted with the helmet unit senses the blood flow within the
ear lobe region. So the wearing of helmet is confirmed by our system and
similarly alcohol sensor fitted in the mouth piece of the helmet detects the
alcohol within the breath and sends the amount of alcohol to the
controller. If both of the criteria’s are met in an appropriate manner then
the 2 control signals are sent from the helmet unit to the vehicle control
unit. The decoded RF signal is distributed to the controller within the
vehicle unit shown in fig. two to start out / stop the vehicle. If the signal
from the ear lobe region and no control signal from alcohol sensor is
detected then the vehicle can begin, otherwise the vehicle won't begin.
CIRCUIT DIAGRAM
Transmitter circuit
Receiver circuit
CIRCUIT DIAGRAM
DESCRIPTION
CIRCUIT DIAGRAM DESCRIPTION

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

The Integrated Development Environment (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.

The core tools are as follows:

• MPLAB Integrated Development Environment, including full featured editor

• Language Products

- MPASM Assembler

- MPLAB-C C Compiler

• MPLAB-SIM Software Simulator

• Real-Time In-Circuit Emulators

- PICMASTER/PICMASTER CE Emulator with Full Featured Trace and


Breakpoint debug capabilities

- ICEPIC Low-Cost Emulator with Breakpoint de-bug capabilities

• Device Programmers

- PRO MATE II Universal Programmer

- PICSTART Plus Entry-Level Prototype Programmer


Supplemental Tools:

• Other Software Programming Tools

- MP Fuzzy logic development system

• Development Boards

The minimum configuration of MPLAB is the Integrated Development


Environment (IDE), the assembler (MPASM), and the software simulator
(MPLAB-SIM). Other tools are added to MPLAB as they are installed. This gives
a common platform for the design activity, from the writing and assembling of the
source code, through the simulation/emulation, to the programming of prototype
devices.

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 Integrated Development Environment (IDE)

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:

• Source code editing

• Project management

• Machine code generation (from assembly or “C”)


• Device simulation

• Device emulation

• Device programming

MPLAB is a PC based Windows 3.x application. It has been extensively tested


using Windows 95 and recommended in either of these operating environments.
This comprehensive tool suite allows the complete development of a project
without leaving the MPLAB environment.

MPLAB IDE

The MPLAB IDE Software brings an ease of software development previously


unseen in the 8-bit microcontroller market. MPLAB is a Windows based
application that contains:

• A full featured editor

• Three operating modes

- Editor

- Emulator

- Simulator

• A project manager
• Customizable tool bar and key mapping

• A status bar with project information

• Extensive on-line help

MPLAB allows you to:

• Edit your source files. This includes:

- MPASM assembly language

- MPLAB-C ‘C’ language

• One touch assembles (or compile) and download to PIC16/17 Tool


s
(automatically updates all project information)

• Debug using:

- Source files & Absolute listing file

- Program memory

• Run up to four emulators on the same PC

• 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.

Some of the highlights are:

• Tool bars, multiple choices and user configurable

• Status, mode information, and button help on footer bar

• Multiple windows, such as

- Source code

- Source listing (most useful for ‘C’ programs)

- Register file window (RAM)

- Watch windows (to look at specific register)

- Stop watch window for time/cycle calculations

• Programmer support (in this case PRO MATE pull down menu)

MPLAB Software Language Support

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:

• Microchip Assembler (MPASM)


Microchip ‘C’ Compiler (MPLAB-C)

Other language products that support Common Object Description (COD) may
also work with MPLAB

Assembler (MPASM)

The MPASM Universal Macro Assembler is a PC-hosted symbolic assembler. It


supports all Microchip microcontroller families.

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.

• Macro assembly capability.

• 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

Road safety for driver is an essential requirement of society. As the


Number of vehicles increase day by day. Collision of vehicle also
Increases simultaneously. In this situation this project fulfills the
Purpose of saving lives. Helmet is best safety equipment for driver. In
the nutshell it can be said that compulsion of wearing the helmet to the
vehicle driver can impact more to save lives in accidental situation. In
future we would try to apply compulsion of seat belt wearing to the
four vehicle drivers. So that their lives also would be saved in the
accidental situation
FUTURE ENHANCEMENT

 As a future of the project is that the helmet is equipped with a


camera mounted to the helmet and the entire video will be recorded
and it will be stored in the data storage of the helmet and the videos
can be accessed wirelessly so the helmet will act like a BLACK
BOX containing all data. It will be very power full accident will be
detected
BIBLIOGRAPHY

[1] “Global status report on road safety 2015”, 2015.


[2] “An IoT Approach to Vehicle Accident Detection, Reporting, and
Navigation”
[3] : https://www.arm.com/markets/internetof-things-iot.php
[4] Future Generation Computer Systems, IEEE, 2013 [5]
www.lificonsortium.org/
[6] “Development of a Breathalyzer for Car Drivers”,
IEEE, 2016
[7] “Alcohol Detection and Accident Prevention of
Vehicle”, IJIERE, 2015
[8] “GPS-GSM based Inland Vessel Tracking System for
Automatic Emergency Detection and Position
Notification”, IEEE 2016
[9] ‘‘A tutorial survey on vehicular ad hoc networks,’’ IEEE 2008
[10] Research and Innovative Technology Administration (RITA).
(2012). Safety Pilot Program Overview [Online]
[11] “Highly sensitive driver condition monitoring system using
nonintrusive active electrodes,” IEEE 2012
[12] http://processors.wiki.ti.com/index.php/CC32xx_HTTP_Clie
nt_Demo

You might also like