Automatic Door Slider Using Arduino
2016-2017
CHAPTER 1: OVERVIEW OF PROJECT 1.1 INTRODUCTION INTRODUCTION The project is designed for automatic door opening system using system using PIR sensor. Opening and closing of doors is always a tedious job, especially in places like shopping malls, hotels and theatres where a person is always required to open the door for isitors. This project proposes a system of automatic opening and closing of door by sensing any body moement near the door. This is achieed with help of a PIR !Passie !Passie Infrared" sensor. sensor. # lie body generally emits infrared energy which is sensed by the PIR sensor from a considerable distance. This sensing signal is fed to a microcontroller microcontroller to operate a door motor through motor drier I$. %hen a body approaches within the operating range of the sensor, it sends a logical command to open the door. If there is no further moement within the PIR operating range. Interrupt signals are used through limit switches to aoid locked rotor condition of the motor. &urther this project can be enhanced interfacing a counting arrangement for keeping a record of entry and e'it of people at particular place. This can be achieed by interfacing the system with an ((PRO) !non*olatile !non*olatile memory" to aoid loss of stored data een if the power fails.
1.2 PROBLEM ST STA ATEMENT This is a very basic circuit and has many shortcomings. or e!am"le# this system $ill not di%%erentiate bet$een a "erson and any other obstacle interru"ting the sensors. Also Also this circuit is good enough %or only one "erson entering at a time. Also# this is a short range system. or long range# $e use lasers.
Dept.of EXTC SJCEM P!"#$!%
1
Automatic Door Slider Using Arduino
2016-2017
or overcoming these and many other "roblems $ith this system# %urther im"rovements are being done. &ameras and "rocessing is no$ being used to di%%erentiate bet$een di%%erent di%%erent interru"tions. Some research is being done along the same lines in the &'S (ab.
Dept.of EXTC SJCEM P!"#$!%
2
A&to'!t() Doo% S"(*e% U+(,# A%*&(,o
2-1/2-10
1.ADVANTAES: 1. )o need need o% o% huma human n inte interve rventi ntion. on. 2. &an $or* $or* 2+!7 2+!7 $ith $ithout out any "roble "roblem. m. ,. (o$ cost cost and and very very easy easy to im"l im"leme ement. nt.
1.3DISADVANTAES: 1. % there there are multi"l multi"lee doors %or %or the same room room the "roect "roect becomes becomes /uite /uite com"le!. com"le!. 2. sensor sensor cannot cannot detect detect i% lots o% o% "eo"le "eo"le are entering entering at at one time. time.
1.4 APPLICATION: 1. The Proje Project ct can can be used used in in Ofce. Ofce. 2. It can can be used used in Publ Public ic Plac Places. es. 3. Can be be used in Rest Rest rooms rooms in Railwa Railway y staons staons..
Dept.of EXTC SJCEM P!"#$!%
A&to'!t() Doo% S"(*e% U+(,# A%*&(,o
2-1/2-10
CHAPTER 2: LITERATURE SURVE5 2.1 LITERATURE SURVE5
[1] The system o% this invention em"loys a conventional micro$ave beam motion detector %or s$inging o"en the door $hen a "erson enters the beam %rom the a""roach side o% the door. As is the normal arrangement# the micro$ave motion detector is mounted on the header above the door and u"on detecting a "erson or obect a""roaching the door energies a circuit in $hich it is arranged to o"erate a""ro"riate motor means %or actuating or s$inging the door a$ay %rom closed to o"en "osition. As the obect continues its movement to$ard and through the door$ay# a micro$ave motion detector mounted on the a""roach side o% the door has its beam interru"ted by the obect. The beam %rom the micro$ave detector over the door is designed to have a $ide beam "roecting out several %eet %rom the door and reasonably close to the %loor# $hereas the micro$ave detector on the a""roach side o% the door has a sho$er and narro$er beam. 627 The "resent invention relates to mechanisms %or automatically o"ening and closing doors.
ore "articularly# the "resent invention relates to a microcontroller system utilied to control the mechanism %or o"ening and closing a door $hich senses an obstruction in the "ath o% the moving door and rea reacts cts the theret reto. o. ic icroc rocont ontrol roller lerss are o%t o%ten en uti utili lied ed to cont control rol a mec mechan hanism ism $hi $hich ch automatically o"ens and closes a door. 'o$er is normally su""lied to an electric motor $hich is mechanically lin*ed to the door mechanism to "ro"el the door in an o"en or closed direction. The su""ly o% "o$er to the electric motor can be regulated by a microcontroller. The microcontroller $ill regulate the o"ening and closing s"eed and the direction o% door travel de"ending u"on a "re"rogrammed se/uence. 3enerally 3enerally## a door o"erated in such a manner $ill %ollo$ a "re"rogrammed velocity "ro%ile in both the o"ening and closing se/uence. 4,55 Th 4, Thee do door or se sens nsor or co com" m"ri rise sess a ho hous usin ing g $h $hic ich h mo moun unts ts t$ t$o o ar arra rays ys o% em emit itte ters rs $h $hic ich h res"ectively de%ine an a""roach detection one and a threshold detection one. detectors are dis"osed in the housing %or detecting radiation %rom the a""roach one and the threshold one. The signals %rom the detectors are converted into %irst and second "ulse trains having a %re/uency $hich is "ro"ortional to the detected de tected radiation %rom the ones. A "rogrammable micro"rocessor is
Dept.of EXTC SJCEM P!"#$!%
3
A&to'!t() Doo% S"(*e% U+(,# A%*&(,o
2-1/2-10
res"onsive to the %irst "ulse train %or generating a %irst out"ut signal indicative o% the detection o% the target in the a""roach one. The second "rogrammable micro"rocessor is res"onsive to the second "ulse train and generates a second out"ut signal indicative o% the identi%ication o% a target
in the threshold one. An out"ut $hich may be in the %orm o% a relay is res"onsive to the %irst and second out"ut signals %or "roducing an o"erator signal %or o"erating an automatic door system.
4+5 The $or* described in this re"ort is "art o% a )ational Science oundation s"onsored e%%ort to have student engineers at universities throughout the US design and construct devices %or "ersons $ith disabilities. nce the "roect is com"leted# it is given to the "erson $ith disabilities 8client9 as a gi%t to use to im"rove their li%e. The client# diagnosed $ith s"inal muscular atro"hy# desires an easier $ay to control room tem"erature and an im"roved method %or accessing the entry loc* to her house# as $ell as a more reliable method o% entry. The emote &ontrol Digital Thermostat 8&DT9 is designed to be mounted on the clients $heelchair to control a com"letely redesigned# micro"rocessor controlled thermostat. The emote Door "ener 8D9# $hich controls an automatic entry loc*# is incor"orated into the same unit as the &DT using the same transmitter as the thermostat control. The door o"ener has its o$n receiver to receive and decode the transmitted signal# $hich is mounted ne!t to the to" o% the door. The device has three actuation buttons# one each to raise and lo$er tem"erature# and the other to actuate the entry loc*.
Dept.of EXTC SJCEM P!"#$!%
4
A&to'!t() Doo% S"(*e% U+(,# A%*&(,o
2-1/2-10
CHAPTER : HARDWARE DESCRIPTION
.1 BLOC8 DIARAM
F(#.1 :loc* diagram
.2 ATMEA 29P
Dept.of EXTC SJCEM P!"#$!%
A&to'!t() Doo% S"(*e% U+(,# A%*&(,o
2-1/2-10
F(# .2 ATmega,2;"
The ATmega,2;" is a single chi" micro-controller created by Atmel and belongs to the megaA< series. n ATmega,2;" =" stands %or >'ico 'o$er?. The Atmel ;-bit A< S&-based microcontroller combines ,2 @: S' %lash memory $ith read-$hile-$rite ca"abilities# 1 @: '# 2 @: SA# 2, general "ur"ose B lines# ,2 general "ur"ose $or*ing registers# three %le!ible timerBcounters $ith com"are modes# internal and e!ternal interru"ts# serial "rogrammable USAT# a byte-oriented 2-$ire serial inter%ace# S' serial "ort# 6-channel 10-bit ABD converter# "rogrammable $atchdog timer $ith internal oscillator# and %ive so%t$are selectable "o$er saving modes. The device o"erates bet$een 1.;-C.C volts. The device achieves through"uts a""roaching 1 'S.
Dept.of EXTC SJCEM P!"#$!%
0
A&to'!t() Doo% S"(*e% U+(,# A%*&(,o
2-1/2-10
T!"e .1 @ey %eatures o% ATmega,2;"
.CR5STAL OSCILLATOR
t is o%ten re/uired to "roduce a signal $hose %re/uency or "ulse rate is very stable and e!actly *no$n. This is im"ortant in any a""lication $here anything to do $ith time or e!act measurement is crucial. t is relatively sim"le to ma*e an oscillator that "roduces some sort o% a signal# but another matter to "roduce one o% relatively "recise %re/uency and stability. An ordinary /uart $atch must have an oscillator accurate to better than a %e$ "arts "er million. ne "art "er million $ill result in an error o% slightly less than one hal% second a day# $hich $ould be about , minutes a year. This might not sound li*e much# but an error o% 10 "arts "er million $ould result in an error o% about a hal% an hour "er year. A cloc* such as this $ould need resetting about once a month# and more o%ten i% you are the "unctual ty"e.
Dept.of EXTC SJCEM P!"#$!%
9
A&to'!t() Doo% S"(*e% U+(,# A%*&(,o
2-1/2-10
F(# .3&rystal oscillator
A crystal oscillator is an electronic circuit that uses the mechanical resonance o% a vibrating crystal o% "ieoelectric material to create an electrical signal $ith a very "recise %re/uency. This %re/uency is commonly used to *ee" trac* o% time 8as in /uart $rist$atches9# to "rovide a stable cloc* signal %or digital integrated circuits# and to stabilie %re/uencies %or radio transmitters. uart crystal oscillators $ere develo"ed %or high-stability %re/uency re%erences during the 1E20s and 1E,0s. 'rior to crystals# radio stations controlled their %re/uency $ith tuned circuits# $hich could easily dri%t o%% %re/uency by ,F+ *G.
Since broadcast stations $ere assigned %re/uencies only 10 *G a"art# inter%erence bet$een adacent stations due to %re/uency dri%t $as a common "roblem. n 1E2C Hestinghouse installed a crystal oscillator in its %lagshi" station @D@A# and by 1E26 /uart crystals $ere used to control the %re/uency o% many broadcasting stations and $ere "o"ular $ith amateur radio o"erators.
n 1E2;# Harren arrison o% :ell Tele"hone (aboratories develo"ed the %irst /uart-crystal cloc* . Hith accuracies o% u" to 1 second in ,0 years 8,0 msBy# or /uart cloc*s re"laced "recision "endulum cloc*s as the $orldIs most accurate time*ee"ers until atomic cloc*s $ere develo"ed in the 1EC0s. Using the early $or* at :ell (abs# ATJT eventually established their re/uency.
Dept.of EXTC SJCEM P!"#$!%
;
A&to'!t() Doo% S"(*e% U+(,# A%*&(,o
2-1/2-10
.3 VOLTAE REULATOR IC09XX A voltage regulator is an electrical regulator designed to automatically maintain a constant voltage level. t may use an electromechanical mechanism# or "assive or active electronic com"onents. De"ending on the design# it may be used to regulate one or more A& or D& voltages. Hith the e!ce"tion o% "assive shunt regulators# all modern electronic voltage regulators o"erate by com"aring the actual out"ut voltage to some internal %i!ed re%erence voltage. Any di%%erence is am"li%ied and used to control the regulation element in such a $ay as to reduce the voltage error. % the out"ut voltage is too lo$# the regulation element is commanded# u" to a "oint# to "roduce a higher out"ut voltage - by dro""ing less o% the in"ut voltage# or to dra$ in"ut current %or longer "eriods i% the out"ut voltage is too high# the regulation element $ill normally be commanded to "roduce a lo$er voltage.
F(# .4 egulator & PIN NO.
PIN
DESCRIPTION
1
)'UT
n this "in o% the & "ositive unregulated voltage is given in regulation.
2
3U)D
n this "in $here the ground is given. This "in is neutral %or e/ually the in"ut and out"ut.
,
UT'UT
The out"ut o% the regulated C< volt is ta*en out at this "in o% the & regulator.
T!"e .2 ') DA3A & 7;0C
Dept.of EXTC SJCEM P!"#$!%
1-
A&to'!t() Doo% S"(*e% U+(,# A%*&(,o
2-1/2-10
.4 PIR SENSOR
' sensors allo$ you to sense motion# almost al$ays used to detect $hether a human has moved in or out o% the sensors range. They are small# ine!"ensive# lo$ "o$er# easy to use and donIt $ear out. They are o%ten re%erred to as '# K'assive n%raredK# K'yroelectricK# or K motionK sensors. 's are basically made o% "yro electric sensor $hich can detect levels o% in%rared radiation. verything emits some lo$-level radiation# and the hotter something is# the more radiation is emitted. The sensor in a motion detector is actually s"lit in t$o halves. The reason %or that is that $e are loo*ing to detect motion 8change9 not average levels. Along $ith the "yroelectric sensor is a bunch o% su""orting circuitry# resistors and ca"acitors. Some ' Sensors use the :SS0001 8icro "o$er ' otion detector &9. This chi" ta*es the out"ut o% the sensor and does some minor "rocessing on it to emit a digital out"ut "ulse %rom the analog sensor. ' sensors are chea"# consumes lo$ "o$er# have a $ide lens range# and are easy to
F(# . P S)S DU(
Dept.of EXTC SJCEM P!"#$!%
11
A&to'!t() Doo% S"(*e% U+(,# A%*&(,o
2-1/2-10
. 1X2 LCD DISPLA5
F(# .0 16L2 (&D DS'(AM 16N2 (&D module is a very common ty"e o% (&D module that is used in ;0C1 based embedded "roects. t consists o% 16 ro$s and 2 columns o% CN7 or CN; (&D dot matrices. The module $ere are tal*ing about here is ty"e number OGD162A $hich is a very "o"ular one . t is available in a 16 "in "ac*age $ith bac* light # contrast adustment %unction and each dot matri! has CN; dot resolution. The "in numbers# their name and corres"onding %unctions are sho$n in the table belo$.
T!"e . 'in &on%iguration o% (&D 16P2
Dept.of EXTC SJCEM P!"#$!%
12
A&to'!t() Doo% S"(*e% U+(,# A%*&(,o
2-1/2-10
.0 TRANSISTOR BC430 :&C+7 is an )') bi-"olar unction transistor. A transistor# stands %or trans%er o% resistance# is commonly used to am"li%y current. A small current at its base controls a larger current at collector J emitter terminals. :&C+7 is mainly used %or am"li%ication and s$itching "ur"oses. t has a ma!imum current gain o% ;00. ts e/uivalent transistors are :&C+; and :&C+E.
F(#.9 'in Diagram o% :& C+7
.9 MOTOR DRIVER IC
Dept.of EXTC SJCEM P!"#$!%
1
A&to'!t() Doo% S"(*e% U+(,# A%*&(,o
2-1/2-10
(2E,D is a ty"ical otor driver or otor Driver & $hich allo$s D& motor to drive on either direction. (2E,D is a 16-"in & $hich can control a set o% t$o D& motors simultaneously in any direction. t means that you can control t$o D& motor $ith a single (2E,D &. t $or*s on the conce"t o% G-bridge. G-bridge is a circuit $hich allo$s the voltage to be %lo$n in either direction. As you *no$ voltage need to change its direction %or being able to rotate the motor in cloc*$ise or anticloc*$ise direction# Gence G-bridge & are ideal %or driving a D& motor. n a single (2E,D chi" there are t$o h-:ridge circuit inside the & $hich can rotate t$o dc motor inde"endently. Due its sie it is very much used in robotic a""lication %or controlling D& motors. 3iven belo$ is the "in diagram o% a (2E,D motor controller. There are t$o nable "ins on l2E,d. 'in 1 and "in E# %or being able to drive the motor# the "in 1 and E need to be high. or driving the motor $ith le%t G-bridge you need to enable "in 1 to high. And %or right G-:ridge you need to ma*e the "in E to high. % anyone o% the either "in1 or "inE goes lo$ then the motor in the corres"onding section $ill sus"end $or*ing.
F(#.; otor Driver &
Dept.of EXTC SJCEM P!"#$!%
13
A&to'!t() Doo% S"(*e% U+(,# A%*&(,o
2-1/2-10
CHAPTER 3: CIRCUIT DIARAM AND WOR8IN 3.1 WOR8IN:
The aim o% this "roect is to design an Automatic Door "ening system using Atmega,2; microcontroller# in $hich the door is automatically o"ened and closed by detecting the movement o% a "erson. Hhen a "erson a""roaches the door through the door$ay# the system must detect the "erson and o"en the door. nce the Door$ay is cleared# the system must close the door automatically and $ait %or the ne!t "erson the microcontroller $ill initialie the ' sensor $ith a settling time o% 20s %or the sensor to calibrate the surroundings .During this time# the (&D $ill dis"lay the message. n this section $e have used ' sensor modules $hich contain diodes# "otentiometer# &om"arator 8"-Am"9 and (Ds. 'otentiometer is used %or setting re%erence voltage at com"arators one terminal and ' sensors sense the obect or "erson and "rovide a change in voltage at com"arators second terminal. Then com"arator com"ares both voltages and generates a digital signal at out"ut. Gere in this circuit $e have used t$o com"arators %or t$o sensors. (,C; is used as com"arator. (,C; has inbuilt t$o lo$ noise "-am". Co,t%o" Se)t(o,: ATmega,2; is used %or controlling $hole the "rocess o% this Automatic door
o"ener "roect. The out"uts o% com"arators are connected to digital "in number 1+ and 1E o% ATmega,2;. ATmega,2; read these signals. D(+p"!< +e)t(o,: Dis"lay section contains a 16!2 (&D. This section $ill dis"lay the motion o%
"eo"le .
Dept.of EXTC SJCEM P!"#$!%
14
A&to'!t() Doo% S"(*e% U+(,# A%*&(,o
2-1/2-10
3.2 CIRCUIT DIARAM:
F(#3.1&ircuit Diagram
Dept.of EXTC SJCEM P!"#$!%
1
A&to'!t() Doo% S"(*e% U+(,# A%*&(,o
2-1/2-10
CHAPTER 4: BREADBOARD CONNECTION AND PCB LA5OUT
4.1 BREADBOARD CONNECTION:
FI4.1 :readboard &onnection
Dept.of EXTC SJCEM P!"#$!%
10
A&to'!t() Doo% S"(*e% U+(,# A%*&(,o
2-1/2-10
4.2 PCB LA5OUT:
FI4.2 'cb (ayout
Dept.of EXTC SJCEM P!"#$!%
19
A&to'!t() Doo% S"(*e% U+(,# A%*&(,o
2-1/2-10
CHAPTER : ALORITHM .1 ALORITHM 1. STAT 2. nitialie the icro"rocessor ,. etch the status o% the sensor bit. +. &om"are the status o% the sensor bit $ith entrance code. C. % status e/uals entrance code then ste" 7else ste" 6 6. 3o to ste" 2. 7. 3ate o"en $ait and close.
Dept.of EXTC SJCEM P!"#$!%
1;
A&to'!t() Doo% S"(*e% U+(,# A%*&(,o
2-1/2-10
CHAPTER 0: RESULT CONCLUSION AND FUTURESCOPE 0.1 RESULT Hhen a human being comes under the range o% a ' sensor# the ' sensor detects the heat radiation emitted by a human being and the ' sensor "asses the signal to the microcontroller. A%ter the signal is received by microcontroller it "asses a high bit 1 to the motor driver &. This $ill activate the motor driver & and %inally the motor starts rotating and the slider door $hich is attached to the motor starts to o"en and close according to the condition.
F(#0.1 esult
Dept.of EXTC SJCEM P!"#$!%
2-
utomac !oor "lider usin# rduino
2$1%&1'
0.2 CONCLUSIONQ
Hhen a human being comes under the range o% a ' sensor# the ' sensor detects the heat radiation emitted by a human being the ' sensor "asses the signal to the microcontroller. A%ter the signal is received by microcontroller it "asses a high bit 1 to the motor driver &. This $ill activate the motor driver & and %inally the motor starts rotating and the slider door $hich is attached to the motor starts to o"en and close according to the condition.
0. FUTURE SCOPE:
1. (ights can be turned )B according to the number o% "eo"le.
2. He can adust the intensity o% electrical devices.
,. etal detector can be added %or security reasons.
Dept.of EXTC SJCEM P!"#$!%
21
utomac !oor "lider usin# rduino
2$1%&1'
CHAPTER 9: REFERENCES 9.1 REFERENCES
415 >lectronic &ircuit Analysis and Design? by Donald A. )eamen dition 2012 425 >:asic circuit Analysis? by @.<.<. urty and .S. @amath. dtion 2010 4,5 >lectronics nstrumentation? by G.S. @alsi 4+5Datasheet ATmega,2;' 8$$$.mouse.comB"d%docsBgravitechAT3A,2; datasheet.201C9 4C5 Arduino by Oay*arthegeyan# &hennai
Dept.of EXTC SJCEM P!"#$!%
22
utomac !oor "lider usin# rduino
2$1%&1'
Features • •
•
•
•
•
•
•
•
•
®
High Performance, Low Power AVR 8-Bit Microcontroer A!"ance! R#$% Architecture & 1'1 Powerfu #nstructions & Most $inge %oc( %)ce *+ecution & ' + 8 enera Pur.ose /or(ing Registers & Fu) $tatic 0.eration & . to 2 M#P$ 3hrough.ut at 2 MH4 & 0n-chi. -c)ce Muti.ier High *n!urance 5on-"oatie Memor) $egments & 678717'9 B)tes of #n-$)stem $ef-Programma:e Fash .rogam memor) ;A3mega68PA788PA718PA7'8P< & =7=17=1719 B)tes **PR0M ;A3mega68PA788PA718PA7'8P< & =171971979 B)tes #nterna $RAM ;A3mega68PA788PA718PA7'8P< & /rite7*rase %)ces> 12,222 Fash7122,222 **PR0M (1) & ?ata retention> 2 )ears at 8=@%7122 )ears at =@% & 0.tiona Boot %o!e $ection with #n!e.en!ent Loc( Bits #n-$)stem Programming :) 0n-chi. Boot Program 3rue Rea!-/hie-/rite 0.eration & Programming Loc( for $oftware $ecurit) Peri.hera Features & 3wo 8-:it 3imer7%ounters with $e.arate Prescaer an! %om.are Mo!e & 0ne 1-:it 3imer7%ounter with $e.arate Prescaer, %om.are Mo!e, an! %a.ture Mo!e & Rea 3ime %ounter with $e.arate 0sciator & $i+ P/M %hannes & 8-channe 12-:it A?% in 3FP an! F57MLF .ac(age 3em.erature Measurement & -channe 12-:it A?% in P?#P Pac(age 3em.erature Measurement & Programma:e $eria $AR3 & Master7$a"e $P# $eria #nterface & B)te-oriente! -wire $eria #nterface ;Phii.s # % com.ati:e< & Programma:e /atch!og 3imer with $e.arate 0n-chi. 0sciator & 0n-chi. Anaog %om.arator & #nterru.t an! /a(e-u. on Pin %hange $.ecia Microcontroer Features & Power-on Reset an! Programma:e Brown-out ?etection & #nterna %ai:rate! 0sciator & *+terna an! #nterna #nterru.t $ources & $i+ $ee. Mo!es> #!e, A?% 5oise Re!uction, Power-sa"e, Power-!own, $tan!:), an! *+ten!e! $tan!:) #70 an! Pac(ages & ' Programma:e #70 Lines & 8-.in P?#P, '-ea! 3FP, 8-.a! F57MLF an! '-.a! F57MLF 0.erating Votage> & 18 - ==V for A3mega68PA788PA718PA7'8P 3em.erature Range> & -62°% to 8=°% $.ee! ra!e> & 2 - 2 MH4 C 18 - ==V Low Power %onsum.tion at 1 MH4, 18V, = °% for A3mega68PA788PA718PA7'8P> & Acti"e Mo!e> 2 mA & Power-!own Mo!e> 21 DA & Power-sa"e Mo!e> 2E= DA ;#ncu!ing ' (H4 R3%<
8-:it Microcontroer with 678717'9 B)tes #n-$)stem Programma:e Fash A3mega68PA A3mega88PA A3mega18PA A3mega'8P
$ummar)
Rev. 8161CS–AVR–05/09
Dept.of EXTC SJCEM P!"#$!%
2
utomac !oor "lider usin# rduino
2$1%&1'
A3mega68PA788PA718PA7'8P
Dept.of EXTC SJCEM P!"#$!%
23
utomac !oor "lider usin# rduino 1'
2$1%&
1 Pin %onfigurations Figure 1-1
Pinout ATmega8PA/88PA/168PA/!"8P
3FP 3o. View
Dept.of EXTC SJCEM P!"#$!% 24
P?#P
utomac !oor "lider usin# rduino
T % $ C P / 0 T % $ (
) ) ! " 1 1 ) T T % % ) ) 1 $ $ 1 0 ) ) ' 6 T C C 1 1 P T T 1 1 $ % / P / T T % % % C A $ $ % $ $ P C # C C / C S / C S / P P T / P 5 ! / P / " / # # S C C C C & # # # # & R ( A ( A T ( R ( A ( A ( (
" !
1 0 9 8 ' 6 5 ! ! " " " " "
) 8 1
" # P
2$1%&1'
1 0 6 5 ! " # # C C C C C P P P P P P P
(PC$%T19/*C"+/$%T1) P#!
1
"
PC1 (A#C1/PC$%T9)
(PC$%T"0/&C,/T0) P#
"
"!
PC0 (A#C0/PC$%T8)
-%#
!
""
A#C'
VCC
"1
-%#
-%#
5
"0
AR
VCC
6
19
A#C6
(PC$%T6/&TA1/T*SC1) P+6
'
18
AVCC
(PC$%T'/&TA"/T*SC") P+'
8
1'
P+5 (SC,/PC$%T5)
9
0 1 " ! 5 6 1 1 1 1 1 1 1
5 # P ) 1 T / + 0 C * / 1 " T % $ C P (
6 ! 0 # + + P " P P ) + $ ) 0 ) P ' 1 1 % $ # P + ) S A P C P + * + / $ ) 1 / P A ) / ) 0 1 * A C A * * % 1 C $ , / " S * / A C S C $ / C / * / S / * / " ! / " " 0 1 " ! T T T T T T T % % % % % % $ $ $ $ $ $ % $ C C C C C C C P ( P ( P ( P ( P ( P ( P (
Dept.of EXTC SJCEM P!"#$!%
(PC$%T1/RST) PC6 (PC$%T16/R) P#0 (PC$%T1'/T) P#1
1 " !
"8 PC5 (A#C5/SC/PC$%T1!) "' PC (A#C/S#A/PC$%T1") "6 PC! (A#C!/PC$%T11)
(PC$%T18/$%T0) P#" (PC$%T19/*C"+/$%T1) P#! (PC$%T"0/&C,/T0) P# VCC -%#
5 6 ' 8
"5 " "! "" "1
PC" (A#C"/PC$%T10) PC1 (A#C1/PC$%T9) PC0 (A#C0/PC$%T8) -%# AR
(PC$%T6/&TA1/T*SC1) P+6 (PC$%T'/&TA"/T*SC") P+' (PC$%T"1/*C0+/T1) P#5 (PC$%T""/*C0A/A$%0) P#6
9 10 11 1"
"0 19 18 1'
AVCC P+5 (SC,/PC$%T5) P+ ($S*/PC$%T) P+! (*S$/*C"A/PC$%T!)
(PC$%T"!/A$%1) P#' (PC$%T0/C,*/$CP1) P+0
1! 1
16 P+" (SS/*C1+/PC$%T") 15 P+1 (*C1A/PC$%T1)
2
utomac !oor "lider usin# rduino
2$1%&1'
' MLF 3o. View
8 MLF 3o. View
) 8 1 T % $ C P / 0 T % $ ( " # P
) ) ! " 1 1 ) T T % % ) 1 $ $ 1 ) ) T 6 C C 1 ' 1 1 $ P T % / P / T T % A $ C ) % % $ ) $ # C 0 / C 8 C C P S / S / P 1 T / 1 P P / 5 ! T T / % S C C C $ % $ # # & # # # C C & / P T ( R ( R ( A ( A ( A ( P / 0 1 0 6 5 ! " T # # C C C C C % P P P P P P # $ A ( ( " " # 1 0 9 8 ' 6 5 " C ! P ! ! " " " " " P
) ) ! " 1 1 ) T T % % 1 $ $ ) ) ' 6 T C C 1 1 % P P / / T T $ % C A ) % $ 1 $ P / C # 1 C C T S / S / T P / 5 % / P $ # # S C C C & & # # P / R T R A A ( ( ( ( ( ! 1 0 6 5 C C # # C C # P P P P P A (
! C 8 ' 6 5 ! " " " " " " " " P
(PC$%T19/*C"+/$%T1) P#!
1
"1 PC" (A#C"/PC$%T10)
(PC$%T19/*C"+/$%T1) P#! 1
"
(PC$%T"0/&C,/T0) P#
"
"0 PC1 (A#C1/PC$%T9)
(PC$%T"0/&C,/T0) P# "
"!
PC1 (A#C1/PC$%T9 )
VCC
!
19 PC0 (A#C0/PC$%T8)
-%# !
""
A#C' -%#
PC0 (A#C0/PC$%T8 )
-%#
18 -%#
VCC
"1
(PC$%T6/&TA1/T*SC1) P+6
5
1' AR
-%# 5
"0
AR
(PC$%T'/&TA"/T*SC") P+'
6
16 AVCC
VCC 6
19
A#C6
(PC$%T"1/*C0+/T1) P#5
'
(PC$%T6/&TA1/T*SC1) P+6 ' (PC$%T'/&TA"/T*SC") P+' 8
18
AVCC
1'
P+5 (SC,/PC$%T5)
15 P+5 (SC,/PC$%T5) 8
0 1 " ! 9 1 1 1 1 1
0 1 " ! 5 6 9 1 1 1 1 1 1 1
6 ' 0 1 " ! # # + + + + + P P P P P P P
%*T +ottom a2 34ou2 e 3o2e7e2 to g7oun2.
) 0 % $ A / A 0 C * / " " T % $ C P (
) 1 % $ A / ! " T % $ C P (
) 1 P C $ / * , C / 0 T % $ C P (
) A 1 C * / 1 T % $ C P (
) + 1 C * / S S / " T % $ C P (
) $ S * / A " C * / ! T % $ C P (
Dept.of EXTC SJCEM P!"#$!%
) * S $ / T % $ C P (
%*T +ottom a2 34ou2 e 3o2e7e2 to g7oun2.
6 ! 0 5 # " + + P # P ' P 1 + ) P ) $ P ) 0 # ) + S % P 1 P ) 1 $ P ) + * ) T + 1 A 1 C / / $ / P + A % / A C ) 0 0 $ * 1 * A * / " S A , C C C / * S C $ * ! / / / * S * / C 1 / 1 " " " / " " T / 0 T T ! T % T T % % T $ $ T $ % % % C % C $ $ % C $ $ $ P C ( C C P ( C P ( P C P P P ( ( P ( ( (
20
u t o m a t i c ! o o r " li d e r u s i n # r d u i n o 2 $ 1 % & 1 '
D
utomac !oor "lider usin# rduino 2$1%&1' 8161CS–AVR–05/09
Dept.of EXTC SJCEM P!"#$!% 2;
utomac !oor "lider usin# rduino 2$1%&1'
L%?-21M22B Vi34a
1 + %haracter L%? F*A3R*$ •
5 8 2ot3 :it4 ;u73o7
•
+uit
•
> 5V o:e7 3u (A3o avaiae ?o7 > !V)
•
1/16 2ut ;;e
•
+/ to e 27iven in 1@ in " o7 in 15@ in 16 o7 A., (#)
•
%.V. otiona ?o7 > !V o:e7 3u
Dept.of EXTC SJCEM P!"#$!% -
utomac !oor "lider usin# rduino
M*%HA5#%AL ?A3A #3*M o2ue #imen3ion
2$1%&1'
AB$0L3* MA#MM RA3#5 $3A5?AR? VAL1* #3*M
$GMB0L M#5
Vie:ing A7ea #ot Sie
Po:e7 Su
V##
< 0.!
C4a7a;te7 Sie
$nut Votage
V$
< 0.!
503*> VSS B 0 Vot@ V## B 5.0 Vot
Dept.of EXTC SJCEM P!"#$!%
1
utomac !oor "lider usin# rduino
2$1%&1'
*L*%3R#%AL $P*%#F#%A3#05$ #3*M
%05?#3#05
$GMB0L
5#3
$3A5?AR? VAL1* M#5
3GP
MA
V## B > 5V
.'
5.0
5.!
V
V## B > !V
".'
!.0
5.!
V
V## B 5V
–
1."
!.0
mA
< "0 C
–
–
–
0C
."
.8
5.1
Votage ?o7 %o7ma Tem.
"5 C
!.8
."
.6
Ve73ion o2ue
50 C
!.6
.0
.
'0 C
–
–
–
–
."
.6
V
A77a
–
1!0
"60
mA
2ge
–
"0
0
–
–
5.0
$nut Votage
V##
Su Cu77ent
$##
Re;ommen2e2 C #7iving
V## < V0
# o7:a72 Votage
V
"5 C
# o7:a72 Cu77ent
$
"5 C
Po:e7 Su Cu77ent
Ve B 110VAC00
$()
V
mA
?#$PLAG %HARA%3*R A??R*$$ %0?*> #i3a Po3ition ## RA A227e33
1 00
" 01
## RA A227e33
0
1
#o;ument %ume7 !'"1' Revi3ion 01<*;t<0"
!
5
6
'
8
9
10
11
1" 1!
1
15
16 0
o7 Te;4ni;a Due3tion3@ Conta;t #i3a3EVi34a.;om
:::.vi34a.;om !1
L%?-21M22B Vi34a P#5 5MB*R
16 " C4a7a;te7 C# $GMB0L
F5%3#05
1
V33
-%#
"
V22
> !V o7 > 5V
!
Vo
Cont7a3t A2Fu3tment
RS
/ Regi3te7 See;t Signa
5
R/G
/ Rea2/G7ite Signa
6
(
H ) (nae Signa
'
#+0
/ #ata +u3 ine
8
#+1
/ #ata +u3 ine
9
#+"
/ #ata +u3 ine
10
#+!
/ #ata +u3 ine
Dept.of EXTC SJCEM P!"#$!%
2
utomac !oor "lider usin# rduino
2$1%&1'
11
#+
/ #ata +u3 ine
1"
#+5
/ #ata +u3 ine
1!
#+6
/ #ata +u3 ine
1
#+'
/ #ata +u3 ine
15
A/Vee
> ."V ?o7 #/%egative Votage *utut
16
,
Po:e7 Su ?o7 +/ (*V)
?#M*5$#05$ in miimete73 2 2==
'== =
2
?03 $#I* = H B =
= = E = B B B = 2 2
822 I 2= 6=
, B =
= = B E B B E 8 B , 1 = H 1 1 1
E==
E1 2 ;VA<
16=
= ;AA<
82 '2
6 B 2
P=6J 1= K '81
H1 MA = B ,
181 12 P3H
1
= B ,
E MA H
=1
1
9 = B 2 2 B , B ' = ,
< < A A V A 8 ; ; 2 B = B 8 B 2 1 ' 2 B 1 1 1 =
2 B 1 ' ' B 8 1
A
6 12 =
62==
6- = P3H 6- =2 PA?
E=2
1
1 *L 0R 50 B7L
L*? - H7L B7L
:::.vi34a.;om !"
H#H
L0/
1
1!."
1".1
"
8.6
'.5
o7 Te;4ni;a Due3tion3@ Conta;t #i3a3EVi34a.;om
Dept.of EXTC SJCEM P!"#$!%
#o;ument %ume7 !'"1' Revi3ion 01<*;t<0"
utomac !oor "lider usin# rduino
2$1%&1'
PIR Se,+o% B!+e* o+t!)"e *e/ te)t(o, +e,+o% 'o*&"e =S(,#"e>
PIR Se,+o% / S(,#"e e,e%!" De+)%(pt(o,
The Sensor-Single is a general "ur"ose "ro!imity sensor. Gere $e use it %or collision detection. The module consist o% a emitter and receiver "air. The high "recision receiver al$ays detects a signal. The module consists o% ,C; com"arator &. The out"ut o% sensor is high $henever it %re/uency and lo$ other$ise. The on- board (D indicator hel"s user to chec* status o% the sensor $ithout using any additional hard$are. The "o$er consum"tion o% this module is lo$. t gives a digital out"ut.
P(, Co,f(#&%!t(o,
The %igure to the right is a to" vie$ o% the Sensor module. The %ollo$ing table gives its "in descri"tion.
'in )o.
&onnection
Descri"tion
1
7ut"ut
Digital ut"ut 8Gigh or
(o$9
2
<&&
&onnected to circuit su""ly
,
3round
&onnected to circuit ground
App"()!t(o, I*e!+ •
•
•
bstacle detection Sha%t encoder i!ed %re/uency detection
utomac !oor "lider usin# rduino
2$1%&1'
PIR Se,+o% / S(,#"e F&,)t(o,!" B"o)? D(!#%!' @S)$e'!t() D(!#%!' <&&
&
UT
ceiver
3)D
7bstacle
ndicator (D 3)D
! 3)D
(AD
Oe%(e of S)$e'!t() The sensitivity o% the Sensor is tuned using the "otentiometer. The "otentiometer is tuneable in both the directions. nitially tune the "otentiometer in cloc*$ise direction such that the ndicator (D starts glo$ing. nce that is achieved# turn the "otentiometer ust enough in anti-cloc*$ise direction to turn o%% the ndicator (D. At this "oint the sensitivity o% the receiver is ma!imum. Thus# its sensing distance is ma!imum at this "oint. % the sensing distance 8i.e.# Sensitivity9 o% the receiver is needed to be reduced# then one can tune the "otentiometer in the anti-cloc*$ise direction %rom this "oint. urther# i% the orientation o% both T! and ! (Ds is "arallel to each other# such that both are %acing out$ards# then their sensitivity is ma!imum. % they are moved a$ay %rom each other# such that they are inclined to each other at their soldered end# then their sensitivity reduces. Tuned sensitivity o% the sensors is limited to the surroundings. nce tuned %or a "articular surrounding# they $ill $or* "er%ectly until the illumination conditions o% that region nearly constant. or e!am"le# i% the "otentiometer is tuned inside roomBbuilding %or ma!imum sensitivity and then ta*en out in o"en sunlight# its $ill re/uire retuning# since suns rays also contain n%rared 89 %re/uencies# thus acting as a source 8transmitter9. This $ill disturb the receivers sensing ca"acity. Gence it needs to be retuned to $or* "er%ectly in the ne$ surroundings. The out"ut o% receiver goes lo$ $hen it receives signal. Gence the out"ut "in is normally lo$ because# though the (D is continuously transmitting# due to no obstacle# nothing is re%lected bac* to the receiver. The indication (D is o%%. Hhen an obstacle is encountered# the out"ut o% receiver goes lo$# signal is re%lected %rom the obstacle sur%ace. This drives the out"ut o% the com"arator lo$. This out"ut is connected to the cathode o% the (D# $hich then turns ).
Note : All
dimension in mm
utomac !oor "lider usin# rduino
2$1%&1'
Co7ig4tJ Roo3o?t S3tem3 ®
2
utomac !oor "lider usin# rduino
2$1%&1'
PIR Se,+o% / S(,#"e M!('&' R!t(,#+ S<':o"
&!,t(t<
oB"
ut"ut
<&&
"erating
3)D
M(,('&'
T
M!('&'
U,(t
0
-
C
<
+.C
C
C.C
<
-
0
-
<
3round e%erence voltage
R2
P(, O&t D('e,+(o,+
10 20
17
,+
Note : All
dimension in mm Error of ±5% is subjected because of component soldering
utomac !oor "lider usin# rduino
2$1%&1'
wwwfairchi!semicom
MC78XX/LM78XX/MC78XXA 3-Terminal 1A Positive Voltage Regulator
Features
?escri.tion
R R R R R
The &7;LLB(7;LLB&7;LLA series o% three terminal "ositive regulators are available in the T-220BD-'A@ "ac*age and $ith several %i!ed out"ut voltages# ma*ing them use%ul in a $ide range o% a""lications. ach ty"e em"loys internal current limiting# thermal shut do$n and sa%e o"er ating area "rotection# ma*ing it essentially indestructible. % ade/uate heat sin*ing is "rovided# they can deliver over 1A out"ut current. Although designed "rimarily as %i!ed voltage regulators# these devices can be used $ith e!ternal com"onents to obtain adustable voltages and currents.
ut"ut &urrent u" to 1A ut"ut
30-2
1
?-PA9
1 1. $nut ". -%# !. *utut
#nterna Boc( ?igram
Rev. 1.0.1
Dept.of EXTC SJCEM P!"#$!%
9
utomac !oor "lider usin# rduino
2$1%&1'
J"001 ai7;4i2 Semi;on2u;to7 Co7o7ation
Dept.of EXTC SJCEM P!"#$!%
;
utomac !oor "lider usin# rduino
2$1%&1'
M%E87LME87M%E8A
A:soute Ma+imum Ratings Parameter $nut Votage (?o7 V * B 5V to 18V) (?o7 V* B "V)
$)m:o V$ V$
Vaue !5 0
nit V V
T4e7ma Re3i3tan;e Kun;tion
RL KC
5
T4e7ma Re3i3tan;e Kun;tion
RL KA
65
*e7ating Teme7atu7e Range
T*PR
0 M >1"5
oC
Sto7age Teme7atu7e Range
TST-
<65 M >150
oC
o
C/G
o
C/G
*ectrica %haracteristics ;M%E82=7LME82=< (Re?e7 to te3t ;i7;uit @0° C N T K N 1"5° C@ $ * B 500mA@ V $ B 10V@ C $B 0.!!O @ C *B 0.1O @ une33 ot4e7:i3e 3e;i?ie2)
Parameter
M%E82=7LME82=
%on!itions
$)m:o
3).
Ma+
TK B>"5 C 5.0mA ≤ $o ≤ 1.0A@ P* ≤ 15G
.8
5.0
5."
V$ B 'V to "0V
.'5
5.0
5."5
V* B 'V to "5V
<
.0
100
V$ B 8V to 1"V
<
1.6
50
$* B 5.0mA to1.5A $* B"50mA to '50mA
<
9
100
<
50
$* B 5mA to 1.0A
< <
5.0 0.0!
8.0 0.5
V$B 'V to "5V
<
0.!
1.!
$*B 5mA
<
<0.8
<
mV/ C
<
"
<
O V/Vo
6"
'!
<
2+
$* B 1A@ TK B>"5 C
<
"
<
V
? B 1,
<
15
<
mQ
<
"!0
<
mA
<
"."
<
A
o
*utut Votage
ine Reguation (%ote1) oa2 Reguation (%ote1) Duie3;ent Cu77ent Duie3;ent Cu77ent C4ange *utut Votage #7i?t
V*
TKB>"5 C
Regoa2
TKB>"5 C
$D
TK B>"5 C
P V*/P T
*utut %oi3e Votage
V%
Rie ReFe;tion
RR
#7oout Votage *utut Re3i3tan;e
o
Regine
P $D
V#7o
7*
1nit
Min
o
o
o
? B 10 to 100,@ T AB>"5 C ? B 1"0 V* B 8V to 18V o
o
S4o7t Ci7;uit Cu77ent
$SC
V$ B !5V@ T A B>"5 C
Pea Cu77ent
$P,
TK B>"5 C
o
V
mV mV mA mA o
5ote> 1. oa2 an2 ine 7eguation a7e 3e;i?ie2 at ;on3tant Fun;tion teme7atu7e. C4ange3 in Vo 2ue to 4eating e??e;t3 mu3t e taen into a;;ount 3ea7ate. Pu3e te3ting :it4 o: 2ut i3 u3e2.
Dept.of EXTC SJCEM P!"#$!%
3-
utomac !oor "lider usin# rduino
Dept.of EXTC SJCEM P!"#$!%
2$1%&1'
31
utomac !oor "lider usin# rduino
Dept.of EXTC SJCEM P!"#$!%
2$1%&1'
32
utomac !oor "lider usin# rduino
Dept.of EXTC SJCEM P!"#$!%
2$1%&1'
3
utomac !oor "lider usin# rduino 2$1%&1'