Introduction: Tweet Switch

The purpose of this tutorial is to teach people how python (Twiitter API) can be used together with the Arduino to Switching on A Led Light using Twitter Account. My inspiration for this project comes from the project Tweet-a-Pot-Twitter-Enabled-Coffee-Pot. This is a beginners project. For anybody using the Arduino for the first time it will be no be difficult to grasp the concepts and the codes in the project.

I shall use the following materials

Arduino Uno board

One LED light

USB cable ,

Twitter account (Developers Twitter page)

Python 2.6 or 2.7 (Download Python)

Alternative Pycharm

Tweepy (GitHub Tweepy)

Pyserial (Download Pyserial)

Step 1: Arduino Setup

For this tutorial i will be using an Uno Arduino Board. One LED light and Usb cable. Place the LED light on the pin 13. No specifics for the color of LED's. The End result should be like that of the Image. The short pin goes on the GND (Negative) while the long pin on the LED goes on pin 13 (Positive).

Step 2: Create a Twitter Application

If you already have a twitter account headed over to dev.twitter.com and login with "YOUR" twitter account. For those who may not have a twitter account, create one account ASAP and follow me lol just kiddin. The second stage is to create a twitter application. All the necessary steps are available on how to create a twitter application.

Step 3: The Python and Arduino Code

Once done creating the twitter application.Insure that python has been installed (2.6 or 2.7), including Tweepy and Arduino. Once that done user may proceed. Open the python script and replace every words such as "consumer key, consumer secret key, access token, access secret key, within their very own keys. Don' t forget to replace the Arduino serial. Last but not the least, change the Username or twitter handler "status = api.user_timeline('YOUR TWITTER HANDLER')" . Don't change anything in Arduino script.

Step 4: Running the Program

This is the last part of the tutorial. Once the you have double checked that everything is ok both with the hardware and software. Click the "Run" button on the python and select "Run model".

Comments

author
LarsG5 (author)2017-01-29

Great work! I made it and work great on Py 2.7.13 and Arduino 1.6.11

author
RachelY1 (author)2015-07-28

I'm having the same problem, did you figure it out?

author
FranciscoC (author)2014-09-09

Thank for the tutorial, I did everything correclty, as far as I can tell, the only issue, is the light is not turning on. Its plug properly since blinks when the board is reseting or uploading the script, any ideas here?

author
craftclarity (author)2014-06-04

I can see all sorts of interesting home automation setups being made easier by this. Thanks for posting!

author
jorsh 911 (author)craftclarity2014-06-05

You Welcome. I was thinking the same thing

About This Instructable

2,423views

20favorites

License:

Bio: Because the people who are crazy enough to think they can change the world - are the ones who DO !
More by jorsh 911:Mini BillBoard  Breathing Monitor AdvancedBreathing Monitor
Add instructable to: