Grove Indoor Environment Kit for Edison

Introduction

Grove Indoor Environment Kit for Edison makes it easy to create complete indoor environment applications with Intel Edison and Arduino Breakout Board. With the Base Shield V2, developer can plug up to 11 different Grove sensors & actuators quickly. We provide cool demo code which will be constantly updated, and it will be very easy to operate these sensors & actuators without any programming experience.

What’s included in the kit?


Installing Edison Arduino IDE


Refer to Intel Edison offical site: Edison Getting Started Guide

1.Download the Edison Arduino IDE.(Note: Select your OS.)

2.Navigate to the folder where you downloaded the .zip Edison Arduino IDE

3.Right click on the .7z file,highlight “7-zip”, and select “Extract to “arduino-…”

4.Click through the folder that was created until you see the IDE “arduino.exe” file.Double-click this file and this window should open.

Install required drivers


1.Download FTDI drivers

2.Right-click the .exe file you downloaded, which should be called “CDM…” and select “Run as administrator”.

3.Click “Extract”.

4.Click “Next”.

5.Click “Finish” when you see this screen.

6.Download Intel Edison Drivers to install the required RNDIS, CDC, and DFU drivers.

7.Double-click the .exe file to begin the install.

Hardware connection


Using 26AWG Grove Cable making the following connections:

Grove Modules Connected to
Temperature&Humidity Sensor I2C
Moisture Sensor A1
Light Sensor A2
UV Sensor A3
PIR Motion Sensor D7
Encoder D2
Button UART(D1)
LCD RGB Backlight I2C
Relay D5
Servo D6
Buzzer D4

Running Example


1.Open the web site: Grove_Indoor_Environment_Demo to download the whole project.

2.Click Tools > Serial Port and select the Com # that the Intel Edison is connected to

3.Click Sketch>Import Library…>Add Library and import the library downloaded at step 1

4.Click File>Examples> Grove_Indoor_Environment_Demo and select the demo Click upload icon

5.Open Serial Monitor, it will print the sensors’ information:

6.Rotate the Encoder to check the sensor value on the LCD.

7.In the “Send TextBox”, you can enter the following command to operate the sensors and actuators:

set [sensor][condition:>, < or =][ threshold],[actuator]=[action]

Example Description
_set temp>40, relay=1_ if temperature is higher than 40℃, the relay opens.
_set temp>40, sleep=1_ if temperature is >40℃, nothing to do.
_set humi>60, buzzer=1_ if humidity is >60%, the buzzer beeps.
_set light>600, servo=90_ if light intensity is >600, the servo truns 90°.
_set uv>80, relay=0_ if UV intensity is >80, the relay closes.
_set pir=1, buzzer=1_ if people detected, the buzzer beeps.
_set ms>40, relay=1_ if moisture is >40, the relay opens.
_set ssid=name, psw=password_ set the wifi SSID and Password.you can open a web browser, and go to the IP address displayed on the Serial Monitor or LCD. The default port is 88. he default port is 88. Such as: 192.168.1.101:88

Note:

  • The command should be ended with ‘/n’, so “NewLine” (in the Serial Monitor) should be selected.

  • A actuator can only be controlled by a sensor. If A sensor wants to control a actuator(has be controlled by B sensor), B sensor should be set sleep.

8.WiFi connection. open the Serial Monitor, and set your ssid and password(as below). Check the local IP on the LCD or Serial Monitor. On a device connected on the same network, open a web browser, and go to the IP address above, you can see the sensor value.

Note: When visiting the web server, a port number(88)should be added,such as: 172.20.10.2:88.

Resource


Help us make it better

Thank you for choosing Seeed. A couple of months ago we initiated a project to improve our documentation system. What you are looking at now is the first edition of the new documentation system. Comparing to the old one, here is the progresses that we made:

  • Replaced the old documentation system with a new one that was developed from Mkdocs, a more widely used and cooler tool to develop documentation system.
  • Integrated the documentation system with our official website, now you can go to Bazaar and other section like Forum and Community more conveniently.
  • Reviewed and rewrote documents for hundreds of products for the system’s first edition, and will continue migrate documents from old wiki to the new one.

An easy-to-use instruction is as important as the product itself. We are expecting this new system will improve your experience when using Seeed’s products. However since this is the first edition, there are still many things need to improve, if you have any suggestions or findings, you are most welcome to submit the amended version as our contributor or give us suggestions in the survey below, Please don’t forget to leave your email address so that we can reply.

Happy hacking