Light Theremin: Using a phototransistor to create noise from a Piezo.
This project had a super simple components list, just a phototransistor, a 10 kilohm resistor, and a piezo.
Building the project consisted of connecting a phototransistor to the analog A0 pin and ground, and the piezo to digital 8 pin, with the resistor used connecting the phototransistor to ground.
Coding the light theremin was even simpler, taking a modest 30 lines, which we hook up the input and output, and compare the value to the starting values of 1023 or 0, and edit the tone of piezo accordingly.
This project was fun in the fact we got to edit audio output for the first time, and it was a easy jumping platform into the technology. Using the phototransistor for this project was a way better way of accomplishing this type of output than the color-mixing lamp, as this was easy to control rather than 3 close together phototransistors. It was really fun to play with moving my hand closer and closer and hearing the pitch change. If I were to improve this project, I would see if there is a way I could expand the tone of the piezo, where if the phototransistor was in complete darkness there would be a super low pitch sound.




Comments
Post a Comment