Skip to main content

Gas Leak Monitoring

Gas Leak Detection Project with GrovePi  and Hologram Nova



 This project uses Grove Gas Sensor (MQ2) for detecting gas leakage and it can also send notifications using cellular network.  It can be used for detecting the following:


  •   Smoke
  •   Propane
  •   Carbon Monoxide
  •   Liquified Petroleum Gas
  •   H2
  •   Methane

  

Things used in this project:

Hardware components:

Software Apps:

  • GrovePi 
  • Python
  • Hologram CLI


Gas sensor module from Grove system provides  the ability to detect if there is any gas leakage of combustible gas or smoke. The measurements can be taken as soon as possible due to its sensitivity and fast response time.  


GrovePi Zero is a HAT from Dexter Industries  that allows Grove Gas Sensor (MQ2) to connect to Raspberry Pi zero with out needing soldering or breadboards. One can plug in the Grove water sensor start programming.

Grove sensor sensor works with analog I/O pins and it can be connected to A0 port Grove Pi Zero as shown below.
The installation instructions for Grove Pi zero and Hologram SIM are provided here .



The following program (gas_sensor_led.py) checks the gas sensor output sets the text on LCD.

First  a cellular connection is established using the credentials that uses a devicekey obtained from Hologram dashboard.


import time
import grovepi
from Hologram.HologramCloud import HologramCloud

# Provide Hologram device key
credentials = {'devicekey': 'xxxxxxx'}
hologram = HologramCloud(credentials, network='cellular')


# Connect the Grove Gas Sensor to analog port A0
gas_sensor = 0

grovepi.pinMode(gas_sensor,"INPUT")

while True:
    try:
        # Get sensor value
        sensor_value = grovepi.analogRead(gas_sensor)
  
      # Calculate gas density - large value means more dense gas
        density = (float)(sensor_value / 1024)

        if(sensor_value > 825):
         response_code = hologram.sendMessage("High Gas Sensor Value" +str(sensor_value))
        time.sleep(10)

    except IOError:


After execution of the above program, the status is displayed on the LCD.
 $ sudo python gas_sensor_led.py


After reading the analog input from port A0 it  displays the sensor value on the LCD and it also sends notification using cellular network if the sensor value exceeds the predefined threshold value.

Comments

  1. Coin Casino - CasinoWow
    At coin casino, the only thing you will ever be surprised about หารายได้เสริม is how it's 바카라 designed. Players can play a variety of game types 인카지노 such as video poker,

    ReplyDelete
  2. Really excellent information regarding Gas Leak Detector with sensor. Thanks for sharing.

    ReplyDelete

Post a Comment

Popular posts from this blog

Water Leak Detection Notifications

Water Leak Detection Project with GrovePi  and Hologram Nova This project uses the Grove water sensor that can detect water leaks, spills, floods, and rain. It also can send notifications using cellular network. Things used in this project: Hardware components: Raspberry Pi Zero W or WH GrovePi Zero  Grove Water Sensor Grove LCD RGB Backlight Hologram SIM Software Apps: GrovePi  Python Hologram CLI Water sensor module from Grove system provides  the ability to detect if there is any water leak by measuring conductivity. The water sensor traces have a weak pull-up resistor of 1 MΩ and it pulls the sensor trace value high until a drop of water shorts the sensor trace to the grounded trace. GrovePi Zero is a HAT from Dexter Industries   that allows Grove Water sensor to connect to Raspberry Pi zero with out needing soldering or breadboards. One can plug in the Grove water sensor start programming. Grove water sensor works with digital I/...

Temperature and Humidity Monitoring Notifications

Temperature and Humidity Monitoring Project with GrovePi and Hologram Nova A Temperature and Humidity Grove sensor is used in this project to measure relative humidity and temperature. It provides relative humidity measurement expressed as a percentage of the ration of moisture in the air to the maximum amount that can be held in the air at that temperature. The relative humidity changes with temperature as air becomes hotter and it holds more moisture. Things used in this project: Things used in this project: Hardware components: Raspberry Pi Zero  WH GrovePi Zero  Gove -Temperature and Humidity  Sensor Grove LCD RGB Backlight Hologram SIM Software Apps: GrovePi  Python Hologram CLI GrovePi Zero is a HAT from  Dexter Industries   that allows Grove PIR motion sensor to connect to Raspberry Pi zero with out needing soldering or breadboards. One can plug in the Grove water sensor start programming. Grove Temperature and Humid...

Raspberry Pi Setup for Voice Assistant Applications Using ChatGPT, Whisper API, gTTS and Pysstx3

  Raspberry Pi can be used for providing voice assistant capabilities by integrating with ChatGPT and Whisper APIs from OpenAI. This article shows how to set up the required libraries such as Chat GPT, Whisper API, Text-to-speech Pysttx3 etc., on Raspberry Pi for enabling voice  assistant  applications.   Hardware components Raspberry Pi Micro SD Card Power Supply USB Speaker USB Microphone Recommended for initial setup USB Mouse USB Keyboard HDMI Cable Monitor Software Apps: Python ChatGPT, Whisper, Speech Recognition, Pysttx3 libraries Raspberry pi operating system needs to be installed on a micro SD card before installing any ChatGPT based libraries. Raspberry Pi Imager running on another computer can be used to copy the operating system into the SD card.  Click on 'CHOOSE OS' button and select Raspberry Pi OS (64-bit) option and select 'WRITE' button to install the operating system on the SD card. After installing Raspberry pi os on SD card, it can be insert...