node red with arduino

22
Node-red With Arduino Designed by Anshu Pandey

Upload: anshu-pandey

Post on 14-Feb-2017

97 views

Category:

Technology


4 download

TRANSCRIPT

Page 1: Node red with Arduino

Designed by Anshu Pandey

Node-redWith Arduino

Page 2: Node red with 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

Page 3: Node red with Arduino

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

Page 4: Node red with Arduino

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

Page 5: Node red with Arduino

Designed by Anshu Pandey

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

Page 6: Node red with Arduino

Designed by Anshu Pandey

After installationNode-red

Page 7: Node red with Arduino

Designed by Anshu Pandey

Test Installation

Type node-red

Page 8: Node red with Arduino

Designed by Anshu Pandey

Server started?

Page 9: Node red with Arduino

Designed by Anshu Pandey

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

Page 10: Node red with Arduino

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

Designed by Anshu Pandey

Page 11: Node red with Arduino

Designed by Anshu Pandey

Page 12: Node red with Arduino

Designed by Anshu Pandey

Page 13: Node red with Arduino

Installing Serial portUse following command in cmd to install serial port

npm install node-red-node-serialport

Designed by Anshu Pandey

Page 14: Node red with Arduino

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

Page 15: Node red with Arduino

Add Serial node & Configure it

Designed by Anshu Pandey

Page 16: Node red with Arduino

Designed by Anshu Pandey

Add Twitter node & Configure it

Page 17: Node red with Arduino

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

Page 18: Node red with Arduino

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

Page 19: Node red with Arduino

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

Page 20: Node red with Arduino

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

Page 21: Node red with Arduino

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)

Page 22: Node red with Arduino

Designed by Anshu Pandey

A BIG THANK YOU