Classes/2010/VIS147A/offcuts

From Robert-Depot
Revision as of 08:48, 2 March 2010 by Rtwomey (talk | contribs)

Jump to: navigation, search

Week 8 - Motors, Coils, Inductors


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 (analogWrite()) adjusts the brightness of the light (magnitude) with PWM.