Changes

Classes/2010/VIS147A/offcuts

753 bytes added, 15:48, 2 March 2010
no edit summary
*Homework 8:
*Lab 8:
 
 
=== Sound/Tone Generation! For Sound People (optional) ===
An analog output, different from the light dimmer. To make a varying sound, you would want to change the frequency of the output signal, not the amplitude.
* This is more like the light blinking from part one, where changing the input voltage will change the rate of the light. But now you will do it with a Piezo, adjusting the time delay in microseconds.
* If you like sound, try this: http://www.arduino.cc/en/Tutorial/PlayMelody, I have a piezo you can use. (Or you can get one at RadioShack).
* This example adjusts the frequency of the output (tone) not the magnitude.
* the light fading above (<code>analogWrite()</code>) adjusts the brightness of the light (magnitude) with PWM.