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,110 views
  • 0 comments
  • 5 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.

Schematics

capturesm_F48faIO7V8.JPG
Capturesm f48faio7v8

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
    
}

Comments

Similar projects you might like

Development Board for AtTiny MCU

by Vincenzo G.

  • 124 views
  • 0 comments
  • 5 respects

The Magnetic Field and RGB Tester

Project tutorial by Kutluhan Aktar

  • 277 views
  • 0 comments
  • 5 respects

Version 2.0 Advanced Attendance System (Without Ethernet)

Project tutorial by GadgetProgrammers

  • 2,975 views
  • 5 comments
  • 44 respects

How To Use DS18B20 Water Proof Temperature Sensor

Project showcase by IoTBoys

  • 174 views
  • 0 comments
  • 3 respects

Ultrasonic Security System

Project tutorial by Krepak

  • 393 views
  • 0 comments
  • 6 respects
Add projectSign up / Login