Professional Documents
Culture Documents
TRUST
VISHWAKARMA INSTITUTE OF TECHNOLOGY
PUNE-411037
(An Autonomous Institute Affiliated To Savitribai Phule Pune
University)
Project Report
On
Submitted by
2017-2018
CERTIFICATE
This is to certify that the project entitled “Accident prevention system for
drowsiness driver – MATLAB SIMULINK” and “Fabrication of control
system for inspection of linear dimensions using ARDUINO” has been
successfully completed for fulfillment of second year LAB project work at
Vishwakarma Institute of Technology, Pune under MECHATRONICS
subject.
SUBMITTED BY
2017-2018
ABSTRACT
Sorting of products in an industry is a tedious industrial process, which is generally
carried out manually. Continuous manual sorting creates quality consistency issues.
Segregation based on different characteristics like weight, colour, type, dimensions require
different equipment for weighing and then separating. We have proposed a cheap method
which uses conveyor belt, LDR and Arduino for identifying and segregating on the basis of
length of specimen. A laser beam is imparted on the LDR continuously. The proposed model
then calculates the time between HIGH and LOW of the LDR and then accordingly measures
the length of the time. This length is then compared to the standard results and accordingly a
message is displayed on the screen whether the component is accepted or rejected.
The Arduino is given the power supply from the computer and the conveyor belt
of the motor is driven by a DC motor of capacity 30 RPM.
PLANNING
A. Accident prevention system for drowsiness driver
B. Fabrication of control system for inspection of linear dimensions using
ARDUINO
Planning:
Week 1 MATLAB Simulink
1
“Accident prevention system for drowsiness driver” 2017
Tarle Nikita Topic Basic Report(95) Matlab Model Topic selection MSE and Model Report and
(S-17) selection(100) Programming Analysis(95) and Procurement(80) Making(95) ESE(100)
logic(100) discussion(100)
Patil Swarali Topic Basic Report(95) Matlab Model Topic selection MSE and Model Report and
(S-20) selection(100) Programming Analysis(95) and Procurement(80) Making(95) ESE(100)
logic(100) discussion(100)
2
“Accident prevention system for drowsiness driver” 2017
The present project relates to safety systems for drivers of vehicles and, more
particularly, to a safety alarm system to alert drowsy drivers of a vehicle and assist vehicle
drivers in remaining awake and alert by means of alarm and water spraying system. The problem
of detecting sleepiness or drowsing in a driver of a motor vehicle has been prevalent since the
development of automotive transportation. According to various studies, a need exists for a
mechanical device to alert drivers who are drowsy to prevent them from falling asleep at the
wheel. Such a mechanical alert device would be sufficient in many cases to prevent the worst
case scenario of a driver falling into a complete state of sleep. Various alarm devices have been
designed and suggested to awaken a sleeping driver in order to prevent the large number of
accidents that may be attributed to the drowsiness of a vehicle driver. However, such devices
have not met with a high measure of success in the marketplace. This lack of success may be
attributed to factors such as complexity and expense of the device installation or inconvenience
to the vehicle driver.
A device is needed that is inexpensive, easy to install and retro-fittable to any vehicle.
Further a device is needed that is attractive, convenient and easy to use. The device should also
be optional by providing a switch that can be used by the driver to deactivate the device. Of
course the switch should be capable of disablement when desirable. For instance the device
should be capable of use by drivers convicted of driving under the influence of intoxicants as a
measure to guard against intoxication and lack of driver alertness. Such a device could be
included a probationary measure as punishment and a deterrent to further DUI. In this respect,
the safety alert system of the present invention is designed to prevent falling asleep at the
steering wheel of a motor vehicle and alert a driver of his or her drowsy condition. Also, the
device is convenient but requires greater alertness of the driver by requiring active input from
the driver. As well as a means for the driver to monitor his or her status.
3
“Accident prevention system for drowsiness driver” 2017
4
“Accident prevention system for drowsiness driver” 2017
2. LITERATURE SURVEY
2.1 Current system used in practice:
A. Vision- Based Visual Cues Extraction
Fatigue monitoring starts with extracting visual parameters typically characterizing a person's
level of vigilance. This is accomplished via a vision system in computer. In current section, we
discuss the computer vision system we developed to achieve this goal. Figure below provides
an overview of our visual cues extraction system for driver fatigue monitoring. The system
consists of two cameras: one wide angle camera focusing on the face and another narrow angle
camera focusing on the eyes. The wide angles camera monitors head movement and facial
expression while the narrow angle camera monitors eyelid and gaze movements.
5
“Accident prevention system for drowsiness driver” 2017
6
“Accident prevention system for drowsiness driver” 2017
3. MATLAB SIMULINK
3.1 Construction:
It consist of following component:
i. Sensor:
It is used to detect that driver hand pressure or contact with the steering wheel. Two
types of sensors can be used: pressure or contact type.
ii. Arduino/Microcontroller:
It is used to program or setting various parameters of pump pressure or timer
duration, etc.
iii. Timer
It is used to set the time for clock signal.
iv. Buzzer
It will make a sound to wake up a driver.
v. Small Pump:
It is used to water sprinkle some water on face of drowsiness drivers.
vi. Wiring
For electrical connections, electrical wiring is required.
vii. Piping
For water distribution from pump to spray, piping is required.
viii. Battery/power supply from engine
7
“Accident prevention system for drowsiness driver” 2017
8
“Accident prevention system for drowsiness driver” 2017
9
“Accident prevention system for drowsiness driver” 2017
4. CONCLUSIONS
In statistical analysis, there are lots of cases of accidents due to drowsiness of drivers.
In the night time or in day time (tired drivers), there may be chances of the driver falling asleep
during driving which results in accidents, further loss of life or severe damage to the body. For
prevention of such situations of accidents due to sleep, our system is helpful. It is compact and
low in cost with simplicity.
Accidents can be prevented most of the times using the buzzer and the spray system
fitted on steering. This is also useful to alert some drivers who have tendency of loosening their
grip while on straight lanes to hold the steering with correct pressure.
10
“Accident prevention system for drowsiness driver” 2017
5. REFERENCES
1. Federico Baronti, Francesco Lenzi, Roberto Roncella, Roberto Saletti, “Distributed
Sensor for Steering Wheel Grip Force Measurement in Driver Fatigue Detection” May
2009
2. Mahmut Eksioglua,_, Kemal Kızılaslanb, “Steering-wheel grip force characteristics of
drivers as a function of gender, speed, and road condition” 9 January 2008
11
“Fabrication of control system for inspection of linear dimensions using AURDUINO” 2017
1. INTRODUCTION
1.1Introduction
Measurement and quality control is one of the important thing in manufacturing industry.
After production of any component it is necessary to check the dimensions of the
components are mating with specification requirement or not. Traditional methods of
measuring linear dimensions is by means of some instrument like vernier caliper,
micrometer, steel rule, etc. These methods of measurement are simple and cost effective but
it consumes time. When we have to measure the dimensions of a components in large
numbers, these methods of measurements are not useful. There may be chances of incorrect
measurement due negligence of the operator. Thus, there is a need of finding a device which
will directly detect the dimensions of a component. From inspection point of view, after
measuring the dimensions of component, we have determined the given part is accepted or
rejected.
For achieving effective output over measurement system and making it time effective,
we used a mechatronics approach in designing a system for measurement of linear
dimensions of a component. Present project is integration of mechanical, electrical and
electronic system. Because of mechatronics approach, we achived automation for measuring
the linear dimensions of components. Based on microcontroller, arduino programming,
sensors and actuators, it becomes easy and time effective to make decisions of inspections.
Thus, it become possible to achieve automation in such particular measurement application.
Automation is the use of control systems for handling different processes and machineries
to replace human efforts. Thus, use of automation is effective in manufacturing industry.
Automatic sorting also reduces the labor cost and the production time. The error caused due
to human negligence are avoided by the use of automated system by sensor based sorting
using some actuator.
Present project is a combination of electronic, electrical and mechanical system. Its main
purpose is to make measurement and inspection of linear dimensions of components easily
with less time and elimination of a tedious process of measurement with traditional
instruments.
12
“Fabrication of control system for inspection of linear dimensions using AURDUINO” 2017
Design a working prototype of a system that can actually and automatically measure the
particular length of the component.
Fabrication of the system is done using cost effective methods and for the ease of coding
too Arduino is used.
Create an environment where it is displayed instantaneously whether a component is
accepted or rejected.
Predetermined Arduino
value of compares the
Motor is length set. length and
started and Time is accordingly
Object kept on
Arduino is measured displays
the conveynor.
connected to between whether the
PC HIGH and component is
LOW of the accepted or
LDR rejected
13
“Fabrication of control system for inspection of linear dimensions using AURDUINO” 2017
2. LITERAUTE SURVEY
14
“Fabrication of control system for inspection of linear dimensions using AURDUINO” 2017
15
“Fabrication of control system for inspection of linear dimensions using AURDUINO” 2017
Thus we are making a system which will automatically detect acceptation or rejection of
product based on measured length.
16
“Fabrication of control system for inspection of linear dimensions using AURDUINO” 2017
ii. LDR: An LDR is a component that has a (variable) resistance that changes with the light
intensity that falls upon it. This allows them to be used in light sensing circuits
17
“Fabrication of control system for inspection of linear dimensions using AURDUINO” 2017
iv. DC motors: The DC motors work using direct current instead of alternating current. The
motors are used to drive the system i.e. the motor is coupled to the rollers on which the
conveyor belt moves. An AC to DC adaptor is used to convert 240V AC supply to 12V
DC.
18
“Fabrication of control system for inspection of linear dimensions using AURDUINO” 2017
v. LASER Beam: The laser beam is used to focus its full intensity on the LDR for easy
detection of change of state of LDR. The use of LASER is actually used for optimization
purposes and ease of use of operation of the system at all lighting conditions.
The figure below shows the flow of work carried out during the project completion. A
wide and in depth literature survey was conducted for the project. The mechanism of length
measurement were studied and the use of light sensitive sensor was then finalized. In that
different case studies were done of various sensors; their advantages and disadvantages over
one another were listed out.
19
“Fabrication of control system for inspection of linear dimensions using AURDUINO” 2017
3.4Arduino Coding:
//initialising variables.
int laser=10;
int threshhold=200;
double vel;
double dist;
int A;
20
“Fabrication of control system for inspection of linear dimensions using AURDUINO” 2017
double t0,t1,diff=0,val;
int digitalvalue=0;
int laststate=0;
String str;
void setup()
pinMode(laser,OUTPUT);
digitalWrite(laser,HIGH);
Serial.begin(9600);
A=analogRead(A0);
laststate=Digitise(A);
str="Vel is :";
Serial.println(str);
//coverting the analog readings of LDR into boolean HIGH and LOW
21
“Fabrication of control system for inspection of linear dimensions using AURDUINO” 2017
if(value<threshhold)
return 1;
return 0;
void loop()
digitalvalue=Digitise(A);
if(laststate==1&&digitalvalue==0)
t0=millis();
if(laststate==0&&digitalvalue==1)
t1=millis();
diff=t1-t0;
//printing of results
22
“Fabrication of control system for inspection of linear dimensions using AURDUINO” 2017
Serial.print(diff);
Serial.println(" milliseconds.");
dist=(vel*(t1-t0));
dist=dist/1000;
Serial.print(dist);
Serial.println(" mm");
laststate=digitalvalue;
23
“Fabrication of control system for inspection of linear dimensions using AURDUINO” 2017
3.6 Costing:
SR. NAME SPECIFICATIONS COST(Rs.)
NO.
24
“Fabrication of control system for inspection of linear dimensions using AURDUINO” 2017
25
“Fabrication of control system for inspection of linear dimensions using AURDUINO” 2017
We have designed the basic model for solving a single problem. A good amount of
changes can be done so as to overcome some of the limitations.
A better sensor can be used instead of LDR to increase the reliability, accuracy and
precision of the system.
A servo motor can be installed which controls the gate at the end of the conveyor. A
system can be made where if the component gets accepted the servo flips to one side
and object is put in the “ACCEPTED” bucket. If the component gets rejected the
servo flips to the other side and the object is put in the “REJECTED” bucket.
The conveyor is made of plastic links. Instead of that rubber belts can be used.
26
“Fabrication of control system for inspection of linear dimensions using AURDUINO” 2017
6. REFERENCES
1. www.iosrjournals.org/iosr-jmce/papers/Conf.RDME%202017/...6/2.%2004-07.pdf
2. https://www.researchgate.net/publication/270878911_DEVELOPMENT_OF_AN_AU
TOMATIC_COLOR_SORTING_MACHINE_ON_BELT_CONVEYER
3. https://www.arduino.cc/en/Tutorial/BuiltInExamples
27
ACCIDENT PREVENTION SYSTEM FOR
DROWSINESS OF DRIVER
1
Plan Of Action
Week 1-04/08/2017 MATLAB Simulink
3
Introduction and Necessity
There are many situations due to which accidents may
happen due to drowsiness drivers in the night time.
Thus there should be some safety provision over steering
wheel which detect drowsiness drivers and alert drowsy
drivers of a vehicle.
Prevent the driver to falling in a sleep during driving.
Contribution to the prevent road accidents
4
Components Used
Sensor
Arduino/Microcontroller
Timer
Buzzer
Small Pump
Wiring
Piping
Battery/power supply from engine
5
Working
i. Detection of pressure by means of pressure sensor and sends
signal to the microcontroller.
ii. Accordingly microcontroller will send signal after comparison
with set value to the buzzer and timer simultaneously.
iii. Buzzer active for 3 sec if corrective action is not taken.
iv. After 3 sec timer activate the pump and sprays water over face
of driver.
6
Blocks Used
1. Constant: It generates a constant signal for a system.
2. If-else: It is used for giving a programming logic to a particular system.
3. If action subsystem: If specified signal is given to this system, it will generate an signal
of some set value.
4. Clock: It is used to measure a time at a particular instant.
5. Switch: General purpose switch.
6. Signal Conditioner: It stores the outputs from various system.
7. Gain: We can give a amplification to a input signal.
8. Scope: Output behavior of a system is displayed with the help of scope.
7
Matlab Simulink
8
Simulation results (sensor pressure less than
set value)
9
Simulation results (sensor pressure
greater than set value)
10
Conclusions
In statistical analysis, there are lots of cases of accidents due to
drowsiness of drivers.
For prevention of such situations of accidents due to sleep, our system
is helpful. It is compact and low in cost with simplicity.
This is also useful to alert some drivers who have tendency of loosening
their grip while on straight lanes to hold the steering with correct
pressure.
11
FABRICATION OF CONTROL SYSTEM
FOR INSPECTION OF LINEAR
DIMENSIONS USING ARDUINO
12
Introduction
To sort out the objects.
To analyze and check whether the given specimen lies
within the given tolerance range.
To design easy and simplified operational system.
To display whether the object is rejected or accepted.
To easily determine the process capability.
13
Necessity
Design a working prototype of a system that can actually
and automatically measure the particular length of the
component
14
Components Used
Frame
Conveyor belt
Light detection Resistor
Arduino
DC Motor
LASER Beam
15
Working
Arduino
Predetermined compares
value of length the length
Object Motor is set. and
kept on started and
Time is accordingly
Arduino is
the connected to measured displays
conveyor. between HIGH whether the
PC
and LOW of the component
LDR is accepted
or rejected
16
Design Methodology
Mechanical Implementation
Electronic Implementation
Electrical Implementation
17
Actual Model
18
Circuit Diagram
19
Advantages
Automaticoperation
Simple construction & user friendly
More accurate than manual inspection
Low cost
Limitations
Measure linear dimensions only
20
Conclusions
The project is used to separates different length objects using LDR
and arduino.
The system decides sorting of specimens according to tolerances.
Cost effective Mechatronics system designed using the simplest
concepts.
This system is a depicting the prototype of sorting systems.
21
Future Scope
Automatic object feeding system
22
References
www.iosrjournals.org/iosr-jmce/papers/Conf.RDME%202017/...6/2.%2004-07.pdf
https://www.researchgate.net/publication/270878911_DEVELOPMENT_OF_AN_AUT
OMATIC_COLOR_SORTING_MACHINE_ON_BELT_CONVEYER
https://www.arduino.cc/en/Tutorial/BuiltInExamples
23
THANK YOU…..!!!!!
24