Arduino sketch code for turning the Adafruit IoT Printer into a twitter-printing machine
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


status is uncertain.  Twitter has changed their API to require
SSL (Secure Sockets Layer) on -all- connections, a complex
operation beyond the Arduino's ability to handle.  The code is
being kept around on the chance that a suitable proxy service
becomes available...but at present we have no such service, no
code for such, nor a schedule or even a firm commitment to
pursue it.  For projects requiring Twitter we now recommend
using an SSL-capable system such as Raspberry Pi.  For example:


Gutenbird demo sketch: monitors one or more Twitter accounts
for changes, displaying updates on attached thermal printer.
Written by Adafruit Industries, distributed under BSD License.

Designed for the Adafruit Internet of Things printer
Pick one up at !

REQUIRES ARDUINO IDE 1.0 OR LATER -- Back-porting is not likely to
occur, as the code is deeply dependent on the Stream class, etc.

Also requires Adafruit Thermal Printer Library:
and Adafruit fork of Peter Knight's Cryptosuite library for Arduino:

Required hardware includes an Ethernet-connected Arduino board such
as the Arduino Ethernet or other Arduino-compatible board with an
Arduino Ethernet Shield, plus an Adafruit Mini Thermal Receipt printer
and all related power supplies and cabling.

Resources: Arduino Ethernet FTDI Friend Arduino Uno Ethernet Shield Mini Thermal Receipt Printer Printer starter pack

Uses Twitter 1.1 API.  This REQUIRES a Twitter account and some account
configuration.  Start at, sign in with your Twitter
credentials, select "My Applications" from the avatar drop-down menu at the
top right, then "Create a new application."  Provide a name, description,
placeholder URL and complete the captcha, after which you'll be provided a
"consumer key" and "consumer secret" for your app.  Select "Create access
token" to also generate an "access token" and "access token secret."
ALL FOUR STRINGS must be copied to the correct positions in the globals below,
and configure the search string to your liking.  DO NOT SHARE your keys or
secrets!  If you put code on Github or other public repository, replace them
with dummy strings.