analogRead & analogWrite Assignment for next class
3) 2.16 from Arduino CookBook (on Switch Statements)
1) analogRead http://www.arduino.cc/en/Reference/AnalogRead
Build a Sound Performance Toy. The Interface should be one POT, one LED, one Speaker, and one Photocell. There should be four case statements, and two jumper wire. If jumper wire are in or out, there are 4 possible states.
*1st State controls LED dim level with the POT, and Speaker with the the PhotoCell
*2nd State controls LED dim level with Photocell, and Speaker Tone with POT
*3rd State controls LED blink-rate with the POT, Speaker Tone with POT, and Delay Rate (for both) with PhotoCell
*4rd State controls LED blink-rate with the PhotoCell, and Speaker tone with PhotoCell.
Use with Case Statements to switch between 4 states.
Upload Code and Video of Circuit before Class.
Use Code and Pics for Hints: https://docs.google.com/folder/d/0B5C5Fh-HOLYFenF2UmthZWJ1QVk/edit