Group Research Project: Make, Perform & Report

How do we come up with the idea? The idea is inspired by the second narrative The Ones Who Walk Away from Omelas ( Ursula K. Le Guin, The Wind’s Twelve Quarters)  We formed a WeChat group and brainstormed together. Soon we found that the second story was intriguing and thought-provoking, which stimulated our ideas about an interactive … Continue reading Group Research Project: Make, Perform & Report

Recitation 3: Workout

Step1 Code: Prepare my tilt sensor int SENSOR_PIN = 2; int tiltVal; void setup() { pinMode(SENSOR_PIN, INPUT); // Set sensor pin as an INP Serial.begin(9600); } void loop() { // read the state of the sensor tiltVal = digitalRead(SENSOR_PIN); Serial.println(tiltVal); delay(10); } Step2 Code: Refine the code int SENSOR_PIN = 2; int tiltVal; int prevTiltVal; … Continue reading Recitation 3: Workout