Monthly Archive for October, 2005

PComp Assignment 5

This week we are sending and recieving data to Processing via the serial port. In this lab i moved a circle around the screen with a potentiometer. Here’s the code:

– Processing CODE –

/* Serial call-and-response
by Tom Igoe (with adjustments by Dano)

Sends a byte out the serial port, and reads 3 bytes in.
Sets foreground color, xpos, and ypos of a circle onstage
using the values returned from the serial port

Updated October 12, 2004
*/

import processing.serial.*;

Serial myPort; // The serial port

int redNess = 255; // fill color
int[] serialStuff= new int[3];; //where we keep all the incoming stuff
int serialCount = 0; // a count of how many bytes we receive
int xpos= width/2;; // Starting position of the ball
int shape =65;

void setup() {
size(255, 255); // stage size
noStroke(); // no border on the next thing drawn
myPort = new Serial(this, Serial.list()[0], 9600);
serialWrite(65); // send a capital A to start the MC sending
}

void draw() {
background(0);
fill(redNess,0,0);
// Draw the shape
if (shape==65){ //switch value is 65 or 66 (I added 65 to the normal values 0 and 1)
ellipse(xpos, 100, 50, 50);
}else{
rect(xpos,100,50,50);
}
}

void serialEvent() { //this function gets called when something happens involving the serial port

//serial is a special variable provided by processing to give you the oldest byte waiting to be read
// add the latest byte from the serial port into the correct slot in your byte array
serialStuff[serialCount] = myPort.read();
serialCount++;

// if we have 3 bytes, parse the string:
if (serialCount> 2 ) {
redNess = 2* serialStuff[0];
xpos = serialStuff[1];
shape = serialStuff[2];

// after you got them all, go back to putting the bytes in the first slot in the array again
serialCount = 0;
// get a number between 0 to 255 for the mouseX
//if your stage is bigger than 255 //int mouseXIn0to255 = 255*mouseX/width
//send out the mouseX to postion the servo motor
myPort.write(mouseX);
}
}

– PIC BASIC CODE –

DEFINE OSC 4

DEFINE ADC_BITS 8
DEFINE ADC_CLOCK 3
DEFINE ADC_SAMPLEuS 20

lightVar var byte
potVaR VAR BYTE
switchVar var byte
inByte var byte

input portb.7

main:
switchVar = portb.7 + 65 //make it readable
adcin 0, potvar
adcin 2, lightvar
serout2 portc.6, 16468, [lightVar,potVar,switchVar]
serin2 portc.7, 16468, [inbyte]
Pulsout portd.0, inByte
PAUSE 10

goto main

Re: The Future of Micro Payment Systems

After reading both articles by Clay Shirky and Scott McCloud, I would side with Clay on the topic of the future of micropayment systems. I’m not siding in this direction because Clay is a professor here at ITP, but because I agree with him on many points. As the future of the web is much clearer today than it was in 2003, especially with coming of the Web 2.0 era, it is obvious tomorrow’s web, I mean today’s web, is one where it’s core relies on the user and the user’s ability to exchange and connect with content of the internet. Although I side with Clay on this argument, especially when it comes to informational based content like news, essays and any other form of written word, I do believe there is a little hope for Scott’s bitpass.

That hope relies on the type of content that will be available through the micropayment systems. Content like articles, essays and etc will not do well, but content like music, videos and maybe software have some chance for success. But at the same time those types of content would do well if they are not of the recurring type, anything that is episode based or recurring. I believe consumers of that type of content would prefer a subscription-based model; they would feel the cost of the transaction each time they would view the latest content or episode.

The bitpass model should also consider some type of flex pricing that allows the user to pay more if they feel like or just the base price, since most of it’s sellers are small and independent. I think this may eliminate the mental cost of the transaction a little. It seems a person is more likely to give than is to purchase when it comes to the web, this system would be more along the lines of micropayment extension of PayPal.

Clay Shirky’s Fame versus Fortune and Scout McCloud’s response

Re: The Grey Album

I sat for a few days trying to ponder in my mind what was legally wrong with Danger Mouse mashing up the Jay-Z’s Black Album and the Beatles White album. Was Danger Mouse selling copies of the album on the Internet? Was the album so much like the originals it seemed as if he was allowing others to freely download original versions of the music? The answer to all of the above is NO. When did art become a crime? Is the record industry so out of touch with consumers they can’t see that this was nothing more than a form of creative expression? This is interesting because mash ups have been around for a long time. I remember as a kid listening to the radio and the D.J. would mash up things like Michael Jackson and RUN DMC.

I look forward to the day when artist will no longer be dependent on big music labels. Maybe indie bands can looking to blogging to figure a filtering system of what’s considered good music and what’s considered garbage. With a million blogs on the web, users have no problem discovering and finding what they like and don’t like. And maybe like the bloggers they can also figure out a way to make money from music they distribute on the web.

The story of DJ Danger Mouse’s “The Grey Album”

Re: Podcasting

WHOA!

Yahoo has just launched their podcasting service. This phenomenom came out of no where. Just a few months ago I recall reading about this new type of web content but never thought much of it, it’s just people with regulary update mp3 shows. At the time I heard the creator of Blogger was working on a online podcast search service call Odeo and then BAM Apple anounced they are integrating podcast into the iTunes Music store. Within weeks podcast had become as main blogging and now with the introduction of Yahoo into the fray it will be very interesting to see how this technology morphs in the coming weeks, months and years. And I must admit it is nice to have free, frequently updated audio content to listen to on my ipod.

Wikipedia’s definition of Podcasting

