GMU:Speculative Atmospheres II/Sam Ryu

From Medien Wiki

The Light and Resonance in the Air

Speculative Atmospheres ll,WiSe 2021/22

Sound and Light Sensors Experiment with Arduino+Max/Msp by Ryu,Sam


P-001.jpg


1.IDEAS

01.png 02.png


The light sensors(Photoresistor) send frequency data of light projected through the projector In space to Arduino - Max. This data is converted to play a random combination of five soundtracks. The flow of music continues to change because the soundtrack layers are played differently according to the frequency of light.

Light illumination may not be dynamic outdoors in winter, so an environment where light can be used indoors as an alternative, but it would be also possible to use natural light.

This is a basic attempt to make the environment compose music, and ideas can be further embodied in the future.

-PROCESS

A.Arduino / Sensors

01. Prepared five photoresistors (light sensors).

02. Measuring the lowest/maximum resistance value with a multimeter.

03. The resistance value is calculated according to the following formula.

R2= √R1(max)xR1(Min)

04. Connect the five photoresistors with the appropriate register (R2) to the breadboard.

Sam-breadboard.jpg


B. Arduino

01. Initialize five sensors, receive data values from Arduino, and send them to Max.

int val[6];//array.5 light sensors total

void setup() {

 Serial.begin(9600); //Serial Communication set up 

}

void loop() {

 //Read analog inputs one by one and send them to Max/Msp

// (val, from min, from max, to min,to max) //map(valueToBeMapped,0,1023,0,300);

 for(int i = 0; i < 5; i++){
   val[i] = map(analogRead(i),0,1023,0,analogRead(A5));
   Serial.print(val[i]);
   Serial.print(" ");
 }
 Serial.print(analogRead(A5));
 Serial.print(" ");
 Serial.println();
 delay(10); 
 

C. MAX/MSP

01. Receive data transmitted from Arduino through Arduino and Max connection patches.

02. Sending data to five tracks by applying speed control with random values.

03. Sound generated by the data value of light.


04.png


-CURRENT STATUS 23.Jan.2022 Completed receiving data from five sensors and sending them to each track. Practising making more colourful sounds (adding Delay, Reverb etc) by developing patches in Max.