How it works is that the LDR measures the intensity of the surrounding light. The reading of the intensity of light changes if we cast shadows on the LDR using our hands. By using some nifty code and an electrical charge, we can translate those changes in light into the changes in pitch that the piezo buzzer makes.
The wiring on this project was a little simpler than the preceding week but the code was a little harder. We introduced the concept of calibrating our Arduino before the program was initiated, we learned how to create several variables in our code, and we learned about the map and tone functions.
It was lots of very very very noisy fun.