Intro to Physical Computing
WEEK 3
Lab: Tone Output
Connect Sensor and Speaker
I adjust the threshold range from 200-900 to 10-800, so that my sensor is able to capture my movement.
A More Complex Example
Instead of put the toning code inside of “set up”, I write it inside of “loop” so it plays constantly.
A Musical Instrument
I adjust the threshold from 10 to 100 to filter the noise.
The C3 in note is too low to be play on speaker, so I adjust the last sensor to C8. It plays a high pitch beep sound, along with first sensor’s A5 and second sensor’s E6.
Lab: Servo Motor Control with an Adruino