Close

Week 7

A project log for Dynamic Interactive - Urbanscapes

This is a school project that follows Urbanscapes Malaysia brief, to create an interactive design related to Malaysia art and culture.

aprilmomo0416aprilmomo0416 12/20/2018 at 02:530 Comments

1st Nov 2018-Thursday

Exploring on Props Making

Prototyping progress:

This week we only focus on prototyping. We built up a miniature prototype mini market which called "Kedai Runcit" in Malaysia. Besides, we also built up the exterior and interior too to let us more easily arrange the placements. After that, we continue to made our little props.

-Refining design

-More prototyping, improving the mechanism and interacting part.

-Did some attempts of the measurements of different parts to make sure it is fit.

We did some simple coding for testing the mechanism

void setup() {
  // put your setup code here, to run once:
  pinMode(3, OUTPUT);
  analogWrite(3,30);
}

void loop() {
  // put your main code here, to run repeatedly:

}
const int buttonPin = 2;     // the number of the pushbutton pin
const int ledPin =  13;      // the number of the LED pin

// variables will change:
int buttonState = 0;         // variable for reading the pushbutton status

void setup() {
  // initialize the LED pin as an output:
  pinMode(ledPin,OUTPUT);
  // initialize the pushbutton pin as an input:
  pinMode(buttonPin, INPUT);
}

void loop() {
  // read the state of the pushbutton value:
  buttonState = digitalRead(buttonPin);

  // check if the pushbutton is pressed. If it is, the buttonState is HIGH:
  if (buttonState == HIGH) {
    // turn LED off:
    digitalWrite(ledPin, LOW);
  } else 
  if(buttonState == LOW) {
    // turn LED on:
    digitalWrite(ledPin, HIGH);
  }
}

Motor spinnig:

int mot1 = 8;
int mot2 = 9;
int en1 = 10;

int val = 0;

void setup() {
  // put your setup code here, to run once:
  pinMode(mot1,OUTPUT);
  pinMode(mot2,OUTPUT);
  pinMode(en1,OUTPUT);

  digitalWrite(mot1,HIGH);
  delay(5000);
  }

void loop() {
}

Discussions