What is Industry 4.0 and what are some of the technologies that are driving it? Industry 4.0 is a term that refers to the fourth industrial revolution, which is characterized by the integration of digital technologies, such as artificial intelligence, cloud computing, big data, the internet of things, robotics, and 3D printing, into the manufacturing sector. Industry 4.0 aims to create smart factories that are more efficient, flexible, and responsive to customer needs and market changes. Some of the technologies that are enabling Industry 4.0 are: - Artificial intelligence (AI) : AI is the ability of machines to perform tasks that normally require human intelligence, such as reasoning, learning, decision-making, and problem-solving. AI can help optimize production processes, improve product quality, reduce costs, and enhance customer satisfaction. - Cloud computing: Cloud computing is delivering computing services, such as servers, storage, databases, software, and analytics, over t
About Gas Sensor
The MQ series of gas sensors use a small heater inside with an electrochemical sensor. They are sensitive to a range of gasses and are used indoors at room temperature. The output is an analog signal and can be read with an analog input of the Arduino.
The MQ-2 Gas Sensor module is useful for gas leakage detection in homes and industries. It can detect LPG, i-butane, propane, methane, alcohol, hydrogen, and smoke.
Some modules have a built-in variable resistor to adjust the sensitivity of the sensor.
Note: The sensor becomes very hot after a while, don't touch it!
Required
- Arduino UNO
- Breadboard
- MQ-2 Gas sensor module
- Red, Green led 5mm
- 220 Ohm
- Buzzer
The connections are pretty easy:
- The MQ-5 sensor
- Pin-> Wiring to Arduino Uno
- A0-> Analog pins
- D0-> none
- GND-> GND
- VCC-> 5V
- other components
- Pin-> Wiring to Arduino Uno
- D13-> +ve of buzzer
- GND-> -ve of buzzer
- D12-> anode of red light
- D11-> anode of green light
- GND-> cathode of red light
- GND-> cathode of red light
Circuit Diagram
int red_led=12;//indicates gas
int green_led=11;//indicates normal
int buzz=13;//indicates gas
int smokeA0 = A5;//indicates sensor is connected to A5
int sensorThres=400;//The threshold value
int gas_avalue;
void setup()
{
pinMode(red_led,OUTPUT);//red led as output
pinMode(buzz,OUTPUT);// buzz as output
pinMode(green_led,OUTPUT);//green led as output
pinMode(smokeA0,INPUT);//sensor as input
Serial.begin(9600);//starts the code
}
void loop()//loops
{
gas_avalue=analogRead(smokeA0);//reads sensor value
if (gas_avalue > sensorThres)//sees if it reached threshold value
{
digitalWrite(red_led, HIGH);//turns on red led
digitalWrite(green_led, LOW);//turns off green led
digitalWrite( buzz, HIGH);//turns on buzzer
}
else//if it hasn't reached threshold value
{
digitalWrite(red_led, LOW);//turns red led off
digitalWrite(green_led, HIGH);//turn green led on
digitalWrite( buzz, LOW);//turns buzzer off
}
delay(100);//delay 0.1 sec
}
Comments
Post a Comment