Docsity

PIR based smart corrider, Thesis of Electronics

Partial preview of the text

Download PIR based smart corrider and more Thesis Electronics in PDF only on Docsity!

PROJECT REPORt ON

AUTOMATIC CORRIDOR

LIGHTING

Submitted By: The Astericks

Under guidance of: Bijayeelaxmi Panda

Satyabrata Pandab

Asish Panda

CENTAL TOOL ROOM & TRAINING

CENTRE, BHUBANESWAR

(A GOVT. OF INDIA SOCIETY)
MINISTRY OF MSME (ISO 9001 & ISO 14001)

B-36, CHANDAKA INDUSTRIAL AREA, bbsr.

Central Tool Room and Training Centre, Bhubaneswar A Govt. Of India Society (An indo-Danish Project) MINISTRY OF MSME Have undergone the live project on “AUTOMATIC CORRIDOR LIGHTING” and have prepared this project reported by virtue of their diligence and advice. They have successfully completed every aspect of the project with lots of sincerity. This certificate is an acknowledgement of their extra effort and timely carried out work with lots of patience and enthusiasm. Their sincerity and devotion during the project work was very much appreciating. We wish them success for a bright future. Batch Incharge Project Guide Sr. Manager (Training)

ACKNOWLEDGEMENT IT IS REALLY A MATTER OF GREAT PLEASURE TO ACKNOWLEDGE ALL THE FACULTY OF DIM, CENTRAL TOOL ROOM AND TRAINING CENTER,BBSR FOR THEIR GUIDANCE, ASSISTANCE AND CO-OPERATION FOR COMPLETING OUR PROJECT CALLED “AUTOMATIC CORRIDOR LIGHTING”. WE ALSO ACKNOWLEDGE OUR SINCERE GRATITUDE TO Mr. SATYABRATA PANDAV , Mr. ASISH PANDA and Ms. BIJAYLAXMI PANDA WHO HAS GUIDED US IN THE COMPLETION OF OUR PROJECT AND ALSO FOR THEIR PERSISTENT ENCOURAGEMENT DURING THIS TIME. WE WOULD ALSO LIKE TO EXPRESS OUR GRATITUDE TO OUR COURSE CO-ORDINATORS Mr. S. N. MISHRA FOR ALL HIS VALUABLE SUGGESTION AND CO-OPERATION DURING THE COMPLETION OF OUR PROJECT. WE ALSO ACKNOWLEDGE OUR SENCERE GRATITUDE TO Mr. L. RAJSEKHAR DEPUTY GENERAL MANAGER AND Mr. K.M. RAJAN SENIOR MANAGER TRAINING OF CTTC, BBSR FOR THEIR KEEN INTEREST IN OUR PROJECT. WE EXPRESS OUR HEARTFELT ACKNOWLEDGEMENT FOR THEIR STRONG SUPPORT AND ENCOURAGEMENT. WE THANK EACH AND EVERY PERSON WHO ARE DIRECTLY OR INDIRECTLY ASSOCIATED WITH US IN THE COMPLETION OF THIS PROJECT SUCCESSFULLY. REGARDS REGARDS GROUP-ASTERICKS GROUP-ASTERICKS

LIST OF COMPONENTS

SL.

NO

NAME OF

COMPONENT

SPECIFICATION QUANTITY

01. RELAY MODULE 12V 01

02. PIR SENSOR - 08

03. RELAY 12 V 02

04. VEROBOARD - 01

05. ARDUINO NANO - 01

06. DIODE 1N4007 01

07. TRANSISTOR BC547 01

08. RESISTOR 1K, 10K EACH 08

PIR (PASSIVE INFRARED) SENSOR

  • A passive infrared sensor is an electronic sensor that measures infrared light radiating from objects I its field of view.
  • A PIR -based motion detector is used to sense movement of people, animals, or other objects.
  • It works entirely by detecting infrared radiation emitted by or reflected from objects.
  • They do not ‘detect’ or ‘measure’ heat.

ARDUINO The Arduino nano is a small, complete, and breadboard friendly board based on the ATmega328P. It has more or less the same functionality of the arduino duemilanove, but in a different package. It lacks only a DC power jack, and works with a mini-B USB cable instead of a standard one. There are three ways by which we can power the ARDUINO nano: I. USB JACK: Connect the mini USB jack to a phone charger or computer through a cable and it will draw power required for the board to function. II. Vin PIN: The Vin pin can be supplied with a unregulated 6-12v to power the board. The on-board voltage regulator regulates it to +5v. III. +5V PIN: If we have a regulated +5V supply then we can directly provide this to the +5V pin of the Arduino. There are totally 14 digital pins and 8 analog pins on arduino nano board. The digital pins can be used to interface sensors by using them as input pins or drive loads by using them as output pins.

