Week 3 Lab

Revision as of 21:24, 12 April 2009 by Rtwomey (talk | contribs) (LED Dimming)

Revision as of 21:24, 12 April 2009 by Rtwomey (talk | contribs) (LED Dimming)

Analog Input

  • Potentiometer
  • photo-resistor
  • strain gauge

Analog Output

LED Dimming

  • File->Sketchbook->Examples->Analog->Fading

   analogWrite(ledpin, value);           // sets the value (range from 0 to 255) 

  • lights, fading

<youtube v="62gWVWCyw_w" loop="true"/>

Motor Speed Control

  • Basic motor control (DC motors) see week 5


Sound, Tone Generation

  • sounds, tone generation