(edit sidebar)
Intro to Physical Computing Syllabus

Research & Learning

Other Class pages

Shop Admin

ITP Help Pages
Tom's pcomp site
DanO's pcomp site


Scott F2011-THURS-1230

Intro.ScottF2011-THURS-1230 History

Hide minor edits - Show changes to output

Changed lines 26-27 from:
*[[itp.nyu.edu/~ka1019/blog/| Kim Ash]]
to:
*[[http://itp.nyu.edu/~ka1019/blog/| Kim Ash]]
Changed lines 26-27 from:
*[[itp.nyu.edu/~ka1019/blog/]] | Kim Ash
to:
*[[itp.nyu.edu/~ka1019/blog/| Kim Ash]]
Changed lines 26-27 from:
to:
*[[itp.nyu.edu/~ka1019/blog/]] | Kim Ash
Changed lines 184-187 from:
*Week9
to:
*Week9\\
**[[http://droolcup.com/pcomp/TeamAssessment.pdf | Team Assessment]]\\
**[[http://droolcup.com/pcomp/Self-testPC.pdf | Pop Quiz-Self test]]\\

Added lines 134-180:
[@
// constants to hold the output pin numbers:
const int bluePin = 11;
const int redPin = 9;
const int greenPin = 10;

int currentPin = 0; // current pin to be faded
int brightness = 0; // current brightness level

void setup() {
  // initiate serial communication:
  Serial.begin(9600);

  // a for loop can simplify pin assignments
 for(int x=9;x<12;x++){
  pinMode(x, OUTPUT);
  analogWrite(x, 255);
 }
 

}
void loop() {
  // if there's any serial data in the buffer, read a byte:
  if (Serial.available() > 0) {
    int inByte = Serial.read();

    // respond to the values 'r', 'g', 'b', or '0' through '9'.
    // you don't care about any other value:
    if (inByte == 'r') {
      currentPin = redPin;
    }
    if (inByte == 'g') {
      currentPin = greenPin;
    }
    if (inByte == 'b') {
      currentPin = bluePin;
    }

    if (inByte >= '0' && inByte <= '9') {
      // map the incoming byte value to the range of the analogRead() command:
      brightness = map(inByte, '0', '9', 255, 0); 
      // set the current pin to the current brightness:
      analogWrite(currentPin, brightness);   
    }
  }
}
@]
Added lines 131-132:
[[http://www.tigoe.net/blog/category/physicalcomputing/176/ | Tom's taxonomy of Pcomp projects]]
Changed lines 25-26 from:
*[[http://itpblogger.wordpress.com/category/introduction-to-physical-computing/ | Ananya Mukherjee ]]
to:
*[[http://itpblogger.wordpress.com/physical-computing/ | Ananya Mukherjee ]]
Added lines 122-129:

->Purveyors of fine electronic goods :
->*[[http://jameco.com]]
->*[[http://mouser.com]]
->*[[http://digikey.com]]
->*[[http://adafruit.com]]
->*[[http://sparkfun.com]]

Added line 23:
*[[http://itpphysicalcomputing.blogspot.com | Yucef Merhi]]
Changed lines 24-25 from:
to:
*[[http://itpblogger.wordpress.com/category/introduction-to-physical-computing/ | Ananya Mukherjee ]]
Changed line 21 from:
*[[http://joesblog.com | Joe Smoe ]]
to:
*[[http://itp.nyu.edu/~js6087/wordpress/ | Jacki Steiner ]]
Changed lines 31-38 from:
to:
!!Class Rescheduling
As a reminder, our class on Thursday the 6th needs to be moved to a different date. I scheduled some work in Chicago before I knew I would be teaching Thursdays.
The dates I was thinking are Monday Oct 3 9:30-12 or Tuesday October 4 12:30-3.
Thank you all for your understanding and general wonderfulness. Please let me know what you think, and I can arrange it with Gordie.

Vote here :
https://docs.google.com/document/d/1BqE5T5iF0X3tSuywa2yARMNa4PphdKTkAN4v9Di7Ro8/edit?hl=en_US

Added lines 41-44:
[@

//example to blink at a variable rate
//led on pin 2, pot on A0
Changed lines 46-47 from:
int mappedVal=0;
to:
Deleted lines 47-48:
  Serial.begin(9600);
// pinMode(2,OUTPUT);
Deleted line 49:
Deleted lines 53-62:
 
 mappedVal=map(potVal, 240, 810, 0, 1023);
 
  Serial.print("mapped Value : ");
  Serial.print(mappedVal);
    Serial.print("\t");
 Serial.print("Photocell value : ");
 Serial.println(potVal);
 delay(10);
 /*
Deleted lines 57-58:
 *
  */
Changed lines 60-62 from:


to:
//Example for ranging our photocell
Deleted line 65:
// pinMode(2,OUTPUT);
Added lines 73-81:
//photocell low was about 240, high was about 810
 mappedVal=map(potVal, 240, 810, 0, 1023);
 
  Serial.print("mapped Value : ");
  Serial.print(mappedVal);
    Serial.print("\t");
 Serial.print("Photocell value : ");
 Serial.println(potVal);
 delay(10);
Added lines 83-98:
}


//Example mapping to see what values mean to voltages
//each increment = about .049V

int potVal=0;
int mappedVal=0;

void setup(){
  Serial.begin(9600);
}

void loop(){ 
 potVal=analogRead(A0);
 
Deleted line 100:
 
Deleted lines 106-112:
 /*
 digitalWrite(2, HIGH);
 delay(potVal);
  digitalWrite(2, LOW);
 delay(potVal);
 *
  */
Added lines 110-111:

@]
Added lines 40-107:
Code from class\\
int potVal=0;
int mappedVal=0;

void setup(){
  Serial.begin(9600);
// pinMode(2,OUTPUT);
}


void loop(){
 
 potVal=analogRead(A0);

 
 mappedVal=map(potVal, 240, 810, 0, 1023);
 
  Serial.print("mapped Value : ");
  Serial.print(mappedVal);
    Serial.print("\t");
 Serial.print("Photocell value : ");
 Serial.println(potVal);
 delay(10);
 /*
 digitalWrite(2, HIGH);
 delay(potVal);
  digitalWrite(2, LOW);
 delay(potVal);
 *
  */
}




int potVal=0;
int mappedVal=0;

void setup(){
  Serial.begin(9600);
// pinMode(2,OUTPUT);
}


void loop(){
 
 potVal=analogRead(A0);

 
 mappedVal=map(potVal, 0, 1023, 0, 500);
 
 
  Serial.print("Voltage : ");
  Serial.print(mappedVal);
    Serial.print("\t");
  Serial.print("Arduino's value : ");
 Serial.println(potVal);
 delay(10);
 /*
 digitalWrite(2, HIGH);
 delay(potVal);
  digitalWrite(2, LOW);
 delay(potVal);
 *
  */
}

Changed lines 23-24 from:
to:
*[[http://cyberpizzas.wordpress.com | Michael Gambale ]]
Added line 20:
*[[http://zenakoo.wordpress.com/ | Zena Koo ]]
Deleted line 21:
*[[http://joesblog.com | Joe Smoe ]]
Added line 19:
*[[http://itp.nyu.edu/~jr1569/blog/ | Jason Scott Rosen ]]
Deleted line 21:
*[[http://joesblog.com | Joe Smoe ]]
Changed line 18 from:
*[[http://itp.nyu.edu/~ls3101/myblog | Luca Shapiro ]]
to:
*[[http://itp.nyu.edu/~ls3101/myblog/?cat=3| Luca Shapiro ]]
Added line 18:
*[[http://itp.nyu.edu/~ls3101/myblog | Luca Shapiro ]]
Deleted line 21:
*[[http://joesblog.com | Joe Smoe ]]
Changed lines 4-5 from:
*Office Hours TBD
to:
*Office Hours Mondays 2:30-4:30\\
[[https://www.google.com/calendar/selfsched?sstoken=UUQxU2lzN0xkSklxfGRlZmF1bHR8YzNlMjY4NTFjNjg0MjZjYzBjOTY3ZjY3MTY1M2I5YzE | Sign up here]].

Changed lines 28-30 from:
to:
*[[http://www.jodyculkin.com/comics-2/introduction-to-arduino | Jody Culkin's Intro to Arduino Comic]]

Added line 16:
*[[http://itp.nyu.edu/~ab4254/ABC123 | Allison Berman ]]
Deleted line 20:
*[[http://joesblog.com | Joe Smoe ]]
Added line 9:
*[[http://www.phanv.com/blog/ | Phan V ]]
Changed lines 20-21 from:
to:
*[[http://saraalbassam.com/?tag=PComp | Sara Al-Bassam ]]
Added line 14:
*[[http://itp.nyu.edu/~mae383/blog/| Matthew Epler  ]]
Changed lines 20-21 from:
*[[http://joesblog.com | Joe Smoe ]]
to:
Added line 13:
*[[http://blog.benturner.com/category/itp/pcomp/ | Ben Turner ]]
Changed lines 20-21 from:
*[[http://joesblog.com | Joe Smoe ]]
to:
September 12, 2011, at 02:58 PM by krz212 - My blog link
Added line 12:
*[[http://itp.nyu.edu/~krz212/nosleeptillbrooklyn/ | Karolina Ziulkoski ]]
Changed lines 20-21 from:
*[[http://joesblog.com | Joe Smoe ]]
to:
Added line 11:
*[[http://gavinmhackeling.com/blog | Gavin Hackeling]]
Changed lines 20-21 from:
*[[http://joesblog.com | Joe Smoe ]]
to:
Added lines 26-29:
!!Supplies

See http://itp.nyu.edu/physcomp/Intro/Supplies \\

Added lines 21-25:
!!Additional links of interest
*[[http://arduino.cc | main Arduino site]]
*[[http://www.tigoe.net/pcomp/code/ | Tom Igoe's pcomp blog]]
*[[http://tigoe.net/pcomp/ | Tom's old pcomp site]]

Added line 10:
*[[http://itp.nyu.edu/~jwk328/blog |Jee Won Kim]]
Changed lines 20-21 from:
*[[http://joesblog.com | Joe Smoe ]]
to:
Added line 9:
*[[http://mattatitp.wordpress.com | Matt Richardson ]]
Changed lines 20-21 from:
*[[http://joesblog.com | Joe Smoe ]]
to:
Changed lines 3-5 from:
*[[mailto:dan.osullivan@nyu.edu?subject=Rest%20of%20You%20Syllabus | dan.osullivan@nyu.edu]]
*[[https://www.google.com/calendar/selfsched?sstoken=UVBlTFZhOVNCTmF0fGRlZmF1bHR8MmU2NTM4NjJmOTJiNTUwM2M0YTBmMzcyZDM4NjRkNmQ | Office Hours]]
to:
*[[mailto:scott.fitzgerald@nyu.edu?subject=Rest%20of%20You%20Syllabus | scott.fitzgerald@nyu.edu]]
*Office Hours TBD
Added lines 1-37:
!!Contact:

*[[mailto:dan.osullivan@nyu.edu?subject=Rest%20of%20You%20Syllabus | dan.osullivan@nyu.edu]]
*[[https://www.google.com/calendar/selfsched?sstoken=UVBlTFZhOVNCTmF0fGRlZmF1bHR8MmU2NTM4NjJmOTJiNTUwM2M0YTBmMzcyZDM4NjRkNmQ | Office Hours]]

!!Class List:

*Please press "Edit" at the bottom of this page, login and enter the url to your blog (if you are new to wiki formatting just follow the pattern)
*[[http://joesblog.com | Joe Smoe ]]
*[[http://joesblog.com | Joe Smoe ]]
*[[http://joesblog.com | Joe Smoe ]]
*[[http://joesblog.com | Joe Smoe ]]
*[[http://joesblog.com | Joe Smoe ]]
*[[http://joesblog.com | Joe Smoe ]]
*[[http://joesblog.com | Joe Smoe ]]
*[[http://joesblog.com | Joe Smoe ]]
*[[http://joesblog.com | Joe Smoe ]]
*[[http://joesblog.com | Joe Smoe ]]
*[[http://joesblog.com | Joe Smoe ]]

!!Notes from Class

*Week1
*Week2
*Week3
*Week4
*Week5
*Week6
*Week7
*Week8
*Week9
*Week10
*Week11
*Week12
*Week13
*Week14

  Edit | View | History | Print | Recent Changes | Search Page last modified on November 03, 2011, at 02:09 PM