Salah UddinIoT-Bangladesh
Published © LGPL

Indoor Air Quality Monitoring System

An indoor air quality monitoring system for detecting toxic gases.

AdvancedFull instructions provided5 days7,902
Indoor Air Quality Monitoring System

Things used in this project

Hardware components

Arduino Yun Shield & Genuino Yun Shield
Arduino Yun Shield & Genuino Yun Shield
×1
Arduino Leonardo
Arduino Leonardo
×1
Arduino Yun
Arduino Yun
×1
Arduino MKR GSM 1400
Arduino MKR GSM 1400
×1
Arduino MKR WAN 1300
Arduino MKR WAN 1300
×1
Grove - Gas Sensor(MQ2)
Seeed Grove - Gas Sensor(MQ2)
×1
Grove - Air quality sensor v1.3
Seeed Grove - Air quality sensor v1.3
×1
Android device
Android device
×1

Software apps and online services

Thinger.io Platform
Thinger.io Platform

Story

Read more

Custom parts and enclosures

The git repository for this project

contains APK, source. and others.

Schematics

circuit diagram

circuit diagram
Gas bb hgfq9enbqa

Code

Arduino source code

Arduino
Arduino yun source
// Air Quality monitoring 
#include <YunClient.h>
#include <ThingerYun.h>

// The Thinger.io cloud
#define USERNAME "YOUR_USER_NAME"
#define DEVICE_ID "YOUR_DEVICE_ID"
#define DEVICE_CREDENTIAL "YOUR_CREDENTIAL"

ThingerYun thing(USERNAME, DEVICE_ID, DEVICE_CREDENTIAL);


void setup() {
  pinMode(A0, INPUT);
  pinMode(A1, INPUT);
  pinMode(A2, INPUT);
  pinMode(A3, INPUT);

  // initialize bridge
  Bridge.begin();


  // resource output example (i.e. reading a sensor value, a variable, etc)
  thing["LPG"] >> outputValue(analogRead(A0)); // optional 
  thing["CO2"] >> outputValue(analogRead(A1));
  thing["CO"] >> outputValue(analogRead(A2));
  thing["AIRQ"] >> outputValue(analogRead(A3));

  // more details at http://docs.thinger.io/arduino/
}

void loop() {
  thing.handle();
}

Credits

Salah Uddin

Salah Uddin

14 projects • 49 followers
Technology and IoT Hacker, Robot Killer and Drone lover.
IoT-Bangladesh

IoT-Bangladesh

4 projects • 7 followers

Comments

Add projectSign up / Login