Posting Arduino Serial data to twitter using Node-Red

Posting Arduino Serial data to twitter using Node-Red © GPL3+

Here we will learn how to build a simple workflow with Node-Red to post the Serial output of Arduino to Twitter.

  • 4,759 views
  • 7 comments
  • 10 respects

Components and supplies

About this project

With Node-Red it is very easy to create work flows. Here will learn how to build a simple workflow to post the Serial output of Arduino (or any device that can send serial data) to twitter.

First you need to install Node-Red on your host (can be a windows system/Raspberry Pi) . Once installation is completed run the node-red , you will get a browser interface to edit the workflows.

In my case it is running on port 1880, open this link in your browser you will get a interface to edit workflows.

You can drag and drop the block you required into flow area. We are using Serial(input), debug(output) and Twitter(Output) blocks.

Connect the block in the following way. You can edit the properties of each block by double clicking on them. You need to mention COM port for Serial (Optionally you can give a name as well ), for twitter you need to authenticate with your twitter account.

Finally load this script to Arduino

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

void loop() {
delay(15000);
Serial.println("Test data from Node-red");
} 

Deploy the flow, you can see your tweet in your feeds.

Note: If you try post same data within 5 min, you will get 403 error message with description “Status is duplicate”, that’s normal. You can change your data or wait for 5min.

Code

Arduino codeArduino
Please load this sketch to the Arduino
void setup() {
Serial.begin(9600);
}

void loop() {
delay(15000);
Serial.println("Test data from Node-red");
}

Comments

Similar projects you might like

Pushing Data to Google Docs

by Gustavo Gonnet

  • 25,118 views
  • 60 comments
  • 74 respects

Lights On/Off using Twitter

Project showcase by Kaustubh Agarwal

  • 3,960 views
  • 0 comments
  • 14 respects

Twitter Sentiment Gadget

Project tutorial by IdiotWare Team and Rupin Chheda

  • 1,208 views
  • 0 comments
  • 2 respects

LED Displayed Twitter Sentiment Analysis

Project tutorial by Andrew Steinheiser

  • 1,086 views
  • 1 comment
  • 3 respects

Visualising sensor data using Arduino and Processing

Project tutorial by sowmith mandadi

  • 36,047 views
  • 3 comments
  • 33 respects
Add projectSign up / Login