Patel Darshil
Published © GPL3+

Hazardous Gas Detector with LED Indication

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

BeginnerShowcase (no instructions)30 minutes7,266
Hazardous Gas Detector with LED Indication

Things used in this project

Hardware components

Arduino Gemma
Arduino Gemma
×1
Step-Up Voltage Regulator - 5V
SparkFun Step-Up Voltage Regulator - 5V
×1
RFduino Battery Shield
RFduino Battery Shield
×1
SparkFun LED
×1
Breadboard (generic)
Breadboard (generic)
×1
MQ 9 Hazardous Gas Sensor
×1

Software apps and online services

Arduino IDE
circuito.io
circuito.io

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)

Story

Read more

Schematics

capturesm_F48faIO7V8.JPG

Code

Untitled file

C/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
    
}

Credits

Patel Darshil

Patel Darshil

29 projects • 162 followers
I am an Electronics Hobbyist pursuing my BE in Electronics and communication

Comments