47
edits
Changes
→Field Research
'''Tung Mach''' (January 15, 1989), better known by his preferred name '''Lance''', is a 3rd year undergraduate student at the [http://en.wikipedia.org/wiki/UCSD University of California, San Diego], currently majoring in both Interdisciplinary Computing and the Arts and Computer Science and Engineering.
== Electronic Technologies for Art I ==
In the quarter of Winter 2010, Lance registered for a class called Electronic Technologies for the Art with Robert Twomey, due to his passion for electronics. Lance finds the class intriguing because he likes the work behind electricity and the process of assembling. Though, Lance doesn't have any knowledge nor previous experience with electronics, he hopes to gain the intelligence to strengthen his creative mind in the art and perhaps acquire a new hobby.
== Midterm Project Proposal ==
== Final Project Documentation ==
Arduino Sketch
int cnt = 0;
int ledPin = 13;
int servoPin = 7; // Control pin 7 for servo motorint servoPin2 = 6; // Control pin 6 for servo motor
int pulseWidth = 0; // Amount to pulse the servo
int pulseWidth2 = 0;
Wire.begin ();
nunchuck_init ();
pinMode(servoPin, OUTPUT); // Set servo pin servoPin as an output pin pinMode(servoPin2, OUTPUT);// Set servoPin2 as an output pin
pulseWidth = minPulse; // Set the motor position to the minimum
pulseWidth2 = minPulse2;
int t = 0;
void loop()
{
if (cnt >= 5) {
// printNunchuckData();
int z_button = 0;
int c_button = 0;
if ((outbuf[5] >> 0) & 1)
z_button = 1;
}
}
cnt = 0;
send_zero();
} // if(t==)
updateServo // Update servo position
delay(dtime);
}