You are on page 1of 10

Software

Design Document for <CordEnator>

Page i

Software Design Document


for

CORDENATOR

Guide: Dr. Jyothisha


re!ared "y Alphonsa Kurian Prasanth Raj S Sagara S Dev Shinto Philip Amrita #ishwa #idya!eetam AM.EN.P3MCA11003 AM.EN.P3MCA11040 AM.EN.P3MCA1104 AM.EN.P3MCA110!! $%&$%&'%$(

Software

Design Document for <CordEnator>

Page ii

Ta")e of Contents
Ta")e of Contents Re*ision +istory $. ,NTROD-CT,ON 1.1 Purpose 1." S#ope 1.3 $vervie% 1.4 Re&eren#e Material 1.! De&initions an' A#ron()s '. S.STE/ O#ER#,E0 (. S.STE/ ARC+,TECT-RE 3.1 Ar#hite#tural Design 3." De#o)position Des#ription 3.3 Design Rationale 1. CO/ ONENT DES,GN 2. OT+ER DES,GN 3EAT-RES 4. A END,CES

Re*ision +istory
Name Date Reason 3or Changes #ersion Signature of Guide

Software Design Document for CordEnator

Page 1

$. ,NTROD-CT,ON
$.$ ur!ose
*he so&t%are 'esign 'o#u)ent is ai)e' &or e+plaining the ,asi# &un#tionalit( an' ar#hite#ture o& the s(ste)..*his is inten'e' &or those %ho )anage se)inar halls-au'itoriu)s. People %ho have har'%are .no%le'ge are the e+pe#te' rea'ers/ also resear#h s#holars in e),e''e' s(ste)s an' ele#troni#s engineers #an use this 'o#u)ent.

$.' Sco!e
Cor'enator #an ,e use' in au'itoriu)s an' #on&eren#e hall. Cor'enator auto)ate ele#troni# e0uip)ents li.e &ans/ lights/ AC an' 'ispla( the #ount o& the persons insi'e the hall nearer to the auto)ati# open-#lose 'oor. *his s(ste) %ill re'u#e the po%er #onsu)ption. *he Cor'enator %ill tra#. the pro+i)it( an' ele#troni# e0uip)ents %ill %or. a##or'ingl(. *he Cor'enator %ill )aintain the te)perature to a stan'ar' threshol' ,( )easuring the roo) te)perature. *he #ount o& people atten'e' the )eeting-se)inar-#on&eren#e %ill ,e sen' to a 'esignate' person1s )o,ile.

$.( O*er*iew
Cor'Enator/ auto)ates au'itoriu)s an' #on&eren#e halls &or the ease o& users an' ,etter po%er )anage)ent/ ,( getting 'ata &ro) sensors an' #ontrol 'evi#es intelligentl(.

$.1 Reference /ateria)


213 4. Song/ 5. 6ei/ 6. 5hang an' A. Song/ 7Design o& a net%or.e' )onitoring s(ste) &or ho)e auto)ation/8 9EEE *rans. on Consu)er Ele#troni#s/ vol. !3/ no. 3/ pp. 33 : 3;/ Aug. "00;. 2"3 R. Shepher'/ 7S)art ho)e / using <luetooth an' )i#ro#ontroller8 =ournal o& Ele#troni#s an' Co))uni#ation Engineering/ vol. 13/ no. !/ pp. 1 !:"03/ $#t. "001.

$.2 Definitions and Acronyms


9R Sensors ?CD ?ED > 9n&ra Re' sensors > ?i0ui' Cr(stal Displa( > ?ight E)itting 'io'e

2. SYSTEM OVERVIEW
*he Cor'Enator %ill give the &ollo%ing &un#tionalit(.
$pening the 'oor ,( 'ete#ting the person1s presen#e. Altering the au'ien#e #ount value a##or'ing to entr( an' e+it o& a person. *urning $N -$@@ 'evi#es ,( 'ete#ting the pro+i)it( o& person. Controlling the #ooling s(ste) a##or'ing to the roo) te)perature value.

Software Design Document for CordEnator

Page 2

Sen'ing ASMSB visitors #ount to a 'esignate' person1s )o,ile nu),er

(. S.STE/ ARC+,TECT-RE
(.$ Architectura) Design

Visitors counter

Speed controller of electronic devices

CORDENATOR

Proximity based ON/OFF controller for devices.

GSM based occupants count sender.

Dis!)aying audience count in front of the door

9n the #ase o& an au'itoriu) or a se)inar hall/ i& a person %ho %ant to atten' the )eeting or progra) nee' to go insi'e an' #he#. &or the seat availa,ilit(. *his %ill #ause in#onvenien#e &or the people %ho are insi'e the roo). Coe'Enatoe %ill 'ispla( the au'ien#e #ount in &ront o& the 'oor. 6ithout opening the 'oor a person #an un'erstan' ho% )an( seats are le&t. 6hen a person enter into au'itoriu) the #ount %ill in#rease' ,( one. 6hen a person going out the #ount %ill 'e#rease' ,( one. 9t #o)es to pra#ti#al ,( using )otion sensors.

Software Design Document for CordEnator

Page 3

Contro))ing the s!eed of fans&Ac with res!ect to room tem!arature.

