refarm hydroponic


we have added some pics to our flickr account. some of them are the refarm hydroponic that we have built in interactivos09. here is the code that lalo (Eduardo Meléndez) prepared to us. enjoy and let us know what bugs did you find ;)

////////////////////////upload this code to arduino////////////////////////

int analog = 0;
int ledPin = 10;              // LED connected to digital pin 13

void setup()                    // run once, when the sketch starts
pinMode(ledPin, OUTPUT);      // sets the digital pin as output
pinMode(3, INPUT);

void loop()                     // run over and over again
analog = analogRead(5);

if(analog < 7){

analogWrite(ledPin, 125);   // sets the LED on
delay(30000);                  // waits 3 seconds
analogWrite(ledPin, 0);    // sets the LED off
delay(10000);                  // waits for a second


analogWrite(ledPin, 0);

delay(3600000);} // waits one hour


Esta entrada se publicó en madrid, refarm y está etiquetada con , , , , en por .

Acerca de hernani

is a designer and early became interested in 3 things: drawing, assemble / disassemble mechanisms and spelunking. studied analytic photography, design and graphic arts. worked as a designer in Tomar where he started his own studio. lived 3 years in Porto before went to Lisbon working on some well knowned advertising agencies. in 2006 moves to barcelona, by love. also gets involved with ecodesign and later with electronics and physical computing. was a founding partner, graphic designer, creative director and production manager. has won several awards of design, marketing and creativity. now he is a eco-designer and media artist focused on bringing the unknown beauty of nature to humans.