Who doesn’t like the idea of making coffee right from their bed or while they are returning home from office or a jogging from nearby park. If you are also the one, you could make a good use of “Tweet-A-Pot”, a Twitter enabled coffee pot that permits the owner to make a pot of coffee from any other place where they can have mobile connectivity. It is possible with the help of arduino board and Twitter. All you need is some hardware and some coding and you can easily prepare your own version of Twitter enabled coffee pot.
The hardware part here includes a power switch tail that can act like a communication device to interact with the AC voltage, one arduino board, one computer running the arduino Python and IDE, and a Drip Coffee Pot. Once you have all this, set up your computer, The interface between arduino and Twitter can be created with the help of Python. There is a library here that makes usage of twitter API possible. It is known as python-twitter. Once you are done with installation of python, you can move on to installation of python-twitter library along with all its dependencies. In case, you run into trouble you just need to consult documentation on python-twitter website. Now move on to installation of Arduino IDE that can help you in programming arduino and converse with it through serial port. Once, everything is set and on the go, you can grab all your credentials from the Twitter site.
Interfacing with twitter was an easy process, you are only required to put in your name, password in the code and it started working.Twitter is now taking the user information more seriously with the help of oAuth, now you need to register your app with the help of twitter and obtain the API key. If you are new with Twitter, you need to start by creating a new account for the project and then visit dev.twitter.com to registet yur app. It will help you in grabbing 4 important pieces of information like access token, access token secret, consumer key,a nd consumer secret. These keys will be later needed in the python code for creating the interface with Twitter API. Once you have all four codes, you can continue.
For Python coding, arduino coding, and hardware setup details, check out the link given below.
Filed Under: Reviews