IFD:Fire Water Air and Earth. And Electricity!/Shuyan

From Medien Wiki

Introduction

Nowadays, Arduino has been widely used to be as input and output in physical programming, and I wanna find out a different way which can be more convenient to build interactions between Arduino and our daily life. So what I have done was to use mobile terminal as a way to make something happen in Arduino side. I found TouchOSC from my research, this app is a data transmission based on osc(open sound control) message. Here is the website: http://hexler.net/software/touchosc. There are many intersting user interface can be found in TouchOsc, and the controls vary differently to fullfill your different needs.

How it works

Phone and computer are necessary to be connected to the same wireless network, and typing in the ip adress of your computer in TouchOSc side, so that connection is built to send the data from TouchOsc to your computer. In order to receive the data of TouchOsc in processing side, you need to write the incoming port which is outgoing port in TouchOsc side. After that, data are analyzed to be sent to Arduino through the serial port. NOTICE: you should upload your Ardunio first to build the connection between your Arduino IDE and your sensors before you run the processing code, so that the connection between processing and TouchOsc will not occupy the serial port. So in this work, I was using the push controls in TouchOsc to control the rotation of servo in Ardunio side. Processing was used to receive the data of TouchOsc and read the data of the controls to be sent to the servos in Arduino side.  

Development

When I was choosing to use the servos, I wanted to build my mobile phone as a portable controller to control the movement of an object. So it literally can be developed into many other contollers, such as remote Car controller, remote Fan controller, etc.