Recitation 5: Processing Basics

I chose this photo because it’s aesthetically beautiful, and it represents my home country, Thailand. I wanted to convert this image into simple shapes and code it into Processing. 

This drawing is similar to the original photo in ways that the structures are the same, however I removed the unnecessary details so that it would be easier for me to code in Processing. 

This is my drawing for Processing. I do believe that this is a good mean for my design, since there are endless of possibilities that I can do with it for art. I added some colors to make it look better, but I still have a lot to work on.

Code:

void setup() {
    size(600, 800);
}
void draw() {
    // Your drawing code goes here
    background(255);
    color g = color(0,255,0);
    fill(g);

    bezier(200, 200, 460, 40, 300, 290, 800,100); //mountain 1
    bezier(00, 200, 460, 40, 300, 290, 600,400); //mountain 2
    bezier(200, 300, 460, 40, 300, 290, 800,400); //mountain 3

    color b = color(70, 135, 200);
    fill(b);
    arc(300, 450, 1000, 320, 0, TWO_PI, CLOSE);

    fill(255);
    rect(0, 320, 130, 10); //platform
    rect(0, 320, 10, 40); //wall 1
    rect(35, 320, 10, 40); //wall 2
    rect(70, 320, 10, 40); //wall 3
    rect(105, 320, 10, 40); //wall 4
    rect(70, 320, 10, 40); //wall 5
    rect(52, 290, 5, 30); //stand
    rect(87, 290, 5, 30); //stand
    triangle(38, 290, 55, 280, 70, 290); // umbrella
    triangle(73, 290, 90, 280, 110, 290); //umbrella

    color c = color(255, 204, 0);
    fill(c);
    circle(230, 520, 10);
    triangle(220, 525, 240, 525, 230, 550);
    rect(225, 545, 5, 25);
    rect(230, 545, 5, 25);
    rect(220, 525, 5, 23);
    rect(235, 525, 5, 23);

    circle(265, 520, 10);
    triangle(255, 525, 275, 525, 265, 550);
    rect(260, 545, 5, 25);
    rect(265, 545, 5, 25);
    rect(255, 525, 5, 23);
    rect(270, 525, 5, 23);

    circle(310, 520, 10);
    triangle(300, 525, 320, 525, 310, 550);
    rect(305, 545, 5, 25);
    rect(310, 545, 5, 25);
    rect(300, 525, 5, 23);
    rect(315, 525, 5, 23);}

Midterm Project: Make, Present & Report

A. Music Hand – Tawan – Rodolfo Cossovich

B. CONTEXT AND SIGNIFICANCE

          The previous group project has allowed me to be better equipped for working on a group project. For instance, the time management and the work division are far more efficient than the first group project. This midterm project shows interaction because based on my definition of it, the user sends a signal to the glove and the buzzer and the lights respond back to the user. This project was based on a music game where players have to press the right note, but we’ve elevated it so that there’s much more interaction than just a finger and a screen. We’ve also made it multiplayer, in which musicians can play this game in order to test their memory and hearing skills.

 D. FABRICATION AND PRODUCTION:

          Throughout the project, we’ve stumbled upon several problems that almost made us change the entire project, hardware and software included. We ran into coding problems where the if-then statement for the competition game part doesn’t work, which would then defeat the whole purpose of this project. We’ve also run into hardware problems such as the aluminum foil not sending proper or accurate signals to the output, which caused some abnormal errors and malfunctions. We’ve got several good feedbacks from the User Testing Session, but one critique that we got repeatedly is to use LEDs as a visualizer for the game so that the player can understand the game better. We didn’t alter anything much after the user testing since we’ve basically finished 80% of the project, so our adaptation after that session was just improving the errors that occurred several times during the testing. We’ve always known that we were going to make an instrument that would also be a game, and we decided to work on the details that would still make this project interesting while not being too much out of our skill level.

