23
AN-NAJAH NATIONAL UNIVERSITY FACULITY OF ENGINEERING COMPUTER ENGINEERING DEPARTMENT Hardware project AAS (automated attendance system) Supervisors: Students: Dr.Sufian Samarah Worood zafer Dr.luai malhes Shoroq abu omar

Hardware project - eng-old.najah.edu  · Web view2. Hard Ware ... C# application ... Valuable in-class time that could have otherwise been used for lectures need to be dedicated

Embed Size (px)

Citation preview

AN-NAJAH NATIONAL UNIVERSITY

FACULITY OF ENGINEERING

COMPUTER ENGINEERING DEPARTMENT

Hardware project AAS (automated attendance system)

Supervisors: Students:

Dr.Sufian Samarah Worood zafer

Dr.luai malhes Shoroq abu omar

2010 – 2011 Semester

Table of Contents:

1 Abstract…………………………….3

1.1 Objective ……………………………41.2 Infrared: ……………………………...4

2. Hard Ware description………………...52.1 Design………………………………...…6

2.1.1 Block Diagram………………..……..62.1.2 Design description………….………7

2.1.2.2 LCD display:………….……..72.1.2.3 Relay …………………………72.1.2.4 Serial cable………………….72.1.2.5 Infrared………………………82.1.2.6 Door motor………………….8 2.1.2.7Tsop 1738 ……………………8

3. Software 3.1 Logical structure……………………………9

3.1 C# application ………………………………..9

3.2 Access database……………………..103.2.1 Login Table…………………………103.2.2 Student Table……………………….10

3.3 PIC C programmer………………………….113.3.1 LCD programming……………………......113.3.2 Board Driver………………………………..11

Conclusion…………………………………………12Appendix………………………………………….13.14.15.16.17

2

Abstract:

Due to the easy availability of almost all information on the internet these days, students are less and less motivated to come to the lecture rooms than ever before. Professors and instructors have to come up with ways to ensure ahealthy participation from the students, and make sure that the “classic” student professor interactive relationship is kept intact.

This in the some cases may be in simple forms like roll call, while in more interesting cases, can be formats like surprise quizzes, extra credit in class, etc. These things can however be very time-consuming. Valuable in-class time that could have otherwise been used for lectures need to be dedicated to “attendance” taking. In addition to all this, theattendances are entered manually and therefore are error prone. Now, there’s atechnology that can solve all this and more.

3

1.1 Objective : Due to the easy availability of almost all information on the internet these days, students are less and less motivated to come to the lecture rooms than ever before. Professors and instructors have to come up with ways to ensure ahealthy participation from the students, and make sure that the “classic” student professor interactive relationship is kept intact.

This in the some cases may be in simple forms like roll call, while in more interesting cases, can be formats like surprise quizzes, extra credit in class, etc. These things can however be very time-consuming. Valuable in-class time that could have otherwise been used for lectures need to be dedicated to “attendance” taking. In addition to all this, theattendances are entered manually and therefore are error prone. Now, there’s atechnology that can solve all this and more.

Using A floor mat sensor, the task of taking a classroom attendance becomes just a “single click” of the mouse by scaning this mat of wires to detect student presedant and according to his/her chair position we are also able to turn on\off different devices. i.e. lights,computers.

1.3 Infrared:

we used infrared to enable the doctor to open and close the door from destance . see appendix picture #1 .

4

2. Hard Ware description :

2.1 Design

5

D7

14

D6

13

D5

12

D4

11

D3

10

D2

9D1

8D0

7

E6

RW

5RS

4

VSS

1

VDD

2

VEE

3

LCD1LM016L

RA0/AN02

RA1/AN13

RA2/AN2/VREF-4

RA4/T0CKI6

RA5/AN4/SS7

RE0/AN5/RD8

RE1/AN6/WR9

RE2/AN7/CS10

OSC1/CLKIN13

OSC2/CLKOUT14

RC1/T1OSI/CCP2 16

RC2/CCP1 17

RC3/SCK/SCL 18

RD0/PSP0 19

RD1/PSP1 20

RB7/PGD 40RB6/PGC 39

RB5 38RB4 37

RB3/PGM 36RB2 35RB1 34

RB0/INT 33

RD7/PSP7 30RD6/PSP6 29RD5/PSP5 28RD4/PSP4 27RD3/PSP3 22RD2/PSP2 21

RC7/RX/DT 26RC6/TX/CK 25RC5/SDO 24

RC4/SDI/SDA 23

RA3/AN3/VREF+5

RC0/T1OSO/T1CKI 15

MCLR/Vpp/THV1

U1

PIC16F877

162738495

J1

CONN-D9F

T1IN11

R1OUT12

T2IN10

R2OUT9

T1OUT 14

