(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


Dano F 2011-1

Intro.DanoF2011-1 History

Hide minor edits - Show changes to output

Changed line 23 from:
*[[http://translatorsnot.es | Johann Diedrick ]]
to:
*[[http://heavenoutside.net/strings/ | Johann Diedrick ]]
Added line 9:
!WEEK1 FINAL PROJECT PROPS
Added line 20:
!WEEK2 FINAL PROJECT PROPS
Deleted line 9:
*[[http://itp.nyu.edu/~ah2497/myblog/?cat=6 | Amelia Hancock ]]
Changed lines 12-15 from:


*[[http://translatorsnot.es | Johann Diedrick ]]
*[[http://itp.nyu.edu/~ok467/blog/ | Oya Kosebay]] 
to:
*[[http://itp.nyu.edu/~ter253/trentellery/ | Trent Rohner ]]
*[[http://itp.adrianavarro.net/?cat=3 | Adrià Navarro ]]
*[[http://itp.nyu.edu/~mdm532/blog/category/pcomp/ | Melissa dela Merced]]
*[[http://itp.nyu.edu/~vvd212/blog/ | Veronika Dubrovskaya]]
Deleted lines 16-17:

*[[http://itp.nyu.edu/~mbv227/?cat=3  | Mónica Bate]]
Added lines 18-23:

*[[http://itp.nyu.edu/~ah2497/myblog/?cat=6 | Amelia Hancock ]]
*[[http://itp.nyu.edu/~jm4666/wordpress/ | Joe McCagherty ]]
*[[http://translatorsnot.es | Johann Diedrick ]]
*[[http://itp.nyu.edu/~ok467/blog/ | Oya Kosebay]] 
*[[http://itp.nyu.edu/~mbv227/?cat=3  | Mónica Bate]]
Deleted line 24:
Deleted line 25:
*[[http://itp.nyu.edu/~ter253/trentellery/ | Trent Rohner ]]
Changed lines 29-34 from:
*[[http://itp.adrianavarro.net/?cat=3 | Adrià Navarro ]]
*[[http://itp.nyu.edu/~mdm532/blog/category/pcomp/ | Melissa dela Merced]]
*[[http://itp.nyu.edu/~jm4666/wordpress/ | Joe McCagherty ]]
*[[http://itp.nyu.edu/~vvd212/blog/ | Veronika Dubrovskaya]]


to:


Changed lines 220-221 from:
<li><a href="http://wiki.processing.org/w/Android">Processing for Android</a></li>
<li><a href="http://www.sparkfun.com/products/10393">BlueTooth Module </a>, <a href="http://www.rioleo.org/setting-up-the-arduino-pro-mini-and-bluetooth-mate-on-mac.php">Test with Mac</a>, <a href="https://github.com/arduino/BtSerial/tree/master/distribution">Bluetooth and Android</a>, <a href="http://itp.nyu.edu/~dbo3/roy/?p=262">Listen BT Show on Screen</a>, <a href="http://itp.nyu.edu/~dbo3/roy/?p=317">Listen BT Write File</a></li>
to:
*<a href="http://wiki.processing.org/w/Android">Processing for Android</a></li>
*<a href="http://www.sparkfun.com/products/10393">BlueTooth Module </a>
*<a href="http://www.rioleo.org/setting-up-the-arduino-pro-mini-and-bluetooth-mate-on-mac.php">Test with Mac</a>
*<a href="https://github.com/arduino/BtSerial/tree/master/distribution">Bluetooth and Android</a>
*<a href="http://itp.nyu.edu/~dbo3/roy/?p=262">Listen BT Show on Screen</a>
*<a href="http://itp.nyu.edu/~dbo3/roy/?p=317">Listen BT Write File</a></li>
Added lines 220-221:
<li><a href="http://wiki.processing.org/w/Android">Processing for Android</a></li>
<li><a href="http://www.sparkfun.com/products/10393">BlueTooth Module </a>, <a href="http://www.rioleo.org/setting-up-the-arduino-pro-mini-and-bluetooth-mate-on-mac.php">Test with Mac</a>, <a href="https://github.com/arduino/BtSerial/tree/master/distribution">Bluetooth and Android</a>, <a href="http://itp.nyu.edu/~dbo3/roy/?p=262">Listen BT Show on Screen</a>, <a href="http://itp.nyu.edu/~dbo3/roy/?p=317">Listen BT Write File</a></li>
Changed lines 21-22 from:
*[[http://www.luisaph.com/b/?cat=23 | Luisa]]
to:
*[[http://www.luisaph.com/b/?cat=57 | Luisa]]
Added lines 177-198:

import processing.serial.*;
Serial port; // The serial port

int xpos, ypos; // position of the ball

void setup() {

  size(255, 255);  // Stage size
  ellipseMode(CENTER);
  xpos = width/2;
  ypos = height/2;
  // Print a list of the serial ports, for debugging purposes to find out what your ports are called:
  println(Serial.list());
  port = new Serial(this, Serial.list()[0], 9600);  //you can pull the name out of the list
}


void draw() {
  fill(255,255,255);
  ellipse(xpos,ypos,10,10);
}
Added lines 155-195:

!!Might be Last Arduino Code You Will Ever Write
void setup(){
  Serial.begin(9600);
}

void loop(){

  int x =  analogRead(A0);
  Serial.print(x);
  Serial.print(",");
  int y =  analogRead(A1);
  Serial.print(y);
  Serial.print(",");
  int z =  analogRead(A2);
  Serial.print(z);
  Serial.print(",");
  Serial.print('\n');

  }

!!Serial Event Function Processing for listening to it
void serialEvent(Serial port) {

  String input = port.readStringUntil('\n');  // you can use '\n' or 10 make sure you print("\n") or write(10) at the end of your transmission in arduino
  if (input != null){
    print("Raw Input: " + input);
    String[ ] parts = input.split(",");  //this will only work if you put commas (Ascii 44) between things in your transmission
    if (parts.length > 2){ //make sure it is a full valid message, might have joined conversation in the middle of message
      int xtilt = int(parts[0]);  //turn the "222" into 222
      int h = int(parts[1]);
      int l = int(parts[2]);

      xpos = int( map(xtilt,400,600,0,width) );  //you were putting this off in arduino but you have to do it some time
      heat = int( map(h,200,400,0,height) );  //these will be used in draw function so you have to declared outside of this function.
      light = int( map(l,100,900,0,height) );  //these will be used in draw function so you have to declared outside of this function.
    }
  }

}

Added line 82:
Added lines 87-152:
-----
!ARDUINO
#include <Servo.h>      // include the servo library

Servo servoMotor;
int input = 127;
int lastTime;
void setup(){

  Serial.begin(9600);
  servoMotor.attach(3);  // attaches the servo on pin 2 to the servo object
  Serial.print("Start");
}

void loop(){
  int photo = analogRead(A1);
  Serial.write(photo);
  input = Serial.read();
  if (input != -1) {
    servoMotor.write(input);
  }
}

-----
!PROCESSING

import processing.serial.*;

Serial myPort;
int xpos;

void setup() {
 
  println(Serial.list());
 String portName = Serial.list()[0];
  myPort = new Serial(this, portName, 9600);
  size(1800, 200);
  stroke(255);
 
}

void draw() {
}

void serialEvent(Serial _whichPort) {
  int input = _whichPort.read();
 
  println(input);
  stroke(0);
  line(xpos, 0, xpos, height);
  stroke(255);
  line(xpos, input, xpos, height);
  xpos++;
  if (xpos > width) {
    xpos = 0;
  }


  stroke(255, 0, 0);
  line(0, height/4, width, height/4);
  line(0, height/2, width, height/2);
  int mousePos = int(map(mouseX, 0, width, 0,255));
 
  myPort.write(mousePos);
}

Changed lines 21-22 from:
*Luisa
to:
*[[http://www.luisaph.com/b/?cat=23 | Luisa]]
Deleted line 6:
Changed lines 8-9 from:
*[[http://itp.nyu.edu/~av1105/blog/ | Alessandra Villaamil ]]
*[[http://itp.nyu.edu/~ter253/trentellery/ | Trent Rohner ]]
to:

*[[http://itp.nyu.edu/~bl1236/blog/?cat=4 | Ben Light ]]
*[[http://itp.nyu.edu/~ah2497/myblog/?cat=6 | Amelia Hancock ]]
Deleted line 11:
*[[http://itp.nyu.edu/~mdm532/blog/category/pcomp/ | Melissa dela Merced]]
Added lines 13-14:

Changed lines 16-18 from:
*[[http://itp.nyu.edu/~bl1236/blog/?cat=4 | Ben Light ]]
*[[http://itp.adrianavarro.net/?cat=3 | Adrià Navarro ]]
*[[http://itp.nyu.edu/~ah2497/myblog/?cat=6 | Amelia Hancock ]]
to:
*[[http://itp.nyu.edu/~ok467/blog/ | Oya Kosebay]] 
Changed lines 18-19 from:
*[[http://itp.nyu.edu/~jm4666/wordpress/ | Joe McCagherty ]]
*[[http://itp.nyu.edu/~pm1618/myblog | Patrick Muth
]]
to:

*[[http://itp.nyu.edu/~mbv227/?cat=3  | Mónica Bate]]
Added lines 21-24:
*Luisa

*[[http://itp.nyu.edu/~pm1618/myblog | Patrick Muth]]
*[[http://itp.nyu.edu/~ter253/trentellery/ | Trent Rohner ]]
Changed lines 26-27 from:
*[[http://itp.nyu.edu/~mbv227/?cat=3  | Mónica Bate]]
*[[http://itp.nyu.edu/~ok467/blog/ | Oya Kosebay]] 
to:
*[[http://itp.nyu.edu/~av1105/blog/ | Alessandra Villaamil ]]

*[[http://itp.adrianavarro.net/?cat=3 | Adrià Navarro ]]
*[[http://itp.nyu.edu/~mdm532/blog/category/pcomp/ | Melissa dela Merced]]
*[[http://itp.nyu.edu/~jm4666/wordpress/ | Joe McCagherty ]]
Changed line 10 from:
*[[http://trentellery.wordpress.com/ | Trent Rohner ]]
to:
*[[http://itp.nyu.edu/~ter253/trentellery/ | Trent Rohner ]]
Changed line 23 from:
*[[http://itp.nyu.edu/~mbv227/?cat=4  | Mónica Bate]]
to:
*[[http://itp.nyu.edu/~mbv227/?cat=3  | Mónica Bate]]
Changed line 23 from:
*[[http://etab.cl/itpblog/first-semester/pcomp/  | Mónica Bate]]
to:
*[[http://itp.nyu.edu/~mbv227/?cat=4  | Mónica Bate]]
Changed line 11 from:
*[[http://www.sarahkhallacher.com/blog/category/intro-to-physical-computing/ | Sarah Hallacher ]]
to:
*[[http://www.sarahkhallacher.com/blog/category/physical-computing/ | Sarah Hallacher ]]
Changed line 11 from:
*[[http://sarahkhallacher.wordpress.com/category/itp-3/intro-to-physical-computing/ | Sarah Hallacher ]]
to:
*[[http://www.sarahkhallacher.com/blog/category/intro-to-physical-computing/ | Sarah Hallacher ]]
Changed line 16 from:
*[[http://itp.adrianavarro.net | Adrià Navarro ]]
to:
*[[http://itp.adrianavarro.net/?cat=3 | Adrià Navarro ]]
Changed lines 25-27 from:


to:
*[[http://itp.nyu.edu/~vvd212/blog/ | Veronika Dubrovskaya]]

Deleted line 20:
*[[http://itp.nyu.edu/~ok467/blog/?page_id=28 | Oya Kosebay]]
Changed lines 23-24 from:

to:
*[[http://etab.cl/itpblog/first-semester/pcomp/  | Mónica Bate]]
*[[http://itp.nyu.edu/~ok467/blog/ | Oya Kosebay]] 


Added line 75:
**http://evolutionofgod.net/excerpts_afterword/
Changed line 27 from:
to:
----
Changed line 48 from:
to:
----
Added lines 50-73:

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

void loop(){
  int  litypoo = analogRead(A0);
 Serial.println(litypoo);
  litypoo = map(litypoo, 380, 760,0,255);
  litypoo = max(litypoo,0);
  litypoo = min(litypoo,255);
  if (litypoo > 200){
    digitalWrite(2,true);
  }else if (litypoo > 150){
  digitalWrite(3,true);

  }
  //litypoo = litypoo -450;
  //litypoo = litypoo/2;
 
  analogWrite(9,litypoo);
 
 
}
Changed line 11 from:
*[[http://sarahkhallacher.wordpress.com | Sarah Hallacher ]]
to:
*[[http://sarahkhallacher.wordpress.com/category/itp-3/intro-to-physical-computing/ | Sarah Hallacher ]]
Changed lines 23-24 from:

to:
*[[http://itp.nyu.edu/~nj541/Vogel/  | Nicholas Johnson]]

Added line 18:
*[[http://itp.nyu.edu/~hkb236/blog/?cat=5  | Hanna Kang-Brown ]]
Deleted line 8:
*[[http://itp.nyu.edu/dano| Dan O'Sullivan ]]
Changed lines 20-24 from:
to:
*[[http://itp.nyu.edu/~pm1618/myblog | Patrick Muth]]
*[[http://itp.nyu.edu/~ok467/blog/?page_id=28 | Oya Kosebay]]
*[[http://itp.nyu.edu/~lp1251/blog/  | Lisa Park]]

Changed lines 19-20 from:
*[[http://joesblog.com | Joe Smoe ]]
to:
*[[http://itp.nyu.edu/~jm4666/wordpress/ | Joe McCagherty ]]
Added line 18:
*[[http://itp.nyu.edu/~ah2497/myblog/?cat=6 | Amelia Hancock ]]
Changed lines 20-21 from:
*[[http://joesblog.com | Joe Smoe ]]
to:
Added line 17:
*[[http://itp.adrianavarro.net | Adrià Navarro ]]
Changed lines 20-21 from:
*[[http://joesblog.com | Joe Smoe ]]
to:
Added line 16:
*[[http://itp.nyu.edu/~bl1236/blog/?cat=4 | Ben Light ]]
Changed lines 20-21 from:
*[[http://joesblog.com | Joe Smoe ]]
to:
Added line 15:
*[[http://translatorsnot.es | Johann Diedrick ]]
Changed lines 20-21 from:
*[[http://joesblog.com | Joe Smoe ]]
to:
Changed line 14 from:
*[[http://http://itp.nyu.edu/~kk1985/blog/| Kawita Kandpal ]]
to:
*[[http://itp.nyu.edu/~kk1985/blog/| Kawita Kandpal ]]
Added line 14:
*[[http://http://itp.nyu.edu/~kk1985/blog/| Kawita Kandpal ]]
Changed lines 20-21 from:
*[[http://joesblog.com | Joe Smoe ]]
to:
Added line 13:
*[[http://itp.nyu.edu/~mdm532/blog/category/pcomp/ | Melissa dela Merced]]
Changed lines 20-21 from:
*[[http://joesblog.com | Joe Smoe ]]
to:
Added line 12:
*[[http://sarahkhallacher.wordpress.com | Sarah Hallacher ]]
Changed lines 20-21 from:
*[[http://joesblog.com | Joe Smoe ]]
to:
Added line 11:
*[[http://trentellery.wordpress.com/ | Trent Rohner ]]
Changed lines 20-21 from:
*[[http://joesblog.com | Joe Smoe ]]
to:
Added line 10:
*[[http://itp.nyu.edu/~av1105/blog/ | Alessandra Villaamil ]]
Changed lines 20-21 from:
*[[http://joesblog.com | Joe Smoe ]]
to:
Changed lines 6-7 from:
!!Class List:
to:
!!Class List :
Added lines 25-26:

Added line 24:
[[https://docs.google.com/document/pub?id=1k3qpdA3ylY1XfdDwyavc5-br9fi0-H57cvTppL5wR7M | Picture of Breadboard]]
Changed lines 41-42 from:
https://docs.google.com/document/pub?id=1k3qpdA3ylY1XfdDwyavc5-br9fi0-H57cvTppL5wR7M
to:
Changed lines 40-41 from:
<iframe src="https://docs.google.com/document/pub?id=1k3qpdA3ylY1XfdDwyavc5-br9fi0-H57cvTppL5wR7M&amp;embedded=true"></iframe>
to:
https://docs.google.com/document/pub?id=1k3qpdA3ylY1XfdDwyavc5-br9fi0-H57cvTppL5wR7M
Changed lines 40-41 from:

to:
<iframe src="https://docs.google.com/document/pub?id=1k3qpdA3ylY1XfdDwyavc5-br9fi0-H57cvTppL5wR7M&amp;embedded=true"></iframe>
Added lines 24-41:
void setup(){
 
  pinMode(7,OUTPUT);
  pinMode(6,INPUT);
}


void loop(){
 
  if(digitalRead(6) == true  && digitalRead(5) == true){
    digitalWrite(7,true);
    delay(1000);
    digitalWrite(7, false);
    delay(1000);
  }
}

Added line 9:
*[[http://itp.nyu.edu/dano| Dan O'Sullivan ]]
Changed lines 20-21 from:
*[[http://joesblog.com | Joe Smoe ]]
to:
Changed lines 4-5 from:
*[[https://www.google.com/calendar/selfsched?sstoken=UVBlTFZhOVNCTmF0fGRlZmF1bHR8MmU2NTM4NjJmOTJiNTUwM2M0YTBmMzcyZDM4NjRkNmQ" | Office Hours]]
to:
*[[https://www.google.com/calendar/selfsched?sstoken=UVBlTFZhOVNCTmF0fGRlZmF1bHR8MmU2NTM4NjJmOTJiNTUwM2M0YTBmMzcyZDM4NjRkNmQ | Office Hours]]
Changed line 8 from:
*Please press "Edit" at the bottom of this page, login and enter the url to your blog (it's a wiki so just follow the patter of formatting)
to:
*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)
Deleted line 0:
Changed lines 4-5 from:
*[[ttps://www.google.com/calendar/selfsched?sstoken=UVBlTFZhOVNCTmF0fGRlZmF1bHR8MmU2NTM4NjJmOTJiNTUwM2M0YTBmMzcyZDM4NjRkNmQ" | Office Hours]]
to:
*[[https://www.google.com/calendar/selfsched?sstoken=UVBlTFZhOVNCTmF0fGRlZmF1bHR8MmU2NTM4NjJmOTJiNTUwM2M0YTBmMzcyZDM4NjRkNmQ" | Office Hours]]
Deleted line 1:
Changed lines 22-23 from:
!!Notes
to:
!!Notes from Class

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

Changed lines 1-5 from:
'+Contact:+'
[[mailto:dan.osullivan@nyu.edu?subject=Rest%20of%20You%20Syllabus | dan.osullivan@nyu.edu]]
[[ttps://www.google.com/calendar/selfsched?sstoken=UVBlTFZhOVNCTmF0fGRlZmF1bHR8MmU2NTM4NjJmOTJiNTUwM2M0YTBmMzcyZDM4NjRkNmQ" | Office Hours]]

'+Class List:+'
to:


!!
Contact:

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

!!Class List:
Changed lines 23-24 from:
'+
Notes+'
to:
!!Notes
Added lines 1-4:
'+Contact:+'
[[mailto:dan.osullivan@nyu.edu?subject=Rest%20of%20You%20Syllabus | dan.osullivan@nyu.edu]]
[[ttps://www.google.com/calendar/selfsched?sstoken=UVBlTFZhOVNCTmF0fGRlZmF1bHR8MmU2NTM4NjJmOTJiNTUwM2M0YTBmMzcyZDM4NjRkNmQ" | Office Hours]]

Added lines 18-20:

'+
Notes+'
Changed lines 1-2 from:
Class List:
to:
'+Class List:+'
*Please press "Edit" at the bottom of this page, login and enter the url to your blog (it's a wiki so just follow the patter of formatting)
Added lines 1-12:
Class List:
*[[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 ]]
  Edit | View | History | Print | Recent Changes | Search Page last modified on November 15, 2011, at 04:12 PM