Programming Exercises
Read each book section and then complete the exercises at the end of the section (included in the parenthesis to the
right of the section name). Each exercise must be 400 x 400 pixels and uploaded
to the class website
before class on the due date.
Upload your work
Set 1 (Read by 03 Oct, Due 8 Oct)
Structure 1 (3), Shape 1 (1, 2, 3), Data 1 (2), Math 1 (1, 2), Control 1 (2,
3), Control 2 (1, 2), Shape 2 (1, 2, 3), Color 1 (1)
//
Set 2 (Read by 10 Oct, Due 15 Oct)
Image 1 (1, 2), Data 2, Data 3 (2, 3), Typography 1 (1, 3), Structure
2 (2, 3), Structure 3 (1, 2, 3), Shape 3, Development 1
And the mandatory bonus exercise...
Create a function that draws a chair. Use two parameters to change the shape and features of the chair and two additional parameters to set its position. Using your function, draw nine chairs in the display window in a regular 3 x 3 matrix. Use different parameters for each chair drawn to give each a unique shape and features.
//
Set 3 (Read by 17 Oct, Due 22 Oct)
Input 1 (1, 2), Drawing 1 (1, 2), Input 2 (1, 3), Input 3 (1), Input 4 (1, 2), Input 5 (1, 2), Development 2
And the mandatory bonus exercise...
Use code 26-08 as a base to write a program that asks a question, receives a response from the keyboard, and then responds.
//
Set 4 (Read by 24 Oct, Due 29 Oct)
Read Math 2 (2), Math 3 (1), Math 4 (1), Transform 1 (1, 2, 3), Transform
2 (1, 2), Motion 1 (1, 2, 3), Motion 2 (1), Data 4 (1, 2, 3), Image 2 (1,
2), Image 3 (2)
And the mandatory bonus exercise...
Animate two visual elements/shapes/mechanisms/organisms of your own design. Give one a distinctly mechanical motion and give the other an organic motion.
Projects
1. (Due 5 November)
You've spent the last four weeks working on short, small-format exercises defined by me. This week is your opportunity to define your own more ambitious project.
First, read extension chapter 1. Next, select the two extension chapters from 2 - 6 (3D, Vision, Network, Sound, Print) that interest you the most. Read them, work through the examples, and search for related libraries. In relation to combining concepts and techniques from these two chapters, by the end of class on the 29th, complete the sentence, "I want to learn how to..." This will be recorded and will become one metric by which the project is evaluated. Between Monday and Wednesday, devise a project that will allow you to demonstrate what you have learned. (I'll provide some examples during class.) Come with sketches and code-in-progress to class on Wednesday. We'll have presentations and a critique on Monday, November 5th. The presentation must explain and demonstrate your project and discuss (in detail) how it was built.
Have your project installed on one of the two computers attached to the projector and ready to demo by the time class starts on the 5th.
/ /
2. (Due 19 November)
Miniorgan
Build a sound-making machine, influenced by Tim Hawkinson's Uberorgan.
Reference photos:
http://www.flickr.com/photos/9600/1410573029/in/photostream/
Reference videos:
http://www.youtube.com/watch?v=gE9XVyAln9s
http://www.youtube.com/watch?v=SdATJKP8OZ0
Constraints:
At least one photocell
At least one speaker
Any materials, but keep it simple and familiar
No larger than a 12" cube
No motors or other sensors
/ /
3. (Due 28 November)
Tofu I/O Box
Read Processing, Extension 8, pp. 642 - 648
Read Physical Computing, Chapters 6, 9, 10, 11
Use one sensor and one actuator to give your box a behavior in relation to the world. The box will continuously sense some aspect of the world, process the data from the sensor, and then act. The behavior can remain the same or it can change over time depending on changes to the sensor signal (the box can "adapt"). All boxes should look the same, but behave differently.
Constraints:
The box must be a 9" cube.
It must be constructed with 1/4" white formcore.
It must not be tethered (must be battery operated).
Do not "decorate" the box