Buy Magic Mushrooms
Magic Mushroom Gummies

New Sign!

 Uncategorized  Add comments
Mar 262010
 

Our new space is pretty amazing, but there was one thing we still needed. We are on the 4th floor of our building, and the stairs were a little hard for first time visitors to find. We had a temporary remedy:

but obviously this would not do as a permanent installation, especially with our big event on Saturday!

So here is the new sign.

Thanks to Ryan for help with the circuit design, and thanks to Adam for the Arduino code (yes the Arduino is overkill but we decided it was appropriate considering the theme of the art show!). Let me tell you, this sign was fun to make!

Adam wrote the Arduino code in about 2 minutes, and here it is:

#define COUNT 4
int pins[COUNT] = { 11, 13, 12, 10 };

void setup()   {
  for (int i = 0; i < COUNT; i++)
    pinMode(pins[i], OUTPUT);
}

void allOff() {
  for (int i = 0; i < COUNT; i++) {
    digitalWrite(pins[i],LOW);
  }
}

void allOn() {
  for (int i = 0; i < COUNT; i++) {
    digitalWrite(pins[i],HIGH);
  }
}

void on(int idx) {
   digitalWrite(pins[idx],HIGH);
}

void loop()
{
  allOff();
  on(0);
  delay(1000);                  // wait for a second
  on(1);
  delay(1000);                  // wait for a second
  on(2);
  delay(1000);                  // wait for a second
  on(3);
  delay(1000);                  // wait for a second
  allOff();
  delay(1000);
  for (int i = 0; i < 3; i++) {
    allOn();
    delay(600);
    allOff();
    delay(600);
  }
}

-Shelby

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)