Introduction: Sensor Data Monitoring With Edison (Intel IoT)

Picture of Sensor Data Monitoring With Edison (Intel IoT)

This instructable is for integrating the grove sensors and actuators with Intel Edison by NodeJS and monitor the data of the sensors like air quality, Sound, Temperature, Light, Touch and LED, Buzzers.

This requires node modules:

mraa: GPIO,

moment-timezone: Date in specific timezone,

mathjs: logarithmic and mathematical calculations,

upm: LCD & i2c connectivity.


Step 1: Sensors and Actuators Connection to Intel Edison

Picture of Sensors and Actuators Connection to Intel Edison

Connect the sensors and actuators as:

Temperature Sensor - Analog Pin 0,

Light Sensor - Analog Pin 1,

Sound Sensor - Analog Input 2,

Air Quality Sensor - Analog Pin 3,

Touch Sensor - Digital Pin 2,

Buzzer -Digital Pin 3,

LED -Digital Pin 4.

Step 2: Programming Edison

Picture of Programming Edison

Clone the repository -

git cone https://github.com/Shachindra/edisonProjectIoT.gi...

from https://github.com/Shachindra/edisonProjectIoT

check the file named as: SensorActuatorTest.js

install the modules (if not installed)

npm install mraa

npm install mathjs

npm install moment-timezone

after installation

node SensorActuatorTest.js

& see the code running in console.!

Step 3: Extras

Picture of Extras

Use forever to run the program continuously;

npm install forever

forever start SensorActuatorTest.js

Check for Forever Process:

forever list

Getting GPS Data Serially:

Hook up your GPS Device as-

GPS TX - Edison RX

GPS RX - Edison TX

then install serialport module as

npm install serialport

node ReadSerialData.js

See the GPS data in Console.

I used a u-blox NEO-6 GPS Module (as seen in the picture).

More sensors can be connected and Data can be monitored.

Moreover the data can also be sent to the cloud for realization and graph plotting using iotkit agent, plotly, xively, etc. but that is going to be in my next instructable :-)

Comments

Reubenscott (author)2015-11-25

Nice....

KBZ (author)2015-06-19

Hi,

I would like to know what exactly is the ReadSerialData.js code doing? You are reading the data collected from sensors that is published on your serial interface(say Putty) and then you are reading that data - Am I getting this right?

If so, then where are you writing/displaying this data?

Shachindra92 (author)KBZ2015-06-30

Ya Correct! I'm reading the serial data from the GPS Receiver and displaying on the console. Actually I'm working on a library which displays exactly the meaningful info from the Serial Data for the GPS. So its gonna be updated soon. Do you know any of such libraries for JS?

KBZ (author)Shachindra922015-07-06

Thanks. I am not aware of any such library, but shall keep you posted if I come across one. I can read the data on the serial terminal of the edison, I want to transfer this from my Ubuntu machine to another server over ethernet. Any ideas how can I do this?

tomatoskins (author)2015-06-10

I like this a lot! Thanks for sharing!

About This Instructable

4,089views

22favorites

License:

Bio: Senior Embedded Developer with Experience as Tech Lead, Product Development and Trainer, Interested in Blockchain
More by Shachindra92:Water Usage Statistics Using Edison & Xively (Intel IoT)Sensor Data Monitoring with Edison (Intel IoT)
Add instructable to: