About: We're building an open platform for a better #IoT. Our goals are to minimize fragmentation and enable faster adoption. Let's make our lives simpler and smarter!

More by the author:

Let's build an IoT device that sends flame sensor data to SAMI using SAMI's WebSockets. The IoT device consists of an off-the-shelf sensor, Arduino UNO and Raspberry Pi.

In this implementation, a Simple Manifest is used to create a new device type quickly. Then you can easily connect the IoT device to SAMI, and start to send sensor data from the device to SAMI.

Prerequisites

'''For this tutorial you should be familiar with the basic SAMI APIs.'''

Architecture

The purple diagram below shows the high-level architecture:

We use the following hardware components:

Raspberry Pi with a network connection

Arduino UNO with a breadboard

IR flame sensor

USB and power cables, plus wiring for the breadboard

We will write the following software:

A Sketch program running on the Arduino

A Node.js script running on the Raspberry Pi

Download the software now.

'''If you do not have a Raspberry Pi, you may still work through this tutorial. Connect your Arduino UNO to your computer that has an Internet connection and run the Node.js script on the computer instead of the Raspberry Pi.'''







