Monday 16 June 2014

WEEK 27 - FINAL YEAR PROJECT 2 PRESENTATION

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.




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




 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.

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.


WEEK 20 - LED CIRCUIT



This led circuit is for show the signal of alarm gas detected and as lamp. At  here has 5 led with different colour for each one, 2 led for alarm system and the others 3 for lamp. This function when the mq2 sensor detected gas  and the lcd show data. After that the alarm triger, at this time the led on. There has 2 led for alarm system, 1 red led for the alarm and means danger. The others 1 is blue led for show the house safe. 

WEEK 19 - BUZZER CIRCUIT


The buzzer is functionaly as a alarm. This function when the mq2 gas sensor detect the gas and the lcd show the signal and then the alarm will triger. As long as the gas is detectd. When the gas is not detect the gas shutdown. The pin that we use for buzzer is pin 9, this pin pulse width modulation(PWM).

WEEK 18 - LCD CIRCUIT


               This lcd circuit is use for show the signal if the MQ2 gas sensor detect leakage gas in the house. The pin that used is 2,3,4,5,11, and 12. This all have been set by arduino board for lcd usage circuit.

WEEK 17- CIRCUIT FOR GAS SENSOR



In this circuit, the connection for each pin has been selected for input and output.the reason we use a A1 as the pin is about the analog input that we set for MQ2 gas sensor. The 10k resistor in figure 3.8 that change with variable resistor 15K ohm.

WEEK 16 - ROUTER



The router is use for connection between ethernet shield and arduino to internet. The router decide for fyp is must can connect with modem. This because i dont have wifii and need to bring to anywhere the router for make it portable use.

WEEK 15- BUZZER



buzzer or beeper is an audio signalling device, which may be mechanicalelectromechanical, or piezoelectric. Typical uses of buzzers and beepers include alarm devicestimers and confirmation of user input such as a mouse click or keystroke. The price is around Rm 1.50 at Jalan Pasar, Kuala Lumpur.

WEEK 14- MQ2 GAS SENSOR


MQ2 gas sensor                                                                                    MQ2 holder

               Gas Sensor(MQ2) module is useful for gas leakage detecting(in home and industry). It can detect LPG, i-butane, methane, alcohol, Hydrogen, somke and so on. Based on its fast response time. measurements can be taken as soon as possible. Also the sensitivity can be adjusted by the potentiometer.

week 13- LCD 16x2


 
The lcd 16x2 has two type 1st is the background colour is green and the 2nd is blue.
For the green back light,the wording is show in black colour and for the blue the wording in white colour.
For me, better the wording in black colour so it can more easier to see then the white colour.

WEEK 12- COMPONENT FOR SYSTEM

 I suggest to use the arduino as main board or controller.













*picture from internet


The component added:

  • lcd 16x2
  • mq2 sensor gas detector
  • blower fan 5v
  •  led as the alarm
  • buzzer as an alarm

WEEK 11- ADD OF SYSTEM FOR CONTROLLER



                           I has think to adding some function for this house project. Which it, we can monitor or we can make alarm for safety house like we can put gas sensor and water spray or we can put fan blower for blow all smoke out from the house. 

 



WEEK 10- ETHERNET SHIELD


The Arduino Ethernet Shield connects your Arduino to the internet in mere minutes. Just plug this module onto your Arduino board, connect it to your network with an RJ45 cable (not included) and follow a few simple instructions to start controlling your world through the internet. As always with Arduino, every element of the platform – hardware, software and documentation – is freely available and open-source. This means you can learn exactly how it's made and use its design as the starting point for your own circuits. Hundreds of thousands of Arduino boards are already fueling people’s creativity all over the world, everyday.