Pcomp & ICM Week5 (Synthesis)

Last Friday, we combined our Pcomp and ICM projects together.

I chose my ICM sketch “rainy day”, in which mouseX controls the curtain – if mouseX moves, the curtain will be closed and the window will be covered. I added a analog switch to replace mouseX, so it works like this:

After a while, my partner Lindsey and I decided to add some funny elements to my little project:

It’s a great experience to combine them!

PComp Week4

I designed a simple system using Force-Sensitive Resistor. I connected the FSR with the length of delay: if I press the FSR, the music will go quicker, or it will go as usual.

Here’s the video of my project:

Firstly, I imported the reference form (pitches.h). I tested for several times and found out the tones I wanted (do, re, me, fa, so, la, si, do), then i arranged them a singing pace.

If the value of analogRead changes, the length of delay will change as well, so the music will go faster.

Here’s my code:

#define speakerPin 9
#define forceSensor A5
#include “pitches.h”

int myNotes[] {523,587,659,698,784,880,988,1047};

void setup() {
// put your setup code here, to run once:
tone(speakerPin, 2000, 5000);


void loop() {
// put your main code here, to run repeatedly:

int forceSensor = analogRead(A5);

for (int i = 0; i<8; i=i+1){
tone(speakerPin, myNotes[i], 500);



PComp Week3

The public facility I hate most recently is the elevator in Tisch.


It’s a big trouble especially during rush time. We can hardly tell if the up and down buttons are pressed or not, and we never know whether or not the floors we need has been selected.


Sometimes it doesn’t go up untile it arrives the lowest floor, and vice versa. But the elevator lights are not capable to transmit such information, so it may waste large amount of time for us to get to the right floor.

The limitation of its storage and speed also cause inconveniences.

ICM Week 2

Since I’m not good at drawing, I designed a very simple scene:


It’s still hard, cuz I need to calculate the slope of the umbrella to make it compatible.

When I finished drawing, it’s like this:


I realized that I need to fill in the color of the window (make it translucent like glass). And I designed it as a rainy day, so there should be lightings outside, and we can pull the curtain to get rid of it.

Also, because it’s raining outside, and I just came back home, so my umbrella should be wet.rainyday-process

I thought it’s all set, but then I realized that if we pull the curtain, the room will turn dark. So I added a map to achieve that effect, to add little grayish color to the room, and also adjust the transparency of the umbrella, so it would be like the same when the room gets darker.

Finally, my work is like this:


I don’t know why the gif doesn’t work.

The sketch link is here: https://alpha.editor.p5js.org/projects/BJqawCa3

PComp Week 2

The assignment for this week is to make a switch. I forgot to buy batteries so I decided to use Arduino.


I tried placing two lights in various ways. But their illuminance are different. Then my peers told me I should use a different way to connect them together, or I should bring in a resistance.


Finally I gave up the extra light and designed my simple switch.


It works like this:


When Cupid’s arrow hits someone’s heart, something will turn green. (Dark joke: In China, “wearing green hat” means your spouse cheating on you.)

ICM Week 1

As a liberal arts student, I always thought computation is far from my life. When I first saw “Javascript” in the “Language” part of my sister’s resume, it was surprising to me because I never realize that computation could be considered as a kind of language. My undergrad major was Chinese language and literature, and I’m always interested in exploring various ways to convey my ideas. I love beautiful languages, and I think that is the initial reason why I became interested in computing.


It should be a computational project which made this term. And I like the animation Renaissance from the Inspiration page, it seems both realistic and artistic.

When I was creating my sketches, based on what I drew during class (a sunset on mountains), I tried making gradient color for the background to make the image more artistic. It reminded me to my experience when I was a Sophomore, learning an off-campus bartender class. There’s a classic cocktail Tequila Sunrise, and it asked us to make reddish orange color by using orange juice and grenadine syrup. I’m fascinated by the color magic so I wish to do the achieve the same effect through Javascript.

tequila-sunrise(I need to calm down after seeing my peers’ excellent homework)

But it was hard for me to accomplish it without knowing deeper languages. I found most things I need from the reference page, but I think I could make it better. Finally I made it very simple like a child’s drawing – just as the same level as my javascript. I tried using both web editor and the software P5.js, they worked in the same way but I prefer using the software, because I would feel safer editing something on my own computer, instead of editing it through internet.

Here’s the link of what I drew: http://www.lintanxi.com/Stanlyn.Lu-week1/

And here’s the link of my sketch: https://alpha.editor.p5js.org/projects/BkShKHd3

PComp Week 1

Physical Computing is to build interactive physical systems by using both software and hardware.

Interactivity, which is the balanced involvement of inputting, programming and outputting, is the main point that makes for good physical interaction.

The animations on the big screens (at hotel playground or some parks), are very good digital technologies, but people cannot interact with these animations, so they would not be considered as interactive.

Nowadays, Interactivity becomes a popular concept, but most people don’t understand it in a right way. Interaction is something between two equal creatures, involving the process of alternatively inputting, processing and outputting. For human beings, it’s like listening, thinking and speaking. For human & computer interactions, it also calls for instant communications.

Traditional forms, like reading books, watching videos, listening to musics – none of these activities can be considered as interactive. Even people will be emotionally impressed, their feelings will be considered as reaction, rather than interaction, because the works they are watching/listening never replies them. If we are going to develop computer programs, interactivity is the main point that we should emphasize.

Interactivity so important that it can lead to the next technology revolution, and it is still waiting for people to explore more functions in the future.