Skip to content →

cws / final update 03

cws_finalupdate02_01

after a good time spent on the internet attempting to understand how the communication between arduino and puredata works through firmata library + pduino, i was able to find a much much simpler way to make the communication between both programs (yes!!). the arduino gets the sensor values and the puredata patch receives those values and using the split object, it can detect each of the values according to it own range. it did communicate well and do what i intend to do BUT it seems that there’s some interference between the sensors (if i change one of them, all of the other parameters change as well).

 

int val1;
int val2;
int val3;

void setup() {
  Serial.begin(9600);
  pinMode(A1, INPUT);
  pinMode(A0, INPUT);
  pinMode(8, INPUT);
}
void loop() {
  val1 = analogRead(A0);
  val2 = analogRead(A1);
  val3 = digitalRead(8);

  val1 = map(val1, 0, 1023, 20, 50);
  val2 = map(val2, 0, 1023, 5, -1);


  Serial.write(val1);
  Serial.write(val2);
  Serial.write(val3);

  delay(100);
}

cws_finalupdate02_02

 

and another good progress was the enclosure/final format of the final. it’s still needs some final tweaks but basically is this big black box below. since i want to talk about how sound can be a matter can create some kind of disorientation, i decided that this experience shouldn’t have any kind of orientation – just the sensor over there, ready to be fooled around according to the user’s will.

cws_finalupdate02_0

Published in cooking with sound fall 2015

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *