SD5529 Embedded Interaction Workshop Mdes Interaction Design 2010-2011
Hong Kong Polytechnic University
Tuesday, 8 March 2011
1:15 Full size model development
Fully Open
Closed
Front View
Gear ratio 1:8, power is not enough. Plan to buy a 13kg power servo motor.
Further testing Scissors Mechanism
Thursday, 3 March 2011
1:15 Full size Testing
Scissors Mechanism
Attempted using 1 motor to link up two motions but failed.
We will try to operate using two motors.
Tuesday, 1 March 2011
Thursday, 24 February 2011
Prototype - Projector Mechanism 8
Scenaio
Mechanism
Arduino testing
Code:
#include <Servo.h>
Servo myservo;
boolean switchValue1;
boolean switchValue2;
boolean switchValue3;
void setup() {
pinMode(3, INPUT);
pinMode(5, INPUT);
pinMode(7, INPUT);
myservo.attach(9);
}
void loop() {
switchValue1 = digitalRead(3);
switchValue2 = digitalRead(5);
switchValue3 = digitalRead(7);
if(switchValue1==LOW && switchValue2==LOW && switchValue3==LOW) {
myservo.write(0);
}
else if(switchValue1==HIGH && switchValue2==LOW && switchValue3==LOW) {
myservo.write(60);
}
else if(switchValue1==HIGH && switchValue2==HIGH && switchValue3==LOW) {
myservo.write(120);
}
else if(switchValue1==HIGH && switchValue2==HIGH && switchValue3==HIGH) {
myservo.write(179);
}
}
Subscribe to:
Posts (Atom)