TUTORIAL 3 :: ETHERNET SHIELD AND TWITTER.COM



Similar documents
Arduino Lesson 1. Blink

Ethernet Radio Configuration Guide

The PostBase Connectivity Wizard

ALOHA Load Balancer Quickstart guide

Clock Link Installation Guide. Detailed brief on installing Clock Link

Contents. Business Everywhere user guide. 1. Introduction. 2. How to Install/Uninstall Business Everywhere. 3. The Business Everywhere interface

Quick Installation Guide Network Management Card

Yun Shield Quick Start Guide VERSION: 1.0 Version Description Date 1.0 Release 2014-Jul-08 Yun Shield Quick Start Guide 1 / 14

CS 326e F2002 Lab 1. Basic Network Setup & Ethereal Time: 2 hrs

Advanced Training Reliance Communications, Inc.

1 crossover cable. the PCs. network

Self Help Guide IMPORTANT! Configuring Your Router With Your Modem. Please read the following carefully; This Guide refers to the following Products:

Positron G-320 Business Phone System Setup Guide

Ethernet Module Manual

T-BOX MY MEDIA WINDOWS 7 QUICK START GUIDE

Business Plus Accounting Hardware Setup Guide For Windows XP

Getting Started Guide. January 19, 2014

To perform Ethernet setup and communication verification, first perform RS232 setup and communication verification:

Digital Home Tutorial

Table of Contents. 0. Internet Connectivity Assumptions Identifying the Network Wall Jack Identifying the Ethernet Cable..

Arduino Wifi shield And reciever. 5V adapter. Connecting wifi module on shield: Make sure the wifi unit is connected the following way on the shield:

Internet for Everyone In-Room Instructions January 2011 Version 1.3

Sky Broadband upgrading your router software

enervista UR Setup Software Quick Connect Instructions:

Setting up Remote Desktop

Setting up the Swann HD IP cameras

IP Phone Configuration and Troubleshooting Guide

UniCom Enterprise Phone (Polycom CX600) User Guide

Crown Field Support Engineering

Raspberry Pi Setup Tutorial

Quick Start Guide. Vonage Device Motorola VT2142

Running the R4 Software on a USB Port

CNC File Transfer Box. Connecting the CNC File Transfer. CNC Transfer Program

Installation and Operation Guide

VinNOW/TSYS Integration Setup. Overview

Prestige 314 Read Me First

Volume FIRST WALKTHROUGH. The 10-Minute Guide to Using Newsletter Services. First Walkthrough: the 10-Minute Guide

HomeSeer Technologies. HomeSeer Technologies LLC 35 Constitution Dr, Suite C Bedford NH,

Getting Started Guide

How to find the MAC address of your computer

TENVIS Technology Co., Ltd. User Manual. For H.264 Cameras. Version 2.0.0

Follow these steps to prepare the module and evaluation board for testing.

TELUS Internet set up guide. Read me first

CONFIGURING VIRTUAL TERMINAL: This is the screen you will see when you first open Virtual Terminal

TE100-P21/TEW-P21G Windows 7 Installation Instruction

Technical Note. Setting ACS drive IP address automatically with Rockwell BOOTP/DHCP Server. Contents

Setting Up an ipad Cart with Apple Configurator

Here s your guide to easy installation. Get the most out of Verizon High Speed Internet.

VPN Configuration Guide. Cisco Small Business (Linksys) WRVS4400N / RVS4000

USER GUIDE. Publication AP7080. Allen & Heath 1 XONE:1D User Guide

VinNOW-TSYS Integration Setup

User Manual Network Interface

UniCom Enterprise Phone (Polycom CX600) User Guide

c. Securely insert the Ethernet cable from your cable or DSL modem into the Internet port (B) on the WGT634U. Broadband modem

PLC training panel (Twido version)

Monnit Wi-Fi Sensors. Quick Start Guide

Smoking and any food or drinks are not permitted in the Applications Lab!

AdRadionet to IBM Bluemix Connectivity Quickstart User Guide

USING YOUR DMX PROFUSION

Prestige 324. Prestige 324. Intelligent Broadband Sharing Gateway. Version 3.60 January 2003 Quick Start Guide

Getting Started Guide. November 25, 2013

Prestige 324 Quick Start Guide. Prestige 324. Intelligent Broadband Sharing Gateway. Version V3.61(JF.0) May 2004 Quick Start Guide

Business Wireless Internet quick install guide

If you need additional assistance please contact our Technical Support Center at 24 hours a day, 7 days a week.

Determining Your MAC Address in Windows XP

Getting Started Guide: Transaction Download for QuickBooks Windows. Information You ll Need to Get Started

