This week I completed the servo and tone physical computing labs. The following images show the resulting circuits…
The following images represent other applications that I developed that use servo motors and speakers. Figure 3 shows a project I worked on last year that uses a moisture sensor to control the watering of a plant. If the sensor detects dry soil, the motor will turn and water the plant. In addition, this project used wifi communication between the motor and the sensor, so there were no hard wired connections between the input and outputs of the project.
After completing the tone lab I designed a new project represented in Figure 4. Here I used a potentiometer to control the tone duration. Each button controlled a different note, so when it was pressed the note would sound and when it was released, the note would turn off.
Figure 5 shows the code associated with this tone project.