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
386 00
DHT11 Temperature & Humidity Sensor
×1
Software apps and online services:
Ha 2up iot
Amazon Web Services AWS IoT
Hackster
ThingSpeak API

Schematics

Green Garden Schematics

Code

Green GardenArduino
/*  Project - greengarden
    Team - Amazing
    Hackster AWS Intel hackathon, NYC
    December 11, 2016
*/

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

#define  LightSensor A0
#define  MoistureSensor A1

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

  Serial.println("TH02 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 sensorValue1 = analogRead(LightSensor);
  // print out the value you read:
  Serial.print("Light Level: ");
  Serial.print(sensorValue1);
  Serial.print("\t");
  Serial.println();

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

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

}

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

LED Sound Meter using Wio-Link and Node-Red
Intermediate
  • 39
  • 2

Protip

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

Smart 3D printer Filament Counter (FilamentBot)
Intermediate
  • 1,866
  • 10

Full instructions

For 3D makers the worst thing is running out filament in the middle of a hours long print. This device will order for you when it is low!

A Valentine's day wreath that responds to you !
Intermediate
  • 80
  • 2

Full instructions

An IOT connected, interactive Valentine's day wreath which responds when people come close and keeps track of how many people came close !!

Magic Eyeball
Intermediate
  • 685
  • 7

Full instructions

It's like a magic eight ball. But with Alexa, and two eyeballs.

Interactive Mario Mushroom Block
Intermediate
  • 462
  • 2

Work in progress

Ever want to punch a Mario block and get a mushroom to come out? Me too, so I'm building it.

Spoil your Valentine with Particle + Spoil + AWS
Intermediate
  • 428
  • 3

Full instructions

Instead of giving a box of chocolates this Valentines Day, keep the chocolates. Lets give a smart self-gifting box instead!

ProjectsCommunitiesContestsLiveJobsBetaFree StoreBlogAdd projectSign up / Login
Respect project