Skip to content

Instantly share code, notes, and snippets.

Created Feb 11, 2013
What would you like to do?
/* Arduino High Speed Photography
Micrófono colocado en Analog0 con una resistencia pull-down de 1k
int ledPin = 13;
int time = 2; // Tiempo entre que se detecta el sonido y salta el flash
int sensibility = 40; // Sensibilidad (>37)
void setup()
pinMode(ledPin, OUTPUT);
void loop()
if (analogRead(0) > sensibility)
digitalWrite(ledPin, HIGH);
digitalWrite(ledPin, LOW);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment