Jason Safir's Blog

Jason Safir
media designer

phone 646.896.1544
e-mail jason@underwater.ca

New York
Montreal



www.jasonsafir.com

Cupping Time by Adi Marom and Jason Safir

March 1st, 2009

A timepiece that indicates the passage of time in a cup.

ARDUINO SYNTAX

#include <Servo.h>

Servo servoMotor;
int servoPin = 9

int n = 0;
int q = 1;
int gapSize = 20;

void setup() {
servoMotor.attach(servoPin);
servoMotor.write(n);  // reset clock
delay(1000);
}

void clockwise() {
n = n + gapSize*q;
}

void counterClockwise() {
q = -1;
n = n - gapSize;
}

void loop() {
clockwise();

delay(1000);

if (n > 180) {
counterClockwise();
}

// read the analog input (value between 0 and 1023)
servoMotor.write(n);
delay(15);
}

Comments are closed.

  • Jason Safir

    • About
  • Projects

    • Collective Shadow
    • College Media Network
    • Joy of Technology
    • Little Orlando
    • Maman, bébé et café
    • Memory Box
    • Modern Living
    • mtvU
    • Paul Gratton
    • Puck Music
    • Rusty Business
    • Safex
    • Simple Cup
    • The Cook
    • The Frutigers
    • VAUGHN
    • Vaughn’s Evaluation
    • Vision Streetwear
  • Categories

    • video (9)
    • physical computing (17)
    • networked objects (4)
    • tutorials (3)
    • news (7)
    • dataflow (2)
    • prototypes (5)
    • visualizations (3)
    • design (3)
    • interactive screens (5)
    • thesis (3)
    • visual communication (2)