About

IoT and other Embedded show cases.

Multisensor

Connecting multiple sensors to the cloud made simple

It takes only a handful of components and surprising small number of code lines to bring a sensor into life. The Arduino board deliver a simple and intuitive low-level prototyping platform, performing multichannel analog to digital conversion. Connecting the Arduino to the NIO 100 is simple, intuitive and cost effective way to bring this information to the cloud for analysis and sharing.

Hardware

The drawing below shows the hardware required for this demonstration

block_diagram

Arduino code

Only few lines of program are required to read two temperature sensors and send the values in °C via virtual serial port.

float sensorValue (int sensorPtr){
  float tempC = (((float)analogRead(sensorPtr)*5/1024)-1.375)/0.0225 ;
  return (tempC);
}

void setup() {
  Serial.begin(9600);
}

void loop() {
  Serial.print("sensor1:");
  Serial.print(sensorValue(0));
  Serial.print("C,");
  Serial.print("sensor2:");
  Serial.print(sensorValue(1));
  Serial.println("C");
  delay(1000);
}

IoT Studio

 

CaptureIOT

The data is saved in the cloud in JSON format.

Further, the IoT Studio program also generates live Twitter messages, publishing changes in temperature rise and fall curve. 


Thats it

The collected data is visualized in the chart below and the Twitter stream is at the left.

Live chart update every 60 seconds

Temp Log

Sensor data

 Auto update every 60 seconds.

Concept

The aim of this demo is to show how simple it is to connect sensor data to the cloud  and vise verse. The demo uses NIO-100 to receive measuring data from available multimeter via serial interface, decodes the information and upload an averaged measured data to the cloud.  A web application uses PHP and JS / HTML5 to store / recall the data as well as to visualize it. The setup is shown on the picture below.

 multimeter_nio_setup2

nio 100

NIO 100 is designed by NEXCOM as an IoT (Internet of Thing) gateway for cloud application specifically focused in industrial field, collects sensor data via RS232/485/DIO and transmitting data to cloud by 3G, WiFi or Ethernet. The NIO 100 has wide range power inputs of 9~36V DC suitable for industrial environment.

The NIO 100 based on Intel Quark CPU and comes with either WindRiver or Yocto OS, including also and advanced application development and run time environment called IoT Studio. Data sheet for NIO 100 can be found here.

IoT studio

 The IoT Studio is a based on the Node Red project - a visual tool for wiring the Internet of Things created bi IBM® Emerging Technology.

Node Red is running in a JavaScript environment supplied by node.js®.

Node.js® is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.

IoT Studio Application

 screenshot-192 168 44 34 1880 2015-05-20 11-29-19

The picture above shows the IoT Studio application used to collect the data, analyze it and load it up to the server. some of the boxes (those marked with f) contain JavaScript function to manipulate the data, others create connection to the multimeter via COM port, generate timing or send data to the cloud (in this case via HTTP request) or for debug purposes.

 

Temperature logger

 This page demonstrate a quick and simple sensor-to-cloud solution using NIO-100 and a multimeter with a serial port. 

Gilad

Some new text to see what happens