Professional Documents
Culture Documents
composed of separat
at spring-
ate
Approaching any on
ne of the
In real-
eal-world applications,
eal-w
hydraulic
aulics would presumably be
aulic
user.
If entered, the spring closes
ess
as “entrances” thereeby
walllll slo
slowly drifts into
well wor
worn paths...
...only to be broken by the brave and the curious.
possible scenario A: blank slate
plan elevation
plan elevation
plan elevation
plan elevation
plan elevation
possible scenario B: aggregation
plan elevation
plan elevation
plan elevation
plan elevation
plan elevation
code: initialization & setup
//Sensor A is Connected to Analog pin 5 --> Outside Sensor
//Sensor B is Connected to Analog pin 4 --> Inside Sensor
// calibration averages
int averageA;
int averageB;
// timing elements
long a_Passed_Time;
long b_Passed_Time;
long t;
// people tracking
int just_Passed_A=-1;
int just_Passed_B=-1;
int people_Count=0;
// include Servo
#include <Servo.h>
Servo myservo; // create servo object to control a servo
///////////////////////////////////// Setup
void setup(){
Serial.begin(9600);
pinMode(6,OUTPUT);
// setup servo
myservo.attach(3);
myservo.write(170);
}
}