You can see the homework post here.
1. Explain (in a nutshell) the code; structure, logic, important parts.
Basically the code starts with the arduino playing a set note. This note modulates up and down over a set period of time. The arduino records the brightness of the ambient light using a photo resistor. This value is then added or subtracted from the original note. The addition or subtraction is set to allow the “creature” to either want light or dark. In our code the “creature” is happiest at a lower note and is upset at a higher note. At a set point in the low scale of the code a vibrating motor is triggered to create a “purr” effect.
An important part of the code is calculating the amplitude of the sounds and to control the rate at which the sounds modulate up and down. This is done to create a soothing effect. This helps to represent the mood of the creatures.
2. What did you do that you feel is new, non-obvious, and useful
The nature of the interaction and the way in which the feedback is represented is new and useful. The feedback from the photo resistor is buffered so that sounds don’t change immediately. The notes are completely generative in nature except of the initial starting point and the minimum and maximum settings. The application of a vibrating motor and its placement in the enclosure add a second dimension of sound to the experience.
Reply