The compute module of Intel called Intel Edison is slightly larger than a SD card. After playing around Edison extensively I am completely in love with this tiny computer. The speciality of Edison is – It can be used for wearables also it is enough powerful to control robots. It is 35.5 × 25.0 × 3.9 mm module also equipped with Yocto, a Linux OS . It has an onboard Wi-Fi and Bluetooth, perfect for IoT projects. We can connect to Edison remotely and run commands or access the file system. This gives lots of flexibility to developers via SSH.
Edison can be used with Arduino IDE but to get most out of it you can use other programming languages like Python, Node.js, C/C++. Intel has its own IDE called Intel XDK IoT edition which makes programming with Edison easy. While setting up the programming environment for Edison you can choose between Arduino IDE, Intel XDK or Eclipse.
Let us create a simple temperature monitor with Edison which will monitor the room temperature and notify us through an Email. We will be using AWS Cloud in this project. AWS environment consists of a number of different AWS services providing security, transport, and storage of the sender data produced by your device. All services in AWS are delivered via a rich set of REST APIs. You can use a service programmatically through the APIs or can invoke manually using the console which make AWS Cloud powerful. It also offers numbers of API to speed our development with the language of our choice. Hence I have chosen its Node.Js library to interact with my Edison.Setting Up AWS
Follow the steps to setup the cloud environment:
- Create an account at AWS Cloud .
- Sign in to AWS IoT Console https://aws.amazon.com/iot.
- Create and attach a thing.
- Generate and download the keys and certificates to make connections.
- Set up AWS SNS and create a topic.
- Create an Email Subscription in SNS and publish the topic.
- In AWS IoT page, Create a Rule from the Resource panel and select “Send message as a push notification (SNS)” from Action dropdown. Create a new Role and add the recently created SNS action.
- Create an IAM Role. Enter a User Name as snsReceiver and click Create. Now attach the Policy. From the list select AmazonSNSFullAccess & AmazonIoTFullAccess and click on Attach Policy.
Setting up Edison
- Flash your Edison and enable WIFI on it.
- Transfer Certificates and key files to Edison.
- Establish a serial connection with Edison and run this command to install the AWS IoT SDK.
- npm install aws-iot-device-sdk
- Create a new project in Intel XDK, download the code and paste it.
- Change the credentials.
- Connect the temperature sensor to A2 pin of Edison.
- Upload and Run the code.
Now you will notice if the temperature exceeds 35 degree Celsius you will receive an Email Notification.