The Design of The Monitoring Tools Of Clean Air Condition And Dangerous Gas CO , CO 2 CH 4 In Chemical Laboratory By Using Fuzzy Logic Based On Microcontroller

There are many phenomena that human are exposed to toxins from certain types such as of CO2, CO2 and CH4 gases. The device used to detect large amounts of CO, CO2, and CH4 gas in air in enclosed spaces using MQ 135 gas sensors of different types based on the three sensitivity of the Gas. The results of testing the use of sensors MQ 135 on the gas content of CO, CO2 and CH4 received by the sensor is still in the form of ppm based on the maximum ppm detection range of each sensor. Active sensor detects CO 120 ppm gas, CO2 1600 ppm and CH4 1ppm "standby 1" air condition with intermediate rotary fan. Active sensor detects CO 30 ppm gas, CO2 490 ppm and CH4 7 ppm "Standby 2" with low rotating fan output. Fuzzy rulebase logic for motor speed when gas detection sensor CO, CO2, and CH4 output controls the motion speed of the fan blower. Active sensors detect CO 15 ppm, CO2 320 ppm and CH4 45 ppm "Danger" air condition with high fan spin fan. At the gas level of CO 15 ppm, CO2 390 ppm and CH4 3 ppm detect "normal" AC sensor with fan output stop spinning.


Introduction
Currently, a major concern of scientists is global warming, largely due to huge emissions of carbon dioxide (CO2).Considered as one of the main greenhouse gases inducing a warming climate, CO2 concentration in the atmosphere is under special scrutiny of many weather services in the world.The program involves capturing samples of atmospheric air at the Assekrem station twice a week, using 2 special bottles of 1.5 litres.These bottles are then sent to the NOAA laboratory (Boulder-USA) to determine concentrations of major greenhouse gases: CO 2 in ppm, CH 4 and CO in ppm.[1] In human life can not be separated from the Gas carbon monoxide Gas CO, Gas Carbon dioxide CO 2 , and Gas Methane is CH 4 hydrocarbons.The odorless CO gas is very dangerous, Methane (Methane) is the simplest hydrocarbon in the form of gas.Pure methane is odorless, colorless, extremely flammable, asphyxian, non toxic and non corrosive.Burning one molecule of methane with oxygen will release one molecule of CO 2 (carbon dioxide).[2] At certain depths below the earth's surface there are dangerous gases such as Carbon Dioxide (CO 2 ) and Methane gas (CH 4 ).While carbon monoxide gas (CO) can be produced from leakage or emissions of fuel used as a source of propulsion power from the generator set and room temperature.Third gas is very dangerous if accumulate in the room without air circulation is not good.Hazardous gases that accumulate will often be inhaled by the workers who are in the room.[4] Health problems will arise if inhaled methane gas in high concentrations.The symptoms are oxygen deprivation, rapid breathing, increased pulse rate, decreased muscle coordination, increased emotion, nausea, vomiting, loss of consciousness, respiratory failure, and death.[4] To solve the above problem, it is necessary to design the toxic detector of toxic monoxide (CO) gas, Carbon Monoxide (CO 2 ) and Gas methane (CH 4 ) gas as human safety from poisoning.This research was built for gas leak detection tool CO, CO 2 , and CH 4 which work using MQ-7 Sensor.The MQ-7 sensor is a gas sensor that can detect vehicle exhaust gases in air carbon monoxide (CO) gas.If the CO gas is detected, the MQ-7 sensor will provide input (insert) to the Arduino output of the microcontroller which has three types of outputs, Namely LCD display (Liquid Crystal Display), Motor Fan, and buzzer.LCD function information Gas CO, CO 2 and CH 4 in ppm quantities.The LCD is used to provide information on the occurrence of gas leak indoors when the sensor reads CO 2 , and CH 4 through microcontroller.Exhaust Fan is used to neutralize air conditions in the room according to sensor readings against harmful gas gases in ppm.Fan motor rotation works based on fuzzy logic during low, middle, and high conditions.The larger the hazardous gas gases detected by the sensor in ppm size the microcontroller will send the information to the fan fan circuit with high conditions, as well as the low conditions the microcontroller will send the information to the fan at low speed.The fan driver is used to neutralize the condition of the room by removing air inside the room when it detects CO, CO 2 and CH 4 gas in the laboratory and workshop room in safe, standby, alert and danger conditions.