RELAY

  • A relay is an electrically operated switch. Relays are used where it is necessary to control a circuit by a separate low-power signal, or where several circuits must be controlled by one signal. Relays are used whenever it is necessary to control a high power or high voltage circuit with a low power circuit, especially when galvanic isolation is desirable. Relays are widely used in safety-critical logic, such

as the control panels of radioactive waste-handling machinery because they are much more resistant than semiconductor to nuclear radiation. TRANSISTOR (NPN)

  • NPN is one of the two types of bipolar transistors.
  • A transistor is a semiconductor device used to amplify or switch electronic signals and electrical power.
  • The transistor is fundamental building block of modern electronic devices. It is the key active component in practically all modern electronics.
  • A small current entering the base is amplified to produce a large collector and emitter current. The essential usefulness of a transistor comes from its ability to use a small signal applied between one pair of its terminals to control a much larger signal at another pair of terminals. This property is called gain. It can produce a stronger output signal, a voltage or current, which is proportional to a weaker input signal; i.e. it can be used to turn current

RESISTOR

  • A resistor is a passive two-terminal electrical component that implements electrical resistance as a circuit element.
  • In electronic circuits, resistors are used to reduce current flow, adjust signal levels, to divide voltages and terminate transmission lines. Resistors are used to reduce current low flow, adjust signal levels, to divide voltages, bias active elements and terminate transmission lines, among others uses.

PIRSENSORAMPLIFICATIONRELAYSWITCHIN

G

OUTPUTCONTROL

CIRCUIT DIAGRAM

WORKING PRINCIPLE Everything emits some low level of radiation. The hotter something is, the more radiation it emits. This is the basic working principle of our project. PIRs are basically made of a pyroelectric sensor, which can detect levels of infrared radiation. The sensor in it is actually split into two halves. When the sensor is idle, both halves detect the same amount of radiation. When a warm body like a human or an animal passes by, it first intercepts one half, which causes a positive differential change between the two halves. When the body leaves, the reverse happens, and the sensor generates a negative differential change. These changes in pulses are what are detected.

The output is then fed to a relay via a transistor. The relay then uses the low voltage input from transistor to control the switching of the high voltage corridor light. An arduino is also used in our circuit. Its work is to process the output of PIR and give an on-time delay for the light as per required.

buttonState = digitalRead(buttonPin[x]); // read the state of the pushbutton value // check if the pushbutton is pressed. // if it is, the buttonState is HIGH: if (buttonState == HIGH && buttonPin[x] == 2) { //check button pin1 if pressed previousMillis[0] = millis(); //store millis time in previousmillis digitalWrite(outputPin[0], HIGH); //set output1 high } if (buttonState == HIGH && buttonPin[x] == 3) { //check button pin2 if pressed previousMillis[1] = millis(); //store millis time in previousmillis digitalWrite(outputPin[1], HIGH); //set output2 high } if (buttonState == HIGH && buttonPin[x] == 4) { //check button pin3 if pressed previousMillis[2] = millis(); //store millis time in previousmillis digitalWrite(outputPin[2], HIGH); //set output3 high } if (buttonState == HIGH && buttonPin[x] == 5) { //check button pin4 if pressed previousMillis[3] = millis(); //store millis time in previousmillis digitalWrite(outputPin[3], HIGH); //set output4 high } if (buttonState == HIGH && buttonPin[x] == 6) { //check button pin5 if pressed previousMillis[4] = millis(); //store millis time in previousmillis digitalWrite(outputPin[4], HIGH); //set output5 high } if (buttonState == HIGH && buttonPin[x] == 7) { //check button pin6 if pressed previousMillis[5] = millis(); //store millis time in previousmillis digitalWrite(outputPin[5], HIGH); //set output16 high }

} unsigned long currentMillis = millis(); if (currentMillis - previousMillis[0] >= interval) { //output1 will be low after 6 second digitalWrite(outputPin[0], LOW); //set output1 low } if (currentMillis - previousMillis[1] >= interval) { //output2 will be low after 6 second digitalWrite(outputPin[1], LOW); //set output2 low } if (currentMillis - previousMillis[2] >= interval) { //output3 will be low after 6 second digitalWrite(outputPin[2], LOW); //set output3 low } if (currentMillis - previousMillis[3] >= interval) { //output4 will be low after 6 second digitalWrite(outputPin[3], LOW); //set output4 low } if (currentMillis - previousMillis[4] >= interval) { //output5 will be low after 6 second digitalWrite(outputPin[4], LOW); //set output5 low } if (currentMillis - previousMillis[5] >= interval) { //output6 will be low after 6 second digitalWrite(outputPin[5], LOW); //set output6 low } }