Sensor Data Monitoring With Edison (Intel IoT)

About: Senior Embedded Developer with Experience as Tech Lead, Product Development and Trainer, Interested in Blockchain

Intro: 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

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

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

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 :-)

Share

    Recommendations

    • Furniture Contest 2018

      Furniture Contest 2018
    • Tiny Home Contest

      Tiny Home Contest
    • Metalworking Contest

      Metalworking Contest

    5 Discussions

    0
    None
    KBZ

    3 years ago on Introduction

    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?

    2 replies
    0
    None
    Shachindra92KBZ

    Reply 3 years ago on Introduction

    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?

    0
    None
    KBZShachindra92

    Reply 3 years ago on Introduction

    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?