Homework 6: Light Theremin

October 24, 2023 Off By fsc407074468

The circuit of this project is clear, just one Piezo and one phototransistor. Both of them are fun component to work with, and combining them in one circuit makes it more magical. Here is how it looks(sounds) like:

And here is my circuit built in Tinkercad:

The coding is also easy, the only new stuff is tone() which controls the note that Piezo plays. I’m thinking if it’s possible to play a simple song on it, maybe I can achieve it setting a range of analog read to play one certain tone.