arduino lecture 2 - interactive media cs4062 semester 2 2009

18
Making Conversations and Finding Things CS4062 - Eoin Brazil - Semester 2 - 2009

Upload: eoin-brazil

Post on 14-May-2015

5.262 views

Category:

Technology


4 download

DESCRIPTION

CS4062 Masters in Interactive Media - Second Arduino Lecture - March 6th 2009 - University of Limerick. This lecture presents an introduction to communications and the Arduino with examples. This was aimed at a digital media / music technology masters student audience.

TRANSCRIPT

Page 1: Arduino Lecture 2 - Interactive Media CS4062 Semester 2 2009

Making Conversationsand Finding ThingsCS4062 - Eoin Brazil - Semester 2 - 2009

Page 2: Arduino Lecture 2 - Interactive Media CS4062 Semester 2 2009

Communications

Wired XPort TCP/IP for

Ethernet connectivity

Serial

I3C

CAN

Wireless Infrared

Bluetooth

"RF"

WiPort TCP/IP

Cell Phone Data GPRS

ZigBee & 802.15.4

802.11b,g,n

Page 3: Arduino Lecture 2 - Interactive Media CS4062 Semester 2 2009

Examples

Linking an Arduino ethernet shield, parallax RFID reader, and

Page 4: Arduino Lecture 2 - Interactive Media CS4062 Semester 2 2009

Examples - SL <> RL

Linking an Arduino ethernet shield, parallax RFID reader, and

Page 5: Arduino Lecture 2 - Interactive Media CS4062 Semester 2 2009

SL to RL LSL script for SL

objects LSL to PHP

webserver with connected Arduino

PHP to Arduino’s serial port

Examples - SL <> RL

Linking an Arduino ethernet shield, parallax RFID reader, and

Page 6: Arduino Lecture 2 - Interactive Media CS4062 Semester 2 2009

Boticalls @ ITP

Botanicalls, thirsty plants make phone calls for human help.

Wired & Wireless Light & Soil sensors

Arduino

XBee

XPort

Asterisk

http://itp.nyu.edu/show/winter2006/detail.php?project_id=912http://www.botanicalls.com/twitter/index.htm

Page 7: Arduino Lecture 2 - Interactive Media CS4062 Semester 2 2009

Boticalls @ ITP

Page 8: Arduino Lecture 2 - Interactive Media CS4062 Semester 2 2009

Examples - Blogject

Botanicalls Sensors to

Arduino Arduino to

XPort to Twitter

Page 9: Arduino Lecture 2 - Interactive Media CS4062 Semester 2 2009

Examples - Blogject

Page 10: Arduino Lecture 2 - Interactive Media CS4062 Semester 2 2009

Examples - Spimes

Page 11: Arduino Lecture 2 - Interactive Media CS4062 Semester 2 2009

Examples - Spimes

Page 12: Arduino Lecture 2 - Interactive Media CS4062 Semester 2 2009

Examples

Wind-up birds is an installation of networked mechanical woodpeckers.Each woodpecker consists of a woodblock and pushmagnet, a custom-made electronic circuit and a radio modem.All the woodpeckers are connected together in a zigbee wireless network.Every 5 minutes one of the woodpeckers start pecking, and the others answer.

Page 13: Arduino Lecture 2 - Interactive Media CS4062 Semester 2 2009

Examples

Motors and a toy glockenspiel

Page 14: Arduino Lecture 2 - Interactive Media CS4062 Semester 2 2009

Beware Communications Troubleshooting

use wired versions of your project or idea first, debugging a problem is hard when its wired directly together, wireless adds an additional layer of problems

chatter, too much or too fast can result in loss

wireless is slower than wired

more expensive approaches can improve speed and reliability but all are battery hogs

NAT, routers, and traversing firewalls

Sessions or Messages TCP or UDP

Session makes connection, does handshaking, information is transferred, and then closed

Datagram, similar to physical letter or postcard

Point to Point, Point to Many (multicast), Point to All (Broadcast)

Page 15: Arduino Lecture 2 - Interactive Media CS4062 Semester 2 2009

802.15.4 Topologies

Single peer

Broadcast

Multi peer

Page 16: Arduino Lecture 2 - Interactive Media CS4062 Semester 2 2009

ZigBee Topologies

Peer

Star

Mesh

Routing

Page 17: Arduino Lecture 2 - Interactive Media CS4062 Semester 2 2009

Protocols and ProxiesProxy: Conversion of communication to another type

Network serial (Serial to TCP) TinkerProxy / Griffin Proxi osculator Girder (Windows) Shion, Indigo Sydewynder

Protocol: Structured conversation

Midi / OSC DMX512 X10, INSTEON

http://www.digitalartistshandbook.org/node/10

Page 18: Arduino Lecture 2 - Interactive Media CS4062 Semester 2 2009

Sources for Parts Hacking / Disassembly

use existing high-tech, but inexpensive, objects, toys and devices as cheap source of parts for your projects

little specialist knowledge is required, photograph and document the disassembly

``Low tech sensors and actuators for artists and architects’’ provides examples, by Usman Haque and Adam Somlai-Fischer

Purchase / Stores Many parts are available locally in UL, ask.

Online vendors for electronic parts include farnell.com, mouser.com, and digikey.com

Sensors, shields, kits, servos can also be found from sparkfun.com or parallax.com

Many others, just small selection that I’ve used.

http://lowtech.propositions.org.uk/http://ie.farnell.com/http://www.mouser.com/http://www.digikey.com/http://www.sparkfun.com/http://www.parallax.com/Store/tabid/60/Default.aspx