Saturday, August 5, 2017

Simple Light Theremin

Simple Light Theremin

This project creates sounds of different frequencies based on the amount of light reaching the photocell.
For best performance use a real, electromagnet speaker instead of a piezo speaker.
Hookup for simple Light Theremin


--------------------------- Copy Code Below

int sensorValue;

void setup()
{
  pinMode(13, OUTPUT);
}

void loop()
{
sensorValue = analogRead(A0);
tone(13,sensorValue); //scale sensorValue for higher pitch

}


No comments:

Post a Comment