November 24, 2007
Reading for November 27th, are now posted. Enjoy!

October 2, 2007
To upload your thoughtless acts, create a new assignment page like any other lab. You'll see "Thoughtless Acts" listed as one of the assignment options.

May 24, 2008
This site has been archived and is no longer editable. Stay tuned for the next version, coming in the fall!

POT input

Project Members: 
Travis Pinnick
* one pot fades one led
* modified version of AnalogInput
* by DojoDave <>
int potPin = 2; // select the input pin for the potentiometer
int ledPin = 9; // select the pin for the LED
int val = 0; // variable to store the value coming from the sensor
void setup() {
void loop() {
val = analogRead(potPin); // read the value from the sensor, between 0 - 1024
analogWrite(ledPin, val/4); // analogWrite can be between 0-255

S4022937.JPG85.42 KB


travis, please go back to my

travis, please go back to my original lab report format and make sure you submit a complete report next time!


Powered by Drupal - Design by Artinet