1 Answer

Hey there! Today I dusted off my Arduino to write a tutorial I think you will like enough. This is post messages on Twitter from Arduino. It is easy and fast. Only we need:

Arduino.

Ethernet Shield.

Ethernet Cable.

Twitter account.

If we have the Ethernet Shield, we can use an Arduino Yun.

The process is simple . We will continue to give us the steps in this page .

STEP 1: GET THE TOKEN

The first thing to do is get a token to publish our account from Arduino. To do this, we enter this link.

After authorizing the application, we obtain the token we wanted:

STEP 2: DOWNLOAD THE LIBRARY

The bookstore can download from this link . To install, unzip the content:

Windows : My Documents \ Arduino \ libraries \

Mac : ~ / Documents / Arduino / libraries

Linux : ~ / sketchbook / libraries

After unpacking the library, we restart the Arduino IDE for changes to take effect.

STEP 3: WRITE THE CODE

The code is explained with comments in it. Still, he does not miss it. Too easy.

All you have to do is enter your token on the line Twitter twitter ( "TOKEN ENTER HERE" ) ; and configure an IP in byte ip [ ] = { 192 , 168 , 0 , 250 } ; . After this, just charge the Arduino the following code:

LOOK AT THE COMMENT

When the code is executed and, if all goes well, we will see in our Twitter account a new message.