Categories
PhysicalComputing

pcomp Midterm prototype

possible names… spokesperson, duchampimation, strobe-a-spoke, duSTROKE (yes! get it? duchamp/spoke/strobe/do stroke/invite to interact)

so on monday the 5th, dave, bob and i got together for most of the day and got our prototype goin. we have the wheel and stool assembled, as wheel as an initial light/strobe system setup. dave and bob focused on the construction and animation. i concentrated on the coding and infrared system. i found that the coding was much simpler than i was making it. the infrared emitter/detector pair gave us some trouble, but it turns out our emitter was not working. rory came to the rescue on that. thanks, rory. we ordered some super bright leds and we’re thinking of animating a 3d object made of clay, and we have materials for that already. presentation today in a few minutes… the feedback from people in the lab on monday was positive, but i hope today is the same.


video 1
video 2

//dave, bob, ben

int irSensor = 0; //analog ir sensor pin
int irValue = 0; //analog ir sensor value
int LED = 7; //LED

void setup()
{
Serial.begin(9600);// start serial port at 9600 bps:
pinMode(LED, OUTPUT);
}
void loop()
{
//read analog value from the IR detector
irValue = analogRead(irSensor);
Serial.println(irValue, DEC); // Print the DEC of sensor
delay(100);
//analogWrite(LED, irValue);
if (irValue > 300) {
digitalWrite(LED, HIGH);
}
else {
digitalWrite(LED, LOW);
}
}

Leave a Reply

Your email address will not be published. Required fields are marked *