Things used in this project

Hardware components:
Intel.web.720.405
Intel Edison
×1
Grove 20starter 20kit 20plus 20  20intel c2 ae 20iot2 01
SeeedStudio Grove starter kit plus for Intel Edison
×1
10167 01
DHT22 Temperature Sensor
×1
Lmp91000
Texas Instruments Gas / Chemical Sensors
×1
13043 04 1
SparkFun Block for Intel® Edison - Dual H-Bridge
×1
Software apps and online services:
Ha 2up iot
Amazon Web Services AWS IoT
Hackster
ThingSpeak API
Hand tools and fabrication machines:
09507 01
Soldering iron (generic)

Schematics

Fresh Air Schematics

Code

Fresh Air v1 (Arduino Code)Arduino
/*  Project - freshair
    Team - Edison
    Hackster AWS Intel hackathon, NYC
    December 11, 2016
*/

/*  Connections:
    TH02 sensor - I2C
    Light sensor - A0
*/

#include <TH02_dev.h>
#include "Arduino.h"
#include "Wire.h"

#define  LightSensor A0

void setup() {
  Serial.begin(9600);        // start serial for output

  Serial.println("TH02 sensor initializing ...");
  /* Power up,delay 150ms,until voltage is stable */
  delay(150);
  /* Reset TH02 */
  TH02.begin();
  delay(100);
  /* Determine TH02_dev is available or not */
  Serial.println("TH02 is available");

}

void loop()
{
  float temper = TH02.ReadTemperature();
  Serial.print("Temperature: ");
  Serial.print(temper);
  Serial.print("C");
  Serial.println("\t");

  float humidity = TH02.ReadHumidity();
  Serial.print("Humidity: ");
  Serial.print(humidity);
  Serial.print("%");
  Serial.println("\t");

  // read the input on analog pin 0:
  int sensorValue = analogRead(LightSensor);
  // print out the value you read:
  Serial.print("Light: ");
  Serial.print(sensorValue);
  Serial.println("\t");
  Serial.println();
  // delay in between reads for stability
  delay(1000);        // delay in between reads for stability

}
Fresh Air CodeArduino
/*  Project - freshair
    Team - Edison
    Hackster AWS Intel hackathon, NYC
    December 11, 2016
*/

/*  Connections:
    TH02 sensor - I2C
    Light sensor - A0
    CO Sensor - A1
    CO2 Sensor - A2
*/

#include <TH02_dev.h>
#include "Arduino.h"
#include "Wire.h"

#define  LightSensor A0
#define  COSensor A1
#define  CO2Sensor A2

void setup() {
  Serial.begin(9600);        // start serial for output

  Serial.println("TH02 sensor initializing ...");
  /* Power up,delay 150ms,until voltage is stable */
  delay(150);
  /* Reset TH02 */
  TH02.begin();
  delay(100);
  /* Determine TH02_dev is available or not */
  Serial.println("TH02 is available");

}

void loop()
{
  float temper = TH02.ReadTemperature();
  Serial.print("Temperature: ");
  Serial.print(temper);
  Serial.print("C");
  Serial.println("\t");

  float humidity = TH02.ReadHumidity();
  Serial.print("Humidity: ");
  Serial.print(humidity);
  Serial.print("%");
  Serial.println("\t");

  // read the input on analog pin 0:
  int sensorValue0 = analogRead(LightSensor);
  // print out the value you read:
  Serial.print("Light Level: ");
  Serial.print(sensorValue0);
  Serial.println("\t");
  Serial.println();

  // read the input on analog pin 1:
  int sensorValue1 = analogRead(COSensor);
  // print out the value you read:
  Serial.print("CO Level: ");
  Serial.print(sensorValue1);
  Serial.print("\t");

  // read the input on analog pin 2:
  int sensorValue2 = analogRead(CO2Sensor);
  // print out the value you read:
  Serial.print("CO2 Level: ");
  Serial.print(sensorValue2);
  Serial.println("\t");

  // delay in between reads for stability
  delay(1000);        // delay in between reads for stability

}

Credits

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Similar projects you might like

Seagulls Buses
Intermediate
  • 76
  • 3

With the Seagulls Buses Alexa skill, get the live timetable and never miss your Brighton and Hove bus again!

OmegaJar
Intermediate
  • 209
  • 4

Full instructions

An Internet Connected Smart Jar powered by Amazon DRS!!

Dash Replenish using Amazon DRS and Sensor
Intermediate
  • 270
  • 4

Full instructions

This is guide that how we can Replenish our items using Amazon's Dash Replenish Service and using Ultrasonic Distance Meter.

Calliope Heart Rate Sensor
Intermediate
  • 149
  • 4

Full instructions

Use a Calliope Mini and a Grove Heart Rate Sensor to visualize the heartbeats via the LED screen and calculate the BPM (beats per minute).

Portable Monitor for Home Supplies
Intermediate
  • 108
  • 2

Full instructions

Monitor the levels of your essential supplies and notify or order them automatically when they are low.

LED Sound Meter using Wio-Link and Node-Red
Intermediate
  • 64
  • 3

Protip

SeeedStudio Grove sound sensor and LED strip attached to Wio-Link being driven by a Node-Red flow

ProjectsCommunitiesContestsLiveJobsBetaFree StoreBlogAdd projectSign up / Login
Respect project