Embed
Email

Lighting System

Document Sample

Shared by: Jun Wang
Categories
Tags
Stats
views:
0
posted:
12/26/2011
language:
pages:
14
‫بسم اهلل الرحمن الرحيم‬

An_najah National University

Faculty of Engineering

Computer Engineering Department

Graduation Project In

Control of Lighting Systems

Lighting System



Supervised By:



Eng.Ashraf Armoush



Prepared By:



Samer Mustafa Alsaid

Mohanned Tahseen Salameh

Introduction



• Lighting System Control consists of a

control system through a computer, and also

by using PIC controller, and lights to

control with it.

• In our project we take a building of eight

floors as an example.

• We represent each floor as a LED, And we

control the light of each floor separately

from others

Objectives



• Showing an automatic programmable way

for lighting the floors in a building .

• An expected floors in the building will

switch off and switch on in a given time.

• Energy saving…to save electrical power

from being wasted.

Hardware Specification



• PIC16F877

• LCD

• LEDs, for specifying the floors

• SP232ACP

• Oscillator

• Buttons

• Capacitors, Resistors

• Regulator

Software used

• PIC C Compiler( To write the program to

receive data and time from the PC Program

and control through it in the hardware and

LEDs).

• Visual C++ programming (MFC)(To write

the program required to send data and time

to the PIC)

U1 LED

2 15

3 RA0/AN0 RC0/T1OSO/T1CKI 16

4 RA1/AN1 RC1/T1OSI/CCP2 17

5 RA2/AN2 RC2/CCP1 18

LED 6 RA3/AN3/VREF RC3/SCK/SCL 23

7 RA4/TOCKI RC4/SDI/SDA 24

RA5/AN4/SS RC5/SDO 25

33 RC6/TX/CK 26

34 RBO/INT RC7/RX/DT

35 RB1 19 7

36 RB2 RD0/PSP0 20 8

37 RB3 RD1/PSP1 21 9 Data

RB4 RD2/PSP2 10

38 22 and

push button 39 RB5 RD3/PSP3 27 11

RB6 RD4/PSP4 control

40 28 12

RB7 RD5/PSP5 29 13 To LCD U3

C1 13 RD6/PSP6 30 14 11 14

14 OSC1/CLKIN RD7/PSP7 10 T1IN T1OUT 7

10p OSC2/CLKOUT 6 T2IN T2OUT

X1 8

1 RE0/RD/AN5 9 5 LED 13 12

C2 MCLR/VPP RE1/WR/AN6 10 8 R1IN R1OUT 9

VDD 11 RE2/CS/AN7 R2IN R2OUT

10p VDD

9.8304MHz 32 C10 1

0 R1 VDD 3 C1+

PIC16F877 1u C1-

4

40k 5 C2+

C5 C2-

S9 C2 1u 2

10u 1u C9 6 V+

MCLR V-

ICL232



0 0

VDD



C12 1u

C11

1u

1

6

2

7

3

8

4

9

5









VDD

VB1 SUB-D 9 0

0

Schematic Diagram



• This diagram in the previous page specify

the connections with the PIC in every pin

which make the hardware understood.

• The PIC connects with eight LEDs and the

LCD to make a relation between lighting

the floors and showing the results in the

LCD ( number of floors that switched on or

off and the current time every minute.

• The LEDs are connected with the PIC that

are work in a programmable way in lighting

the floors as a systematic method

• The LCD will show the current time, and

the number of the floors which lighted or

switched off to give complete information

about the building lighting in every minute

The Mechanism of the work



• We insert the start time, stop time for each

LED in the PC program

• We Open the serial port

• We transmit these data through the serial

port

• We close the port

Cont.



• The PIC receives these data

• Storing these data in the EEPROM of the

PIC

• We apply the functions in the PIC program

on these data

• The output will show in the LEDs that are

on after a given time, or off in a given time

PIC Working

• The work of the PIC is receiving data from

the PC , and stores it in EEPROM with

applying some functions on these data to

switch on and switch off some LEDs, and

displaying the time ,when floors lighted,

and when floors switched off that will be

shown in the LCD.

Finally…………



• Thanks for all:



Project Supervisor

Eng. Asharaf Armoush

And so

Dr. Loai Malhees

Dr. Raed Alqadi



Related docs
Other docs by Jun Wang
Management Two
Views: 2  |  Downloads: 0
Management training Red Cross branch offices
Views: 2  |  Downloads: 0
Management subjekt_ CR
Views: 2  |  Downloads: 0
Management Styles_1_
Views: 18  |  Downloads: 0
Management stratégique
Views: 2  |  Downloads: 0
Management Standards at CARE - CARE Academy
Views: 2  |  Downloads: 0
By registering with docstoc.com you agree to our
privacy policy

You are almost ready to download!

You are almost ready to download!