+ ENERGY SAVING LOGIC..
In this project we show that how we use PUNCH card to open the door and close the door . At the same time if the card is authorized then door is open and if the card is not authorized then door is not open.
Now person enter in the room after sliding a card in the container, if the person is authorized then door is open and if the person is not authorized then door is not open.
4 different group. These four group is for the 4 different energy zone. If the person related to group is available then only that zone light is on other wise that zone light is off. We use this concept for the energy saving logic.
LOGICAL CIRCUIT USED IN THIS PROJECT.
1. PUNCH CARD READER.
2. MICROCONTROLLER INTERFACE.+ PASSWORD INTERFACE LOGIC TO PROVIDE A AUTHROISED AND UN-AUTHORISED OPTION
3. LCD INTERFACE LOGIC.
4. DOOR OPEN CIRCUIT
5. MECHANICAL SLIDING DOOR.
6. ENERGY ZONE LIGHT CONTROL EITHER BY L.E.D OR BY MAIN LIGHT INTERFACE.
PUNCH CARD CONTROL PASWORD CONTROL SYSTEM
In this project we show that how we control the outer electrical circuit with the help of the punch card. When we enter a card in the envelope then circuit sense its input and deliver this data into the processor for processing and ack . If the person is authorised then output circuit is on and lcd display a authorised, if the person is unauthorised then lcd display a unauthorised and output is not open at this time..
explanation of the programming of the microcontroller .
; LCD - I/P TO LCD(8 BIT)
In this project we use 2 by 16 line LCD. Data in the data pin of the lcd in 8 bit format.
E: ENABLE - CONTROL BITS FOR LCD(3 BIT)
;RS, RW AND E IS A CONTROL PINS OF THE LCD. If we want to control a LCD then we control these three pins of the lcd.
ENTER - READ PUNCH CARD CODE(1 BIT)
We use enter switch to enter a punch card, when we enter a punch card in the envelope then we press a enter switch then after procedd further
RESET - DELETE PREVIOUS PUNCH CARD READING(1 BIT)
Reset key delete the all previous record of the punch card. ;
AT - AUTHURISED PUNCH CARD CODE(1 BIT)
By this switch we authorised the card when we insert the card in the envelope and press the enter switch
; NT - UNAUTHURISED PUNCH CARD CODE(1 BIT)
By this switch we un_authorised the card when we insert the card in the envelope and press the enter switch
OUT - BUZZER(1 BIT)
Out pin is our out pin we use this pin for the out put purpose, If we want o connect a relay then we use this pin. Negative output is available on this pin for the output.We connect a relay coil on this pin to switch on any off any electrical appliances.;
253 - PASSWORD
Pass word to control any authorised and un authorised logic to the microcontroller is provided by this password.
RS EQU P2.6
Rs pin of the LCD is connected to the Port p2.6 of the microcontroller
RW EQU P2.5
Read write pin of the LCD is connected to the Port P2.5 of the microcontroller
E EQU P2.7
Enable pin of the LCD is connected to the Port p2.7 of the microcontroller
AT EQU P3.0
AT switch is connected to the Port p3.0
NT EQU P3.1
Not authorised switch is connected to the Port p3.1 of the microcontroller
ENTER EQU P3.2
Enter switch is connected to the pin p3.2 of the microcontroller.
RESET EQU P3.3
Reset switch is connected to the Port p3.3 of the microcontroller.
OUT EQU P2.4
Out put is available on the Port p2.4 of the microcontroller.
CODE EQU P1
Data from the optocou[pler is connected to the Port p1 of the micrccontroller
LCD EQU P0
LCD is connected to the port 0 all data through 8 data line is connected to this port via microcontroller
ES0 EQU P2.3
ESo is password enter switch whenever we enter a password then we enter this switch.
S1 EQU P2.2
S1 is a password digit no 1
S2 EQU P2.1
s2 is a password digit no 2
S3 EQU P2.0
s3 is a password digit no 3
CDATA EQU 20H
Cdata is a temporary register, we use this register in our programming.
FL EQU P0.7
C1 EQU 31H
C2 EQU 32H
C3 EQU 33H
M1 EQU 36H
M2 EQU 37H
M3 EQU 38H
For All these counter we use memory space for this purpose we use these three counter for our password section.
Above program in this section is basically a intialize the lcd and all the switches we have use in this programming . So whenever we want to program any software then we intialize all the things before programming.
We start the program from origon 0000h and then jump to the origon 0030 h. These 30 h space is reserved for the all interrupts. for this purpose we start the program from the 0030 h location
In this programming section first of all we put the values in all temporary memory location for counting purpose and intialize the LCD for display.. to activate LCD we give a command of 38 h in accumulator and then call command function. We use two type of function of LCD one is command and second is write. Whenever we what to set a cursor and set a line or set a position then we call a command option and whenever we want to send a data then we call a write option. We use the same line for the data and for the command so we control this by RS and RW pin of the LCD.
MOV A,#38H ;2*16 MATRIX
MOV A,#02 ;RETURN HOME
MOV A,#01 ;CLEAR DISPLAY SCREEN
MOV A,#0CH ;DISPLAY ON CURSOR OFF
MOV A,#82H ;MOVE CURSOR TO FIRST LINE SECOND COLOUMN
Mircontroller 89c51- 2nos
Crystal 12 MHZ- 2nos.
Cap- 10µf,1000µf,470µf,- 15v
Diode in4001- 10nos.
IC base 40 pin 2nos.
10k ohm potentiometer
10k resistance array
Attendance system in factory, School ,college,
Energy saving in college or factory
Security system with authorization and unauthorisation.
1. Low cost
4. easy to manufacture