In this recitation I decided to attend the Serial- Communication session to refresh my knowledge on sending information from Arduino to Processing. I was pervasively struggling to understand the sequence of events that needed to be followed to get the result on the screen. I realised my mistake was the inability to locate the correct ports, thus my code couldn’t be tested. I used the printArray(Serial.list()); to locate the correct port from the list and was able to continue. As the potentiometers are more than familiar in setup with all of our practice, the first step was simple to follow: making the location of the ellipses on the screen adjustable with the two potentiometers. We also added a button, and I was testing how processing could receive the output value if (valueFromArduino == 1) if I used serialWright, instead of println(). I had to switch the jumper cabels a few times to locate the correct legs for power, ground, and connection. While working with the button in this recitation, I am beginning to consider the integration of this function into my final project, as it could be the receiving end of the input from the user initiating the experience.
Since I am planning to have a video looping as the projection onto the sculpture, I would like some sort of an indicator of when the audio should start playing. A button would work very well for this purpose as it could be located right by the headset, with some sort of instructions to push when ready to start the audio curatorial.
I have began building the code for my final setup, which includes the audio and the video files being called in one sketch. The audio will begin when the button is pushed, but I want to achieve the result of the video looping uninterruptedly. I was able to get this to work on a separate sketch:
import processing.video.*;
Movie myMovie;
void setup() {
fullScreen();
myMovie = new Movie(this, “deep.mov”);
myMovie.loop();
}
void draw() {
image(myMovie, 0, 0);
}
void movieEvent(Movie m) {
m.read();
}
I am currently struggling in combining the two medias into one fluid experience. My issues always arise on the Arduino side, I will reach out for some help before presentation day. The Workshop was very helpful in regards to my final project progression!!