Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
[Processing x Android] 用手機與Processing互動
Search
ygtw
August 19, 2012
Technology
3
170
[Processing x Android] 用手機與Processing互動
ygtw
August 19, 2012
Tweet
Share
More Decks by ygtw
See All by ygtw
略懂臺南
ygtw
0
81
Ulrich Neisser &記憶的發展:新問題和舊問題 (2003)
ygtw
0
85
舞動的人群
ygtw
1
69
千古難題四句教 : 王陽明相關文獻整理
ygtw
0
160
集點王怪獸之決鬥
ygtw
1
54
丟瓶子高手 Mr.MagiC
ygtw
1
68
近三年資訊資工相關科系面試心得
ygtw
0
190
我評《後‧青春期的詩》er.pdf
ygtw
0
68
腦波的認知介面與無處不在的應用:發展和挑戰
ygtw
1
73
Other Decks in Technology
See All in Technology
いいたいことちゃんという
tkengo
0
220
Microsoft for Startups Founders Hub_20240429 update
daikikanemitsu
1
2.4k
DMM.com アルファ室採用案内資料
hsugita
1
210
One engineer company with Ruby on Rails
rstankov
2
410
いつか使うかも貯金してたらめちゃめちゃ機能が増えてた話
riyaamemiya
0
580
Android Target SDK 35 (Android 15) 対応の概要
akkie76
0
140
Cloud Service Mesh に触れ合う
phaya72
1
130
Cracking the KubeCon CfP
inductor
2
270
データベース02: データベースの概念
trycycle
0
180
Amplify 🩷 Bedrock 〜生成AI入門〜
minorun365
PRO
7
360
EM完全に理解した と思ったけど、 やっぱり何も分からなかった話 / EM Night Fukuoka #1
hirutas
0
260
ルーターでプレゼンする
puhitaku
1
3.2k
Featured
See All Featured
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
123
39k
[RailsConf 2023] Rails as a piece of cake
palkan
27
4k
Learning to Love Humans: Emotional Interface Design
aarron
267
39k
How to train your dragon (web standard)
notwaldorf
74
5.2k
Robots, Beer and Maslow
schacon
PRO
155
7.9k
Web development in the modern age
philhawksworth
203
10k
Designing for Performance
lara
602
67k
Scaling GitHub
holman
457
140k
Designing with Data
zakiwarfel
96
4.8k
Docker and Python
trallard
35
2.7k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
222
21k
Writing Fast Ruby
sferik
622
60k
Transcript
[Processing x Android] 用手機與Processing互動 加速度感應器(Accelerometer) +WIFI網路傳輸 張小均@DDmeeting(超大雨提早取消XD) 2012/6/13 1
互動APP影片DEMO 投桃爆裡(youtube) http://www.youtube.com/watch?v=eXSSYz4sRn4&feature=youtu.be 圓圈數和顏色是由聲音頻率與音量大小決定 圓圈可隨手機互動位移 2
互動APP影片DEMO 步步精歆(youtube) http://www.youtube.com/watch?v=pwXx4ScuSJU&feature=youtu.be 以麥克風收音大小控制字型大小 手機搖晃字體顏色改變 此張底圖就是DEMO圖片XD 3
取得加速度感應器資料 現成APP:TouchOSC 跨平台、穩定 台灣PD之神阿怪大大推薦 4
取得加速度感應器資料 自行設計讀取加速度感應器的APP Processing for Android提供範例可直接參考 開啟[Processing] → 轉換為 [Android]模式→選單[file] →
[Examples…] Accelerometer (加速度感應器) Compass (羅盤) 外掛Ketai可以提供一些資訊,但很多compile不過 5
加速度感應器 6
羅盤 (可取得偏移量) 7
其他手機上的感測器 (Samsung ST5570) GPS Ketai執行OK 相機 撰寫原生APP 錄音 PureData for
Android 8
網路連線套件 傳遞加速度感應器的資料到PC Processing的Android套件沒有支援網路 要裝外掛:OSCP5 支援PC 支援Android (初次安裝要做一點小設定) 多隻Android也沒問題 提醒:IP要設對,Port要設對,防火牆要開 9
範例程式碼們 裝好外掛的Processing2.0a6 投桃爆裡(Processing OSCP5-server端) Android APP:以網路傳送加速度感應器 OSCP5 Client + Processing
example Accelerometer 10