• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • about this course
  • syllabus
  • rubric
  • labs
  • blog

HCI | TechX

August 10, 2020

Homework Day 3 – Simon Hsieh

Code used:

/*

  • MotorKnob
    *
  • A stepper motor follows the turns of a potentiometer
  • (or other sensor) on analog input 0.
    *
  • http://www.arduino.cc/en/Reference/Stepper
  • This example code is in the public domain.
    */

#include <Stepper.h>

// change this to the number of steps on your motor
#define STEPS 100

// create an instance of the stepper class, specifying
// the number of steps of the motor and the pins it’s
// attached to
Stepper stepper(STEPS, 8, 9, 10, 11);

// the previous reading from the analog input
int previous = 0;

void setup() {
// set the speed of the motor to 30 RPMs
stepper.setSpeed(30);
}

void loop() {
// get the sensor value
int val = analogRead(A0);

// move a number of steps equal to the change in the
// sensor reading
stepper.step(val – previous);

// remember the previous value of the sensor
previous = val;
}

Our drawing

In the future, I’m interested in building architecture prototypes that will change its shape in order to maximize the sunlight that goes into it during the mornings. In addition, it can alter its walls so that less sunlight hits the building at noon. This way, we could save electricity by potentially avoiding to use air conditioning.

Aberration Lab – Participatory light drawing

This is a piece of art that I’m interested in. However, it uses digital displays with mechanical pieces in order to generate visual effects, while our project is mainly based on only mechanical pieces.

Filed Under: blog

Reader Interactions

Comments

  1. marcela says

    August 11, 2020 at 12:27 am

    great documentation, Simon.
    I’m looking forward to see how those buildings can interact with light and other stimulus.

    Log in to Reply

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Recent Posts

  • Homework Day 8 – Simon Hsieh
  • homework day 8 – Michael
  • Homework-day8-Sophie
  • Harry Hao HW DAY8
  • homework day 8 – dora

Copyright © 2025 HCI | TechX on the Brunch Pro Theme