R1IN 13

T2OUT 7

R2IN 8

C2+

4

C2-

5

C1+

1

C1-

3

VS+ 2

VS- 6

U2

MAX232

C1

1u

C2

1u

C31uC4

1u

X1

CRYSTAL4Mhz

C522p

C622p

C76u8

R133k

1B

11C

16

2B

22C

15

3B

33C

14

4B

44C

13

5B

55C

12

6B

66C

11

7B

77C

10

COM

9

U3ULN2003A

RL1RL2RL3RL4RL5RL6RL7

D1

1N4007

D2

1N4007

D3

1N4007

D4

1N4007

D5

1N4007

D6

1N4007

D7

1N4007

12

J2

12

J3

12

J4

12

J5

12

J6

12

J7

12

J8

RV110K VI 1VO3

GND

2

U47805

C8100u

C9100u

C10100n C11

100n

BR1

2W005G

12

J9

CONN-H2

D8 LED-YELLOW

R2

1k

10k

R10

4k7

R11

4k7

1 2 3 4 5 6 7

J10CONN-SIL7

B0

B1

B2

B3

D2

C4

D9

1N4007

V1

12V

Objects Sensors Micro-Processor

Devices

Output Display

2.1.1 Block Diagram:

Block Descriptions:

Objects : This can be any object(s), e.g. desks, lamps, chairs, and people, inside the room.

Sensors : Floor detection mat will be integrated as part of the floor. Sensors within the mat will be assembled in a grid-like fashion. The micro-processor will periodically scan each sensor for a change in conditions.

Micro-Processor : Micro-controller will interpret the inputs from the mats, determine the locations of any objects within the room, and send appropriate signals to display the x-y coordinates of each person.

Devices : This can be any object(s), e.g. lights, computers, projectors, etc., which will automatically be turned on depending on the location of the occupants

6

2.1.2 Design description

2.1.2.1 Floor mat

30*20 cm word board

Wires are connected in a grid matrix

Contact is made by pressing down vertical wires to horizontal wires

See appendix picture # 5.

2.1.2.2 LCD display:

It enable us to see the number of student who set now at the chair. See appendix picture # 2.

2.1.2.3 Relay :

Used to turn on/off the connected device as the student takes his/her place , we conected ULN2003 as interface between the PIC and Relay to Repeat the current taken from microcontroller to avoid pulling large current from the PIC. See appendix picture

#3

2.1.2.4 Serial cable :

used For programming the microcontroller. by sending data in hex format which we wrote it using pic c program. And also used to send date backward to display on the teacher monitor which chair is occupied and which not. See appendix picture # 4

7

2.1.2.5 Infrared:

From remote control signal which enable the doctor to open and close the door remotly. See appendix picture #1

2.1.2.6 Door motor

As an output load from relay controlled using infrared signal.

2.1.2.7Tsop 1738 It use to receiver IR (infrared) from Remote control. See appendix picture #1

3. Software

3.1 Logical structure:

8

Initialize LCD

Detection Routine

Display Routine

Board

LCD_PRINT

LCD_WRITE

LCD_ADDRLCD_P

rint

LEDs

START

3.1 C# application :

show which seat is occupied and which is not and also show the date& time and automatically store attendance in data base.

And its as monitor for doctor to see all the student in their seat and Also detect when student set and when he/she leave the chair

See picture # 6 in the appendix which show the interface of our application.

3.2 Access database :

3.2.1 Login Table:

Data base table contain the student # and the time/date in which the student set also the status of student if it on his/her chair or not.

See picture # 7 in the appendix

3.2.2 Student Table:

Which contain all students in the doctor class and their PC number.

See appendix picture #8

9

3.3 PIC C programmer:

To programming microcontroller (pic18).

3.3.1 LCD programming:

Main functions:

lcd_read_nibble(void)

lcd_send_nibble(int8 nibble)

lcd_read_byte(void)

lcd_send_byte(int8 address, int8 n)

lcd_gotoxy(int8 x, int8 y)

lcd_put_array(byte d[],byte address)

10

3.3.2 Board Driver :

Main function:

char kbd_getc() // return last chair that set.

4. Conclusion:

Overall, we feel the project met most of our expectations, as we were able to build an automated system which could detect the student who is absent and who not. And also turn on the devices or off depend on the position of the student chair.

This was also a tremendous learning experience for us, especially

with the hardware. We learn a tremendous amount about motor control

systems, efficient circuit design, and hardware debugging. We also

learned a lot about software. Through this project, we got valuable

experience in developing efficient software.

11

Appendix :

picture # 1

picture # 2

12

Picture # 3

Picture # 4

Picture # 5

13

14

Picture # 6.

Picture # 7.

15

Picture# 8.

Other pictures

16

17