Arduino Twitter Library

details

The Idea

Create an Arduino Sketch to Tweet (via the Arduino Twitter Library) the current number of inquiries every time a push button is triggered.

Getting Started

Check out  Getting Started with an Arduino Ethernet Board if you’re in trouble with the pre-settings.

Arduino Ethernet Board Twitter Button

 

Hardware Settings

As mentioned above we’ll need an Arduino with Ethernet connection to publish our Tweets on the web. Therefore a simple push button is used to trigger the event.

Connection Scheme & Breadboard

connection_scheme

Software Settings

Required Arduino Libraries

At this point we’ll need some additional libraries. Download the Twitter Library and add it to your libraries folder within your Arduino IDE (Mac: Documents › Arduino › libraries or respectively on Windows: My Documents › Arduino › libraries).

After that import (Arduino › Sketch › Import Library…) the following libraries to your current sketch: SPI, Ethernet, Twitter.

– Download : Twitter.h

– Reference : Ethernet. h

– Reference : SPI.h

Authorize App via OAuth Token

authorize-twitter-app-300x162

Using the Tweet Library to post messages to Twitter from an Arduino we’ll need to get access via a token: Get Your OAuth Token
FYI: You can revoke access at all times within your Twitter Apps Settings

Keep calm and code on

Take a look at the included examples of the Twitter Library you’ve downloaded above.

Insert your Twitter OAuth Token and your Ethernet IP address and give it a try!

 

Fore more detail, please visit the Author (Sven Hofman)’s blog

The Idea

Create an Arduino Sketch to Tweet (via the Arduino Twitter Library) the current number of inquiries every time a push button is triggered.

Getting Started

Check out  Getting Started with an Arduino Ethernet Board if you’re in trouble with the pre-settings.

Arduino Ethernet Board Twitter Button

 

Hardware Settings

As mentioned above we’ll need an Arduino with Ethernet connection to publish our Tweets on the web. Therefore a simple push button is used to trigger the event.

Connection Scheme & Breadboard

connection_scheme

Software Settings

Required Arduino Libraries

At this point we’ll need some additional libraries. Download the Twitter Library and add it to your libraries folder within your Arduino IDE (Mac: Documents › Arduino › libraries or respectively on Windows: My Documents › Arduino › libraries).

After that import (Arduino › Sketch › Import Library…) the following libraries to your current sketch: SPI, Ethernet, Twitter.

– Download : Twitter.h

– Reference : Ethernet. h

– Reference : SPI.h

Authorize App via OAuth Token

authorize-twitter-app-300x162

Using the Tweet Library to post messages to Twitter from an Arduino we’ll need to get access via a token: Get Your OAuth Token
FYI: You can revoke access at all times within your Twitter Apps Settings

Keep calm and code on

Take a look at the included examples of the Twitter Library you’ve downloaded above.

Insert your Twitter OAuth Token and your Ethernet IP address and give it a try!

 

Fore more detail, please visit the Author (Sven Hofman)’s blog

COMMENTS

Please Login to comment
  Subscribe  
Notify of