node red with arduino

Post on 14-Feb-2017

97 Views

Category:

Technology

4 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Designed by Anshu Pandey

Node-redWith Arduino

What is Node-red?

Node-Red in its simplest form is an open source visual editor for wiring the internet of things produced by IBM.

Designed by Anshu Pandey

More..

Node-RED is a tool for wiring together hardware devices, APIs and online services in new and interesting ways.

Node-RED takes care of the technicalities and lets you concentrate on the logic of your workflow. !

Designed by Anshu Pandey

How to get started with Arduino?

Install node-red on windows:• Install node.js 64 bit or 32 bit according to your

system from https://nodejs.org/en/download/ • Open Command prompt as administrator.

Designed by Anshu Pandey

Designed by Anshu Pandey

Typenpm install -g --unsafe-perm node-red

Designed by Anshu Pandey

After installationNode-red

Designed by Anshu Pandey

Test Installation

Type node-red

Designed by Anshu Pandey

Server started?

Designed by Anshu Pandey

Here you go now!Let’s begin the magic!

Visit http://127.0.0.1:1880 in browser and get your dashboard.

Designed by Anshu Pandey

Designed by Anshu Pandey

Designed by Anshu Pandey

Installing Serial portUse following command in cmd to install serial port

npm install node-red-node-serialport

Designed by Anshu Pandey

Flow 1: Twitting sensor dataStep 1 Drag and drop serial input node to flow dashboard Step 2 Double click to configure it and select com port & baudrate Step 3 Drag and drop twitter output node from socialStep 4 Double click the node to configure it, authenticate your

twitter account Step 5 Connect both the nodes Step 6 Deploy the project by clicking on the top right button Deploy Step 7 Check your tweets on your twitter account, done by sensor.

Designed by Anshu Pandey

Add Serial node & Configure it

Designed by Anshu Pandey

Designed by Anshu Pandey

Add Twitter node & Configure it

Installing thingspeak nodeStep 1 Stop the node-red running server by closing it or by

“stop node-red” or by ctrl+CStep 2 Use “npm install node-red-contrib-thingspeak” to

install thingspeak node Step 3 Start node-red server, you will find thingspeak node in

functions at the end of the list Step 4 Visiting thingspeak.com and signup for an account Step 5 Create a channel and get Write API Key

Designed by Anshu Pandey

Flow 2: Uploading sensor data on ThingSpeakStep 1 Drag and drop serial input node to flow dashboard Step 2 Double click to configure it and select com port & baudrate Step 3 Drag and drop thingspeak node from function Step 4 Double click the node to configure it, enter your write API

Key, Don’t forget to enter the field id as “1” Step 5 Connect both the nodes Step 6 Deploy the project by clicking on the top right button Deploy Step 7 Check your private view in your thingspeak channel

Designed by Anshu Pandey

Installing IBM Watson IoT nodeStep 1 Stop the node-red running server by closing it

or by “stop node-red” or by ctrl+CStep 2 Use “npm install node-red-contrib-ibm-watson-

iot” to install IBM Watson IoT node Step 3 Start node-red server, you will find IBM Watson

IoT node in Input & Output list at the end of the list

Designed by Anshu Pandey

Flow 3: Uploading sensor data on IBM Watson IoT Step 1 Drag and drop serial input node to flow dashboard Step 2 Double click to configure it and select com port & baudrate Step 3 Drag and drop IBM Watson IoT node from function Step 4 Double click the node to configure it, select quickstart mode,

click on the edit symbol(pencil) next to it to get the dashboard. Step 5 Connect both the nodesStep 6 Deploy the project by clicking on the top right button Deploy Step 7 Check your on the IBM Watson iot dashboard opened.

Designed by Anshu Pandey

node-red Shortcodes for repositoreisnode Cmd command

Google Chart npm install node-red-contrib-googlechart

IBM IoT App npm install node-red-contrib-scx-ibmiotapp

IBM Watson IoT npm install node-red-contrib-ibm-watson-iot

ThingSpeak npm install node-red-contrib-thingspeak

Watson npm install node-red-node-watson

MySQL npm install node-red-node-mysql

Alexa npm install node-red-contrib-alexa

Facebook npm install node-red-contrib-facebook

Arduino npm i node-red-node-arduino

Designed by Anshu Pandey (www.anshupandey.com)

Designed by Anshu Pandey

A BIG THANK YOU

top related