Class.GraceNotes History

Hide minor edits - Show changes to output

Added lines 19-23:

----

To zero out the data, you need to know what the sensor's value is at rest, and subtract that from the value that the microcontroller sends to the multimedia computer. That way, when the sensor is at rest, the microcontroller sends 0, and anything above rest sends a positive value.\\
[[~tigoe]]
Added lines 6-7:
[[Assignment 1 Processing Code]]
Deleted lines 18-19:

[[Assignment 1 Processing Code]]
Changed lines 16-17 from:
Also, I was having troubles getting a "zero" value. Ideally, when the bag is put down, the visualization should be a straight line. Unfortunately, when I tried to zero out the data, the curvature of the line would suffer. Making the curvature larger (I did this by taking the absolute value of the sensor output, subtracting 30 for formatting, and multiplying hte result by two) made the "zero" value more curved. Argh.
to:
Also, I was having troubles getting a "zero" value. Ideally, when the bag is put down, the visualization should be a straight line. Unfortunately, when I tried to zero out the data, the curvature of the line would suffer. Making the curvature larger (I did this by taking the absolute value of the sensor output, subtracting 30 for formatting, and multiplying the result by two) made the "zero" line more curved. Argh.
Added lines 16-17:
Also, I was having troubles getting a "zero" value. Ideally, when the bag is put down, the visualization should be a straight line. Unfortunately, when I tried to zero out the data, the curvature of the line would suffer. Making the curvature larger (I did this by taking the absolute value of the sensor output, subtracting 30 for formatting, and multiplying hte result by two) made the "zero" value more curved. Argh.
Changed lines 1-2 from:
I also a flex sensor and a PIC 18F252 for this assignment and drew curves in Processing to visualize the data. The gesture in mind for this assignment was a flex sensor embedded into the handle of a bag. The sensor would indicate when the bag was picked up and when it was put down again.
to:
I used a flex sensor and a PIC 18F252 for this assignment and drew curves in Processing to visualize the data. The gesture in mind for this assignment was a flex sensor embedded into the handle of a bag. The sensor would indicate when the bag was picked up and when it was put down again.
Changed lines 1-2 from:
I also used a flex sensor for this assignment and drew curves in Processing to visualize the data. The gesture in mind for this assignment was a flex sensor imbedded into the handle of a bag. The sensor would indicate when the bag was picked up and when it was put down again.
to:
I also a flex sensor and a PIC 18F252 for this assignment and drew curves in Processing to visualize the data. The gesture in mind for this assignment was a flex sensor embedded into the handle of a bag. The sensor would indicate when the bag was picked up and when it was put down again.
Changed lines 14-16 from:
The problem I had was with Processing. How do you prevent it from writing tons of red lines all at once? I was able to make it so that only two lines show at once in the if statement towards the bottom of my code, but simply putting a background(0) after the curve function simply made the screen black.
to:
The problem I had was with Processing. How do you prevent it from writing tons of red lines all at once? I was able to make it so that only two lines show at once in the if statement towards the bottom of my code, but simply putting a background(0) after the curve function simply made the screen black.

[[Assignment 1 Processing Code]]
Added lines 5-7:

Bag Picked Up
Deleted lines 9-12:
Bag Picked Up

http://itp.nyu.edu/~gak217/fall05/sensor/assignment1/flexsensorpic1.jpg
Added lines 12-13:
http://itp.nyu.edu/~gak217/fall05/sensor/assignment1/flexsensorpic1.jpg
Added lines 3-4:
When the sensor was first attached and put through Tom's original code, there was a significant amount of noise, especially when the side of the sensor with printed text was convex. Putting a pause in the pic program helped.
Changed lines 11-13 from:
Bag Put Down
to:
Bag Put Down

The problem I had was with Processing. How do you prevent it from writing tons of red lines all at once? I was able to make it so that only two lines show at once in the if statement towards the bottom of my code, but simply putting a background(0) after the curve function simply made the screen black.
Changed lines 5-6 from:
"Bag Picked Up"
to:
Bag Picked Up
Changed line 9 from:
""Bag Put Down""
to:
Bag Put Down
Changed lines 5-6 from:
""Bag Picked Up""
to:
"Bag Picked Up"
Changed lines 5-6 from:
http://itp.nyu.edu/~gak217/fall05/sensor/assignment1/flexsensorpic1.jpg
to:
""Bag Picked Up""

http://itp.nyu.edu/~gak217/fall05/sensor/assignment1/flexsensorpic1.jpg

""Bag Put Down""
Added lines 4-5:
Changed lines 3-4 from:
[[http://itp.nyu.edu/~gak217/fall05/sensor/assignment1/flexsensorpic2.jpg]| Bag Picked Up]
[[
http://itp.nyu.edu/~gak217/fall05/sensor/assignment1/flexsensorpic1.jpg]| Bag Put Down]
to:
http://itp.nyu.edu/~gak217/fall05/sensor/assignment1/flexsensorpic2.jpg
http://itp.nyu.edu/~gak217/fall05/sensor/assignment1/flexsensorpic1.jpg
Changed lines 3-4 from:
[[Attach:myImageName.jpg]]
to:
[[http://itp.nyu.edu/~gak217/fall05/sensor/assignment1/flexsensorpic2.jpg]| Bag Picked Up]
[[http://itp.nyu.edu/~gak217/fall05/sensor/assignment1/flexsensorpic1.jpg]| Bag Put Down
]
Changed lines 1-3 from:
I also used a flex sensor for this assignment and drew curves in Processing to visualize the data. The gesture in mind for this assignment was a flex sensor imbedded into the handle of a bag. The sensor would indicate when the bag was picked up and when it was put down again.
to:
I also used a flex sensor for this assignment and drew curves in Processing to visualize the data. The gesture in mind for this assignment was a flex sensor imbedded into the handle of a bag. The sensor would indicate when the bag was picked up and when it was put down again.

[[Attach:myImageName.jpg]]
Added line 1:
I also used a flex sensor for this assignment and drew curves in Processing to visualize the data. The gesture in mind for this assignment was a flex sensor imbedded into the handle of a bag. The sensor would indicate when the bag was picked up and when it was put down again.