24 LED A visual programming environment for art work using a LED matrix 1130302 2013 3 1
LED,,,.,. Arduino. Arduino,,,., Arduino,.,, LED,., Arduino, LED, i
Abstract A visual programming environment for art work using a LED matrix Tatsuro IMAI In recent years, physical computing, which realizes exchanging information between people and computers by using not only a mouse, a display, and a keyboard but also I/O devices such as a sensor, an actuator, and so on, is gathering attention. The knowledge of the electronic circuit and programming is indispensable to perform physical computing development, and it is difficult to develop the product for people without those knowledge. Arduino is one of the tools that enable a user easily perform the physical computing development. Arduino consists of a microcontroller, a board with the I/O ports, and development environment of software to control it. Although Arduino is greatly diminishing time to compose electronic circuit, programing skill is still indispensable. In this study, we design a visual programming environment for art work using a LED matrix and then implement it. key words physical computing, Arduino, LED matrix, visual programming langage ii
1 1 1.1............................. 1 1.2.................................. 2 2 3 2.1....................... 3 2.2 Arduino................................... 4 2.3....................... 5 2.4 Intuino.................................... 7 3 9 3.1....................... 9 3.2.............................. 10 4 17 4.1...................................... 17 4.1.1................................ 17 4.1.2................................ 19 5 20 21 22 iii
2.1 Haohao table[5]................................ 3 2.2 Arduino.................................... 4 2.3 ArduinoIDE.................................. 5 2.4 Scratch[7]................................... 6 2.5 ToonTalk[8].................................. 6 2.6 Intuino[3]................................... 8 3.1.............................. 10 3.2................................. 11 3.3.................................... 12 3.4............................ 13 3.5................................... 14 3.6................................ 15 3.7 2................................. 16 4.1 LED................................ 18 iv
v
1 1.1,,, [1].,. Arduino[2]. Arduino,,, ArduinoIDE., Arduino,., Intuino[3]. Intuino LED,,. Intuino, LED, LED,.,,, LED 1
1.2,. 1.2, 5 2,. 3, 4 5 2
2 2.1. wii [4]. wii,, wii. 2.1 Haohao table[5].,. 2.1 Haohao table[5] 3
2.2 Arduino これらのように, 最近では従来のキーボードやマウスを使ったコンピュータの操作から抜 け出して, 自由に情報のやりとりを楽しむフィジカルコンピューティングが日々研究されて いる. フィジカルコンピューティングの構成要素は光, 音, 温度, 加速度などのセンサやモー タ, ソレノイドなどのアクチュエータとマイコンである. フィジカルコンピューティング開 発を行う場合, 電子回路やプログラムといった, ハードウェアとソフトウェアの両方の知識 を含めて考える必要がある. 2.2 Arduino Arduino は, マイクロコントローラ 図 2.2, 入出力ポートを備えた基板, それを制御す る ArduinoIDE と呼ばれるソフトウェアの開発環境により構成されている. Arduino はエ ンジニア以外にもわかりやすいように説明や開発環境が工夫されており, 簡単にマイコンを 制御することができる. モジュール化された入出力機能とその扱いやすさから, フィジカル コンピューティングを考えるためのツールとして, 教育の一環やデザインやアートを仕事と する人の間で広く普及している. 図 2.2 Arduino ArduinoIDE 図 2.3) は C++に似たプログラム言語で開発を行う. 記述言語が高い自由 度を持っているため 様々な処理を行うプログラムを記述することができる. 4
2.3 2.3 ArduinoIDE 2.3 [6],. Scratch[7] 2.4. MIT Media Lab Lifelong Kindergarten Group ( ), ToonTalk[8] 2.5.,,. ToonTalk,,. 5
2.3 2.4 Scratch[7] 2.5 ToonTalk[8],.,. 6
2.4 Intuino,. 2.4 Intuino Intuino 2.6. Intuino,,. Intuino,.,.,,..,.,,. Intuino Arduino I/O, Arduino.,.,., LED GUI. 7
2.4 Intuino 2.6 Intuino[3] 8
3 Intuino, LED, LED,.,,, LED,. 3.1 LED, LED,. LED......,,. 3.1., 9
3.2.,., Arduino., LED,. 3.1 3.2 3.2 ArduinoIDE LED.,.,, LED., LED, 10
3.2. 3.2 11
3.2, LED... 1. 8 8 LED.. 3.3. 3.3 12
3.2 2.. LED. LED 3.4. 3.4 13
3.2 3.,,., Arduino.,,.,. LED.,., 3.5. 3.5 14
3.2 4. 3.6. 3.6 15
3.2 5., Arduino 3.7. 3.7 2 16
4 4.1 4.1.1 4 2 ArduinoIDE, LED 3 0.5. 4.1, LED. Arduino LED,,. ArduinoIDE,. 17
4.1 実験 図 4.1 LED マトリクス 18
4.1 4.1.2 ArduinoIDE 30, 5. ArduinoIDE, LED,., LED,. ArduinoIDE,. 19
5,, LED., ArduinoIDE,.,., LED, LED, LED, LED,, LED. 20
. 2,,.,.,. 21
[1] D. O Sullivan and T. Igoe, Physical Computing: Sensing and Controlling the Physical World with Computers, Course Technology, 2004. [2] Arduino Software, Arduino, http://www.arduino.cc/ [3],, Intuino:,, 2010-HCI-137, pp.1 4, 2010. [4] wii, http://www.nintendo.co.jp/wii/ [5], (No.8) Gainer,, Vol.64, No.11, pp.1598 1601, 2010. [6] P. T. Cox, Visual Programming Languages, Wiley Encyclopedia of Computer Science and Engineering, Vol.5, pp.3015 3025, 2009. [7] Scratch, http://scratch.mit.edu/ [8] ToonTalk, http://www.toontalk.com/ 22