Experimental details
Stages done in this research is by the method of planning and design.Here is the design of CO gas detector using ATMEGA 8535.[4] This CO gas leak detector will work with the MQ-7 sensor and MQ 135 is a gas sensor that detects exhaust gases in the air of Carbon Monoxide (CO), Carbon Dioxide (CO 2 ) and Methane (CH 4 ) gas.If the CO, CO 2 and CH 4 gases have been detected then the MQ-7 sensor will give input (insert) to the microcontroller, then from the microcontroller has four outputs, LCD (Liquid Crystal Display), Driver Motor fan, and buzzer.LCD is used to display information readings of sensor detectors CO, CO 2 , and CH 4 .Driver The fan motor is used to drive the fan blades when it is detected CO, CO 2 and CH 4 gases inside the room during Safe, Standby1, Standby and danger so that space will be neutralized toxic gas content in ppm.LCD gives message information to the user that there is a toxic Gas leak.
The driver acts as an additional link to connect between the microcontroller with the buzzer and the Exhaust Fan.Explanation of the flow diagram of the CO gas detector in the laboratory room Figure 1 The flow and work on the flow diagram is first to initialize the serial and then seen the input of the three gas sensors CO, CO 2 , and CH 4 which will appear in gas levels.Then the sensor will work based on the smoke fumes detected by the MQ-7 and MQ-135 sensors.When the CO, CO 2 and CH 4 gases Active sensors detect CO 120 ppm, CO 2 1600 ppm and CH 4 1ppm air condition "standby 1" with medium spinning exhaust fan output.In active sensor detect CO 30 ppm gas, CO 2 490 ppm and CH 4 7 ppm "Standby 2" air condition with low rotating exhaust fan output.While the active sensor detects CO gas 15 ppm, CO 2 320 ppm and CH 4 45 ppm "Danger" air condition with High Spin Exhaust fan output.At the gas level of CO 15 ppm, CO 2 390 ppm and CH 4 3 ppm detected "normal" air conditioner sensors with the exhaust fan output stop spinning.To detect CO gas of 5 volt DC voltage sensor with ADC 0 -1023 range for ADC value.For the detection of CO gas it is determined that the maximum value of the sensor to detect CO gas is connected to the microcontroller ADC at port D by 30 ppm [16].From these provisions, the CO membership function for membership function is 0 -30 ppm.So in order to scale the membership function accordingly ie 30 ppm then the ADC value must be divided by 34 which can be searched with the following equation: [5] ADC divider value = ADC Value…… [5] CO (ppm) Information : CO (ppm) = Levels maximum desired CO gas ADC value = 1023 So, can we enter the value ADC divider value = 1023 / (30 ppm) ADC divider value = 34 The divisor value of ADC = 343.2Metode Fuzzy Rule evaluation process In this process the specified rules will be applied.Or it could be said function is to find the value of the fuzzy output of fuzzy input.Rule made to control the work of the sensor in detecting sensor in order to generate value in accordance with the expected output.The process is a fuzzy input of the process fuzzyfication included in a rule that has been created to serve fuzzy output.There are several methods of decision making in fuzzy logic Mamdani among which methods Figure 2. [2].The following picture:

Fig. 2. Decision Methods Mamdani
Implications functions used in decision-making with Mamdani method by using MIN and in doing composition using MAX.The composition method is often called MAX-MIN.decision with Mamdani method.Here is a ten-rule evaluation that can be determined: Table 1 The result of the room condition test on the CO gas, CO 2 and CH 4 gases in the Graph using Fuzzy Logic Rulebase as described below: 1. High CO

Conclusion
In conclusion, this study shows that the test results of the system when the active sensor detects CO 120 ppm gas, CO 2 1600 ppm and CH 4 1ppm air condition "standby 1" with a medium spinning exhaust fan output.In active sensor detect CO 30 ppm gas, CO 2 490 ppm and CH 4 7 ppm "Standby 2" air condition with low rotating exhaust fan output.While the active sensor detects CO gas 15 ppm, CO 2 320 ppm and CH 4 45 ppm "Danger" air condition with High Spin Exhaust fan output.At the gas level of CO 15 ppm, CO2 390 ppm and CH 4 3 ppm detected "normal" air conditioner sensors with the exhaust fan output stop spinning.

Table 1 .
. Rule Evaluation The following is stage of detection 1.If CO is low and CO 2 is low and CH 4 is low then condition is normal, blower OFF. 2. If CO is low and CO 2 is medium and CH 4 is low then blower is SPD_1.3. If CO is medium and CO 2 is low and CH 4 /CH 4 is low then blower is SPD_1.4. If CO low and CO2 is low and CH 4 /CH 4 medium then blower is SPD_1. 5.If CO is medium and CO 2 medium and CH 4 /CH 4 is high then blower is SPD_2.6.If CO is medium and CO 2 high and CH 4 /CH 4 is medium then blower is SPD_2.7. If CO high and CO 2 is medium and CH 4 /CH 4 is medium then blower is SPD_2.8.If CO is not low and CO 2 high and CH 4 /CH 4 is high then blower is SPD_3.9.If CO is high and CO 2 is not low and CH 4 /CH 4 is high then blower is SPD_3.10.If CO is high and CO 2 is high and CH 4 /CH 4 is not low then blower is SPD_3.Based on tests conducted with test samples consisting of sources of pollutants ie gas originating from clean air, vehicle fumes, livestock manure and cigarette smoke for CO and CO 2 sensor testing, and gases derived from animal waste to compute the CH 4 sensor response, the following test for each input response.

1.4 90.4 71.8 23
Condition of CO 2 med, CH 4 Low and CO med standby output 2 2 , CH 4 Low and CO High Standby conditionsFig 3. Measurement Results Gas CO, CO 2 and CH 4 High Standby conditions 2.