Arduino + NodeJS = Theremin w/ Visualizer

Here at Cloudoki we came up with an idea for our #hackfridays: to make an theremin ♪♫ with an Arduino! So here's how we did it. Arduino Theremin We looked inside our Arduino kit for a while and decided to use an LDR sensor and a piezo to create our theremin. Requirements: Arduino LDR Piezo Resistor Arduino IDE The Circuit So we setup our theremin following the Fritzing circuit above, resulting on the image bellow. Outside #hackfridays ftw The code: int val = 0; const int piezoPin = 6; void setup() { pinMode(piezoPin, OUTPUT); delay(3000); } void loop() { digitalWrite(piezoPin, HIGH); delayMicroseconds(val) »