Turn off&on the )ights and fans automatica))y according to the !ro5imity.

*he &ans/ a#1s spee's #an ,e #ontrolle' a##or'ing to the at)ospheri# te)perature. @or this purpose te)perature sensing sensors %ill ,e use'. 9& the te)perature is )ore then &an/a# %ill %or. in the high spee' an' vi#e versa. *his %ill #onserve ele#tri#it( / so it is a high priorit( pro#ess. Cor'Enator %ill sense the presen#e o& the people %ho are sitting in the roo) an' onl( the lights an' &ans in that region %ill ,e s%it#he' on. 9t re'u#es the po%er #on#eption. Pro+i)it( sensor %ill sense the presen#e o& the people. *his is a high priorit( pro#ess.

Sending 6S/S7 *isitors count to a designated !erson8s mo"i)e num"er. *he #ount o& the people %ho atten'e' the progra) %ill ,e sen' to a 'esignate' person1s )o,ile nu),er. A&ter the progra) the #ount %ill ,e sen' auto)ati#all(. *his avoi's )anual #ounting.

(.' Decom!osition Descri!tion

Data 3)ow Diagram


LEVEL 0

Sensor status IR Transmitter/Reciever

Visitor s count LCD Display

!n/!"" si#nal Temperature Sensor Room Temperature CordEnator Speed

Fan

Proximty sensor Sensor status $essa#e

Administrator

Software Design Document for CordEnator

Page 4

9E#E9 $

Room Temperature . Calculate /e* speed Room Temperature Temperature sensor (et room Temperature ) !n/!"" si#nal S*itc+ on Li#+t,"ans in visitors position Fan position Fan speed

position ' (et visitor psition

Proximity sensor

Sensor status

Visitor&count23

IR Transmitter/ Reciever

Sensor status

0pdated count % Increment/Decrement visitor&count

LCD display

count

messa#e

1 (enerate messa#e

Administrator

Software Design Document for CordEnator

Page 5

1.

CO/ ONENT DES,GN

State Diagram.

/odu)e :#isitor Counter.


Increment Count Receiver%&A ctive 0pdate Fla# values I" "%4on t+en "'4on

Error c+ec5in

/o c+an#e

Transmit Si#nal

Receiver'& Active

i" "'4on t+en "%4on Decrement Count

/odu)e:De*ice Contro)

Software Design Document for CordEnator

Page 6

Temprature sensor activate

Speed Control

PIR sensor Activate

S*itc+ on li#+t and "an

$aintainin# t+e state

Count C+ec5in#

People Present

Empty +all Turn o"" devices

2. CO/ ONENT DES,GN


seudo Code

/odu)e :#isitor Counter.

Software Design Document for CordEnator

Page 7

Initialize Status_In to State_Wait. Initialize Status_Out to State_Wait. Receiver1_Active() { If(Satus_Out==State_Begin) { If(person_count>0) Person_count- Status_out=Sate_Wait; Time_out=Current_time; } Else if(Status_In==State_Begin) Status_In=State_Wait; Else { Status_In=State_Begin; Time_In=Curent_time; } } Recevier2_Active() { If(Status_In==State_Begin) { If(Person_Count<Max_Capacity) { Person_Count++; Status_In=State_Wait; } Else if(Status_out==State_Begin) Status_out=State_Wait; Else { Status_out=State_Begin; Time_out=Curent_time; } }

Module:Device Control

PIR_Interupt_high() {

Software Design Document for CordEnator

Page 8

Time_Start=Current_Time; Last_Count=Person_Count; Light_State=ON; Fan_State=ON; Temp_Module(); } PIR_Interupt_low() { Time_Interval=Current_Time-Time_Start; If(Time_Interval>5) { New_count=person_count-last_count; If(New_Count<=Person_count) Light_State=OFF; Fan_State=OFF } Else { Light_State=OFF; Fan_State=OFF; Temp_Module(); } } Temp_Module() { Read the output of temperature sensor and store it to tempval. Current_temp=5.0*tempval*100/1024; If (Current_temp>35) Speed=VERY_HIGH; Else if(Current_temp>32) Speed= HIGH; Else if(Current_temp>28) Speed= MEDIUM; else Speed=Low; }

:. OT+ER DES,GN 3EAT-RES Design and ,m!)ementation Constraints


1B E+tre)e te)perature #an1t ,e re#ogniCe' ,( Cor'Enator. "B 9& the roo) siCe to ,e i)ple)ente' is too large/ )ore har'%are #o)ponents %ill ,e nee'e'. 3B At a ti)e onl( one person #an pass through the s(ste).