martes, 5 de enero de 2016

motor activated by ldr/ activando motores con LDR



       

int valor1=0;
int valor2=0;
int motor=0;
int i;
void setup(){
  pinMode(6, OUTPUT);
  Serial.begin(9600);  
}

void loop(){

 //for(i=0;i<220 analogwrite="" delay="" i="" if="" serial.println="" valor1="" valor2=""> 200 && valor1 < 950){
  analogWrite(6, 210);
  delay(10);
  }
  
  
   if (valor2 > 200 && valor2 < 950){
  analogWrite(6, 210);
  delay(10);
  }
  if (valor2 >950 && valor1 > 950) {
  analogWrite(6, 0);
  delay(10);
  }
  delay(100);
}




 

sábado, 2 de enero de 2016

SMART IRRIGATION SYSTEM./ intento de riego con internet o un tweet

the proyect consist to make a smart irrigation system in Atacama desert via control remote in a place without electrical net. but with conectivity signal(3G).
the first step consist to make solar electrical system.

materials:

1) electrovalve (ball-24volts DC)

2) 1sheeld shield and arduino.
3) pipe (1/2")and drip

                                          
the first step is make solar panels.

the code should be able:
  1. automatic irrigation 
  2. modify time of the irrigation with a tweet or sms
  3. a tweet actived or deactived the irrigation
  4. detect rain
  5. notify with a photo the state of the garden
  6. move the camera via tweet o sms