flex wall
TRANSCRIPT
-
8/14/2019 Flex Wall
1/17
flex wall
arc3015 :: Studio Assignment 01
-
8/14/2019 Flex Wall
2/17
The wall is completely
composed of separ e spring-
like elements. In its init
al
state, the room off rs equal
possibilites for pas age.
Approaching any o e of the
spring e ements wi cause t
e ement to ower orp ing
rom wa to oor, so i to voi .
In re -world applicatons,
hydra ics would presumably be
used for this a on.
Sensors on the floor in front
and behind each spring element
react to the approach of the
user.
-
8/14/2019 Flex Wall
3/17
If entered, the spring close
behind the user an is lit
from below. Each e trance
increases the light, each exit
diminishes the light
.
-
8/14/2019 Flex Wall
4/17
As actvity occurs across
the threshold, certa
paths become brig ter,and logically, their
brightness labels them
as entrances thereby
a
ract
ng more users.
Over tme, t e ope
possi i ity o e an
wall owly drifs into
well rn paths...
-
8/14/2019 Flex Wall
5/17
...only to be broken by the brave and the curious.
-
8/14/2019 Flex Wall
6/17
plan elevaton
possible scenario A: blank slate
-
8/14/2019 Flex Wall
7/17
plan elevaton
-
8/14/2019 Flex Wall
8/17
-
8/14/2019 Flex Wall
9/17
plan elevaton
-
8/14/2019 Flex Wall
10/17
plan elevaton
-
8/14/2019 Flex Wall
11/17
plan elevaton
possi e scenario B: aggregaton
-
8/14/2019 Flex Wall
12/17
plan elevaton
-
8/14/2019 Flex Wall
13/17
plan elevaton
-
8/14/2019 Flex Wall
14/17
plan elevaton
-
8/14/2019 Flex Wall
15/17
plan elevaton
-
8/14/2019 Flex Wall
16/17
//Sensor A is Connected to Analog pin 5 --> Outside Sensor//Sensor B is Connected to Analog pin 4 --> Inside Sensor
Declare Universal Variables
// calibraton averagesnt averageA;int averageB;
// tming elementslong a_Passed_Time;long b_Passed_Time;long t;
// people trackingint just_Passed_A=-1;int just_Passed_B=-1;int people_Count=0;
// include Servo#include Servo myservo; // create servo object to control a servo
//////////////////////////////////// Setup
void setup(){Serial.begin(9600);pinMode(6,OUTPUT);
// setup servomyservo.aach(3);myservo.write(170);
Calibrate the first sensorfor(int i=0;i
-
8/14/2019 Flex Wall
17/17
//////////////////////////////////////Begin Program
void loop(){
// Read photocellsint A = analogRead(5);int B = analogRead(4);
// entrance photocell is triggeredif (A < averageA /2){a_Passed_Time=millis();just_Passed_A=1;myservo.write(0);
}
// exit photocell is triggeredif (B < averageB/2 ){b_Passed_Time=millis();just_Passed_B=1;myservo.write(0);
}
// if passage is triggered but not used in 5 sec, close passaget = millis();if (just_Passed_A==1 && just_Passed_B==-1 && t-a_Passed_Time
>5000|| just_Passed_A==-1 && just_Passed_B==1 && t-b_Passed_Time >5000){
long t = millis();just_Passed_A = -1;just_Passed_B = -1;myservo.write(170);
}
// if passage is triggered and usedif (just_Passed_A==1 && just_Passed_B==1){
// reset just_Passedjust_Passed_A = -1;just_Passed_B = -1;// use tme to judge directonif(a_Passed_Timeb_Passed_Time){people_Count=people_Count-1;if (people_Count < 0) {people_Count = 0;
}}myservo.write(170); // raise wallanalogWrite(6,people_Count*20); // adjust light level
// give tme to move out of the way before recalibratngdelay (1000);
// recalibrate as the light levels would have changed//Calibrate the first sensorfor(int i=0;i