|
Intro to Physical Computing Syllabus Research & Learning Other Class pages
ITP Help Pages |
Dano WedFall09.DanoWed HistoryHide minor edits - Show changes to markup November 13, 2009, at 11:55 AM
by -
Changed lines 24-25 from:
to:
Deleted lines 26-27:
Changed line 28 from:
to:
Added lines 30-32:
Changed lines 34-36 from:
to:
Deleted line 37:
Deleted line 41:
Changed lines 44-45 from:
to:
November 13, 2009, at 11:00 AM
by -
Changed lines 469-472 from:
Week 8 Week 9 to:
Changed lines 471-591 from:
to:
int r,g,b; void setup() { Serial.begin(9600); //set up communication back to pc //don't forget to press "serial monitor button" } void loop() { int analogReading = analogRead(5); //can only use pins 0-5
Serial.print(analogReading);
Serial.print(",");
analogReading = analogRead(4); //can only use pins 0-5
Serial.print(analogReading);
Serial.print(",");
analogReading = analogRead(3); //can only use pins 0-5
Serial.print(analogReading);
Serial.print(",");
Serial.println(10,BYTE); //talk back to pc
if (Serial.available() >=3){
r = Serial.read();
g = Serial.read();
b = Serial.read();
}
analogWrite(6,b);
analogWrite(5,r);
analogWrite(3,g);
delay(20);
} import processing.serial.*; Serial port; // The serial port int xpos, ypos; // position of the ball int r,g,b; PImage pic ; void setup() { size(255, 255); // Stage size
pic = loadImage("colorspace_RGB.png");
ellipseMode(CENTER);
size(pic.width,pic.height);
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
port = new Serial(this, "/dev/tty.usbserial-A7004nUQ", 9600); //or you can just specify it
sendColors(); // Send stuff in case the microcontroller is waiting to hear from you
} void sendColors(){ port.write(r); port.write(g); port.write(b); } void draw() { //image of a color space
image(pic,0,0);
/* draw a color space
for(int i=0; i<width; i++) {
for(int j=0; j<height; j++) {
stroke(0, i, j);
point(i, j);
}
}
*/
//find the color of the pixel at the current spot
int thisPixel = get(xpos,ypos);
r = int(red(thisPixel));
g = int(green(thisPixel));
b = int(blue(thisPixel));
//put an ellipse over the spot
fill(255,255,255);
ellipse(xpos,ypos,10,10);
} void serialEvent(Serial port) { String input = port.readStringUntil(10); //make sure you return (Ascii 13) at the end of your transmission
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
int xtilt = int(parts[0]);
int ytilt = int(parts[1]);
xpos = int( map(xtilt,400,600,0,width) );
ypos = int( map(ytilt,400,600,0,height) );
sendColors();
}
}
} Week 10 October 20, 2009, at 03:15 PM
by -
Changed lines 247-250 from:
Week 6 ACCELEROMETER + RGB LED ARDUINO SIDE to:
Week 7 ACCELEROMETER + RGB LEDARDUINO SIDEChanged lines 284-285 from:
PROCESSING SIDE import processing.serial.*; to:
PROCESSING SIDE import processing.serial.*;October 20, 2009, at 03:15 PM
by -
Changed lines 140-145 from:
Week 6 ACCELEROMETER + RGB LED ARDUINO SIDE int analogReading; //variable int size because adc number potentially as big as 1024 to:
Week 7Arduinoint heat = 65; int light = 65; int onOff = 0; Changed lines 147-149 from:
beginSerial(9600); //set up communication back to pc //don't forget to press "serial monitor button" to:
Serial.begin(9600);
pinMode(4, INPUT);
pinMode(7, OUTPUT);
Serial.println("Start");
Changed lines 155-171 from:
analogReading = analogRead(5); //can only use pins 0-5
Serial.print(analogReading,DEC);
Serial.print(44,BYTE);
analogReading = analogRead(4); //can only use pins 0-5
Serial.print(analogReading,DEC);
Serial.print(44,BYTE);
analogReading = analogRead(3); //can only use pins 0-5
Serial.print(analogReading,DEC);
Serial.print(44,BYTE);
Serial.println(10,BYTE); //talk back to pc
if (Serial.available() >=3){
int r = Serial.read();
int g = Serial.read();
int b = Serial.read();
analogWrite(6,b);
analogWrite(5,6);
analogWrite(11,g);
to:
if (Serial.available() > 0){ //only send if you have hear back
int input = Serial.read();
input = map(input,0,255,500,2500); // convert the analog value
// to a range between minPulse
Serial.println(input);
digitalWrite(7, HIGH); // Turn the motor on
delayMicroseconds(input); // Length of the pulse sets the motor position
digitalWrite(7, LOW); // Turn the motor off
heat = analogRead(5);
light = analogRead(0);
onOff = digitalRead(4);
Serial.print(heat);
Serial.print(",");
Serial.print(light);
Serial.print(",");
Serial.print(onOff);
Serial.print(",");
Serial.print(10, BYTE); //send a return
//Serial.flush();
delay(20); //you might use this instead of if available
Changed lines 179-180 from:
delay(20); to:
Changed lines 183-186 from:
PROCESSING SIDE import processing.serial.*; Serial port; // The serial port int xpos, ypos; // position of the ball int r,g,b; to:
Procressingimport processing.serial.*; float bgColor; // Background color Serial port; // The serial port float xpos; // position of the ball float ypos ; int shape; Changed lines 196-197 from:
size(255, 255); // Stage size to:
size(800, 600); // Stage size ypos = height*3/4; xpos = width/4; noStroke(); // No border on the next thing drawn Changed lines 201-203 from:
xpos = width/2; ypos = height/2; to:
rectMode(CENTER); Changed lines 205-208 from:
//port = new Serial(this, Serial.list()[0], 9600); //you can pull the name out of the list
port = new Serial(this, "COM28", 9600); //or you can just specify it
sendColors(); // Send stuff in case the microcontroller is waiting to hear from you
to:
port = new Serial(this, Serial.list()[0], 9600); //you can pull the name out of the list //port = new Serial(this, "/dev/tty.BlueRadios-COM0-1", 9600); //or you can just specify it port.write(65); // Send a capital A in case the microcontroller is waiting to hear from you // println("OKAY LET'S GO"); Deleted lines 211-219:
void sendColors(){ port.write(r);
port.write(g);
port.write(b);
//println("R" + r+ " G" + g + " B" + b);
} Changed lines 214-217 from:
for(int i=0; i<width; i++) {
for(int j=0; j<height; j++) {
stroke(0, i, j);
point(i, j);
to:
background(0);
fill(255-bgColor,0,0);
// Draw the shape
if (shape == 0){
ellipse(xpos, ypos, 60, 60);
Changed lines 220-223 from:
to:
else{
rect(xpos, ypos, 60, 60);
}
Deleted lines 225-233:
int thisPixel = get(xpos,ypos); r = int(red(thisPixel)); g = int(green(thisPixel)); b = int(blue(thisPixel)); fill(255,255,255); ellipse(xpos,ypos,10,10); } Changed lines 232-253 from:
if (parts.length > 2){ //make sure it is a full valid message
//turn them from ASCII into numbers
int xtilt = int(parts[0]);
int ytilt = int(parts[1]);
if (xtilt > 500) {
xpos = xpos + 1 ;// same as xpos++
}
else {
xpos = xpos - 1 ;// same as xpos--
}
xpos = min(xpos,width);
xpos = max(xpos,0);
if (ytilt > 500) {
ypos = ypos + 1 ;// same as ypos++
}
else {
ypos = ypos - 1 ;// same as ypos--
}
ypos = min(ypos,width);
ypos = max(ypos,0);
println("Positionx:" + xpos + " y:" + ypos );
sendColors();
to:
if (parts.length >= 3){
ypos = int(parts[0]);
ypos = map(ypos,300,900,height,0); //400 and 625 were arrived at emperically by looking at readings from the sensor
bgColor = int(parts[1]);
bgColor = map(bgColor,430,550,0,255);
shape = int(parts[2]);
float mouseDistanceAcross = map(mouseX,0,width,0,255);
port.write(int(mouseDistanceAcross)); //in this example you might use the mouse distance across to control the panning of a servo motor
Changed lines 246-251 from:
2 analog, 1 switch and a servo ARDUINO int heat = 65; int light = 65; int onOff = 0; to:
Week 6 ACCELEROMETER + RGB LED ARDUINO SIDE int analogReading; //variable int size because adc number potentially as big as 1024 Changed lines 255-258 from:
beginSerial(9600); pinMode(4, INPUT); pinMode(2, OUTPUT); to:
beginSerial(9600); //set up communication back to pc //don't forget to press "serial monitor button" Changed lines 262-283 from:
if (Serial.available() > 0){ //only send if you have hear back
int input = Serial.read();
input = map(input,0,255,500,2500); // convert the analog value
// to a range between minPulse
digitalWrite(2, HIGH); // Turn the motor on
delayMicroseconds(input); // Length of the pulse sets the motor position
digitalWrite(2, LOW); // Turn the motor off
heat = analogRead(5);
light = analogRead(0);
onOff = digitalRead(4);
Serial.print(heat,DEC);
Serial.print(44, BYTE);
Serial.print(light,DEC);
Serial.print(44, BYTE);
Serial.print(onOff,DEC);
Serial.print(44, BYTE);
Serial.print(10, BYTE); //send a return
delay(20); //you might use this instead of if available
to:
analogReading = analogRead(5); //can only use pins 0-5
Serial.print(analogReading,DEC);
Serial.print(44,BYTE);
analogReading = analogRead(4); //can only use pins 0-5
Serial.print(analogReading,DEC);
Serial.print(44,BYTE);
analogReading = analogRead(3); //can only use pins 0-5
Serial.print(analogReading,DEC);
Serial.print(44,BYTE);
Serial.println(10,BYTE); //talk back to pc
if (Serial.available() >=3){
int r = Serial.read();
int g = Serial.read();
int b = Serial.read();
analogWrite(6,b);
analogWrite(5,6);
analogWrite(11,g);
Changed lines 280-281 from:
to:
delay(20); Changed lines 284-289 from:
PROCESSING import processing.serial.*; float bgColor; // Background color Serial port; // The serial port float xpos; // position of the ball int shape; to:
PROCESSING SIDE import processing.serial.*; Serial port; // The serial port int xpos, ypos; // position of the ball int r,g,b; Changed lines 290-291 from:
size(256, 256); // Stage size noStroke(); // No border on the next thing drawn to:
size(255, 255); // Stage size Changed lines 293-294 from:
rectMode(CENTER); to:
xpos = width/2; ypos = height/2; Changed lines 299-302 from:
port = new Serial(this, "COM30", 9600); //or you can just specify it
port.write(65); // Send a capital A in case the microcontroller is waiting to hear from you
// println("OKAY LET'S GO");
to:
port = new Serial(this, "COM28", 9600); //or you can just specify it
sendColors(); // Send stuff in case the microcontroller is waiting to hear from you
Added lines 304-312:
void sendColors(){ port.write(r);
port.write(g);
port.write(b);
//println("R" + r+ " G" + g + " B" + b);
} Changed lines 315-319 from:
background(bgColor);
fill(255,0,0);
// Draw the shape
if (shape == 0){
ellipse(xpos, height/2, 20, 20);
to:
for(int i=0; i<width; i++) {
for(int j=0; j<height; j++) {
stroke(0, i, j);
point(i, j);
Changed lines 320-323 from:
else{
rect(xpos, height/2, 20, 20);
}
to:
Added lines 323-331:
int thisPixel = get(xpos,ypos); r = int(red(thisPixel)); g = int(green(thisPixel)); b = int(blue(thisPixel)); fill(255,255,255); ellipse(xpos,ypos,10,10); } Changed line 336 from:
println("Raw Input: " + input);
to:
print("Raw Input: " + input);
Changed lines 338-350 from:
if (parts.length >= 3){
bgColor = int(parts[0]);
bgColor = map(bgColor,500,1000,0,255);
xpos = int(parts[1]);
xpos = map(xpos,500,580,0,width); //400 and 625 were arrived at emperically by looking at readings from the sensor
shape = int(parts[2]);
float mouseDistanceAcross = map(mouseX,0,width,0,255);
port.write(int(mouseDistanceAcross)); //in this example you might use the mouse distance across to control the panning of a servo motor
to:
if (parts.length > 2){ //make sure it is a full valid message
//turn them from ASCII into numbers
int xtilt = int(parts[0]);
int ytilt = int(parts[1]);
if (xtilt > 500) {
xpos = xpos + 1 ;// same as xpos++
}
else {
xpos = xpos - 1 ;// same as xpos--
}
xpos = min(xpos,width);
xpos = max(xpos,0);
if (ytilt > 500) {
ypos = ypos + 1 ;// same as ypos++
}
else {
ypos = ypos - 1 ;// same as ypos--
}
ypos = min(ypos,width);
ypos = max(ypos,0);
println("Positionx:" + xpos + " y:" + ypos );
sendColors();
Added lines 363-464:
} 2 analog, 1 switch and a servo ARDUINO int heat = 65; int light = 65; int onOff = 0; void setup() { beginSerial(9600); pinMode(4, INPUT); pinMode(2, OUTPUT); } void loop() { if (Serial.available() > 0){ //only send if you have hear back
int input = Serial.read();
input = map(input,0,255,500,2500); // convert the analog value
// to a range between minPulse
digitalWrite(2, HIGH); // Turn the motor on
delayMicroseconds(input); // Length of the pulse sets the motor position
digitalWrite(2, LOW); // Turn the motor off
heat = analogRead(5);
light = analogRead(0);
onOff = digitalRead(4);
Serial.print(heat,DEC);
Serial.print(44, BYTE);
Serial.print(light,DEC);
Serial.print(44, BYTE);
Serial.print(onOff,DEC);
Serial.print(44, BYTE);
Serial.print(10, BYTE); //send a return
delay(20); //you might use this instead of if available
}
} PROCESSING import processing.serial.*; float bgColor; // Background color Serial port; // The serial port float xpos; // position of the ball int shape; void setup() { size(256, 256); // Stage size
noStroke(); // No border on the next thing drawn
ellipseMode(CENTER);
rectMode(CENTER);
// 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
port = new Serial(this, "COM30", 9600); //or you can just specify it
port.write(65); // Send a capital A in case the microcontroller is waiting to hear from you
// println("OKAY LET'S GO");
} void draw() { background(bgColor);
fill(255,0,0);
// Draw the shape
if (shape == 0){
ellipse(xpos, height/2, 20, 20);
}
else{
rect(xpos, height/2, 20, 20);
}
} void serialEvent(Serial port) { String input = port.readStringUntil(10); //make sure you return (Ascii 13) at the end of your transmission
if (input != null){
println("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 >= 3){
bgColor = int(parts[0]);
bgColor = map(bgColor,500,1000,0,255);
xpos = int(parts[1]);
xpos = map(xpos,500,580,0,width); //400 and 625 were arrived at emperically by looking at readings from the sensor
shape = int(parts[2]);
float mouseDistanceAcross = map(mouseX,0,width,0,255);
port.write(int(mouseDistanceAcross)); //in this example you might use the mouse distance across to control the panning of a servo motor
}
}
October 16, 2009, at 11:16 AM
by -
Changed line 33 from:
to:
October 13, 2009, at 09:37 AM
by -
Changed lines 82-85 from:
Week 5 Week 6 to:
* PROCESSING CIRCLE import processing.serial.*; Serial myPort; int input; void setup(){ size(800,600);
println(Serial.list());
myPort = new Serial(this, "COM28", 9600);
ellipseMode(CENTER);
} void draw(){ background(255); ellipse(width/2,height/2,input*5,input*5); } void serialEvent(Serial p) { input = p.read();
println("input" + input);
} * PROCESSING GRAPH import processing.serial.*; Serial myPort; int input; int xpos; void setup(){ size(800,600);
println(Serial.list());
myPort = new Serial(this, "COM28", 9600);
background(255);
} void draw(){ ellipse(xpos,input,2,2);
xpos++;
if (xpos > width){
xpos = 0;
background(255);
}
} void serialEvent(Serial p) { input = p.read();
println("input" + input);
} Week 6 ACCELEROMETER + RGB LED ARDUINO SIDE int analogReading; //variable int size because adc number potentially as big as 1024 void setup() { beginSerial(9600); //set up communication back to pc //don't forget to press "serial monitor button" } void loop() { analogReading = analogRead(5); //can only use pins 0-5
Serial.print(analogReading,DEC);
Serial.print(44,BYTE);
analogReading = analogRead(4); //can only use pins 0-5
Serial.print(analogReading,DEC);
Serial.print(44,BYTE);
analogReading = analogRead(3); //can only use pins 0-5
Serial.print(analogReading,DEC);
Serial.print(44,BYTE);
Serial.println(10,BYTE); //talk back to pc
if (Serial.available() >=3){
int r = Serial.read();
int g = Serial.read();
int b = Serial.read();
analogWrite(6,b);
analogWrite(5,6);
analogWrite(11,g);
}
delay(20);
} PROCESSING SIDE import processing.serial.*; Serial port; // The serial port int xpos, ypos; // position of the ball int r,g,b; 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
port = new Serial(this, "COM28", 9600); //or you can just specify it
sendColors(); // Send stuff in case the microcontroller is waiting to hear from you
} void sendColors(){ port.write(r);
port.write(g);
port.write(b);
//println("R" + r+ " G" + g + " B" + b);
} void draw() { for(int i=0; i<width; i++) {
for(int j=0; j<height; j++) {
stroke(0, i, j);
point(i, j);
}
} int thisPixel = get(xpos,ypos); r = int(red(thisPixel)); g = int(green(thisPixel)); b = int(blue(thisPixel)); fill(255,255,255); ellipse(xpos,ypos,10,10); } void serialEvent(Serial port) { String input = port.readStringUntil(10); //make sure you return (Ascii 13) at the end of your transmission
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
//turn them from ASCII into numbers
int xtilt = int(parts[0]);
int ytilt = int(parts[1]);
if (xtilt > 500) {
xpos = xpos + 1 ;// same as xpos++
}
else {
xpos = xpos - 1 ;// same as xpos--
}
xpos = min(xpos,width);
xpos = max(xpos,0);
if (ytilt > 500) {
ypos = ypos + 1 ;// same as ypos++
}
else {
ypos = ypos - 1 ;// same as ypos--
}
ypos = min(ypos,width);
ypos = max(ypos,0);
println("Positionx:" + xpos + " y:" + ypos );
sendColors();
}
}
} 2 analog, 1 switch and a servo ARDUINO int heat = 65; int light = 65; int onOff = 0; void setup() { beginSerial(9600); pinMode(4, INPUT); pinMode(2, OUTPUT); } void loop() { if (Serial.available() > 0){ //only send if you have hear back
int input = Serial.read();
input = map(input,0,255,500,2500); // convert the analog value
// to a range between minPulse
digitalWrite(2, HIGH); // Turn the motor on
delayMicroseconds(input); // Length of the pulse sets the motor position
digitalWrite(2, LOW); // Turn the motor off
heat = analogRead(5);
light = analogRead(0);
onOff = digitalRead(4);
Serial.print(heat,DEC);
Serial.print(44, BYTE);
Serial.print(light,DEC);
Serial.print(44, BYTE);
Serial.print(onOff,DEC);
Serial.print(44, BYTE);
Serial.print(10, BYTE); //send a return
delay(20); //you might use this instead of if available
}
} PROCESSING import processing.serial.*; float bgColor; // Background color Serial port; // The serial port float xpos; // position of the ball int shape; void setup() { size(256, 256); // Stage size
noStroke(); // No border on the next thing drawn
ellipseMode(CENTER);
rectMode(CENTER);
// 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
port = new Serial(this, "COM30", 9600); //or you can just specify it
port.write(65); // Send a capital A in case the microcontroller is waiting to hear from you
// println("OKAY LET'S GO");
} void draw() { background(bgColor);
fill(255,0,0);
// Draw the shape
if (shape == 0){
ellipse(xpos, height/2, 20, 20);
}
else{
rect(xpos, height/2, 20, 20);
}
} void serialEvent(Serial port) { String input = port.readStringUntil(10); //make sure you return (Ascii 13) at the end of your transmission
if (input != null){
println("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 >= 3){
bgColor = int(parts[0]);
bgColor = map(bgColor,500,1000,0,255);
xpos = int(parts[1]);
xpos = map(xpos,500,580,0,width); //400 and 625 were arrived at emperically by looking at readings from the sensor
shape = int(parts[2]);
float mouseDistanceAcross = map(mouseX,0,width,0,255);
port.write(int(mouseDistanceAcross)); //in this example you might use the mouse distance across to control the panning of a servo motor
}
}
} September 30, 2009, at 10:14 AM
by -
Changed line 41 from:
to:
September 24, 2009, at 10:14 AM
by -
Added lines 72-74:
Tom's Greatest Hits September 23, 2009, at 01:08 PM
by -
Changed lines 72-76 from:
to:
if (input > biggestNumberIEverSaw){
biggestNumberIEverSaw = input;
}
input = map(input, 800,biggestNumberIEverSaw,0,255);
September 23, 2009, at 10:49 AM
by -
Deleted line 31:
September 20, 2009, at 10:56 AM
by -
Changed line 26 from:
to:
September 16, 2009, at 04:31 PM
by -
Changed line 42 from:
to:
September 16, 2009, at 03:37 PM
by -
Changed line 28 from:
to:
September 16, 2009, at 11:12 AM
by -
Changed line 31 from:
to:
September 16, 2009, at 09:13 AM
by - September 16, 2009, at 09:13 AM
by -
Changed line 39 from:
to:
September 16, 2009, at 07:24 AM
by -
Changed line 40 from:
to:
September 16, 2009, at 07:24 AM
by -
Changed line 40 from:
to:
September 16, 2009, at 06:47 AM
by -
Changed line 29 from:
to:
September 15, 2009, at 11:59 PM
by -
Changed line 35 from:
to:
September 15, 2009, at 10:33 PM
by -
Changed line 41 from:
to:
September 15, 2009, at 01:06 PM
by -
Changed line 30 from:
to:
September 15, 2009, at 01:06 PM
by -
Changed line 30 from:
to:
September 14, 2009, at 06:45 PM
by -
Changed lines 43-44 from:
to:
September 14, 2009, at 01:15 AM
by -
Changed line 37 from:
to:
September 14, 2009, at 12:19 AM
by -
Changed line 34 from:
to:
September 12, 2009, at 10:38 PM
by -
Changed line 38 from:
to:
September 12, 2009, at 07:34 PM
by - September 12, 2009, at 07:12 PM
by - September 12, 2009, at 07:12 PM
by -
Changed line 36 from:
to:
September 12, 2009, at 02:03 PM
by -
Changed line 33 from:
to:
September 12, 2009, at 02:02 PM
by -
Changed line 33 from:
to:
September 11, 2009, at 04:59 PM
by -
Changed line 41 from:
to:
September 11, 2009, at 04:59 PM
by -
Changed line 41 from:
to:
September 11, 2009, at 10:08 AM
by -
Changed line 25 from:
to:
September 11, 2009, at 07:14 AM
by - September 11, 2009, at 07:13 AM
by -
Changed line 36 from:
to:
September 11, 2009, at 12:07 AM
by -
Changed line 25 from:
to:
September 10, 2009, at 08:31 PM
by -
Changed line 34 from:
to:
September 10, 2009, at 06:03 PM
by -
Changed line 36 from:
to:
September 10, 2009, at 04:05 PM
by -
Changed line 26 from:
to:
September 10, 2009, at 12:39 PM
by -
Changed line 28 from:
to:
September 10, 2009, at 12:26 PM
by -
Changed line 27 from:
to:
September 10, 2009, at 12:06 PM
by -
Changed line 27 from:
to:
September 10, 2009, at 07:21 AM
by -
Changed line 36 from:
to:
September 09, 2009, at 03:12 PM
by -
Changed lines 90-91 from:
test to:
September 09, 2009, at 03:12 PM
by -
Changed lines 90-91 from:
to:
test September 09, 2009, at 02:05 PM
by - September 08, 2009, at 10:33 AM
by -
Changed lines 24-42 from:
to:
Changed lines 48-49 from:
to:
void setup()
{
pinMode(2, OUTPUT); // sets the digital pin as output
pinMode(3, INPUT);
}
void loop()
{
if (digitalRead(3)){
digitalWrite(2, HIGH); // sets the LED on
delay(1000); // waits for a second
digitalWrite(2, LOW); // sets the LED off
delay(1000); // waits for a second
}
}
September 08, 2009, at 10:32 AM
by -
Changed lines 66-67 from:
to:
September 08, 2009, at 10:32 AM
by - September 08, 2009, at 09:59 AM
by -
Changed lines 14-19 from:
to:
Syllabus September 08, 2009, at 09:58 AM
by -
Changed lines 13-14 from:
to:
LinksSeptember 08, 2009, at 09:55 AM
by -
Added lines 19-20:
Deleted line 21:
Added line 24:
Deleted lines 25-26:
Changed lines 38-56 from:
to:
August 26, 2009, at 09:59 AM
by -
Changed lines 1-3 from:
Intro to Physical Computing (Fall 2008)to:
Intro to Physical Computing (Fall 2009)August 26, 2009, at 09:59 AM
by -
Added lines 1-65:
Intro to Physical Computing (Fall 2008)
syllabus - Labs LaptopsLaptops are very useful tools, but they are also very effective instruments of distraction. Everyone benefits if we all pay attention. I'll do my best to keep the class interesting, I hope you'll join me in this pursuit. You are welcome to use your laptop in class when I am speaking, or when it is relevant to the classwork being presented. However, during discussions and when your fellow students are talking, please be respectful of everyone's time and close the lid. If necessary, I'll remind of this, but even better would be if everyone does so naturally. Journalsadd a link to your pcomp journals below with your name: Weekly LinksWeek 1: Week 2: Week 3: Week 4 Week 5 Week 6 Week 7 Week 8 Week 9 Week 10 Week 11 Week 12 |