Build a Gas Leak Alarm System
We will start by adding the components that you will need for this project to the workplane.
Now, find the Gas Sensor and the Piezo buzzer, and connect them to the Breadboard.
Continue by adding two LEDs to the Breadboard and changing their colors.
Proceed with wiring the circuit. First, you will connect the Arduino to the Breadboard.
Continue by wiring the Piezo buzzer.
Next, you will connect the LEDs.
Finally, you will wire the Gas Sensor.
How the Gas Sensor Works:
The Piezo Buzzer
Table 3.3: Sound frequencies
Gas Leak Alarm System Code
Run the program to test it.
Search the Internet for different types of gas hazardsthat could be detected with a gas sensor and analyze them. Present your findings below.
Consider how different tones from the Piezo buzzer could signal different alarms for different types of hazards. Present your ideas below.
Describe uses for the Piezo buzzer other than for an alarm system.
The gassensor hasmore pinsfor connecting to amicrocontrollerthanmost othersensors. Review the information that the gas sensor sends and explain why it differs from other sensors.
Change the flashing pa�ern of the LEDs so that, instead of each LED turning on and off twice for 500ms, only the green LED turns on and off, 3 times, for 1 second each time.
Change the beeping pa�ern of the Piezo so that, instead of beeping with a tone of 110Hz for 1 second, it beeps with a tone of 220Hz for 700ms.
Extend the circuit so it also outputs an additional warning when gas values are over 100.