I'd been thinking about building an optical theremin for a few days. I'd looked for CDS photocells at my local Radio Shack, but they didn't have any in stock. I mentioned it to my boss, and he said he'd check the Radio Shack near his home. Not only did he buy me two packs of 5 assorted CDS photocells yesterday, but he also bought me a TSL230R Light-to-Frequency converter chip. I had never heard of this chip before. It generates a square wave whose frequency depends on the intensity of the light that strikes it. It can produce an exceptionally wide range of frequencies, and both its frequency range and its sensitivity to light are adjustable. There is more info here: TSL230R (http://www.parallax.com/StoreSearchResults/tabid/768/txtSearch/27924/List/0/SortField/4/ProductID/88/Default.aspx)
It only took a few minutes to breadboard a working theremin with this chip. I connected pin 4 to ground, pins 5, 7, and 8 to +5 VDC, and pin 6 to one terminal of a small full range speaker. I connected the other speaker terminal to ground. That's all it took to make a working pitch-only theremin.
Pins 5 and 7 are the frequency range control. Connecting both gives this theremin a range of 1 Hz to 14,000 Hz. (Pianos have a range of 27.5 Hz to 4,186 Hz.) Of course, frequencies below about 20 Hz are too low for humans to hear.
Since I had the CDS photocells that my boss bought, I decided to add an optical volume control. I tried each of photocells in series between pin 6 and the speaker, but they all lowered the volume too much even when fully illuminated. I then tried using the photocells in parallel with each other, and in series with the speaker. Using the 4 photocells with the lowest resistance in parallel worked well. There is a photo of the breadboard here: TSL230R-based theremin (http://picasaweb.google.com/nyponen/Theremins#5348796081781892962)
As is, the TSL230R chip is too sensitive for a sunny room. I put a cardboard tube about 1.25" long and .75" wide over it, and that helped a lot. I'm also going to try putting different films on it to block some of the light.
The pitch control and volume control are too close on this small breadboard. Moving a hand over one can affect the other. I'm going to try putting a vertical barrier between them. If I decide to make this circuit permanent, I'll place the pitch and volume controls further apart.
One thing that bothers me about this circuit is that the output to the speakers goes from 0 VDC to about +5 VDC. It would be better if went from, for example, +2.5 to -2.5. Does anyone have a simple easy way to change the voltage range?
It only took a few minutes to breadboard a working theremin with this chip. I connected pin 4 to ground, pins 5, 7, and 8 to +5 VDC, and pin 6 to one terminal of a small full range speaker. I connected the other speaker terminal to ground. That's all it took to make a working pitch-only theremin.
Pins 5 and 7 are the frequency range control. Connecting both gives this theremin a range of 1 Hz to 14,000 Hz. (Pianos have a range of 27.5 Hz to 4,186 Hz.) Of course, frequencies below about 20 Hz are too low for humans to hear.
Since I had the CDS photocells that my boss bought, I decided to add an optical volume control. I tried each of photocells in series between pin 6 and the speaker, but they all lowered the volume too much even when fully illuminated. I then tried using the photocells in parallel with each other, and in series with the speaker. Using the 4 photocells with the lowest resistance in parallel worked well. There is a photo of the breadboard here: TSL230R-based theremin (http://picasaweb.google.com/nyponen/Theremins#5348796081781892962)
As is, the TSL230R chip is too sensitive for a sunny room. I put a cardboard tube about 1.25" long and .75" wide over it, and that helped a lot. I'm also going to try putting different films on it to block some of the light.
The pitch control and volume control are too close on this small breadboard. Moving a hand over one can affect the other. I'm going to try putting a vertical barrier between them. If I decide to make this circuit permanent, I'll place the pitch and volume controls further apart.
One thing that bothers me about this circuit is that the output to the speakers goes from 0 VDC to about +5 VDC. It would be better if went from, for example, +2.5 to -2.5. Does anyone have a simple easy way to change the voltage range?