{"id":755,"date":"2015-11-19T17:14:45","date_gmt":"2015-11-19T22:14:45","guid":{"rendered":"http:\/\/arlduc.org\/senseandscale\/?p=755"},"modified":"2015-11-19T17:20:10","modified_gmt":"2015-11-19T22:20:10","slug":"tutorial-twitter-visualization-via-arduino","status":"publish","type":"post","link":"https:\/\/arlduc.org\/senseandscale\/?p=755","title":{"rendered":"Tutorial: Twitter Visualization via Arduino"},"content":{"rendered":"<p>For this week&#8217;s class, you can\u00a0experiment visualizing a Twitter livestream by\u00a0connecting Peiqi Su&#8217;s penis modules and other output device, to an Arduino. I&#8217;ve included sample code below and will expand this tutorial for those who are interested. The tutorial will assume basic understanding of Arduino and Processing, particularly installing libraries and differentiating between digital and analog signals.<\/p>\n<h1>Software<\/h1>\n<ul>\n<li>Arduino<\/li>\n<li>Processing<\/li>\n<li>Temboo and Twitter4j libraries for Processing (download them zipped together <a href=\"https:\/\/drive.google.com\/file\/d\/0B1KM70jlEfvpMUoyZDNrTGpNOXM\/view?usp=sharing\" target=\"_blank\">here<\/a>)<\/li>\n<\/ul>\n<h1>Set up dev accounts with<\/h1>\n<ul>\n<li><a href=\"https:\/\/apps.twitter.com\/\" target=\"_blank\">Twitter<\/a>.\n<ul>\n<li>A<a href=\"https:\/\/twittercommunity.com\/t\/you-must-add-your-mobile-phone-to-your-twitter-profile-before-creating-an-application\/15008\" target=\"_blank\">dd your mobile phone to the account so you can build a Twitter app<\/a>)<\/li>\n<\/ul>\n<\/li>\n<li>(optional)\u00a0<a href=\"https:\/\/temboo.com\" target=\"_blank\">Temboo<\/a>. It&#8217;s not necessary to use\u00a0Temboo for this tutorial, especially since free accounts are capped at 500 API calls a month, but it&#8217;s an interesting service\u00a0to look at because it generates Arduino Yun\/wifi code (called &#8220;Choreos&#8221;)\u00a0<a href=\"https:\/\/temboo.com\/library\/Library\/Socrata\/\" target=\"_blank\">for many APIs including Socrata<\/a>.<\/li>\n<\/ul>\n<h1>Sample Files<\/h1>\n<ul>\n<li>Arduino Code: <a href=\"https:\/\/drive.google.com\/file\/d\/0B1KM70jlEfvpbDdGRThDRWpIeVk\/view?usp=sharing\" target=\"_blank\">ReceiveFromProcessing<\/a><\/li>\n<li>Processing Code: <a href=\"https:\/\/drive.google.com\/file\/d\/0B1KM70jlEfvpS2VEUUFBQWVUYTQ\/view?usp=sharing\" target=\"_blank\">Twitter4jTest<\/a>. Be sure to replace the placeholder authentication strings with\u00a0the access keys\u00a0from your own Twitter account!<\/li>\n<li>(optional) Processing Code: <a href=\"https:\/\/drive.google.com\/file\/d\/0B1KM70jlEfvpQ19ROU11cDhxdlE\/view?usp=sharing\" target=\"_blank\">TwitterTemboo<\/a>. Be sure to replace the authentication placeholders!<\/li>\n<\/ul>\n<h1>Original Tutorials<\/h1>\n<ul>\n<li><a href=\"https:\/\/itp.nyu.edu\/physcomp\/labs\/motors-and-transistors\/using-a-transistor-to-control-high-current-loads-with-an-arduino\/\" target=\"_blank\">Motors and lamps with Arduino<\/a><\/li>\n<li><a href=\"http:\/\/46.101.4.217\/tutorials\/processing-and-twitter\/searching-twitter-for-tweets\/\" target=\"_blank\">Twitter4j\/Processing Tutorial<\/a><\/li>\n<li><a href=\"https:\/\/temboo.com\/processing\/display-tweet\" target=\"_blank\">Temboo\/Processing Tutorial<\/a><\/li>\n<li><a href=\"https:\/\/temboo.com\/arduino\" target=\"_blank\">Temboo\/Arduino Page<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>For this week&#8217;s class, you can\u00a0experiment visualizing a Twitter livestream by\u00a0connecting Peiqi Su&#8217;s penis modules and other output device, to an Arduino. I&#8217;ve included sample code below and will expand this tutorial for those who are interested. The tutorial will assume basic understanding of Arduino and Processing, particularly installing libraries and differentiating between digital and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,4,8],"tags":[],"class_list":["post-755","post","type-post","status-publish","format-standard","hentry","category-nyu-datavis","category-nyu","category-tutorials"],"_links":{"self":[{"href":"https:\/\/arlduc.org\/senseandscale\/index.php?rest_route=\/wp\/v2\/posts\/755","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/arlduc.org\/senseandscale\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/arlduc.org\/senseandscale\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/arlduc.org\/senseandscale\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/arlduc.org\/senseandscale\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=755"}],"version-history":[{"count":4,"href":"https:\/\/arlduc.org\/senseandscale\/index.php?rest_route=\/wp\/v2\/posts\/755\/revisions"}],"predecessor-version":[{"id":759,"href":"https:\/\/arlduc.org\/senseandscale\/index.php?rest_route=\/wp\/v2\/posts\/755\/revisions\/759"}],"wp:attachment":[{"href":"https:\/\/arlduc.org\/senseandscale\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=755"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/arlduc.org\/senseandscale\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=755"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/arlduc.org\/senseandscale\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=755"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}