Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the twentysixteen domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home1/lessnull/public_html/pulsum/wp-includes/functions.php on line 6131

Warning: Cannot modify header information - headers already sent by (output started at /home1/lessnull/public_html/pulsum/wp-includes/functions.php:6131) in /home1/lessnull/public_html/pulsum/wp-includes/feed-rss2.php on line 8
sonido – Pulsu(m) Plantae https://lessnullvoid.cc/pulsum Fri, 13 Jan 2012 15:46:11 +0000 en-US hourly 1 https://wordpress.org/?v=6.9.4 EMF exp_1 https://lessnullvoid.cc/pulsum/emf-exp_1/ https://lessnullvoid.cc/pulsum/emf-exp_1/#respond Mon, 24 Oct 2011 17:19:56 +0000 http://lessnullvoid.cc/pulsum/?p=38 Continue reading "EMF exp_1"]]>

El primer experimento se basa en el uso de un sensor EMF (Electro Magnetic fields). El sensor detecta variaciones en la resistencia de la planta provocados por interferencia. Al acercarnos a la planta modificamos con nuestra resistencia la tensión de la planta provocando un cambio en la lectura.

Los sensores diseñados a partir de un amplificador operacional tienen dos polos uno se conecta de forma directa a la planta y el otro a la tierra. La lecturas obtenidas son procesadas por un código de PWM en arduino, generando una señal audible como respuesta a las variaciones.


#define DIV_PIN   5
#define FREQ_PIN  4
#define DUTY_PIN  3

void setup(){
  pinMode(3, OUTPUT);
  pinMode(11, OUTPUT);
  TCCR2A = _BV(COM2A0) | _BV(COM2B1) | _BV(WGM20);
}

// accepts values 1-7 to set prescalers 1/8/32/64/128/256/1024 // 0 turns timer off void setPrescaler(uint8_t divisor){
  if(divisor > 7)
    return;
  TCCR2B = _BV(WGM22) | divisor;
}

// expects a value 0.0-1.0 void setDutyCycle(float value){
  OCR2B = OCR2A * value;
}

void setTopLimit(uint8_t limit){
  OCR2A = limit;
}

void loop(){
  setPrescaler(analogRead(DIV_PIN)>>7);
  setTopLimit(analogRead(FREQ_PIN)>>2);
  setDutyCycle((float)analogRead(DUTY_PIN)/1023.0);
}

 

circuito por Guto Nobrega: http://archive.gutonobrega.co.uk/

 

 

 

]]>
https://lessnullvoid.cc/pulsum/emf-exp_1/feed/ 0