6. Οθόνη lcd
3.6 ΣΔΣ HARDWARE
ΕΛΕΓΧΟΣ ΥΛΙΚΟΥ (πάνω ζηον μικποεπεξεπγαζηή)
Αιζθηηήπιο Φωηόρ:
Ο Έιεγρνο ηoπ Αηζζεηεξίνπ Φσηόο νινθιεξώζεθε ζηηο 22/04/2010 θαη βξέζεθε ηθαλό πξνο ρξήζε σο έρεη.
Δλώζακε ην έλα άθξν ηνπ αηζζεηήξηνπ ζε 5volt θαη ην άιιν ζηελ είζνδν ηνπ AVR θαη πήξακε αλαινγηθέο ζε ςεθηαθέο ηηκέο θαη θάλακε ζπγθξίζεηο.
Αιζθηηήπιο Θεπμοκπαζίαρ:
Ο Έιεγρνο ηoπ Αηζζεηεξίνπ Θεξκνθξαζίαο νινθιεξώζεθε ζηηο 22/04/2010 θαη βξέζεθε ηθαλό πξνο ρξήζε σο έρεη. Δλώζακε ην έλα άθξν ηνπ αηζζεηήξηνπ ζε 5volt θαη ην άιιν ζηελ είζνδν ηνπ AVR θαη πήξακε αλαινγηθέο ζε ςεθηαθέο ηηκέο θαη θάλακε ζπγθξίζεηο.
Μοηέπ:
Ο Έιεγρνο κνηέξ νινθιεξώζεθε ζηηο 22/04/2010 θαη βξέζεθε ηθαλό πξνο ρξήζε σο έρεη. Γώζακε 5Volt από ην κπαηαξία κέζσ δύν ξειέ θαη επηβεβαηώζακε ηελ δύλακε, ηαρύηεηα, δεμηόζηξνθε θαη αξηζηεξόζηξνθε θίλεζε.
3.8 ΔΚΘΔΖ ΔΞΟΓΟΤ ΦΑΖ 2Α:
ΔΡΓΟ: ΑΤΣΟΜΑΣΖ ΚΗΑΖ ΠΑΡΑΘΤΡΟΤ ΦΑΖ: 2Α
ΖΜ/ΝΗΑ: 23/05/2010
ΑΠΟΦΑΖ ΤΝΔΓΡΗΑΖ:
108 ΑΤΣΟΜΑΣΟ ΚΙΑΜΑ ΠΑΡΑΘΤΡΟΤ
Ζ θάζε 2Α άξρηζε ζηηο 23/05/2010 θαη ηειείσζε ζηηο 24/06/2010. ην δηάζηεκα απηό πξαγκαηνπνηήζεθαλ νη εμήο ιεηηνπξγηθέο απνθάζεηο από ηελ νκάδα:
Πξνδηαγξαθέο πζηήκαηνο
Αλάιπζε δέλδξνπ ιαζώλ
ρέδην R & D
Αλάιπζε Δπηθηλδπλόηεηαο
Λεηηνπξγία αλαπηπμηαθνύ κε oCdevision θαη avr studio
Αγνξά ησλ πεξηζζόηεξσλ πιηθώλ από ηνλ Τπεύζπλν Δκπνξηθήο Δθκεηάιιεπζεο
Σνπνζέηεζε αηζζεηεξίσλ ρακειήο θαη πςειήο ζηάζκεο ζηηο δπν δεμακελέο 3.9 ΔΓΚΡΗΖ ΔΞΟΓΟΤ ΑΠΟ ΣΖΝ ΦΑΖ Α2:
Ζ ζπλεδξίαζε γηα ηελ εμέηαζε ηεο πξνόδνπ ηεο Φάζεο 2Α πξαγκαηνπνηήζεθε ζηηο 27/11/09, όπνπ παξεπξέζεθε ε νινκέιεηα ηεο νκάδαο ηνπ project. Καηόπηλ ζπδεηήζεσο απνθαζίζηεθε από ηελ project manager όηη ε νκάδα είλαη έηνηκε γηα ηελ επόκελε Φάζε θαη ήκαζηαλ ζύκθσλνη όινη γηα ηελ έγθξηζε εμόδνπ από ηελ Φάζε Α2.
Χπιζηοθή Δημήηπιορ: Τπεύζπλνο Διέγρνπ Λνγηζκηθνύ &Πξνγξακκαηηζηήο Α‟ (Τπεύζπλνο Hardware) Φιλίππος Φίλιππορ : Μεραλνιόγνο &Τπεύζπλνο Διέγρνπ Hardware & Τπεύζπλνο Παξαγσγήο
ΔΓΚΡΗΘΖΚΔ
ΦΑΖ 2Β
109 ΑΤΣΟΜΑΣΟ ΚΙΑΜΑ ΠΑΡΑΘΤΡΟΤ
4 .1 ΥΡΟΝΟΓΗΑΓΡΑΜΜΑ ΦΑΖ 2Β:
4.2 ΔΗΑΓΩΓΖ ΣΖΝ ΠΡΟΠΑΡΑΓΩΓΖ:
Καηόπηλ αλάιπζεο ησλ απαηηήζεσλ θαη ησλ πξνδηαγξαθώλ πνπ καο έδσζε ν πειάηεο, πήξακε θάπνηεο απνθάζεηο γηα ην πώο ζα πινπνηεζεί ην έξγν .Έγηλαλ θάπνηα αξρηθά ζρεδία γηα ηε κνξθή ηεο καθέηαο.
ΦΑΖ 2Β
ΣΗΣΛΟ ΔΡΓΟΤ ΑΤΣΟΜΑΣΖ ΚΗΑΖ ΠΑΡΑΘΤΡΟΤ
ΤΠΔΤΘΤΝΟ ΔΡΓΟΤ ΥΡΗΣΟΦΖ ΓΖΜΖΣΡΖ/ΦΗΛΗΠΠΟΤΦΗΛΗΠΠΟ
ΠΔΡΗΟΥΖ ΑΝΑΠΣΤΞΖ ΚΑΒΑΛΑ
ΔΝΑΡΞΖ ΦΑΖ 25-06-2010
ΛΖΞΖ ΦΑΖ 24-08-2010
ΚΟΣΟ 40.95€
Υξνλνδηάγξακκα Φάζεο 2Β 27/05/2010 08/06/2010 13/06/2010 26/06/2010 24/08/20 Τινπνίεζε ησλ αηζζεηεξίσλ
Γηαγξάκκαηα ξνήο
Δθαξκνγή ιεηηνπξγίαο κνηέξ Βάζε πίλαθα 1.0 (ζει 6) Τινπνίεζε θώδηθα γηα ηα αηζζεηήξηα
ρεδηαζκόο ειεθηξνινγηθώλ θπθισκάησλ
Λεηηνπξγίαο
110 ΑΤΣΟΜΑΣΟ ΚΙΑΜΑ ΠΑΡΑΘΤΡΟΤ
Ζ ξνή ησλ παξαγσγηθώλ δηαδηθαζηώλ μεθηλά κε ηελ πξνκήζεηα ησλ απαηηνύκελσλ πιηθώλ γηα ηελ πινπνίεζε ηνπ έξγνπ. Απηά ηα πιηθά είλαη ε αξρηθή εθηίκεζε γηα ην ηη ζα ρξεηαζηνύκε γηα ην έξγν. Σα θξηηήξηα γηα ηελ επηινγή ησλ πιηθώλ έγηλε κε βάζε ηελ αμηνπηζηία, ην θόζηνο θαη θπζηθά ηελ πνηόηεηα.
Σα πιηθά ζπλνπηηθά είλαη:
Ο κηθξνεπεμεξγαζηήο STK 500 όπνπ είλαη ε βάζε γηα ην έξγν
Σα αηζζεηήξηα καο
Μνηέξ
Οζόλε
Σξνθνδνηηθό
111 ΑΤΣΟΜΑΣΟ ΚΙΑΜΑ ΠΑΡΑΘΤΡΟΤ
4.3 ΓΗΑΓΡΑΜΜΑΣΑ ΡΟΖ:
CALL FUNCTION metrisi_aisthiri
wn
Ανάλςζη ηηρ ζςνάπηηζηρ metrisi_aisthiriwn Βαθμοί από 0 εώρ και 10
if(temp<=10 ||
temp>0)
NO YES
if(temp<=20 ||
temp>10)
if(light<=50 ||
light>=0) YES
NO
if(light<=100 ||
light>50)
NO
if(old_light>100 &&
old_light<=150 &&
old_light>=light && light>
old_light) if(old_light>200 &&
old_light<=255 &&
old_light>=light && light>
old_light)
if(old_light>50 &&
old_light<=100 &&
old_light>=light && light>
old_light) if(old_light>150 &&
old_light<=200 &&
old_light>=light && light>
old_light)
if(old_temp>20
&& old_temp
<30)
YES
if(old_temp>10
&& temp<20)
YES close the blint
3/4 close the blint
3/4
NO
YES NO if(old_temp>30) close the blint
2/4 YES
NO
close the blint 4/4
if(old_temp>20
&& old_temp
<30)
if(old_temp>10
&& temp<20) close the blint
2/4
if(old_temp>30) close the blint 1/4
close the blint 4/4 close the blint
4/4 YES
YES NO
YES NO YES
if(old_temp>20
&&| old_temp
<30)
if(old_temp>10
&& temp<20) close the blint
4/4
if(old_temp>30) close the blint 1/4
close the blint 4/4
close the blint 4/4
YES NO
YES
NO NO
NO
YES
YES
if(old_temp>20
&&| old_temp
<30)
if(old_temp>10
&& temp<20) close the blint
1/4
if(old_temp>30)
close the blint 3/4
close the blint 4/4
close the blint 4/4
YES YES
NO
YES NO YES
NO NO
NO NO
if(old_light>150 &&
old_light<=200 &&
old_light>=light && light>
old_light)
if(old_temp>10
&& temp<20)
YES close the blint
4/4 close the blint
3/4
NO
YES NO
close the blint 2/4 YES
NO close the blint
4/4
YES
NO
if(old_temp>20
&& old_temp
<30)
if(old_temp>30)
YES
112 ΑΤΣΟΜΑΣΟ ΚΙΑΜΑ ΠΑΡΑΘΤΡΟΤ
if(light<=150 ||
light>100)
NO
if(old_light>200 &&
old_light<=255 &&
old_light>=light && light>
old_light)
YES
if(old_temp>20
&& old_temp
<30)
if(old_temp>10
&& temp<20) close the blint
2/4
if(old_temp>30) close the blint 1/4
close the blint 4/4 close the blint
4/4 YES
NO
YES NO YES
NO
NO
if(old_light>=0 &&
old_light>50 &&
old_light>=light && light>
old_light)
if(old_temp>20
&&| old_temp
<30)
if(old_temp>10
&& temp<20) close the blint
4/4
if(old_temp>30) close the blint 4/4
close the blint 4/4
close the blint 4/4
YES NO
YES
NO NO
YES
YES
if(old_light>100 &&
old_light<=150 &&
old_light>=light && light>
old_light)
if(old_temp>20
&&| old_temp
<30)
if(old_temp>10
&& temp<20) close the blint
1/4
if(old_temp>30)
close the blint 3/4
close the blint 4/4
close the blint 4/4
YES YES
NO
YES NO YES
NO
YES if(old_light>150 &&
old_light<=200 &&
old_light>=light && light>
old_light)
if(old_temp>10
&& temp<20)
YES close the blint
4/4 close the blint
3/4
NO
YES NO
close the blint 2/4 YES
NO close the blint
4/4
YES
if(old_temp>20
&& old_temp
<30)
if(old_temp>30)
if(old_light>200 &&
old_light<=255 &&
old_light>=light && light>
old_light)
YES
if(old_temp>20
&& old_temp
<30)
if(old_temp>10
&& temp<20) close the blint
4/4
if(old_temp>30) close the blint 1/4
close the blint 4/4 close the blint
4/4 YES
NO
YES NO YES
NO NO
NO
NO
113 ΑΤΣΟΜΑΣΟ ΚΙΑΜΑ ΠΑΡΑΘΤΡΟΤ
if(light<=200 ||
light>150)
if(old_light>200 &&
old_light<=255 &&
old_light>=light && light>
old_light)
YES
if(old_temp>20
&& old_temp
<30)
if(old_temp>10
&& temp<20) close the blint
4/4
if(old_temp>30) close the blint 1/4
close the blint 4/4 close the blint
4/4 YES
NO
YES NO YES
NO
if(old_light<=100 &&
old_light>50 &&
old_light>=light && light>
old_light)
if(old_temp>20
&&| old_temp
<30)
if(old_temp>10
&& temp<20) close the blint
4/4
if(old_temp>30) close the blint 4/4
close the blint 4/4
close the blint 4/4
YES NO
YES
NO NO
YES
YES
NO NO
if(old_light>=0 &&
old_light<=50 &&
old_light>=light && light>
old_light)
if(old_temp>20
&&| old_temp
<30)
if(old_temp>10
&& temp<20) close the blint
4/4
if(old_temp>30)
close the blint 4/4
close the blint 4/4
close the blint 4/4
YES YES
NO
YES NO YES
NO
if(old_light>50 &&
old_light<=100 &&
old_light>=light && light>
old_light)
if(old_temp>10
&& temp<20)
YES open the blint
4/4 open the blint
4/4
NO
YES NO
open the blint 4/4 YES
NO open the blint
4/4
YES
if(old_temp>20
&& old_temp
<30)
if(old_temp>30)
NO NO
YES
114 ΑΤΣΟΜΑΣΟ ΚΙΑΜΑ ΠΑΡΑΘΤΡΟΤ
if(old_light>100 &&
old_light<=150 &&
old_light>=light && light>
old_light)
if(old_temp>20
&&| old_temp
<30)
if(old_temp>10
&& temp<20) open the blint
1/4
if(old_temp>30)
open the blint 1/4
open the blint 4/4
open the blint 3/4
YES YES
NO
YES NO YES
NO
if(old_light>=0 &&
old_light<=50 &&
old_light>=light && light>
old_light)
if(old_temp>20
&&| old_temp
<30)
if(old_temp>10
&& temp<20) open the blint
4/4
if(old_temp>30)
open the blint 4/4
open the blint 4/4
open the blint 4/4
YES YES
NO
YES NO YES
NO
NO NO
if(old_light>200 &&
old_light<=255 &&
old_light>=light && light>
old_light)
YES
if(old_temp>20
&& old_temp
<30)
if(old_temp>10
&& temp<20) open the blint
2/4
if(old_temp>30) open the blint 3/4
open the blint 4/4 open the blint
4/4 YES
NO
YES NO YES
NO
if(light<=255 ||
light>200)
if(old_light>50 &&
old_light<=100 &&
old_light>=light && light>
old_light)
if(old_temp>10
&& temp<20)
YES open the blint
4/4 open the blint
4/4
NO
YES NO
open the blint 4/4 YES
NO open the blint
4/4
YES
if(old_temp>20
&& old_temp
<30)
if(old_temp>30)
YES
115 ΑΤΣΟΜΑΣΟ ΚΙΑΜΑ ΠΑΡΑΘΤΡΟΤ
if(old_light>100 &&
old_light<=150 &&
old_light>=light && light>
old_light)
if(old_temp>20
&&| old_temp
<30)
if(old_temp>10
&& temp<20) open the blint
1/4
if(old_temp>30)
open the blint 1/4
open the blint 4/4
open the blint 3/4
YES YES
NO
YES NO YES
NO
if(old_light>=0 &&
old_light<=50 &&
old_light>=light && light>
old_light)
if(old_temp>20
&&| old_temp
<30)
if(old_temp>10
&& temp<20) open the blint
4/4
if(old_temp>30)
open the blint 4/4
open the blint 4/4
open the blint 4/4
YES YES
NO
YES NO YES
NO NO
NO
if(old_light>150 &&
old_light<=200 &&
old_light>=light && light>
old_light)
if(old_temp>10
&& temp<20)
YES open the blint
1/4 open the blint
1/4
NO
YES NO
open the blint 2/4 YES
NO open the blint
4/4
YES
if(old_temp>20
&& old_temp
<30)
if(old_temp>30)
116 ΑΤΣΟΜΑΣΟ ΚΙΑΜΑ ΠΑΡΑΘΤΡΟΤ
117 ΑΤΣΟΜΑΣΟ ΚΙΑΜΑ ΠΑΡΑΘΤΡΟΤ
118 ΑΤΣΟΜΑΣΟ ΚΙΑΜΑ ΠΑΡΑΘΤΡΟΤ
119 ΑΤΣΟΜΑΣΟ ΚΙΑΜΑ ΠΑΡΑΘΤΡΟΤ
120 ΑΤΣΟΜΑΣΟ ΚΙΑΜΑ ΠΑΡΑΘΤΡΟΤ
121 ΑΤΣΟΜΑΣΟ ΚΙΑΜΑ ΠΑΡΑΘΤΡΟΤ
122 ΑΤΣΟΜΑΣΟ ΚΙΑΜΑ ΠΑΡΑΘΤΡΟΤ
123 ΑΤΣΟΜΑΣΟ ΚΙΑΜΑ ΠΑΡΑΘΤΡΟΤ
124 ΑΤΣΟΜΑΣΟ ΚΙΑΜΑ ΠΑΡΑΘΤΡΟΤ
125 ΑΤΣΟΜΑΣΟ ΚΙΑΜΑ ΠΑΡΑΘΤΡΟΤ
126 ΑΤΣΟΜΑΣΟ ΚΙΑΜΑ ΠΑΡΑΘΤΡΟΤ
127 ΑΤΣΟΜΑΣΟ ΚΙΑΜΑ ΠΑΡΑΘΤΡΟΤ
if(light<=255 ||
light>200)
if(old_light>50 &&
old_light<=100 &&
old_light>=light && light>
old_light)
if(old_temp>10
&& temp<20)
YES open the blint
4/4 open the blint
4/4
NO
YES NO
open the blint 4/4 YES
NO open the blint
4/4
YES
if(old_temp>20
&& old_temp
<30)
if(old_temp>30)
YES
if(old_light>100 &&
old_light<=150 &&
old_light>=light && light>
old_light)
if(old_temp>20
&&| old_temp
<30)
if(old_temp>10
&& temp<20) open the blint
1/4
if(old_temp>30)
open the blint 1/4
open the blint 4/4
open the blint 3/4
YES YES
NO
YES NO YES
NO NO
if(old_light>=0 &&
old_light<=50 &&
old_light>=light && light>
old_light)
if(old_temp>20
&&| old_temp
<30)
if(old_temp>10
&& temp<20) open the blint
4/4
if(old_temp>30)
open the blint 4/4
open the blint 4/4
open the blint 4/4
YES YES
NO
YES NO YES
NO NO
NO
if(old_light>150 &&
old_light<=200 &&
old_light>=light && light>
old_light)
if(old_temp>10
&& temp<20)
YES open the blint
1/4 open the blint
1/4
NO
YES NO
open the blint 2/4 YES
NO open the blint
4/4
YES
if(old_temp>20
&& old_temp
<30)
if(old_temp>30)
128 ΑΤΣΟΜΑΣΟ ΚΙΑΜΑ ΠΑΡΑΘΤΡΟΤ
129 ΑΤΣΟΜΑΣΟ ΚΙΑΜΑ ΠΑΡΑΘΤΡΟΤ
130 ΑΤΣΟΜΑΣΟ ΚΙΑΜΑ ΠΑΡΑΘΤΡΟΤ
131 ΑΤΣΟΜΑΣΟ ΚΙΑΜΑ ΠΑΡΑΘΤΡΟΤ
132 ΑΤΣΟΜΑΣΟ ΚΙΑΜΑ ΠΑΡΑΘΤΡΟΤ