analogRead & analogWrite Assignment for next class
Do:
1) http://arduino.cc/en/Tutorial/AnalogReadSerial [POT]
2) Photocells – Adafruit Learning System
3) 2.16 from Arduino CookBook (on Switch Statements)
Read:
1) analogRead http://www.arduino.cc/en/Reference/AnalogRead
2) http://www.arduino.cc/en/Reference/AnalogWrite
Assignment:
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
Franci Castelli 8:54 pm on November 13, 2012 Permalink |
the tutorial page for AnalogReadSerial doesn’t exist anymore..