Project 2017 4th Year 2nd Semii
Project 2017 4th Year 2nd Semii
MEKELLE UNIVERSTY
EIT-M
Faculty of Electrical and Computer Engineering
Project on
1, Mearg Ezgihaye………......…157901/11
2, Hagos Shibesh…….............169812/12
3, Ataklti Asgddom…….........158119/11
4, Hagerawi Luel……………....158000/11
Advisor : Mr.Adhena N .
A semester Project Submitted to the Faculty of Electrical Engineering at Mekelle
University Institute of Technology - Mekelle University in Partial Fulfillment of the
Requirements for the Degree of Bachelor of Science in Electrical Engineering.
October 2024
Declaration
We, are the undersigned, declare that this project is an original work, has not been presented for a
semester project in this or any other universities, and all sources of materials used for the project have
been fully acknowledged.
Mr.Adhena N.
Advisor
USER i
[Type here]
2024
Acknowledgement
We place on the first and warmly acknowledge the continuous encouragement, invaluable
supervision, timely suggestions and inspired guidance offered by our guide Mr. Adhena N. in
bringing this project to a Partial successful completion.
Eventually we extend our gratefulness to one and all who are directly or indirectly involved
in this project work.
[Type here]
EIT-M
October 2024
Table of Contents
Declaration.......................................................................................................................................................
Acknowledgement...........................................................................................................................................
List of Table....................................................................................................................................................
List of Figure..................................................................................................................................................
List of acronyms............................................................................................................................................vii
Abstract........................................................................................................................................................viii
2024
Appendix .................................................................................................................................. 42
[Type here]
EIT-M
List of Table
Semester Project
List of acronyms
DC Direct Current
BD Blink Duration
GND Ground
LED Light Emitting Diode
IR Infra-red ray
KHz Kilohertz
LDR Light Dependent Resistor
2024 vii
October 2024
Semester Project
2024 viii
October 2024
Abstract
Accident due to drowsy is prevented and controlled when the vehicle is out of control. The term
used here for the recognition that the driver is drowsy is by using eye blink of the driver. In recent
times drowsiness is one of the major causes for highway accidents. These types of accidents
occurred due to drowsy and driver can’t able to control the vehicle, when he/she wakes. The
drowsiness is identified by the eye blink duration through infra-red sensor. Depend on the eye
blink duration it can be detected the normal or drowsiness of the driver. If the driver is drowsy or
unconscious, then the system will give buzzer signal and the speeds of the vehicle are reduced
and stop finally when he/she is already asleep. And also the fan, on to make the air cool which
helps the deriver to returns into normal condition.
ix
EIT-M
This project involves controlling accident due to unconscious through Eye blink by considering
the duration of one blink. When the driver’s eye blink duration is more than the normal, the
system realizes driver’s drowsiness or unconscious, and then the alarm will ring in order to make
him /her conscious, if not the DC motor will decrease the speed and stop it at the last.
Octobet 2024
x
EIT-M
Car accident is a pandemic and it is a headache of countries over all the world.
Especially, in our country Ethiopia the accident is the worst, increasing rapidly. It is the forth in
the world even if have small number of vehicles relative to the number of people, as the data
states from Ministry of Ethiopian Road Transportation. Drowsiness or unconscious is the major
cause for car accident. Almost all of car accident are due to the driver's mistake,
due to the car's technical problem is rarely happen. Then the main task of our project is to
control the driver, Due to this Doing project on prevention car accident due to drowsiness and
unconscious is the matter of saving human’s life and their properties from lost.
The main objective of this project is to design, and implement a prototype of a model that used
1.4 Methodology
This project tries to solve the problem by analyzing the eye blink of the driver using IR sensor.
And it will detect the eye blink rate and duration of the blink. For successful completion of this
project some steps will be followed to carry out different tasks. Starting from identifying the
problem depends on current issue we will undergo on revising of literatures, design our system
model, simulate and finally implement the prototype.
October 2024
xii
EIT-M October 2024
The scope of this project is to develop a system to prevent car accident due to drowsy by using
eye blink. We were design and simulate of system in this project. We will go on implementation
the prototype of project in the next semester.
Since this project involves on prevention of car accident, its contribution is very crucial. What
makes it highly especial, so that it saves the human life which is unrecoverable if once lost
through car accident due to drowsy; this project also save humans from losses of their properties.
2. Literature
Neeta Parmar made a project by using a small monochrome security camera that points directly
towards the driver’s face and monitors the driver‟ in order to detect fatigue in Ryerson
University. The system deals with using information obtained for the binary version of the image
to find the edges of the face [1].
R.Manoj kumar have a paper on preventing the accidents by providing receiver unit in vehicles
along with transmitter unit at necessary places such as school zones, diversion zones, railway
crossings and other accident prone zones to indicate about the respective places well in advance
before reaching the spot by means of LCD message and as well as by a recorded voice [2].
Tomas Drutarousky on his bachelor thesis considers two main branches of blink detection
algorithms. The first group of detection methods belongs to a static blink detection, which uses
the fact, that it can determine the current eye state for each eye frame from the video sequence
independently. Based on these methods, it can be analyze captured eye states to reveal blinks. A
second type of blink detection is a sequential method, which uses analysis of consecutive frames
to estimate possible blink occurrence. In contrast to static detection methods, this approach
cannot determine the actual eye state in every point of the input video sequence. However, the
sequential analysis uses feature moves within the eye region to estimate behavior [3].
Gehlot NL, made a system for preventing or reducing vehicle accidents comprising one or more
sensors positioned on a vehicle sensing a condition or conditions indicative of a drivers ability to
effectively control the vehicle; a processing unit in communication with the sensors, the
processing unit receiving data from the sensors, analyzing the data to determine an appropriate
response and initiating the response [5].
Tomoda, Takahisa, A keyless entry system allows fully automatic operation of a door lock device
of an automotive vehicle. The system recognizes the presence and absence of an authorized user
and automatically locks or unlocks the vehicle door lock device according to the presence or
absence of the authorized user. The keyless entry system provided with a controller mounted on a
vehicle and designed to periodically generate a radio demand signal and transmit same at regular
interval [6].
Chapter Three
This chapter contains the overall system description, system analysis and design of each
component. The modeling of the overall system is shown below.
3.2 IR sensor
IR transmitter and receiver have already discussed how an IR sensor works. IR Sensors work by
using a specific light sensor to detect a select wave frequency in the Infra-Red (38-40Hz). By
using an LED which produces light at the same wave frequency as what the sensor is looking for,
it can look at the intensity of the received light. When an eye is close, the sensor ray from the eye
not bounces off (reflected) and not receive into the receiver sensor. This process can be shown
below.
Photocells or LDR‟s are nonlinear devices. There sensitivity varies with the wavelength of light
incident on them. Some photocells might not at all response to a certain range of wavelengths.
Based on the material used different cells have different spectral response curves.
When light is incident on a photocell it usually takes about 8 to 12 ms for the change in resistance
to take place, while it takes one or more seconds for the resistance to rise back again to its initial
value after removal of light. This phenomenon is called as resistance recovery rate. This property
is used in audio compressors. Also, LDR‟s are less sensitive than photo diodes and photo
transistor. (A photo diode and a photocell (LDR) are not the same, a photo-diode is a p-n junction
semiconductor device that converts light to electricity, whereas a photocell is a passive device,
there is no p-n junction in this nor it “converts” light to electricity).
.
The structure of a light dependent resistor consists of a light sensitive material which is deposited
on an insulating substrate such as ceramic. The material is deposited in zigzag pattern in order to
obtain the desired resistance & power rating. This zigzag area separates the metal deposited areas
into two regions. Then the ohmic contacts are made on the either sides of the area. The
resistances of these contacts should be as less as possible to make sure that the resistance mainly
changes due to the effect of light only. Materials normally used are cadmium sulphide, cadmium
selenide, and indium antimonide and cadmium sulphonide. The use of lead and cadmium is
avoided as they are harmful to the environment.
LDRs have low cost and simple structure. They are often used as light sensors. They are used
when there is a need to detect absences or presences of light like in a camera light meter. Used in
street lamps, alarm clock, burglar alarm circuits, light intensity meters, for counting the packages
moving on a conveyor belt, etc.
The LDR gives out an analog voltage when connected to Vcc (5V), which varies in magnitude in
direct proportion to the input light intensity on it. That is, greater the intensity of light, greater
will be the corresponding voltage from the LDR. Since the LDR gives out an analog voltage, it is
connected to the analog input pin of the Arduino. The Arduino, with its in built ADC (Analog to
Digital Converter) then converts the analog voltage (from 0-5V) into a digital value in the range
of (0-1023). Thus, when there is sufficient light in its environment or on its surface, the converted
digital values read from the LDR through the Arduino will be in the range of 800-1023.
Signal
Features:
• 5V DC or AC circuit
• Requires heater voltage
• Operation Temperature;10 to 70 degrees C
• Heater consumption; less than 750mW
3.5 Comparator
A comparator which is an electrical device that can compare the input and give the result based on
its input given. Here, in this project LM358 comparator is used. It consist of two independent,
high gains, frequency compensated operational amplifiers which were designed specifically to
operate from a single power supply over a wide range of voltage. Operation from split power
supplies is also possible and the low power supply current drain is independent of the magnitude
of the power supply voltage. Application areas include transducer amplifier, DC gain blocks and
all the conventional OP-AMP circuits which now can be easily implemented in single power
supply systems.
In the comparator circuit the reference voltage is given to inverting input terminal and the
noninverting input terminal is connected IR receiver. When interrupt the IR rays between the IR
transmitter and receiver, the IR receiver is not conducting. So the comparator non inverting input
terminal voltage is higher than inverting input. Now the comparator output is in the range of +5V.
This voltage is given to microcontroller. When IR transmitter passes the rays to receiver, the IR
receiver is conducting due to that non inverting input. Voltage is lower than inverting input.
Consequently, the comparator output is GND so, the output is given to micro-controller (Arduino)
and micro- controller will order the alarm to ring or to stop the car through decreasing the speed
of DC motor in to zero, depend on the eye blink duration. According to [Chaffier et al.
2005] it can be classify eye blink duration (BD) as follows:
3.6 Buzzer
A buzzer or beeper is a signaling device, usually electronic, typically used in automobiles,
household appliances such as a microwave oven, or game shows. It most commonly consists of a
number of switches or sensors connected to a control unit that determines if and which button
was pushed or a preset time has lapsed, and usually illuminates a light on the appropriate button
or control panel, and sounds a warning in the form of a continuous or intermittent buzzing or
beeping sound. Initially this device was based on an electromechanical system which was
identical to an electric bell without the metal gong (which makes the ringing noise).
Often these units were anchored to a wall or ceiling and used the ceiling or wall as a sounding
board. Another implementation with some AC-connected devices was to implement a circuit to
make the AC current into a noise loud enough to drive a loudspeaker and hook this circuit up to a
cheap 8-ohm speaker. Nowadays, it is more popular to use a ceramic-based piezoelectric sounder
like a Son alert which makes a high-pitched tone. Usually these were hooked up to "driver"
circuits which varied the pitch of the sound or pulsed the sound on and off.
1 ON
0 OFF
Source
3.7.2 DC Motor
Electrical motors are everywhere around us. Almost all the electro-mechanical movements we see
around us are caused either by an AC. or a DC motor. Here we will be exploring this kind of
motors (DC motor). This is a device that converts DC electrical energy to a mechanical energy.
This DC or direct current motor works on the principal, when a current carrying conductor is
placed in a magnetic field, it experiences a torque and has a tendency to move. This is known as
motoring action. If the direction of current in the wire is reversed, the direction of rotation also
reverses. When magnetic field and electric field interact they produce a mechanical force, and
based on that the working principle of dc motor established.
Every DC motor has six basic parts -- axle, rotor (a.k.a., armature), stator, commutator, field
magnet(s), and brushes. In most common DC motors (and all that Beamers will see), the external
magnetic field is produced by high-strength permanent magnets. The stator is the stationary part
of the motor -- this includes the motor casing, as well as two or more permanent magnet pole
pieces. `The rotor (together with the axle and attached commutator) rotates with respect to the
stator. The rotor consists of windings (generally on a core), the windings being electrically
connected to the commutator. The above diagram shows a common motor layout -- with the rotor
inside the stator (field) magnets.
The geometry of the brushes, commutator contacts, and rotor windings are such that when power
is applied, the polarities of the energized winding and the stator magnet(s) are misaligned, and the
rotor will rotate until it is almost aligned with the stator's field magnets. As the rotor reaches
alignment, the brushes move to the next commutator contacts, and energize the next winding.
Given our example two-pole motor, the rotation reverses the direction of current through the rotor
winding, leading to a "flip" of the rotor's magnetic field, driving it to continue rotating.
In real life, though, DC motors will always have more than two poles (three is a very common
number). In particular, this avoids "dead spots" in the commutator. You can imagine how with our
example two-pole motor, if the rotor is exactly at the middle of its rotation (perfectly aligned with
the field magnets), it will get "stuck" there. Meanwhile, with a two-pole motor, there is a moment
where the commutator shorts out the power supply (i.e., both brushes touch both commutator
contacts simultaneously). This would be bad for the power supply, waste energy, and damage
motor components as well. Yet another disadvantage of such a simple motor is that it would
exhibit a high amount of torque "ripple" (the amount of torque it could produce is cyclic with the
position of the rotor).
We'll notice a few things from this -- namely, one pole is fully energized at a time (but two others
are "partially" energized). As each brush transitions from one commutator contact to the next, one
coil's field will rapidly collapse, as the next coil's field will rapidly charge up (this occurs within a
few microsecond). We'll see more about the effects of this later, but in the meantime you can see
that this is a direct result of the coil windings' series wiring.
The use of an iron core armature (as in the Mabuchi, above) is quite common, and has a number
of advantages. First off, the iron core provides a strong, rigid support for the windings
particularly important consideration for high-torque motors. The core also conducts heat away
from the rotor windings, allowing the motor to be driven harder than might otherwise be the case.
Iron core construction is also relatively inexpensive compared with other construction types.
But iron core construction also has several disadvantages. The iron armature has a relatively high
inertia which limits motor acceleration. This construction also results in high winding inductances
which limit brush and commutator life.
In small motors, an alternative design is often used which features a 'coreless' armature winding.
This design depends upon the coil wire itself for structural integrity. As a result, the armature is
hollow, and the permanent magnet can be mounted inside the rotor coil. Coreless DC motors have
much lower armature inductance than iron-core motors of comparable size, extending brush and
commutator life.
This is the simplest trait to understand and treat -- most DC motors run at very high output speeds
(generally thousands or tens of thousands of RPM). While this is fine for some BEAM bots (say,
photo poppers or solar rollers), many BEAM bots (walkers, heads) require lower speeds -- you
must put gears on your DC motor's output for these applications.
H-BRIDGE
Operation
The H-Bridge arrangement is generally used to reverse the polarity of the motor, but can also be
used to 'brake' the motor, where the motor comes to a sudden stop, as the motors terminals are
October 2024
shorted, or to let the motor 'free run' to a stop, as the motor is effectively disconnected from the
circuit. The following table summarizes operation.
DC motor is an internally commutated electric motor designed to be derived with a direct current
power source. Brushed motors were the first commercially important application of electric
power to driving mechanical loads, and DC distribution systems were used for more than 100
years to operate motors in commercial and industrial buildings. Brushed DC motors can be
varied in speed by changing the operating voltage or the strength of the magnetic field.
Depending on the connections of the field to the power supply, the speed and torque
characteristics of a brushed motor can be altered to provide steady speed or speed inversely
proportional to the mechanical load. Brushed motors continue to be used for electrical
propulsion, cranes, paper machines and steel rolling mills. Since the brushes wear down and
require replacement.
3.7.3 Transistors
Transistors are at the very core of today's electronics technology. The development of the
transistor has resulted in many changes to the world. It has resulted in everything from portable
transistor radios, through to cellular phones, and computers. All these and many more everyday
EIT-M
items have all been made possible by the invention of the transistor. All these developments have
taken place since the development of the first transistor.
During the 1920s and 1930s much of the work undertaken into electronics devices was focused
on thermionic valve or vacuum tube technology. However there was also some original work
being undertaken into particle physics. Although not directed towards electronics technology, this
was to provide the foundations upon which semiconductor technology would be built. With the
development of radar in World War II, there was a growing need for high performance
microwave components. Detectors were a particular need. It was soon realized that developments
of what was effectively a cat's Whisker performed well at these frequencies, and using the early
work done into semiconductor physics, these diodes were developed further as point contact
diodes.
After the war, much research continued. In particular Bell Labs in the USA invested heavily, and
one of their groups with three engineers, Bardeen, Brattain, and Shockley stated to investigate a
three terminal device in which the voltage on one terminal would affect the current flow through
a semiconductor path - effectively a field effect device. The device did not work and therefore
they turned their research towards another idea. We now know this device as the bipolar
transistor.
The transistor effect was first observed on 23rd December 1947 at Bell Labs in the USA, and it
was then demonstrated to senior management of the company on Christmas Eve. Little did they
know what an impact the device would have on the lives of billions of people around the world?
The original idea they were investigating - the field effect transistor had to wait until
semiconductor material technology had advanced and allowed the semiconductors to be refined
further and processed more accurately before it could be made to work. Nevertheless the
foundations that enabled semiconductor had now taken place, enabling semiconductors to
become the dominant technology ousting tubes or valves from a place they had occupied for
around 50 years.
EIT-M
The transistor is a three terminal device and consists of three distinct layers. Two of them are
doped to give one type of semiconductor and then there is the opposite type, i.e. two may be
ntype and one p-type, or two may be p-type and one may be n-type. They are arranged so that the
two similar layers of the transistor sandwich the layer of the opposite type. As a result transistor
are designated either P-N-P (PNP) types of N-P-N (NPN) types according to the way they are
made up.
The centre region is called the base and gains its name from the fact that in the very earliest
transistors it formed the "base" for the whole structure. The other two connections are called the
emitter and collector. These names result from the way in which they either emit or collect the
charge carriers. It is also essential that the base region is very thin if the device is to be able to
operate. In today's transistors the base may typically be only about 1 mm [micrometer] across. It
is the fact that the base region of the transistor is thin that is the key to the operation of the
device.
Transistor operation
A transistor can be considered as two P-N junctions placed back to back. One of these, namely
the base emitter junction is forward biased, whilst the other, the base collector junction is reverse
biased. It is found that when a current is made to flow in the base emitter junction larger current
flows in the collector circuit even though the base collector junction is reverse biased. For clarity
the example of an NPN transistor is taken. The same reasoning can be used for a PNP device,
EIT -M
except that holes are the majority carriers instead of electrons. When current flows through the
base emitter junction, electrons leave the emitter and flow into the base. However the doping in
this region is kept low and there are comparatively few holes available for recombination. As a
result most of the electrons are able to flow right through the base region and on into the collector
region, attracted by the positive potential.
Only a small proportion of the electrons from the emitter combine with holes in the base region
giving rise to a current in the base-emitter circuit. This means that the collector current is much
higher. The ratio between the collector current and the base current is given the Greek symbol b.
For most small signal transistors this may be in the region 50 to 500. In some cases it can be even
higher. This means that the collector current is typically between 50 and 500 times that flowing in
the base. For a high power transistor the value of b is somewhat at less: 20 is a fairly typical
value. here is a huge number of transistors available which have been designed to fulfill a variety
of different applications. In order to define the parameters of a transistor there is a variety of
different specifications that are used. These transistor specifications define an aspect of the
performance of a transistor.
Energy is stored quickly during pullback but gets released slowly during forward motion. The
winding of spring is fifteen times faster than when it unwinds. This is achieved with the help of
two gear trains present in the tiny gear box inside the toy car. Once the spring has unwound and
the car is moving, the motor is disengaged by the clutch and the car rolls freely onward, using the
gathered momentum.
V2
5v
R2
680 k
U1:A
R1 4
3
10 k
1
2
D4
8 LED-YELLOW
LM358
D2 D1
DIODE-LED
DIODE-LED R3
10 k
R4
10k
V1
5v
When IR receiver gets signal the diode can be start to conducted otherwise not conduct.
=0.072v
VO=0v
Vs=Vrf
VO=5v
By using buck method to converted from 12vdc to 5vdc to regulator at nominal frequency is 50Hz Assume
R is 20q
5/12=0.416
= (1-0.416)*20/2*50
=11.67mH
L =Lmin+25%*Lmin
=0.1167+0.25*0.1167
= 0.1196H
= (1-0.416)/8*0.1196m*502
= 6062mF
Apply KVL
VL=Vs-Vo=𝐿∆𝐼/∆𝑡; toN
∆I=VO (1-D)/f*L
I ((1/R) + ((1-D)/2*f*L)))
=5(((1/20) + ((1-0.416)/2*50*0.146)))
=0.45A
Imin=IL-∆𝐼/2=VO {(1/R)-((1-D)/2*F*L)}
=5{(1/20)-((1-0.416)/2*50*0.146)}
=0.05A
The above design shows the conversion of DC to DC by using buck conversion mechanism
IE=IB+IC (3)
IC/IE=α (4)
IC/IB=β (5)
β=α/ (1-α)
From the above relation can be calculated each value of the components
IB=VBB/RB Where;
VBB=1ν
RB=1kΩ
VCC=5ν
VCO=3.3ν
RC=1kΩ
=0.0017A
IE=IC+IB
=0.001+0.0017=0.0027A
α =IC/IE=0.0017/0.0027
=0.629
VBE=VB-VE Where,
VBE=0.7v
VB=1v
VE=VB-VBE
1v-0.7v=0.3v
VE= 0.3v
3.9.1 Proteus
Proteus 8 is best simulation software for various designs with microcontroller. It is mainly
popular because of availability of almost all microcontrollers in it. So it is a handy tool to test
programs and embedded designs for electronics hobbyist. We can simulate our programming of
microcontroller in Proteus 8 Simulation Software. After simulating our circuit in Proteus 8
Software you can directly make PCB design with it so it could be a all in one package for
students and hobbyists. So I think now you have a little bit idea about what is proteus software.
Basically PROTEUS is also simulating software but it helps us attach many components with the
Arduino. Like comparator, capacitors, LEDs (sensors), motor derivers, LCDs, keypads, ICs etc.
and these are just few that we have named in general. It has a complete library and we will find
everything that you will need. You can design your complete circuit and then simulate it to view
the final output.
USING Of PROTEUS
PROTEUS is designed to be user-friendly and it will get the hold of it instantly. There is no need
to worry about some complex configuration / settings prior to simulation. Here are the basic
steps.
Place your components from the library
PLACING COMPONENTS
Click the “Pick from library (P)” button as shown in the figure
Select any category
Select item from the list Click OK
3.9.2 Controller
The microcontroller IC which we used is Arduino Uno. The Arduino Uno is a microcontroller
board based on the ATmega328. It has 20 digital input/output pins of which 6 can be used as
PWM outputs and 6 can be used as analog inputs, a 16 MHz resonator, a USB connection, a
power jack, an in-circuit system programming (ICSP) header, and a reset button. It contains
everything needed to support the microcontroller; simply connect it to a computer with a USB
cable or power it with AC-to-DC adapter or battery to get started. Arduino is open-source
computer hardware and software company, project and user community that designs and
manufactures microcontroller-based kits for building digital devices and interactive objects that
can sense and control objects in the physical world.
The Uno differs from all preceding boards in that it does not use the FTDI USB-to-serial driver
chip. Instead, it features the Atmega16U2 programmed as a USB-to-serial converter. This
auxiliary microcontroller has its own USB boot loader, which allows advanced users to
reprogram it.
Therefore in order to achieve this task the Arduino mega microcontroller based on ATmega328
was chosen because of its suitability for this project such as speed, power consumption, and
universal synchronous asynchronous receiver transmitter (USART) functionality, in built ADC,
and amount of RAM and ROM on the chip.
GND: Short for „Ground‟. There are several GND pins on the Arduino, any of which can be
used to ground your circuit.
5V (4) & 3.3V (5): As we might guess, the 5V pin supplies 5 volts of power, and the 3.3V pin
supplies 3.3 volts of power. Most of the simple components used with the Arduino run happily off
of 5 or 3.3 volts.
Analog: The area of pins under the „Analog In‟ label (A0 through A5 on the UNO) is Analog In
pins. These pins can read the signal from an analog sensor (like a temperature sensor) and convert
it into a digital value that we can read.
Digital: Across from the analog pins are the digital pins (0 through 13 on the UNO). These pins
can be used for both digital input (like telling if a button is pushed) and digital output (like
powering an LED).
PWM: The digital pins (3, 5, 6, 9, 10, and 11 on the UNO). These pins act as normal digital
pins, but it can also be used for something called Pulse-Width Modulation (PWM).
AREF (Stands for Analog Reference): Most of the time you can leave this pin alone. It is
sometimes used to set an external reference voltage (between 0 and 5 Volts) as the upper limit
for the analog input pins.
The simplest way to get starting writing programs for the Arduino is using the official Arduino
IDE. It consists of a simple code editor with syntax highlighting and a number of convenience
buttons for compiling and uploading "sketches" (the Arduino term for programs) to your board.
We simply prepare the program in the IDE, plug in your Arduino board using a USB cable, click
the "Upload" button and your program is compiled and sent across to the board where it is saved
in non-volatile memory. Any time the board starts up or is reset it will immediately begin
running the last program you uploaded.
Because of Arduino is really just a development board for the very popular Atmel AVR
microcontroller, it's also possible to use more traditional software development tools to write
programs for it.
Chapter Four
In our design we made ground the IR receiver,means the eye Is closed and the receiver does not
conduct signal. If this condition lasts for 500ms and above, the arduino program will order the
alarm to ring as show below on simulation Figure 4.1: We use ON state of LED instead of alarm
ringing. At the time when the deriver eye‟s open the IR receiver conducts due to the signal which
received from IR trasmitter then it biased (oppose) the voltage source in the non- inverting side.
This shows that the derivers eye open. Here, no need of alarm ringing and reducing the speed of
motor.
In our simulation we introduce a small voltage to IR receiver in order to replace the signal from
IR transmitter depend on this input condition the simulation results,off state of LED and motor
runs in normal condition as shown below on simulation Figure 4.2.
We also demonstrated that in simulation Figure 4.3 the alcohol sensor with IR sensor, as the
alcohol sensor gets signal the motor stops and it does not ordered by the IR input. But when the
alcohol sensor gets low the motor ordered by the input of IR sensor. We already demonstrated in
our prototype that it can be control the DC motor depend on the input of alcohol and IR sensor.
4.1.1 Fans
Cooling fans and blowers are essential to systems that produce a significant amount of heat like
computers and other electronic components. Different systems are engineered to work with
specific types of fans. Cooling fans come in all shapes and sizes as well as voltage, airflow, and
case size. Some are even weather resistant and can stand up against the elements. It‟s important
to know the specific type of fan an electronic component requires as fans and blowers are not
universal. But for our work we use both types of the funs, for prototype testing we use pc fun
and to show more use the fun 220v
4.1.2 Breadboard
A breadboard is a construction base for prototyping of electronics. Originally it was literally a
bread board, a polished piece of wood used for slicing bread. In the 1970s the solder less
breadboard (AKA plug board, a terminal array board) became available and nowadays the term
breadboard is commonly used to refer to these. "Breadboard" is also a synonym for prototype.
Because the solder less breadboard does not require soldering, it is reusable. This makes it easy
to use for creating temporary prototypes and experimenting with circuit design. For this reason,
solder less breadboards are also extremely popular with students and in technological education.
4.1.3 Jumper
A jump wire, is a short electrical wire with a solid tip at each end (or sometimes without them,
simply "tinned"), which is normally used to interconnect the components in a breadboard. PE:
among others, they are used to transfer electrical signals from anywhere on the breadboard to the
input/output pins of Arduino.
Jump wires are fitted by inserting their "end connectors" into the slots provided in the
breadboard, which beneath its surface has a few sets of parallel plates that connect the slots in
groups of rows or columns depending on the area. The "end connectors" are inserted into the
breadboard, without soldering, in the particular slots that need to be connected in the specific
prototype.
4.1.4 Resistors
A resistor is a passive two-terminal electrical component that implements electrical resistance as
a circuit element. Resistors may be used to reduce current flow, and, at the same time, may act to
lower voltage levels within circuits. In electronic circuits, resistors are used to limit current flow,
to adjust signal levels, bias active elements, and terminate transmission lines among other uses.
High-power resistors, that can dissipate many watts of electrical power as heat, may be used as
part of motor controls, in power distribution systems, or as test loads for generators. In our work
we use 1k and 10k resistors.
The above figurative description shows that what seems like the hardware system demonstration,
at this time the car not running as we can see from the figurative description of hardware
demonstration because of the hazard is shows lighting and also alarm is alerting and the blowing
of the fun to make the air coldest hence this also used to prevent warmness of the air condition
and then this condition helps to prevent the drowsiness of the deriver.
October 2024
5.1 Conclusion
This is because of the fact that the driver is not able to control his vehicle when he is asleep and
by the time he realizes it, there is an accident. The vehicle is at a very high speed on highways
due to which handling is tough hand getting the vehicle to halt in such a condition is difficult.
Due to this many automobile companies are trying to research onto how an accident which
occurs due to driver fatigue can be prevented. In this project we will generate a model which cans
prevent such an incident.
The Purpose of such a model is to advance a system to detect fatigue symptoms in drivers and
control the speed of vehicle to avoid accidents. The main components of the system consists of an
eye blink sensor for driver blink acquisition and an adaptive speed controller designed using DC
motor for providing precise positioning of the throttle valve to control the speed of vehicle.
Advanced technology offers some hope avoid these up to some extent. This project involves
measure and controls through eye blink using IR sensor.
Stopping the car at the center of the road has its side effect that can create a collision with another
car. Therefore, we recommend that for anyone who has interest to do a project on car accident
due to drowsy should use an obstacle sensor to prevent collision before stopping dc motor of the
car.
Reference
[1]. Neeta Parmar. “Drowsy Detection System”, University of
Ryerson, 2002. http://www.ijetae.com/files/volume3Issue5/IJETAE_0513_87.pdf
[2]. R.Manojkumar.“Effective control of accidents using routing and tracking system with
integrated network of sensor”, International Journal of Advancement in Research and
Technology, Volume 2, Issue 4, April-2013.
[3]. Tomas Drutarousky. “Micro -sleep ”, University of Slovak, May, 2014.
http://Research.ijcaonline .org/etcsit/number4/etcsit1028.pdf
R.Manojkumar.“Effective control of accidents using routing and tracking system with integrated
network of sensor”, International Journal of Advancement in Research and Technology, Volume
2, Issue 4, April-2013.
http://www.ijircce.com/upload/2015/April/101_45_AN.pdf
[4]. B.Praveenkumar, K.Mahendrakan. “Prevention of Accident Due to fatigue”, International
Journal of Innovative Research in Science, Engineering and Technology Volume 3, Issue 5, May
2014. http://www.ijrset.com/upload/2014/may75_prevntion _of_Accident.pdf
[5]. Gehlot NL, inventor; Lucent Technologies Inc., assignee. “System and method for preventing
automobile accidents”. United States patent US 6,060,989. 2000 May 9.
[6]. Tomoda, Takahisa, et al. "Keyless entry system for automatically operating automotive door
locking devices without manual operation." U.S. Patent No. 4,763,121. 9 Aug. 1988.
[7]. http://en.Wikipedia.org/Wiki/Sony.
Appendix
Source code:
#include <Stepper.h>
stepCount = 0; int
buttonState1 = 0; int
void setup() {
Serial.begin(9600);
//pinMode(led_1, OUTPUT);
//pinMode(ldr_1, INPUT);
//Serial.begin(9600);
pinMode(ldr_1, INPUT);
pinMode(buttonPin1, INPUT);
//pinMode(2, OUTPUT);
pinMode(led_1, OUTPUT);
pinMode(3, OUTPUT);
pinMode(9, OUTPUT);
pinMode(8, OUTPUT);
digitalRead(ldr_1)); buttonState1 =
digitalRead(buttonPin1); buttonState2 =
digitalRead(buttonPin2);
if(buttonState1==LOW)
{ if(buttonState2==LOW)
{ delay(500);
// digitalWrite(2,HIGH);
digitalWrite(3,HIGH);
digitalWrite(4,HIGH);
delay(300);
digitalWrite(9,LOW);
digitalWrite(8,LOW);
if(buttonState2==HIGH)
{ digitalWrite(9,HIGH);
digitalWrite(8,LOW);
delay(500);
//digitalWrite(2,LOW);
digitalWrite(3,LOW);
digitalWrite(4,LOW);
if(buttonState1==HIGH)
{ digitalWrite(9,LOW);
digitalWrite(8,LOW);
return;