go to main index know about us who we are and what we are provide ? we provide training on how to reach us send e-mail us
   

 

 

PUNCHING CARD

DOOR OPENER+

+ ENERGY SAVING LOGIC..

 

INTRODUCTON

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.

 

;RS: RESET,

 

RW: READ/WRITE,

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.

ORG 00H

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

 

JMP START

ORG 30

START:

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 C1,#01

        MOV C2,#01

        MOV C3,#01       

        MOV M1,#10

        MOV M2,#10

        MOV M3,#10

        MOV A,#38H              ;2*16 MATRIX

        ACALL COMMAND

        MOV A,#02               ;RETURN HOME

        ACALL COMMAND

        MOV A,#01               ;CLEAR DISPLAY SCREEN

        ACALL COMMAND

        MOV A,#0CH              ;DISPLAY ON CURSOR OFF

        ACALL COMMAND

        MOV A,#82H              ;MOVE CURSOR TO FIRST LINE SECOND COLOUMN

        ACALL COMMAND

       

 

Components required:

 

Mircontroller 89c51- 2nos

Crystal 12 MHZ- 2nos.

Cap- 10f,1000f,470f,- 15v

Ceramic cap100f,0.001f,.1f

Diode in4001- 10nos.

IC base 40 pin 2nos.

Mircoswitches- 2nos.

Optocoupler 4nos.

LCD- 16*2

10k ohm potentiometer

10k resistance array

IC7805

LEDs  25nos.

Connecting wires

PCB

Soldering wire

Soldering iron

 

 

 

 

Applications:

 

Attendance system in factory, School ,college,

Institution.

 

Energy saving in college or factory

 

Recharge machine

 

Security system with authorization and unauthorisation.

 

 

Advantage

1.     Low cost

2.     Portable

3.     reliable

4.     easy to manufacture

5.     Flexible

 

Bibliography:

 

www.ludhianaprojects.com\projects.html

 

www.mcuprojects.com

 

www.cornolluniversity\ece\punch.html