Seeeduino Cloud and Grove IoT Starter Kit Powered by AWS
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.
- 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
|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|
|Micro USB Cable - 48cm||1|
Configure Your AWS IoT Service
In this section, we will show how to:
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).
NoteDo 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
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.
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.
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.