→ Personal  Practice: Inorganic Energy


My interest was to explore and test wit differnet kinds of sensors. In this project, I am testing out with three different sensor to simulate of how inorganic energy would effect the visual by touch designer. In this case, I have three example: Water, Magnet and Wind.



Water



Here, I am using water level sensor to detect how much water has been “absorbed” by the sponge I created in touch designer. When the water level go deep, the amount of transformation of the shape would be more.



int resval = 0; 
int respin = A0;

void setup() { 
    Serial.begin(9600);


void loop() { 
    resval = analogRead(respin);    
   
    Serial.println(resval); 

delay(200); 
}





Connect the water level data to the noise’s amplitude.


Magnet




Here, I am using magnet spring the detect the magnet source in my macbook pro. When the sensor approach to the magnet, the grid of the little balls will be attract to the center.
 

I am only using the data from digital pin, since the magnet is really sensitive. By printing only 0 and 1, the result might be more secure.


int ANALOG_MAG_PIN = A1; 
int DIGITAL_MAG_PIN = 5;
int mag_D; 

void setup() { 
    Serial.begin(9600); 
    pinMode(ANALOG_MAG_PIN, INPUT);
    pinMode(DIGITAL_MAG_PIN, INPUT);

void loop() { 
     mag_D = digitalRead(DIGITAL_MAG_PIN);

    delay(100); 
    Serial.println(mag_D);
}





The data of the sensor will connect to the “force” that control how the points go to the center.

Wind


I didn’t have a wind sensor, so I decide to use a big sound sensor to detect the “blowing” energy of a wind. 


(Just in case there is no sound, I am blowing the microphone)
In this effect, I build up a sand like visual in touch designer. After people blow the microphone, the sand will be blow and create visual effect .


const int soundSensorPin = A2;

void setup() { 
   Serial.begin(9600);
}

void loop() { 
   int soundLevel = analogRead(soundSensorPin);     
    
   Serial.println(soundLevel); 
   
delay(100);
}




After remapping the sound data in TD, here, I connected the data to the translate option of the Point transform, to control the start of the blowing effect.