Seeeduino Cloud and Grove IoT Starter Kit Powered by AWS

Introduction

Main articles: Start here Grove IoT Starter Kits Powered by AWS , Seeeduino Cloud

Seeeduino Cloud is a microcontroller board based on Dragino WiFi IoT module HE and ATmega32u4. HE is a high performance, low-cost 150M, 2.4G WiFi module which with an Open Source OpenWrt system inside. Seeeduino Cloud is also an Arduino Yun compatible board. This kit includes most frequently used sensors and actuators to turn your ideas into tangible applications with AWS Cloud computing.

Features

  • Out-of-the-box, plug and play, no breadboard or soldering work required.
  • Fully compliant with AWS’s services and AWS’s practices.
  • Step-by-step tutorials for developers and makers for quicker prototyping.

Included in the Box

Board/Part Qty Documentation
Seeeduino Cloud development board 1 Read Here
Base Shield 1 Read Here
Grove - LCD RGB Backlight 1 Read Here
Grove - Relay 1 Read Here
Grove - Buzzer 1 Read Here
Grove - Sound Sensor 1 Read Here
Grove - Touch Sensor 1 Read Here
Grove - Rotary Angle Sensor 1 Read Here
Grove - Temperature Sensor 1 Read Here
Grove - LED 1 Read Here
Grove - Light Sensor 1 Read Here
Grove – Button 1 Read Here
DIP LED Blue-Blue 1
DIP LED Green-Green 1
DIP LED Red-Red 1
Mini Servo 1
Micro USB Cable - 48cm 1

Configure Your AWS IoT Service

In this section, we will show how to:

  1. Create an AWS Account.

  2. Go to AWS IoT and open the AWS IoT Dashboard.

Sign in with your AWS Account. Click the Services on the top-left corner, and then click on AWS IoT, as shown at below image.

Click on Get Started.

Then, we can create something now. Click on Create a Resource and then Create a thing.

Enter a name, whatever you like, here we name it temperature.

Click Create to complete it and then click View thing to get information of the thing you create.

Click on Connect a device.

Choose Arduino Yun and Click on Generate certificate and policy.

It will show three download links which are correspond to different key files or certificate. Download these file, we need them later. And click on Confirm & start connecting.

Then we should download the AWS IoT Arduino Yun SDK. Copy and save the sample code based on your behalf, we will need it later. And then click on Return to Thing Detail.

Set up your Seeeduino Cloud (Arduino Yun)

Getting started with Seeeduino Cloud (Arduino Yun)

If this is your first time to use Seeeduino Cloud or Arduino Yun, you can click here to get started. Before proceeding to the following steps, please make sure that you have expect installed on your computer and correctly installed the Arduino IDE.

Installation on Mac OS/Linux

Before proceeding to the following steps, please make sure that you have expect installed on your computer and correctly installed the Arduino IDE.

To install expect

For Ubuntu, simply run the following command. sudo apt-get install expect For Mac OS X, expect is installed as default.

To install Arduino IDE

For Arduino IDE installation on Linux, please visit here (http://playground.arduino.cc/Linux/All).

Set up development board

1.Set up the Arduino Yún board and connect it to WiFi. Obtain its IP address and password. If you don’t know how to do it you can follow this link.

2.Make sure your computer is connected to the same network (local IP address range).

3.Download the AWS IoT CA file from here. And save it as root-CA.crt.

4.Put your AWS IoT CA file, private key and certificate into AWS-IoT-Arduino-Yun-SDK/AWS-IoT-Python-Runtime/certs.

5.Open a terminal, cd to AWS-IoT-Arduino-Yun-SDK. Do chmod 755 AWSIoTArduinoYunInstallAll.sh and execute it as:

./AWSIoTArduinoYunInstallAll.sh <Board IP> <UserName> <Board Password>.

By default for Seeeduino Cloud, your username will be root and your password will be seeeduino. Arduino Yún Board, your username will be root and your password will be Arduino.

For step 5, it can take 15-20 minutes for the device to download and install the required packages (distribute, python-OpenSSL, pip, paho-MQTT).

Note

Do not close the terminal before the script finishes, otherwise you have to start over with step 5. Make sure you are in your local terminal before repeating step 5.

6.Copy and paste AWS-IoT-Arduino-Yun-SDK/AWS-IoT-Arduino-Yun-Library folder into Arduino libraries that was installed with your Arduino SDK installation. For Mac OS default, it should be under Documents/Arduino/libraries.

7.Restart the Arduino IDE if it was running during the installation. You should be able to see the AWS IoT examples in the Examples folder in your IDE.

There are the other two scripts: AWSIoTArduinoYunScp.sh and AWSIoTArduinoYunSetupEnvironment.sh, which are utilized in AWSIoTArduinoYunInstallAll.sh. You can always use AWSIoTArduinoYunScp.sh to upload your new credentials to your board. When you are in the directory AWS-IoT-Arduino-Yun-SDK/, the command should be something like this:

./AWSIoTArduinoYunScp.sh <Board IP> <UserName> <Board Password> <File> <Destination>

Installation on Windows

Before proceeding to the following steps, please make sure that you have Putty and WinSCP installed on your PC. If you prefer to use other tools for SSH-ing into your Arduino Yún board and transferring files, you will have to adjust the steps below according to your tools. Putty can be downloaded from here. WinSCP can be downloaded from here. Set up the board.

1.Setup the Arduino Yún Cloud board and connect it to WiFi. Obtain its IP address and password. If you don’t know how to do it, please follow this link.

2.Make sure your PC is connected to the same network (local IP address range).

3.Download the AWS IoT CA file from here. And save it as root-CA.crt

4.Put your AWS IoT CA file that you saved before, private key and certificate into folder AWS-IoT-Arduino-Yun-SDK/AWS-IoT-Python-Runtime/certs.

5.Start WinSCP and upload AWS-IoT-Python-Runtime/ folder to /root on the board.

6.Use Putty to ssh into OpenWRT on your board and execute the following commands to install the necessary libraries:

It can take 15-20 minutes for the device to download and install the required packages.

7.Copy and paste AWS-IoT-Arduino-Yun-SDK/AWS-IoT-Arduino-Yun-Library folder into Arduino libraries that was installed with your Arduino SDK installation. For Windows default, it should be under Documents/Arduino/libraries.

8.Restart the Arduino IDE if it was running during the installation. You should be able to see the AWS IoT examples in the Examples folder in your IDE.

Connect Grove Module

Run examples

Download the example project

1.Please download the example project from here first.

2.Decompress the downloaded zip files to your computer and remove -master in decompressed file name.

Modify header file

1.Open file aws_iot_config.h, and replace the content in red box as picture bellows by the sample code based on your account that you have already saved before.

2 .Double click on GroveWithAWSIot.ino, replace following marked code with saved header file minutes ago and then click upload.

3 .When you see the below info. it means you have already download the code to your Seeeduino Cloud successfully.

View Result

1 .Open the serial monitor, you can see the information as below.

2 .Then open AWS IoT website, sign in to your account. And click the thing you created minutes ago.

Click the Update shadow button. Now you can see the temperature was upload to the website.

Resources


Help us make it better

Welcome to the new documentation system of Seeed Studio. We have made a lot of progress comparing to the old wiki system and will continue to improve it to make it more user friendly and helpful. The improvement can't be done without your kindly feedback. If you have any suggestions or findings, you are most welcome to submit the amended version as our contributor via Github or give us suggestions in the survey below, it would be more appreciated if you could leave your email so that we can reply to you. Happy Hacking!