Configuring the WT-4 for ftp (Ad-hoc Mode)

Designing AirPort Extreme Networks

READYNAS INSTANT STORAGE. Quick Installation Guide

Text (SMS) Banking. Access your accounts from any text-enabled mobile phone to view balances and transaction history.

CPSC 226 Lab Nine Fall 2015

FOLGER TECHNOLOGIES, LLC 2020 i3 3D Printer Kit

GreenEye Monitor Setup Guide V1.0 Brultech Research Inc.

Prestige 650R-31/33 Read Me First

Using 2Can. There are three basic steps involved in migrating all of your data from your BlackBerry to your Android phone:

SMS Alarm Messenger. Setup Software Guide. SMSPro_Setup. Revision [Version 2.2]

mysensors mysensors Wireless Sensors and Ethernet Gateway Quick Start Guide Information to Users Inside the Box mysensors Ethernet Gateway Quick Start

1. Open up your Internet browser and go to

First Bytes Programming Lab 2

Intro to Intel Galileo - IoT Apps GERARDO CARMONA

Beckhoff TwinCAT. Assigning IP Addresses to Beckhoff Ethernet Devices

2015/02/07 05:41 1/23 WIZ550WEB Users' Guide

STEP 1: If you ALREADY HAVE an Airport Extreme Base Station hooked to your computer for your home network, then GO TO STEP 2.

Starting Guide - Poseidon 3265 First steps for remote monitoring with Poseidon & GSM

Hardware Overview. Ooma Linx devices These are installed around the office and are used to connect phones and other devices to your Ooma Office system

EC500 BASIC SOFTWARE SETUP GUIDE. Read This First. Easy Clocking EC500 Setup Guide - Page 1

Using IDENT M System T with Modbus/TCP

Network Detector Setup and Configuration

Application Note: Connecting to a 2500 Series Processor using PLC Workshop

EC150 BASIC SOFTWARE SETUP GUIDE. Read This First. Easy Clocking EC150 Setup Guide - Page 1

How to set up as VPN Network

Do not start HiQnet London Architect on the computer until instructed to do so below at Start and Configure HiQnet London Architect.

1 DDW2600 (U10C037) Wireless Cable Modem: FAQ

CM1-Mini Wi Drive. Setup Guide Ver 0.1

KM Metering Inc. EKM Dash User Manual. EKM Metering Inc. (831)

Quick Start Guide. Vonage VWR Device

#include <Gamer.h> Gamer gamer; void setup() { gamer.begin(); } void loop() {

Transcription:

TUTORIAL 3 :: ETHERNET SHIELD AND TWITTER.COM Pachube.com orchestrates a global, open-source network of Inputs and Outputs. However, as an infrastructure it is limited in two major ways: 1) you can t carry it with you. 2) it is not culturally imbedded. We will overcome these limitations through the use of cellphones and Twitter.com. We ll also remove our dependence on the computer s internet connection by integrating the Ethernet Shield with Arduino. Among other things, Twitter.com allows users to send SMS commands from their cellphone to a Pachube.com feed. Practically everyone has a cellphone; cellphones are practically everywhere. Although our Arduino projects are not everywhere, we can harness the cellphone so that we might reach beyond the local toward the global remote, thereby broadening the potential of Inputs and Outputs to bring Architecture to life. PART 1 :: TWITTER.COM QUICKSTART 1. Create a new Manual Feed in your Pachube.com account. Take note of the feed ID - we will use it later. 2. Create a new account on Twitter.com. 3. From your Twitter.com account, tweet the message follow pachtweet using the text entry box. This is called a public tweet. You can also send Direct Messages (DM), which are private. The user pachtweet acts as a courier, delivering your commands from Twitter.com to Pachube.com. 4. Tweet the message @pachtweet connect into the text entry box. @pachtweet designates the recipient, connect is the message. Wait for the user pachtweet to send you a DM. Direct Messages can be found under the menu list on the right.