Podcasting is a method of publishing audio and video programs via the Internet, allowing users to subscribe to a feed of new files (usually MP3s). It became popular in late 2004, largely due to automatic downloading of audio onto portable players or personal computers.

Podcasting is distinct from other types of online media delivery because of its subscription model, which uses a feed (such as RSS or Atom) to deliver an enclosed file. Podcasting enables independent producers to create self-published, syndicated “radio shows,” and gives broadcast radio programs a new distribution method. Listeners may subscribe to feeds using “podcatching” software (a type of aggregator), which periodically checks for and downloads new content automatically.

Most podcatching software enables the user to copy podcasts to portable music players. Any digital audio player or computer with audio-playing software can play podcasts. From the earliest RSS-enclosure tests, feeds have been used to deliver video files as well as audio. By 2005 some aggregators and mobile devices could receive and play video, but the “podcast” name remained most associated with audio.

“Podcasting” is a portmanteau word that combines the words “broadcasting” and “iPod.” The term can be misleading since neither podcasting nor listening to podcasts requires an iPod or any portable player. Aware of that misleading association from the beginning, some writers have suggested alternative names or reinterpretations of the letters “p-o-d”, without winning much of a following.[1] Another little-used alternative is “blogcasting”, which implies content based on, or similar in format to, blogs.

Re: MGM v. Grokster

“As we noted in our arguments before the Ninth Circuit, the case raises a question of critical importance at the border between copyright and innovation: When should the distributor of a multi-purpose tool be held liable for the infringements that may be committed by end-users of the tool?”

Well, as everyone knows most users of peer-to-peer filesharing use such software to find and exchange copyrighted material.

“The Supreme Court’s landmark decision in Sony Corporation of America v. Universal City Studios, Inc. (a.k.a. the “Sony Betamax ruling”) held that a distributor cannot be held liable for users’ infringement so long as the tool is capable of substantial noninfringing uses.”

Most users of the betamax who did copy copyrighted materials did so for personal usage. Unlike the betamax, filesharing services users exchange copyrighted materials through the internet with users all over the world.

While i do think cases like this hamper technological innovations, they do have a valid point concerning the usage of such technologies that limits their revenue stream. They are in the business to make money.

MGM versus Grokster: Electronic Frontier Foundation’s position

Observation Project Questions about Ping Pong

What tool or device is the action taken on?
Ping pong paddle, table and ball

What is the goal of the activity?
To hit the ping pong ball across the table with the paddle and repeat as the other player does the same actions

What are the physical parameters of the activity?
Seeing the ball, swing the paddle, positioning the body.

What does the person engaged in it do with their arms, their legs, their hands or feet, their head?
Move arms to swing and reach ball as it enters their side of table. The person may also have to jump or move from different sides of the table to reach or hit the ball.

How do they change their posture?
Sometimes the person may have to bend to reach balls that land closer to the center of the table (the net)

Where do they need to focus their attention?
The ball, speed, direction, angle of approach and anticipated bounce.

Is there a secondary focus of attention (for example, if two limbs are used independently)?
Angle of their paddle and body position

What physical elements of the activity make it engaging?
Sound, returning the ball to your opponent.

What elements make it difficult, painful, or boring?
Repetitive, anticipating ball landing, speed and bounce

PComp Assignment 4

It’s amazing how much we’re learning in PComp. We’re in week 4 and programing a computer chip to control a servo. So this week we’re programming a pic chip to control a servo with a potentiometer. Each week I feel like a painter learning how to create more colors. Here’s the code:

DEFINE OSC 4
start:

INCLUDE “modedefs.bas”

‘ Define ADCIN parameters

‘ Set number of bits in result
DEFINE ADC_BITS 10

‘ Set clock source (3=rc)
DEFINE ADC_CLOCK 3

‘ Set sampling time in microseconds
DEFINE ADC_SAMPLEUS 10

‘ Set PORTA to all input
TRISA = %11111111

‘ Set up ADCON1 analog and right justify the result
adcon1 = %10000010

‘define adc vars
adcVar0 VAR WORD ‘Create variable to store result

’set a var for the pulsewidth- this tells the motor where to go
pulseWidth var byte

‘thes values can be vary with different motors
minPulse CON 75
maxPulse CON 250
refreshPeriod CON 20

main:

‘read adc data
ADCIN 0, adcVar0

‘message the numbers so the value from the potentiometer matches the max and min of the servo
adcVar0 = (adcVar0/4) + 75

if adcVar0 >= 250 then
adcVar0 = 250
else
adcVar0= adcVar0
endif

‘assign pulseWidth to the position of the potentiometer
pulseWidth = adcVar0

’set the pin low
low PORTC.3

‘pulse the pin
PulsOut PORTC.3, pulseWidth

‘pause
pause refreshPeriod
GOTO main

Observation Project Video of Ping Pong

Ping Pong CLIPS

Observation Project Video of Ping Pong

Photoshop Layering Homework

comlab-photoshop-blog.jpg

Create a single image which contains 3-5 disparate elements which are combined to create a convincing new whole (i.e. opposing/contrary background and foreground elements, matched pieces to create a new single element, etc.) Upload to your class site. Bring psd file with layers to class.

Download Photoshop File

Physical Computing - whole new world

Currently my main focus this semester is Physical computing. I feel like I am currently at a point where I can begin to put things together. The sense of confidence became more evident during the physical computing/processing demo today in Intro Computational Media. So tonite I’ll spend sometime trying to master what i’ve learned thus far in Physical Computing so that I can easily excute what ever ideas I come of with. I know for a fact I’ll have to start praticing soldering, that’s whats i’m currently spending the most time on.

Gotta go,
Steve