E. CONCLUSIONS:

          Our goal for this project always has been to create an instrument that would also act as a game, and I believe that we’ve done exactly that for our final result. This midterm project shows interaction because based on my definition of it, the user sends a signal to the glove and the buzzer and the lights respond back to the user. The audience interacted exactly the same way I expected them to interact with this project. If I had more time, I would definitely improve the finger sensor so that it’s easier to press while also not making the metal plate fall off the glove. I’ve taken away many good and bad feedbacks from this project, such as time management and dividing workload are essential to group projects, and I’ve also realized that most of the time the real result of the project would be much different than the initial plan due to all the setbacks we would face throughout the process. This led me to learn that everything needs trial and error before we can find the most optimal solution to a problem. This project can allow the user to test and improve their memory skill as well as their hearing skill, which would be very beneficial, especially to musicians.

 User Testing:
 

Final product:


F. ANNEX

Recitation 4: Actuators & Mechanisms

Step 1: Build the circuit

In this step, my partner Stephen and I ran into some problems such as not knowing the name of each component and its functions. After some research and questions, we could figure out the general idea of what this recitation is about. We made sure to follow the hardware diagram carefully since we didn’t want to mess it up and figure out which part was wrong again, so we tried to do it right on the first try. In the end, it worked out in our favor.

Step 2: Build a cardboard mechanism!

We didn’t really run into any problems in this step because all we had to do was cut out the pieces of cardboard and assemble them together. However, the cutting part took the most time out of all the steps in this recitation. 


 

Step 3: Personalize it

In this step, we added a triangle in the front of the machine and increase the rotation speed to its max. We also remove the counterclockwise code so that the machine would only spin one way.

 

Documentation

Question 1: Bill Vorn, Hysterical Machine, 2006

This machine that Bill Vorn made is similar to our recitation project because the legs that he used for the machine also use actuators that move back and forth and works as a joint, or an arm. The artist is likely to choose the actuator based on the function that he wants the part to do.

Question 2: 

The mechanism I’m interested in building for my midterm includes a mechanism that functions on a glove. Me and my partner wanted to make a glove instrument that makes a sound, in which a mechanism that involves hand function would suit our project. Our motor will be different in that instead of using the finger and screen as the input and the output, we will use each finger and sensor as the input and the output. 

INDIVIDUAL PROJECT PROPOSAL

Music Hand – Tawan – Rodolfo Cossovich

Music is our significant topic, however, our project also expands to other significant topics as well, such as interactive wearables, multiplayer games, and inclusive design. Our project is inspired by rhythm games, but our project includes a new level of interactivity that doesn’t only consist of buttons and fingers. The challenge we seek to address is mainly how to make the game multiplayer so that there will be more interactivity among the users. 

 

Group Research Project: Make, Perform & Report

Script:

Scene 1
Stephen: (pretends to be crying)

Kenneth:

* Walks pasts Stephen and sees him crying*

*stops and switches the button to the “logical” side

*changes attitude*

Kenneth: Hey, I see you’re upset, do you want to talk about what happened?

Stephen: Yes, I can’t finish my recitation blogs. They are too long. It was like at least 800 words for each blog. I can’t take it any more.

Kenneth: I finished mine a really long time ago. You should catch up, you’re so slow.

Stephen: you’re so mean, “switches knob for emotional side”

Kenneth: oh, I can relate. It’s all going to be fine, I can help you do it!

Stephen: thanks bro *hugs me*

Scene 2

Flora: *trips Freddie*

Freddie: *falls and cries*

Tawan: *puts the helmet on*
*switches the button to the logical side*
*changes attitude*
“Next time you should calculate the possibility of that happening so this wouldn’t happen to you again.”

Freddie: How am I supposed to know what she’s going to do?

Tawan: “There’s a high probability that your friend would prank you, 70% to be precise. Your mental capability is just not high enough to see that coming”.

Freddie: “You know that most people would be helping me instead of lecturing me about what to do right?”

Tawan: “Emotions are temporary. Logics are permanent. People can change emotions, but they can’t change facts. I am telling you what to do so you can think more rationally instead of crying like a baby”.

Freddie: “I don’t like you”.

Tawan: *switches the button to the emotional side*
“I’m so sorry bro I don’t know what came over me, you good?”

Freddie: “Yea I’m okay bro, thanks for asking”

Tawan: *holds out his hand to Freddie and helps him get up*

Scene 3
Stephen : *puts the helmet on with the emotional mode*

Freddie: Why don’t we go out tonight?

Stephen: Yay, lez goooo! Where are we going? Clubbing?

