Getting Started with connecting physical computing to web services

10
ArduinoやFunnelを使ったフィジカ ルコンピューティングで、ウェブサー ビスにアクセスしよう! 山辺真幸(2010/10/27

description

Salon physical 20101029

Transcript of Getting Started with connecting physical computing to web services

Page 1: Getting Started with connecting physical computing to web services

ArduinoやFunnelを使ったフィジカルコンピューティングで、ウェブサー

ビスにアクセスしよう!

山辺真幸(2010/10/27)

Page 2: Getting Started with connecting physical computing to web services

大きく分けて

• フィジカルな部分を担当するデバイス

• 制御するPCとソフトウェア

• ソーシャルサービス

Page 3: Getting Started with connecting physical computing to web services

• フィジカルな部分を担当するデバイス→Funnle I/O

• 制御するPCとソフトウェア→MacOSX、Funnel server、FlashかProcessing

• ソーシャルサービス→Twitter、Facebok、

Page 4: Getting Started with connecting physical computing to web services

フィジカルな部分を担当するデバイスFunnle I/O

• http://funnel.cc/

Funnelはアイデアをフィジカルにスケッチするためのツールキットで、ソフトウェア・ライブラリとハードウェアから構成されます。Funnelを用いることにより、センサやアクチューエータをActionScript 3、Processing、Rubyといったプログラミング言語で扱うことができます。

Page 5: Getting Started with connecting physical computing to web services

というわけで

• Funnel を採用することで最初の二つ(デバイスと制御ソフトウェア)がクリアできます。

• デバイスはArduinoでもいいですが、Funnel I/Oだと無線通信できます。

Page 6: Getting Started with connecting physical computing to web services

やってみましょ

Page 7: Getting Started with connecting physical computing to web services

デモの構成• Funnel ver.1.0(r763)

• Mac OX Leopard

• USBドライバ(ftdichip.com のVCP Drivers)

• Funnel IO with ATmega168 (http://www.sparkfun.com/commerce/product_info.php?products_id=8957)

• リチウムイオン電池(http://www.sparkfun.com/commerce/product_info.php?products_id=341)

• XBee 1mW Chip Antenna(http://www.sparkfun.com/commerce/product_info.php?

products_id=8664)

• USB XBee 変換モジュール(http://www.sparkfun.com/commerce/product_info.php?

products_id=8687)

• タクトスイッチ(http://www.sparkfun.com/commerce/product_info.php?products_id=97)

• USBミニケーブル(http://www.sparkfun.com/commerce/product_info.php?products_id=598)

• Arduino IDE(http://www.arduino.cc/)

Page 8: Getting Started with connecting physical computing to web services

やること• funnelのダウンロード

• ドライバのインストール

• XBee無線モジュールの準備

•      X-CTUを使ってファームウェアを1.0.C.Dにしておく(6)

•      エンドでバイスとコーディネータにそれぞれ設定を送る (funnel/tools/XBeeConfigTerminal)(6)

•           エンドデバイス:ATRE,ID1234,MY1,DL0,D02,IR32,IT1,WR

•           コーディネータ:ATRE,ID1234,MY0,DLFFFF,AP2,WR

•      XBeeの設定2(funnel/tools/XBeeConfigTool)(9)

• ファームウェアの書き込み(10)

• Funnel Serverを起動

•      ボードを選択、ポートを選択

• ActionScript もしくは Processingでサンプルを動かす。

( )…Funnelのダウンロードパケージに入っているインストールマニュアルを参照する場合のページ

Page 10: Getting Started with connecting physical computing to web services

今後の進捗は@AlliancePortで。