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

Personal Healthcare Assistant PHA
Intermediate
  • 2,708
  • 119

Full instructions

Wearable for monitoring the health condition of patients who have suffered or are in risk of having a cardiac arrest.

Arduino Altair 8800 simulator
Intermediate
  • 6,750
  • 38

Full instructions

Ever wanted to play with the computer that sparked the personal computer age but don't have the cash to buy an Altair? Build your own!

Convo-Care: Alexa-Controlled E-Health App
Intermediate
  • 311
  • 9

Protip

Convo-Care provides a better e-health experience through a conversational UI.

OIKOS
Intermediate
  • 318
  • 8

Work in progress

OIKOS is a smart social-connected home for everyone. Our goal is to put the society in connection with homeless through IoT.

OIKOS

OIKOS NGO TEAM

Rocky Rover: Robotic Vision System PixyCam & Arduino 101
Intermediate
  • 5,164
  • 54

Full instructions

Using PixyCam and Intel Arduino 101 to drive this rover. Easy Robotic Vision system using PixyCam, rover reacts to the ball using Pan/Tilt.

Smart and Safe Cabinets
Intermediate
  • 510
  • 10

Full instructions

With 41% of poisonings happening to children under 4, more needs to be done. We use Amazon Alexa and Intel IoT to lock and unlock cabinets.

Smart and Safe Cabinets

Magic Smoke Replacement Team

ProjectsCommunitiesContestsLiveJobsFree StoreBlogAdd projectSign up / Login
Respect project