Freddie: Yeah, but I really don’t feel like clubbing, maybe dinner?

Stephen: *switches his helmet to the logical side*

Stephen: Yes, that sounds better. We have a lot of interaction lab homework to do. It’s a Wednesday night, Freddie.

Freddie: You’re right, we should finish all of our work today. You are so logical!!

STEP 2: Make

Our group decided to go with my invention for the second story, “The Ones Who Walk Away from Omelas”. After a quick brainstorm, we came up with a helmet that will allow you to adjust your logical thinking and your emotional thinking by adjusting a knob. For example, you could allow your brain to think 100% logically or 100% emotionally, or 50% logically and 50% emotionally. We also researched the existing technologies that are similar to our brainstormed invention, and we came across A.I./Machine learning, which allows you to foresee potential outcomes, but it only deals with the logical side and does not account for emotional thinking.

Evidently, there will be problems that occurred because of this invention, and we listed a few:

  • People won’t be able to think critically without helmets, as they have always relied on them.
  • Lack of emotion may cause society to not be as productive as daily things progress due to the balance between logic and emotion
  • The thinking pattern of human beings would be fixed in a certain ratio of logical and emotional thinking. However, regular everyday thinking doesn’t work in such a way where a certain ratio was all set up beforehand. The ratio at most times was random, and it should be random, freed of restricted patterns.

STEP 3: PERFORM

After building the helmet we then work on the script. We decided to include multiple scenarios of people using the helmet to better clarify its function of it without actually saying what it does. We ended up with 3 different scenes where each one utilizes the maximum efficiency of the logic/emotion side on the helmet. We then rehearsed it multiple times until we are all comfortable with the script.

 

STEP 4: REPORT

In the story of Omelas, everyone doesn’t feel sad because the deprived boy in the basement “experiences” the suffering of every citizen in Omelas. My idea for this story is to create a helmet that can control how severe your emotion can be. After some thinking, I realized that if I decrease/increase emotion, then the reciprocal of that should also increase/decrease. I knew that the reciprocal must be the logical side, so I included that as part of the invention.  

In my research blog, I wrote the definition of interaction as the action when 2 or more objects/persons “play” with each other back and forth. Both my invention and Kenneth’s invention involve interaction since our inventions were fairly similar. Both of our inventions are interacted by our hand adjusting a button, which will result in the helmet responding back in a certain way.

rough draft

I would say our artifact is a success since it came out the way we envisioned it and it does the function that we need it to. Apart from my invention idea, my contribution to the group includes, cutting the necessary components for the cardboard build, writing my part of the script, and acting out the script. 

There is this one group that invented a security glass where you can see previous footage of crime while it also alerts you when the crime happens. This invention is relevant to the first story where the parents got eaten by the lions. With this invention, security guards and police will be alerted when a crime occurs. I really like how well the script was made since it clearly shows the purpose of the glass. However, I do believe that the glass can be better designed because it slightly looks like normal glasses.

Recitation 3: Sensors

Step 4:

 

Step 5:

Code:

int SENSOR_PIN = 2;
int tiltVal;
int prevTiltVal;

void setup() {
  pinMode(SENSOR_PIN, INPUT); // Set sensor pin as an INPUT pin
  Serial.begin(9600);
}

void loop() {
  // read the state of the sensor
  tiltVal = digitalRead(SENSOR_PIN);
  // if the tilt sensor value changed, print the new value
  if (tiltVal != prevTiltVal) {
    Serial.println(tiltVal);
    prevTiltVal = tiltVal; 
    if (tiltVal == 0){
      Serial.print("Bicep curl:");
      repcount +=1
      Serial.println(repcount);
  }
}
  if (repcount == 8){
    Serial.println("Yay, you've done one set of curls");
    repcount = 0;
    delay(10);
}

Drawing: 

4. 

After some trial and error, we found out that the angle of tilt that transition between HIGH and LOW is around 45 degrees. I noticed that sometimes the motor doesn’t register went we tilt it too fast. We also discovered that the motor still registers a change even by shaking it, thus making us do the “cowboy whip workout” for step 5. The length of the wires also seems to affect the tilt. When my partner held the motor close to his palm, it seems to register better than when it’s near his elbow.