5. Reply to pachtweet s DM with the message key YOUR_PACHUBE_KEY This is a one-time authentication process, allowing only your Twitter.com account to access your Pachube.com feeds. YOUR_PACHUBE_KEY is also called your API Key, and you can find it under Settings inside your Pachube.com account. You are now ready to send commands to your Pachube feed by using Direct Messages in Twitter.com. 6. To begin controlling your Arduino project, send a DM to pachtweet that follows this format: set FEED_ID STREAM0,STREAM1,STREAM2,... set is a prefix that tells pachtweet you want to enter new data into a feed. FEED_ID designates the feed ID where you want to send the data. STREAM designates the data to be sent. Streams are ordered sequentially by commas with no spaces. You may have multiple Streams in a single Pachube.com feed. Streams will be listed on your feed in the same order you enter them here. 7. Add the option to send DMs using your cellphone. From your Twitter.com account, click Settings in the upper right. Click Devices, and follow the on screen instructions to set up your cellphone. Note that updates should be sent to 40404 while in the United States. See the Twitter Phone FAQ for dialing Twitter from other countries: http://help.twitter.com/forums/10711/entries/14014 Cellphone DMs follow a similar format when updating a Pachube.com feed: d pachtweet set FEED_ID STREAM0,STREAM1,STREAM2,... d is a prefix that tells Twitter.com that you want this to be a Direct Message. pachtweet designates the user to send the DM to. The rest is the same as Step 6. 8. DMs from Twitter.com or your cellphone will update your Pachube.com feed. We still need to set up the Arduino in order for those DMs to be read as commands. 9. Part 1 is now complete.

PART 2 :: ETHERNET SHIELD QUICKSTART 1. Purchase an original Arduino Ethernet Shield if you have not already done so: Ethernet Shield (top) http://www.sparkfun.com/commerce/product_ info.php?products_id=9026 2. Attach the Ethernet Shield on top of the Arduino. You will probably need to detach your Breadboard/LEDs. The Shield replicates all pins on the Arduino, however it uses pins 10, 11, 12, and 13, for it s own purposes. Relocate your Breadboard/LEDs so they do not use pins 10, 11, 12, and 13. Remember to update your sketch accordingly. Arduino USB Board (bottom) 3. Identify the IP address of a GSAPP computer. Use the following web address to find your IP address. Take note - we will use it later: http://whatismyip.com/ 4. Carefully detach your GSAPP computer s ethernet cable and attach it to your Arduino Ethernet Shield. unplug from computer plug into Ethernet Shield 5. Open the WebClient sketch in the Arduino 12 environment: Open > Examples > Library-Ethernet > WebClient

6. Look to the sketch and update it with your IP address. Add a Gateway and Subnet array immediately following the IP array. You do not need to change your MAC address. IP addresses should be formatted with a comma followed by a space, like this: 100, 20, 300, 40 byte ip[ ] = { YOUR_IP_ADDRESS_HERE }; byte gateway[ ] = { 128, 59, 128, 1 }; byte subnet[ ] = { 255, 255, 252, 0 }; Your IP address is a set of four unique numbers just for you. If you have problems, try changing the last number to something higher, but leave the other numbers alone. Gateway and Subnet are specific addresses associated with Columbia University. They allow you to use Columbia s network. 7. Update Ethernet.begin() so it reads as follows: Ethernet.begin(mac, ip, gateway, subnet); 8. Upload the sketch to your Arduino. When the upload is complete, press the Serial Monitor button next to Upload to I/O Board. You should see a large stream of HTML from Google.com. Your Arduino and Arduino Ethernet Shield are now capable of accessing the internet. 9. Part 2 is now complete.

PART 3 :: ETHERNET SHIELD, PACHUBE, and TWITTER 1. In the Arduino 12 environment, open the Tutorial3_twitter file emailed to you. Take a minute to review the sketch. You ll notice many familiar pieces of code, some of it slightly altered, some of it entirely new. It s been adopted from the Arduino Ethernet Pachube Input Output sketch, found here: http://community.pachube.com/files/ ethernet_pachube_input_output.zip Note the three tabs. Tabs are essentially one very long sketch split into three pages for ease of viewing. 2. Create a new Manual Feed in Pachube.com. Take note of the feed ID. 3. Look to the sketch, and set SHARE_FEED_ID to the new feed ID you just created. 4. Set the REMOTE_FEED_ID to the feed ID that you want to access. Any Pachube.com feed ID is possible, but for this example we will access the feed ID you created for Twitter. com in Part 1. 5. Set the REMOTE_FEED_DATASTREAMS to the total number of streams you want to connect to. For example, if you want to connect to STREAM0, STREAM1, and STREAM2, set this value to 3. 6. Set the PACHUBE_API_KEY to your Pachube Key. 7. Enter your Mac, IP, Gateway, and Subnet addresses from Part 2. Upload the sketch to Arduino. 8. Part 3 is now complete. HOW IT WORKS: Using your cellphone, send an SMS to 40404: d pachtweet set FEED_ID A,B,C FEED_ID is the REMOTE_FEED_ID from Part 3 A is how long the LED will flash (try 55, then try 200 to compare) B turns the inside red LED on or off (try 1 for on, and 2 for off) C sets the brightness for the inside red LED (1 thru 255) Prepared by KEVIN WEI Living Architecture I: Responsive Kinetic Systems Lab, Spring 2009