Archive for September, 2011

Physical Computing: Blink the LED

September 14, 2011

My first ITP-Blog will focus on a field that I have a lot of experience with over the past few years: Arduino. Though I’ve been dabbling with this microcontroller for about three years, I figured it would be beneficial to take this entry-level course and learn the coding from the ground up.

I’ve been posting Arduino-related projects here for quite some time without really explaining what the thing actually is or even what it looks like. Essentially, the Arduino microcontroller is a very basic processor that can take physical inputs (like switches and sensors) and control a variety of digital outputs (like lights and motors).

Arduino Uno

Arduino SMT Uno Board

The reason I love the Arduino so much is its versatility. It doesn’t have enough memory to process audio or video, but it can be used as a controller for cameras, motors, LED lights, MIDI instruments, light sensors, you name it. The possibilities are endless.

In Week 1, we were instructed to build a circuit that would blink an LED light. The code is relatively simple, and was reminiscent of an Arduino-based Christmas tree I built in 2009:

So I decided to get a bit creative and make a cascading LED pattern. Press the switch, and the LEDs light up in sequence. Release the switch, and they cascade in the other direction. Simple, straightforward, and fun.

LED Cascade from Mark Kleback on Vimeo.

Here’s the code:

void setup()
{
pinMode(7, OUTPUT);
pinMode(8, OUTPUT);
pinMode(9, OUTPUT);
pinMode(10, OUTPUT);
pinMode(11, OUTPUT);
pinMode(12, OUTPUT);
pinMode(2, INPUT);
}
void loop()
{
if((digitalRead(2))==HIGH)
{
digitalWrite(7, HIGH);
delay(100);
digitalWrite(8, HIGH);
delay(100);
digitalWrite(9, HIGH);
delay(100);
digitalWrite(10, HIGH);
delay(100);
digitalWrite(11, HIGH);
delay(100);
digitalWrite(12, HIGH);
delay(100);
}
else
{
digitalWrite(12, LOW);
delay(100);
digitalWrite(11, LOW);
delay(100);
digitalWrite(10, LOW);
delay(100);
digitalWrite(9, LOW);
delay(100);
digitalWrite(8, LOW);
delay(100);
digitalWrite(7, LOW);
delay(100);
}
}

I’ll have more complicated Arduino projects in the next few weeks!

Interactive Telecommunications Program

September 13, 2011

When I started Kleeb Versus the World back in 2008, I was unsure what the content would be about. It started as a stream-of-consciousness blog, writing about new experiences and encounters as a new resident of New York City. I wrote about gentrification, my first Bent Festival, the 3rd Ward , and my initial reaction to Death By Audio.

After almost three years of exploration, self-expression, and almost too much free time, I’m heading back to school for NYU’s Interactive Telecommunications Program (referred to as ITP from here on out).

I applied to ITP in December, 2010 while on the road to Art Basel in Miami. I’d be lying if I said it wasn’t mostly on a whim. I knew I wanted to get back to school, and I knew what I wanted to learn this time around. I was teaching myself things like Arduino, Processing, and Ableton Live, but I still wasn’t sure exactly what I wanted to do with all of this.

When I finally found out I was accepted, I realized it was time to really start making things happen, and that’s when I came up with the Kleebtronics: 12 Months 12 Projects idea. This has been haphazardly documented on this blog, but it really helped me to get into the rhythm of making things and documenting the process.

Since school is underway, I’m not sure about the last few months. Kleebtronics is now incorporated, and a website will soon follow, but this blog will be mostly dedicated to my work at ITP. There will be some awesome stuff, and probably some not-so-awesome stuff, but I guarantee posting will be much more frequent. My initial classes involve programming (using Processing), Physical Computing (Arduino), Audio/Video, web design, and animation. I’m going to try to label and document everything better than I have in the past, but this blog will undergo some major changes in the near future.

As one of my classmates said today, it’s time to fall down the technological rabbit hole and see what happens when I emerge in two years. I’m excited, anxious, and ready for anything.