Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
workshop
living
food
play
outside
Table of Contents
Arduino Optical Theremin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
http://www.instructables.com/id/Arduino-Optical-Theremin/
http://www.instructables.com/id/Arduino-Optical-Theremin/
File Downloads
OpticalTheremin.rtf (3 KB)
[NOTE: When saving, if you see .tmp as the file ext, rename it to 'OpticalTheremin.rtf']
Related Instructables
Arduino Pillow
Theremin by
amf45
Augment a
Moog
Etherwave
Theremin by
jmsaavedra
Solar theremin
with Arduino by
ninuxi
http://www.instructables.com/id/Arduino-Optical-Theremin/
Theremin by
udubinsky
Advertisements
Comments
50 comments Add Comment
Brezorojo says:
danielg19 says:
gwarbeh says:
Hi, danielg19.
Not really sure, but my instinct is to say that you wouldn't have to change anything. Did you try it as is? The idea of the calibration loop is to adjust to
whatever range of values you get. So if your ping sensor spits out totally different voltages than my photoresistor, it should still work as long as you give it
a taste of the full range you want to use during calibration. I've never worked with the ping sensor. Maybe it will by more linear in response than the
photoresistors. If so, the sound should be a lot easier to control. Let me know how it works out.
DavidW31 says:
I'm getting some errors. ...sketch_feb22a.ino:13:8: error: 'double log' redeclared as different kind of symbol
/Users/mconstant/Downloads/Arduino.app/Contents/Resources/Java/hardware/tools/avr/avr/include/math.h:304:15: error: previous declaration of 'double
log(double)'
extern double log(double __x) __ATTR_CONST__;
^
sketch_feb22a.ino: In function 'void loop()':
sketch_feb22a.ino:62:8: error: assignment of function 'double log(double)'
sketch_feb22a.ino:62:8: error: cannot convert 'double' to 'double(double)' in assignment
In file included from sketch_feb22a.ino:8:0:
/Users/mconstant/Downloads/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Arduino.h:88:41: error: invalid operands of types
'double(double)' and 'double' to binary 'operator+'
#define round(x) ((x)>=0?(long)((x)+0.5):(long)((x)-0.5))
DavidW31 says:
j450nn014n says:
j450nn014n says:
http://www.instructables.com/id/Arduino-Optical-Theremin/
rzaragoza2 says:
EmmanuelLobont says:
Hi! Can I ask you where I can get the sketch? I'm a beginner with Arduino and wanna practice with this project :)
nakul.tomarrajput says:
gwarbeh says:
Don't see why not. Just go to Arduino page and find the right download for you.
nakul.tomarrajput says:
nakul.tomarrajput says:
M a beginner... this being my first arduino project.... M doing it for my college technical fest... Plz help me... M a rookie!!!!!!!!!!!
gwarbeh says:
No worries, nakul.tomarrajput. You can do it! Just follow the steps and let me know if you have other specific questions.
rs242 says:
rhonardoost says:
Is there anyway to get the theremin to be silent when in darkness, and only produce sound when light is introduced?
SonicDH says:
owendelong says:
Alternatively, loop could be modified as follows:
In place of:
tone(PHONES, f);
use:
if (val > minored) {
tone(PHONES, f);
http://www.instructables.com/id/Arduino-Optical-Theremin/
}
else {
notone(PHONES);
}
(Sorry about the weird linespacing, not sure how to coerce instructables into doing code snippets correctly.
Robomat says:
owendelong says:
trentoa says:
any reason as to why this won't compile on Ubuntu 12.x ? i keep getting errors dealing with double(double)'s etc..
am i missing some libraries/includes it compiles fine in Win 7 environment.
gwarbeh says:
No idea. Never used Ubuntu. You could try changing all doubles to floats. I didn't use any special libraries. Good luck.
owendelong says:
mmokhtar2 says:
MoonDocker says:
http://www.instructables.com/id/Arduino-Optical-Theremin/
gwarbeh says:
dmartin46 says:
Does it matter where in the breadboard I plug the wires as long as they are aligned and in the correct holes in the Arduino?
gwarbeh says:
dhendricks1 says:
leeseibert says:
I made a project similar to this. Then I shrunk it down to an ATtiny85 micro controller.
Check it out here:
https://www.youtube.com/watch?v=BsKRtUCCle4
faziefazie says:
I'm done with this project, and this is my first arduino project. Thanks a lot to you :)
if I want to put potentiometer, where should i put? And what kind of potentiometer I should use? thanks before.
gwarbeh says:
faziefazie says:
gwarbeh says:
Zetainex says:
gwarbeh says:
Zetainex says:
Zetainex says:
martzsam says:
http://www.instructables.com/id/Arduino-Optical-Theremin/
gwarbeh says:
Trecool771 says:
gwarbeh says:
Thanks Trecool771
I am not a master of any of those, but I do enjoy learning.
AJMansfield says:
judas79 says:
gwarbeh says:
Hi, judas79.
That's a really good idea. I think it will be part of the next version. Thanks.
gwarbeh says:
Thanks, uncle frogy. I like the doorbell idea! It started out with the slide, but I ended up like the step tone thing better.
professorred says:
redrok says:
Hi gwarbeh;
This is only half a Theremin.
A real Theremin has 2 controls, Volume in addition to Frequency.
Basically they worked in a similar way. The volume signal is used to modulate the amplitude of the frequency signal.
I suggest you add a second sensor that controls the pulse width of the frequency output.
redrok
http://www.instructables.com/id/Arduino-Optical-Theremin/