W_15: Interface and application programming (May 6)

For this weeks assignment we had to make a input or output device interact with a program we wrote. I decided to use Processing as the medium to interact between a phototransistor and the application. I wrote a code in processing that analizes the bits that are recieved from the processor on the phototransistors board. To understand how it works i asked ferdi(our intructor to explain serial reading. what i learnt is that our computer reeds binary code so when we input the phototransistor in the serial port its readin 8bit signals that is actually 10bit signals but the processor only sends 8 bit blocs so the 10bits are sent in 2 blocs the first is the low byte(full of bits) and then the high byte(that only contains 2 bits) all of this reasemles in our computer to understand a certin bit value between 0 and 1024 wich is the value that the photo transistor is producing to change the image on the processing application i created.

Here are two videos of the applications i created on processing:







FILES

RED BAR PROCESSING FILE
MOVING TREE PROCESSING FILE