Monday, January 4, 2010

Arduino code for four lasers

This is some of the code I am working on for the MFA project that I mentioned in the last post. Right now I simply have four photocells, each controlling an LED. Next week I plan to get one of these so that I can replace the lights with a triggered sound. This might require significant reworking of the code... we'll see.

First the video, then the code:



/*
Created 11 Dec 2009
By J Howell
modified 14 Dec 2009

*/

int ledPinA = 10; // LED connected to digital pin 10
int ledPinB = 11; // LED connected to digital pin 11
int ledPinC = 6; // LED connected to digital pin 11
int ledPinD = 5; // LED connected to digital pin 11
int val0; // define variable for photoresistor 0
int val1; // define variable for photoresistor 1
int val2; // define variable for photoresistor 1
int val3; // define variable for photoresistor 1
int ledBrightness; //


void setup()
{
Serial.begin(9600); // sets the serial port to 9600
}

void loop()
{
val0 = analogRead(0); // read analog input pin 0
val1 = analogRead(1); // read analog input pin 1
val2 = analogRead(2); // read analog input pin 2
val3 = analogRead(3); // read analog input pin 3

if( val0 < 400){
// fade in from min to max in increments of 1 points:
for(int fadeValue0 = 0 ; fadeValue0 <= 255; fadeValue0 +=1) {
// sets the value (range from 0 to 255):
analogWrite(ledPinA, -(fadeValue0));
}
}
else{
digitalWrite(ledPinA, LOW);
delay(10);
}
if( val1 < 400){
// fade in from min to max in increments of 1 points:
for(int fadeValue0 = 0 ; fadeValue0 <= 255; fadeValue0 +=1) {
// sets the value (range from 0 to 255):
analogWrite(ledPinB, -(fadeValue0));
}
}
else{
digitalWrite(ledPinB, LOW);
delay(10);
}

if( val2 < 400){
// fade in from min to max in increments of 1 points:
for(int fadeValue1 = 0 ; fadeValue1 <= 255; fadeValue1 +=1) {
// sets the value (range from 0 to 255):
analogWrite(ledPinC, -(fadeValue1));
}
}
else{
digitalWrite(ledPinC, LOW);
delay(10);
}
if( val3 < 400){
// fade in from min to max in increments of 1 points:
for(int fadeValue0 = 0 ; fadeValue0 <= 255; fadeValue0 +=1) {
// sets the value (range from 0 to 255):
analogWrite(ledPinD, -(fadeValue0));
}
}
else{
digitalWrite(ledPinD, LOW);
}
}

Saturday, December 19, 2009

Some recent work

I have been extremely negligent about publishing posts. Its nearing the end of 2009 and I'll go ahead and make my first new years resolution right now: I am going to try to update this blog at least twice per month.
There is actually quite a lot going on for me right now. I recently completed two sculpture projects for Cliff Garten Studio, the first a bench/sculpture at the new Sacramento Valley High School Library and the other is a collection of small columns in front of the Academy of Art University in North Hollywood. Both pieces use a simple array of stainless steel rods bent into the same profile and welded together at connection points. It is a very simple design which work well for these low budget projects, but I am pretty pleased with how they look when lit up at night. The Sacramento photos were taken by my friend Linda Dang.




I am also working with my friend Liz Terschurr on the design and electronics for the set of a dance performance this coming February at UCLA. The stage will be crisscrossed with visible laser beams that control sound effects. The dancers are choreographed to interrupt the beams at key moments and create a real-time background score for the performance. Essentially this is a larger version of this laser harp but the beams will actually cross parts of the stage rather than being confined to a small area. I will post some videos and the code I am working on shortly. As always comments and suggestions are appreciated since I am a bit rough in my knowledge of writing code.

Thursday, June 25, 2009

These are great!

I really like this installation:

Cliff Garten Studio Unveils Avenue of Light, Fort Worth TX



Cliff Garten Studio in Venice CA has recently unveiled The Avenue of Light in Fort Worth, TX.

The Avenue of Light, anchors the Lancaster Avenue Corridor Redevelopment Project and is nearly half a mile long. Lancaster Avenue was severed from Fort Worth’s downtown in the 1950s with the construction of the elevated I-30 freeway, but in recent years the freeway was relocated and the area has begun to be redeveloped into a pedestrian friendly community with a renewed appreciation for the history of the site. CGS won a national invitational competition administered by Fort Worth Public Art to secure the commission. The challenge of the project was to use the median design and sculptures as the entry and civic spine of the new Lancaster District. It treats the median's landscape and sculptures as one integrated work of art.

The project was also recently featured under the "Avant Garde" section on Kanye West's blog.


Check out the studio website: http://www.cliffgartenstudio.com

Also blogged at:

beautylabny


archinect


designboom