Automatic Room Lightening By: Piyush Garg- UE94048 Prince Dhadwal- UE94053 Sahil Arora- UE94062 Sonam Rigzin-UE940
Basic Operation Room Already : Lit Lights Remain Off Can be Switched On Manually Person 1 Enters Lights Switched ON Person 2 Enters Person 3 Enters Person 1 LeavesPerson 2 LeavesPerson 3 LeavesLights Switched OFF Person EntersSensor I Interrupted First Sensor 2 Interrupted later Lights Switched On Room Dark : Person LeavesSensor 2 Interrupted First Sensor I Interrupted later Lights Switched Off
Components Microcontroller 8051 (Atmel) IR Sensors (I and 2) Crystal Oscillator ( MHz) LDR Circuit (With LM324) LED as Output Capacitors, Resistors, POTs (In Circuit)
CIRCUITS 8051 Connections
Sensors
Programming ORG 0000H; LJMP MAIN; ORG 0003H; MOV r0,#86H; MOV a,r1; SUBB A,#97H; JZ out; RETI OUT: MOV r0,#00; MOV r1,#00; DEC r5 RETI ORG 0013H; MOV r1,#97H; MOV A,r0; SUBB a,#86; JZ IN; RETI IN: MOV r0,#00; MOV r1,#00; INC r5; retI
ORG 0030H; MAIN: MOV IE,#85H; JNB P3.4,MAIN; MoV r5,#00H; Next1: MOV A,r5; CJNE A,#00,ON; JZ off JC off JNC ON off: CLR P2.0; JMP MAIN; ON: SETB p2.0; JMP Next1; END
Applications In Households. Hotels. Benefits Helps save electricity. Eases switching ON lights in totally dark rooms. Easy illumination for person carrying luggage in hotels.
Scope of Improvement A Counter indicating the number of people already in the room can be attached. PIR motion sensor can be used, which senses only human motion. Humidity sensor can be used, when the number of people are large. Different electricity components can be switched ON depending upon the number of people.
Cost Factor The Overall cost of the system amounts to approximately: Cost can be reduced when produced on a commercial scale. 360/ Unit