Project showcase

Hazardous Gas Detector with LED Indication © GPL3+

Know what you breathe. A handy and wearable hazardous gas detection system with LED indication.

  • 1,871 views
  • 0 comments
  • 7 respects

Components and supplies

Necessary tools and machines

09507 01
Soldering iron (generic)

Apps and online services

Arduino IDE
8ztngd 9
circuito.io

About this project

It is important to know whether the gas coming out is hazardous or not. So I built this small handy or wearable sensor to know about hazardous gases. It gives LED indication on detection of hazardous gas coming.

Powering Gemma

Connect battery positive and negative terminal to Gemma BAT+ and BAT- respectively.

Connecting MQ9 Sensor

  • Connect MQ9 GND to GND
  • Connect MQ9 5V to %v step up converter.
  • Connect MQ9 Ground to Gemma D2 Via 100 ohm resistor.
  • Connect MQ9 GND to MQ9 D0 via 100 ohm resistor.

Connecting LED

  • Connect LED GND to GND via 100 ohm resistor.
  • Connect LED Vin to Gemma D0.

Code

Untitled fileC/C++
// Include Libraries
#include "Arduino.h"


// Pin Definitions
#define LEDRed_PIN_VIN	0
#define MQ9_PIN_AOUT	2



// Setup the essentials for your circuit to work. It runs first every time your circuit is powered with electricity.
void setup() 
{
    // Setup Serial which is useful for debugging
    // Use the Serial Monitor to view printed messages
    Serial.begin(9600);
    while (!Serial) ; // wait for serial port to connect. Needed for native USB
    Serial.println("start");
    
}

// Main logic of your circuit. It defines the interaction between the components you selected. After setup, it runs over and over again, in an eternal loop.
void loop() 
{
    
    
    // You have chosen a controller that doesn't have code yet.
    // You may request a similar combination but with Arduino Uno and try to use the Arduino Uno libraries & code - some may work, but we can't guarantee it. 
    // Make sure your Arduino IDE supports the chosen controller. If not visit http://playground.arduino.cc/Main/BoardsManagerSupport
    
}

Schematics

capturesm_F48faIO7V8.JPG
Capturesm f48faio7v8

Comments

Similar projects you might like

CPU and RAM Usage Monitor (Windows & Linux)

Project showcase by thesahilsaluja

  • 4,881 views
  • 17 comments
  • 14 respects

TFT Graphing: Live History Graphs

Project tutorial by Andrei Florian

  • 942 views
  • 3 comments
  • 12 respects

AWS - Arduino Weather Station

Project tutorial by GilettaStefano

  • 7,339 views
  • 11 comments
  • 27 respects

Arduino Sunflower: An Electronic Sun-Dancer

Project tutorial by SURYATEJA

  • 3,831 views
  • 2 comments
  • 12 respects

Backpack Alarm

Project tutorial by Tomi Chen

  • 3,182 views
  • 12 comments
  • 31 respects

HUD Alarm Clock

Project in progress by Chukwuemeka Ike

  • 200 views
  • 0 comments
  • 1 respect
Add projectSign up / Login