PHYSICAL COMPUTING 2006
this physical computing stuff is interesting. i am a few weeks into the class and just cant get my self to update this wiki. but now i have found a new way to make myself do it. i'm going to write a scene for each project. so here goes.

week 1 Current on the board flows only one way. short side of the led is positive. need a resistor before attaching an led. need two capacitors one before and one in front of the 5V regulator. if you dont do this the regulator will get hot and angry. so get out there and show the world what you can do . oh and dont forget to always put an led first thing on the bread board when you wake up
week 2 It is was10pm. as i squeezed in the short leg of the LED into the bread board i felt a rush of adrenaline flow through my viens like a squirt of ink into water. The only thing that seperated her (LED) and me was the power cable. As i plugged it in there was a huge uproar. People had jumped off their seats and were cheering with joy. However, it was not meant to be for long. soon things started to go wrong. i found the five volt regulator heating up at an increasing rate. I ran as fast as i could to stop this maddness, but before i could jump and pull the cable SHE (LED) was gone. I changed the pic and reprogrammed it using the code below. i missed her and was working feverishly to revive her. i put in the new pic and it was all back again..
code
week 3
serial, flex sensors, potentiometer
Got it to work finally. I really need to be careful as there are little people on that bread board and each one has to be in the exact place. i am now going to do some more complex code. here is the code for the potentiometer piece. it does not blink which is strange . nor does it dim, also strange. but then pcomp is strange. so i need to look into this some more
DEFINE ADC_BITS 8 DEFINE ADC_CLOCK 3 DEFINE ADC_SAMPLEUS 20 INPUT PORTA.0 OUTPUT portd.0 output portd.1 output portc.3 ADCON1? = %10000010 adcVar var word main: adcin 0, adcvar if adcvar > 127 then high portd.0 low portd.1 high portc.3 else low portd.0 high portd.1 low portc.3 endif goto main
__________________________________________
week 4 got sound and now i will tweak it to make a track.
FREQOUT
define OSC 3 define ADC_BITS 10 define ADC_CLOCK 3 define ADC_SAMPLEUS 40
stereo1 var portc.0 stereo2 var portc.1
output stereo1 output stereo2
x var byte sensorval VAR WORD
main: adcin 0, sensorval if sensorval < 100 then freqout stereo1, 1000, sensorval, sensorval freqout stereo2, 1000, sensorval, sensorval endif
goto main
midi

got sound. time to tweak it two pot's control velocity and notes
Midterm project broom Attach:ex03b_assets.swf
