

Initially I thought the values would be either 0 or 1 but I noticed that the "if(val = 0)" statement was not doing anything.
COOLTERM CODE SERIAL
I could alternatively use CoolTerm to find out the name of the serial port that I was using. The "printArray(Serial.list())" statement helped display the name of the serial port.Here is the file and here is an image of the codes with some of my annotations:Ī few things I wanted to mention about the code: I modified one of the example codes in Processing with the help from Rob and Tiffany. I managed to get Processing to recognize the signals that my passive infrared motion sensor sent and change the color of the square whenever it detected a motion.


I have kept my example simple as I don't anticipate doing a lot of interface or application programming for my final project. Both Anya and Nathan suggested that I start with Processing, as it is easier to play with for beginners. This week we were asked to write an application that interfaces with an input or output device that we made. Interface and Application Programming Interface and Application Programming
