Solar Theremin With Arduino
![IMG_20140801_170444.jpg](/proxy/?url=https://content.instructables.com/F35/J061/HYL0NA0U/F35J061HYL0NA0U.jpg&filename=IMG_20140801_170444.jpg)
materials:
arduino uno
3 photoresistors
4 buzzers
3 10k resistor
(optional) usb solar pannel or usb battery
Why?
![IMG_20140725_190020.jpg](/proxy/?url=https://content.instructables.com/FT5/U2S7/HYL0NCBX/FT5U2S7HYL0NCBX.jpg&filename=IMG_20140725_190020.jpg)
![Ra-Theremin: test](/proxy/?url=https://content.instructables.com/FBE/4CRQ/I2TG1JBC/FBE4CRQI2TG1JBC.jpg&filename=Ra-Theremin: test)
During the 2014 art Exhibition at Met (M. di Ragusa), I created (with the technical collaboration of Carmel Iurato), this theremin made from three photoresistors, managed by the light and powered by a solar panel. All controlled by Arduino Uno. A musical composition of light and shadows.
Please, vote with "like" on Facebook the Ra-Theremin (n.36), a sound installation controlled by the sun
link: https://www.facebook.com/metsicilia/photos/a.72261...
How To
![breadboard.jpg](/proxy/?url=https://content.instructables.com/FMO/2SWL/HYL0NCHT/FMO2SWLHYL0NCHT.jpg&filename=breadboard.jpg)
the LED is the BUZZER!
Arduino Code
![Ra-Theremin: test](/proxy/?url=https://content.instructables.com/F88/ALA4/I2TG1JZH/F88ALA4I2TG1JZH.jpg&filename=Ra-Theremin: test)
credits:
code:
// Musical caos by Melo
// circuit: // pin d9, 10, 11, 12 buzzer + gnd // pin a0: 5v > cds > pin, pin > 10kOhm resistor > gnd // pin a1: 5v > cds > pin, pin > 10kOhm resistor > gnd // pin a2: 5v > cds > pin, pin > 10kOhm resistor > gnd
//#define DEBUG // uncomment to get serial output, but it kills the speed of the // algorithm, making for a very bad cycle rate //#define KILLSWITCH // comment to disable killswitch code
int photosensorPin = 0; int cutterpotPin = 1; int cyclepotPin = 2; int piezoPin = 9; int piezo1=10; int piezo2=11; int piezo3=12; int verso = 0; // inverte la mappatura se corrisponde al random;
int val = 0; int cut = 0; int cycle = 0; int kill = 0; int duty = 0;
void setup() { pinMode(piezoPin, OUTPUT); pinMode(piezo1, OUTPUT); pinMode(piezo2, OUTPUT); pinMode(piezo3, OUTPUT);
}
void loop() { val = analogRead(photosensorPin); cut = analogRead(cutterpotPin); cycle = analogRead(cyclepotPin);
duty = map(cut, 0, 1023, 1, 700); cycle = map(cycle, 0, 1023, 1, 700); val=map(val,0,1023,1,700); for( int i=0; i
Enjoy!
![Ra-Theremin: work](/proxy/?url=https://content.instructables.com/FHF/5ZIX/I2TG1JMX/FHF5ZIXI2TG1JMX.jpg&filename=Ra-Theremin: work)
for info and other, contact-me
Please, vote with "like" on Facebook the Ra-Theremin (n.36), a sound installation controlled by the sun