The final year project presentation was being held at Dewan Gemilang from 9:00 a.m to 12:00 p.m. I was being assessed by Sir Miqdad and Sir Azuki. There are several questions that have been address.
Development of Home Automation Controller
Monday 16 June 2014
WEEK 26 - LAST TEST HOUSE
This is program for setting IP address for router connected with ethernet shield arduino. at the IP address we need to setting follow by what the router we used. Every router has a different IP address and the IP address also follow by region of state. The "byte mac[]" instruction is use for set the ethernet shield id to connect the internet. This use for different id for make sure there no ethernet shield has same id. it can be see when we buy it.
This is the program
that show how the project should be when the button at the server been switch or selected. When the switch the on button #1 , the LED at garage will on
and then when switch the off button #1
the LED off. When the switch the on button #2 , the LED at room will on
and then when switch the off button #2
the LED off. When the switch the on button #3 , the LED at living room
will on and then when switch the off
button #3 the LED off. Once the switch
the on button #4 , the all LED
will on and then when switch the
off button #4 the all LED off.
WEEK 25 - SAFE HOUSE DESIGN TEST
After the “DANGER” situation the lcd is show “SAFE
HOUSE”. When the gas in not detected the lcd show “SAFE HOUSE” as long as no
gas is detected. At this time the alarm
and blinking red led had been stop. No
action from both component. At this time also the fan is in off condition,
because no gas to evacuate. The blue led is on for show the house is safe.
WEEK 24 - TEST LED CIRCUIT
Sunday 15 June 2014
WEEK 23 - TEST LCD CIRCUIT
This time is for test response of lcd 16x2 with the gas sensor. The situation is when the gas detect the
LPG gas, the red led on at the same time with the alarm triger and the lcd
show “DANGER”. The red led on and off or
blinking in 10 time in 10 sec this it the same time with the lcd and alarm. At this time also the all led has off and the
fan side of led is on. At this time the led red,blue and all led is on this
happen because the time between the “SAFE HOUSE” and “DANGER”. Actually the led
is all off and the only on is red only in blinking condition. This has been set
for safety because in the real situation when get the alarm in house all
equipment electrical is shutdown, so no short circuit or equipment can be use. In this condition also the fan is on, its represent
the evacuation fan like in the tunnel fan evacuation so the gas is inhaled out.
After the “DANGER” situation the lcd is show “SAFE
HOUSE”. When the gas in not detected the lcd show “SAFE HOUSE” as long as no
gas is detected. At this time the alarm
and blinking red led had been stop. No
action from both component. At this time also the fan is in off condition,
because no gas to evacuate. The blue led is on for show the house is safe.
WEEK 22 - SOLDERING AND TESTING GAS SENSOR
Lighter
gas is the easy way to test mq2 gas
sensor because the lighter is contain gas LPG. The gas sensor is just detect LPG, i-butane, methane, alcohol, Hydrogen.
For test the sensor, the lighter is need to put near to the gas because it late
to detect gas. The distance around 5 cm, this because the resistance is high.
When the resistance is set to low resistance, the gas sensor is more fast
respon. This mean the resistance value is
lower the more fast rspone from sensor.
WEEK 21 - GAS PROGRAM
// ==============================
int readSensor(int PIN, int SAMPLES) {
// The process of counting detector LPG sensors on analog port 0
int avgValue;
int val[SAMPLES];
int runningTotal = 0;
for(int x = 0; x < SAMPLES; x++){
val[x] = analogRead(PIN);
runningTotal = runningTotal + val[x];
delay(interval/SAMPLES);
}
avgValue = runningTotal/SAMPLES;
return avgValue;
}
// ==============================
void safe(){
// Commands display the current conditions there is no leakage of LPG gas
lcd.setCursor(6, 1);
lcd.print("SAFE HOUSE");
delay(500);
}
// ==============================
void danger(){
// Display commands when there is a gas leak detection LPG
lcd.setCursor(5, 1);
lcd.print("DANGER");
delay(500);
}
// ==============================
This program is for test the gas sensor.
int readSensor(int PIN, int SAMPLES) {
// The process of counting detector LPG sensors on analog port 0
int avgValue;
int val[SAMPLES];
int runningTotal = 0;
for(int x = 0; x < SAMPLES; x++){
val[x] = analogRead(PIN);
runningTotal = runningTotal + val[x];
delay(interval/SAMPLES);
}
avgValue = runningTotal/SAMPLES;
return avgValue;
}
// ==============================
void safe(){
// Commands display the current conditions there is no leakage of LPG gas
lcd.setCursor(6, 1);
lcd.print("SAFE HOUSE");
delay(500);
}
// ==============================
void danger(){
// Display commands when there is a gas leak detection LPG
lcd.setCursor(5, 1);
lcd.print("DANGER");
delay(500);
}
// ==============================
This program is for test the gas sensor.
Subscribe to:
Posts (Atom)