Tuesday, March 30, 2010

Assignment 2: Sensor Walk

I took a stroll around my neighborhood (clinton hill, brooklyn), paying attention to, and taking photos of sensors that I encounter with my digital camera. 

The first one I found just outside my house was a sensor light, which probably detects nearby motions and automatically turns on the lights when a someone passes under it. It might also have a light sensor to turn itself on when it gets dark, because it didn't seem to be working during the daytime:



I then crossed the street, where a traffic control box with a push botton was installed, which I hadnever noticed before because I had never seen anyone use it. 



then a telephone booth, with the usual dial buttons:



and another sensor light:



and doorbells, plenty of them:



Not much of extraordinary discoveries. However, as I turned around and headed home, I started hearing a faint sound of what seemed to me a recorded voice of someone. I looked around but there was no one talking. I kept walking but the voice seemed to follow me. I was puzzled. I stopped, listened again, and finally found out that the voice was coming out of the cellphone in my pocket. My walking had accidentally pressed the voice speaker button placed on the rear side of the phone, and activated its voice control program. So that was another sensor, which I had carried all along this sensor walk:



After returning home, I uploaded the photos I took from the digital camera to the computer. And at that moment I discovered yet another sensor (actually a bunch of sensors, including even a "face detector") that I had been carrying throughout my sensor walk without noticing its presence:


Wednesday, March 10, 2010

Project 1: Photoresistor Instrument

For sometime now, I have been very fond of this pen-type light fan, using it in performances to play guitars or xylophones,

















...or mandolines.

But I had never been able to utilize its lighting aspect, except as a beautiful luminous ornament that lights up the often dark spaces of concert halls. So for the first short project of my physical computing class, I decided to use what I have learnt so far and build an instrument which takes advantage of all the features of this light fan-pen. What I came up with is an instrument that uses photoresistors to make sound. It looks like this from outside:













and when you open the top lid, it looks like this:


The circuitry is pretty simple. It connects five photoresistors to the digital inputs of an Arduino via a breadboard. There is also a potentiometer to control the volume, a speaker which extends out from a hole in the lid, and 9v battery as the power source.

The program I wrote assigns a specific pitch to each of the photoresistors. Since there are five of them, I used a pentatonic scale.


The case is a cheap plastic box that you can buy in any 99c shop. I made five holes in its rear to stick the resistors out.










In order to control the sensitivity of the resistors (so that it won't start sounding every time the room light is turned on), I made little covers using a pencil eraser (using different colors for each resistor/pitch):



















And that's it!















The rhythm pattern changes according to the light pattern of the fan.

Overall it plays well, but the sensitivity of the sensors is still a problem. Although it is basically functional in a dark room, where the only light source is the fan, it becomes very unstable in other conditions. I attempted to adjust that by changing the threshold for each of the resistors in the program, but maybe distancing the holes in the case could be another solution.

Also, the next step would be to program the light pattern of the fan, which consequently determines the possible rhythm patterns. It would be like implementing the score into the instrument itself -- with different combinations of pitch pattern for the resistors, and rhythm pattern for the fan, one could obtain an instrument to which the overall structural boundaries of a piece is embedded, while still being open to improvisational possibilities