Interactive Art [Week 7] - LED Video

Homework 1


Code

const int WhiteButtonPin = 8;
const int RedButtonPin = 9;
const int YellowButtonPin = 10;
const int GreenButtonPin = 13;

int WhiteButtonState = 0;
int RedButtonState = 0;
int YellowButtonState = 0;
int GreenButtonState = 0;

void setup() {
  pinMode(WhiteButtonPin, OUTPUT);
  pinMode(RedButtonPin, OUTPUT);
  pinMode(YellowButtonPin, OUTPUT);
  pinMode(GreenButtonPin, OUTPUT);

}

void loop() {

  digitalWrite(GreenButtonPin, HIGH);
  delay(300);

  digitalWrite(YellowButtonPin, HIGH);
  delay(300);

  digitalWrite(RedButtonPin, HIGH);
  delay(300);

  for (int i = 0; i < 3; i++)
  {
    digitalWrite(RedButtonPin, HIGH);
    digitalWrite(YellowButtonPin, HIGH);
    digitalWrite(GreenButtonPin, HIGH);
    delay(100);
    digitalWrite(RedButtonPin, LOW);
    digitalWrite(YellowButtonPin, LOW);
    digitalWrite(GreenButtonPin, LOW);
    delay(100);
  }

  delay(300);
  for (int i = 0; i < 2; i++)
  {
    digitalWrite(RedButtonPin, HIGH);
    digitalWrite(YellowButtonPin, HIGH);
    digitalWrite(GreenButtonPin, HIGH);
    delay(200);
    digitalWrite(RedButtonPin, LOW);
    digitalWrite(YellowButtonPin, LOW);
    digitalWrite(GreenButtonPin, LOW);
    delay(200);
  }
  delay(300);
  for (int i = 0; i < 2; i++)
  {
    digitalWrite(RedButtonPin, HIGH);
    digitalWrite(YellowButtonPin, HIGH);
    digitalWrite(GreenButtonPin, HIGH);
    delay(200);
    digitalWrite(RedButtonPin, LOW);
    digitalWrite(YellowButtonPin, LOW);
    digitalWrite(GreenButtonPin, LOW);
    delay(200);
  }
  delay(300);
  for (int i = 0; i < 2; i++)
  {
    digitalWrite(RedButtonPin, HIGH);
    digitalWrite(YellowButtonPin, HIGH);
    digitalWrite(GreenButtonPin, HIGH);
    delay(200);
    digitalWrite(RedButtonPin, LOW);
    digitalWrite(YellowButtonPin, LOW);
    digitalWrite(GreenButtonPin, LOW);
    delay(200);
  }

  for (int i = 0; i < 5; i++) {
    digitalWrite(GreenButtonPin, HIGH);
    delay(100);

    digitalWrite(YellowButtonPin, HIGH);
    delay(100);

    digitalWrite(RedButtonPin, HIGH);
    delay(100);

    digitalWrite(RedButtonPin, LOW);
    digitalWrite(YellowButtonPin, LOW);
    digitalWrite(GreenButtonPin, LOW);
    delay(50);
  }
  for (int i = 0; i < 3; i++)
  {
    digitalWrite(WhiteButtonPin, HIGH);
    delay(100);
    digitalWrite(WhiteButtonPin, LOW);
    delay(100);
  }
  delay(100);
  for (int i = 0; i < 3; i++)
  {
    digitalWrite(WhiteButtonPin, HIGH);
    delay(100);
    digitalWrite(WhiteButtonPin, LOW);
    delay(100);
  }
  delay(100);
  for (int i = 0; i < 3; i++)
  {
    digitalWrite(WhiteButtonPin, HIGH);
    delay(100);
    digitalWrite(WhiteButtonPin, LOW);
    delay(100);
  }
  delay(100);
  for (int i = 0; i < 3; i++)
  {
    digitalWrite(WhiteButtonPin, HIGH);
    delay(100);
    digitalWrite(WhiteButtonPin, LOW);
    delay(100);
  }
  delay(100);
  for (int i = 0; i < 3; i++)
  {
    digitalWrite(WhiteButtonPin, HIGH);
    delay(100);
    digitalWrite(WhiteButtonPin, LOW);
    delay(100);
  }
  delay(100);
  for (int i = 0; i < 3; i++)
  {
    digitalWrite(WhiteButtonPin, HIGH);
    delay(100);
    digitalWrite(WhiteButtonPin, LOW);
    delay(100);
  }
  delay(100);
}




Homework 2

Interactive instalation

Form me this is a safe and new way of people approaching knowledge without been intrusive with nature or put in danger species just for the sake of showing them 
With this kind of exhibitions people can be attracted to interact with something that in other forms of show can be boring or dangerous.

Portable Electronic Drum Kit 


Another project that I liked but more for the fun/cost of it is a portable drum kid (as a student I don't have the budget or space) and this seems as a fun way to have your own instrument at home.


Comentarios

Entradas más populares de este blog

Interactive Art [Week 8] - Interactive Button

Interactive Art [Week 5] - Arrays

Interactive Art [Week 3] - Interactive & Animated