Automatic Room Light Controller with Didirectional Visitor Counter
CHAPTER :- 1 Plan Overview 1. Introduction Of Plan 1. 1 Plan Definition: Plan designation is “AUTOMATIC ROOM LIGHT CONTROLLER WITH BIDIRECTIONAL VISITOR COUNTER “. The extrinsic of this plan is to form a guide established pattern to compute calculate of individuals visiting object capacity and accordingly frivolous up the capacity. Short we can use sensor and can comprehend exhibit calculate of individuals. In today’s globe, tshort is a faithful demand for effortless appliances forthcoming a conjuncture the growth in banner of buttress, tshort is a reason of urgency for developing circumferences that would tranquility the complexity of activity.
Also if at all one wants to comprehend the calculate of community exhibit in capacity so as not to enjoy plethora. This circumference proves to be advantageous. 1. 2 Plan Overview This Plan “Automatic Capacity Frivolous Guide forthcoming a conjuncture Intruder Aperverse using Microguide is a true circumference that takes aggravate the toil of potent the capacity frivolouss as well-mannered-mannered us computeing calculate of individuals/ intruders in the capacity very correspondently. When star enters into the capacity then the computeer is incremented by one and the frivolous in the capacity procure be switched ON and when any one leaves the capacity then the computeer is admixtureed by one.
The frivolous procure be barely switched OFF until all the individuals in the capacity go out. The sum calculate of individuals stoppagein the capacity is to-boot vaulted on the seven member vaults. The microguide does the aloft job. It receives the distinguisheds from the sensors, and this distinguished is workd beneath the guide of software which is stored in ROM. Microguide AT89S52 faithfully adviser the Infrared Receivers, When any sight ignoring through the IR Receiver's then the IR Rays flux on the receiver are liable , this obstacle is reasond by the Microguide CHAPTER :- 2 BLOCK DIAGRAM AND ITS DESCRIPTION 2. 1Basic Obstruct Diagram
Enter Exit Relief Driver A T 8 9 S 5 2 Distinguished Conditioning Exit Sensor Enter Sensor Frivolous Distinguished Conditioning Capacity Give Fig. 2. 1 Basic Obstruct Diagram 2. 2 Obstruct Diagram Description The basic obstruct diagram of the bidirectional intruder computeer forthcoming a conjuncture effortless frivolous guide is shown in the aloft form. Principally this obstruct diagram live of the subjoined adventitious obstructs. 1. Capacity Give 2. Entry and Exit sensor circumference 3. AT 89S52 micro-guide 4. Relief accelerater circumference 1. Capacity Supply:- Short we used +12V and +5V dc capacity give. The deep dismiss of this obstruct is to agree the required whole of voltage to adventitious circumferences. 12 voltage is attached. +12V is attached to relief accelerater. To get the +5V dc capacity give we enjoy used short IC 7805, which agrees the +5V dc regulated capacity give. 2. Enter and Exit Circuits:- This is one of the deep segregate of our plan. The deep artfulness of this obstruct is to reason the idiosyncratic. For sensing the idiosyncratic and frivolous we are using the frivolous relying register (LDR). By using this sensor and its allied circumference diagram we can compute the individuals. 3. 89S52 Microcontroller:- It is a low-power, lofty act CMOS 8-bit microguide forthcoming a conjuncture 8KB of Glisten Programmable and Erasable Read Barely Remembrance (PEROM).
The show is invented using Atmel’s lofty-density nonvolatile remembrance technology and is congenial forthcoming a conjuncture the MCS-51TM order set and pin out. The on-driblet Glisten allows the program remembrance to be reprogrammed in-regularity or by a prevalent nonvolatile remembrance programmer. By combining a variable 8-bit CPU forthcoming a conjuncture Glisten on a monolithic hip, the Atmel AT89S52 is a capacityful Microcontroller, which agrees a loftyly pliable and require talented breach so frequent embedded guide applications. 4. Relief Driver Circuit:- This obstruct has the relishly to accelerate the manifold guideled shows.
In this obstruct deeply we are using the transistor and the reliefs. One relief accelerater circumference we are using to guide the frivolous. Output distinguished from AT89S52 is attached to the vile of the transistor, which we are exalt energizing the object relief. Because of this embezzle show is separated and it do its allotted dismiss. CHAPTER :- 3 SCHEMATIC DIAGRAM Transmission Circuit:- Fig. 3. 1 Transmitter circumference Receiver Circuit:- Fig. 3. 2 Receiver circumference * CIRCUIT DESCRIPTION: Tshort are two deep segregates of the circumferences. 1. Transmission Circuits (Infrared LEDs) 2. Receiver Circumference (Sensors) . Transmission Circuit: Fig. 3. 3 Transmitter circumference This circumference diagram shows how a 555 ager IC is configured to dismiss as a basic monoestablished multivibrator. A monoestablished multivibrator is a timing circumference that changes set-forth uninterruptedly triggered, but restores to its former set-forth forthcoming a real age stoppage. It got its designate from the circumstance that barely one of its output set-forths is established. It is to-boot comprehendn as a 'one-shot'. In this circumference, a indirect pulse applied at pin 2 triggers an interior flip-flop that revolves off pin 7's dismiss transistor, allowing C1 to advise up through R1.
At the similar age, the flip-flop brings the output (pin 3) flatten to 'high'. When capacitor C1 as advised up to about 2/3 Vcc, the flip-flop is triggered uninterruptedly again, this age making the pin 3 output 'low' and revolveing on pin 7's dismiss transistor, which dismisss C1 to fixation. This circumference, in chattels, produces a pulse at pin 3 whose width t is exact the remainder of R1 and C1, i. e. , t=R1C1. IR Transmission circumference is used to originate the modulated 36 kHz IR distinguished. The IC555 in the transmitter verge is to originate 36 kHz clear triumph. Adexact the preset in the transmitter to get a 38 kHz distinguished at the o/p. complete 1. 4K we get a 38 kHz distinguished. Then you object it aggravate the sensor and its o/p procure go low when it reasons the IR distinguished of 38 kHz. 2. Receiver Circuit: Fig. 3. 4 Receiver circumference The IR transmitter procure cast-out modulated 38 kHz IR distinguished and at the receiver we use TSOP1738 (Infrared Sensor). The output goes lofty when the tshort is an discontinuance and it restore end to low forthcoming the age term established by the capacitor and resistor in the circumference. I. e. acomplete 1 cooperate. CL100 is to trigger the IC555 which is configured as monoestablished multivibrator. Input is attached to the Harbor 1 of the microcontroller.
Port 0 is used for the 7-Segment vault resolve. Harbor 2 is used for the Relief Revolve On and Revolve off Purpose. LTS 542 (Common Anode) is used for 7-Segment vault. And that age Relief procure get Voltage and triggered so frivolous procure get voltage and it procure revolve on. And when computeer procure be 00 that age Relief procure be revolveed off. Reset rush procure reset the microcontroller. CHAPTER :- 4 HARDWARE DESIGN ; DESCRIPTIONS Hardware Design:- Infrared Sensor TSOP1738 Microguide AT89S52 Relief 7-Segment Vault Timer IC 555 Fig. 4. 1 Snap of the complete circumference 4. 1 Procedure Followed Conjuncture Designing:
In the preparation I planned the circumference in DIPTRACE software. Dip explore is a circumference maneuvering software. Forthcoming gist of the maneuvering circumference I succeeding the layout. Then I programmed the microguide using KEIL software using hex finish. Then soldering manner was produced. Forthcoming gist of the soldering manner I tested the circumference. Still the desired output was not conciliateed and so perplexityshooting was produced. In the manner of perplexityshooting I fix the circumference aptly soldered and arelish and hence came to misentry that tshort was untruth in programming minority which was succeeding rectified and the desired remainders were conciliateed. . 2 Catalogue of Components: Subjoined is the catalogue of factors that are certain to plant the galaxy of the Digital Speedometer Cum Odometer: * Microguide – AT89S52 * IC – 7805 * Sensor – TSOP 1738 (Infrared Sensor) * Transformer – 12-0-12, 500 mA * Preset – 4. 7K * Disc capacitor – 104,33pF * Reset rush switch * Rectifier diode – IN4148 * Transistor – BC 547, CL 100 * 7-Segment Vault 4. 3 Description of Components 4. 3. 1 Microguide AT89S52: The AT89S52 is a low-power, lofty-act CMOS 8-bit microguide forthcoming a conjuncture 8K bytes of in-regularity programmable Glisten remembrance.
The show is invented using Atmel’s lofty-density nonvolatile remembrance technology and is congenial forthcoming a conjuncture the Industry-banner 80C51 order set and pin out. The on-driblet Glisten allows the program remembrance to be reprogrammed in-regularity or by a prevalent nonvolatile remembrance pro- rhetoric. By combining a variable 8-bit CPU forthcoming a conjuncture in-regularity programmable Glisten on a monolithic driblet, the Atmel AT89S52 is a capacityful microguide which agrees a loftyly-pliable and require-talented breach to frequent embedded guide applications.
The AT89S52 agrees the subjoined banner indications: 8K bytes of Flash, 256 bytes of RAM, 32 I/O lines, Watchdog ager, two grounds objecters, three 16-bit ager/counters, a six-vector two-flatten dislive fabric, a unmeasured duplex serial harbor, on-driblet oscillator, and clock circumferencery. In union, the AT89S52 is planned forthcoming a conjuncture static logic for exercise down to nothing number and supports two software selectable capacity saving sequences. The Unoccupied Sequence stops the CPU conjuncture allowing the RAM, ager/counters, serial harbor, and dislive regularity to live dismissing.
The Power-down sequence saves the RAM con- tents but generouszes the oscillator, disabling all other driblet dismisss until the contiguous dislive or hardware reset. FEATURES:- * 8 KB Reprogrammable glisten. * 32 Programmable I/O lines. * 16 bit Timer/Counter—3. * 8 Dislive founts. * Capacity stroll: 4V – 5. 5V * Endurance : 1000 Writes / Erase cycles * Fully static exercise: 0 Hz to 33 MHz * Three flatten program remembrance lock * Capacity off tire * Unmeasured duplex UART serial channel * Low capacity unoccupied and capacity down sequences * Dislive regaining from capacity down sequences * 256 KB interior RAM * Dual grounds objecter 4. 3. 2TSOP1738 (INFRARED SENSOR)
Fig. 4. 2 Infrared Sensor Description: The TSOP17.. – Course are miniaturized receivers for infrared alien guide regularitys. PIN diode and preamplifier are assembled on transfer fabricate, the epoxy parcel is planned as IR clarify. The demodulated output distinguished can straightly be decoded by a microprocessor. TSOP17.. is the banner IR alien guide receiver course, supported all elder transmission codes. Features: * Photo undeceiver and preamplifier in one parcel * Interior clarify for PCM number * Improved shielding aperverse electrical arena mobility * TTL and CMOS compatibility * Output erratic low Low capacity admixture * Lofty exemption aperverse ambient frivolous * Faithful grounds transmission relishly (up to 2400 bps) * Suitable split tediousness . 10 cycles/split Obstruct Diagram: Fig. 4. 3 Obstruct Diagram of TSOP 1738 Application Circuit: Fig. 4. 4 Application circumference 4. 3. 3 555 ( TIMER IC): Fig. 4. 5 Timer IC(555) Description: The LM555 is a loftyly established show for generating complimentary age stoppages or bill. Additional terminals are agreed for triggering or resetting if desired. In the age stoppage sequence of exercise, the age is certainly guideled by one exterior resistor and capacitor.
For aestablished exercise as an oscillator, the generous prevalent number and commission cycle are correspondently guideled forthcoming a conjuncture two exterior resistors and one capacitor. The circumference may be triggered and reset on flux triumphforms, and the output circumference can fount or degrade up to 200mA or accelerate TTL circumferences. Features: * Direct repossession for SE555/NE555 * Timing from microseconds through hours * Operates in twain aestablished and monoestablished sequences * Adjuestablished commission cycle * Output can fount or degrade 200 mA * Output and give TTL congenial * Temperature fixture amend than 0. 05% per °C * Normally on and normally off output * Available in 8-pin MSOP parcel Applications: * Precision timing * Pulse progeny * Sequential timing * Age stoppage progeny * Pulse width harmonization * Pulse situation harmonization * Linear palliate generator 5. 3. 4 LTS 542 (7-Segment Display) Description: The LTS 542 is a 0. 52 inch digit climax individual digit seven-member vault. This show utilizes Hi-eff. Red LED driblets, which are made from GaAsP on GaP substrate, and has a red computeenance and red member. Fig. 4. 6 7 Member Features: * Common Anode * 0. 52 Inch Digit Climax * Faithful Uniform Segments Low capacity Requirement * Excellent Characters Appearance * Lofty Brightness ; Lofty Contrast * Distant Viewing Angle 5. 3. 5 LM7805 (Voltage Regulator) Fig. 4. 7 Voltage Manager Description: The KA78XX/KA78XXA course of three-terminal unequivocal manager are available in the TO-220/D-PAK parcel and forthcoming a conjuncture divers unroving output voltages, making them suited in a distant stroll of applications. Each pattern employs interior floating limiting, zealous close down and secure frank area security, making it adventitiously indiscerptible. If plentiful excitement degradeing is agreed, they can pronounce aggravate 1A output floating.
Although planned chiefly as unroving voltage managers, these shows can be used forthcoming a conjuncture exterior factors to conciliate adjuestablished voltages and floatings. Features: * Output Floating up to 1A * Output Voltages of 5, 6, 8, 9, 10, 12, 15, 18, 24V * Zealous Overload Security * Short Circumference Security * Output Transistor Secure Frank Area Security 5. 3. 6 RELAY CIRCUIT: Fig. 4. 8 Relief A individual pole rake propel (SPDT) relief is arelish to harbor RB1 of the microguide through a accelerater transistor. The relief requires 12 volts at a floating of acomplete 100ma, which cannot agree by the microcontroller.
So the accelerater transistor is adventitious. The relief is used to work the exterior solenoid forming segregate of a locking show or for frank any other electrical shows. Normally the relief offscourings off. As early as pin of the microguide goes lofty, the relief works. When the relief works and releases. Diode D2 is the banner diode on a unreflective relief to frustrate end EMF from prejudicial Q3 when the relief releases. LED L2 indicates relief on. CHAPTER :- 5 SOFTWARE DESIGN FLOW CHART: Start Infrared Distinguished Transmission Occasional from Sensor1 Occasional from Sensor 2 Revolve On Relief Aperverse Incremented Aperverse Decremented
Counter set to 0 Relief Revolve Off Revolve On Frivolous Revolve Off Frivolous Fig. 4. 7 Flow Chart * If the sensor 1 is discontinueed original then the microguide procure face for the sensor 2. And if it is discontinueed then the microguide procure increment the compute and switch on the relief, if it is original age discontinueed. * If the sensor 2 is discontinueed original then the microguide procure face for the sensor 1. And if it is discontinueed then the microguide procure admixture the compute. * When the developed idiosyncratic leaves the capacity then computeer goes to 0 and that age the relief procure revolve off. And frivolous procure be revolve off. CHAPTER :- 6 TESTING AND RESULTS
Testing And Results We inaugurated our plan by making capacity give. That is not-difficult for me but when we revolve inside the deep circumference, tshort are frequent bearings and issues allied to it, which we computeenanced, relish factor preference, which factors is amend than other and its indication and require learned a We inaugurated our plan by making capacity give. That is not-difficult for me but when I revolve inside the deep circumference, tshort are frequent bearings and issues allied to it, which are I computeenanced, relish factor preference, which factors is amend than other and its indication and require learned to-boot, then appeal the grounds books and other materials allied to its.
I had issues forthcoming a conjuncture amend or set-right remainder, which I desired. And to-boot the software bearing. I to-boot had some soldering issues which were grounded using simultaneousness checks executed on the hardware. We had issues forthcoming a conjuncture amend or set-right remainder, which we desired. And to-boot the software bearing. We to-boot had some soldering issues which were grounded using simultaneousness checks executed on the hardware. We inaugurated testing the circumference from the capacity give. Tshort we got aggravate original perplexity. Forthcoming getting 9V from the transformer it was not converted to 5V and the circumference common 9V.
As the solder was shorted IC 7805 got burnt. So we replaced the IC7805. to-boot the circumference segregate acomplete the IC7805 were wholly damaged.. forthcoming a conjuncture the acceleration of the solder we made the certain paths. CHAPTER :- 7 FUTURE EXPANSION FUTURE EXPANSION * By using this circumference and specialal capacity give we can tool manifold applications Such as fans, tube frivolouss, etc. * By modifying this circumference and using two reliefs we can conclude a toil of hole and noncommunication the door. CHAPTER :- 8 APPLICATION, ADVANTAGES ; DISADVANTAGES APPLICATION, ADVANTAGES ; DISADVANTAGES Application * For computeing resolves * For effortless capacity frivolous guide * Advantages * Low require * Not-difficult to use * Tool in individual door * Disadvantages * It is used barely when one individual idiosyncratic cuts the rays of the sensor hence it cannot be used when two idiosyncratic perverse simultaneously. CHAPTER :- 8 BIBILOGRAPHY Bibliography * Reference Books * Programming in ANSI C: E BALAGURUSAMY * The 8051microguide and embedded regularitys: MUHAMMAD ALI MAZIDI JANICE GILLISPIE MAZIDI * The 8051 microcontroller: KENNETH J. AYALA * Website * www. groundssheets4u. com * www. 8051. com