/ / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /
01 / propose a final project
02 / press fit construction kit
03 / in-circuit programmer
04 / 3d printing + scanning
05 / computer-controlled machining
06 / electronics design
07 / molding + casting
08 / embedded programming
09 / composites
10 / input devices
11 / output devices
12 / networking + communications
13 / interface + application programming
14 / final project
For this assignment, I learned some of the basics of Processing, open source programming language initially developed at MIT roughly a decade ago. I read through a few tutorials to get a grasp of basic commands and ran through a couple of sensor-reading examples, making a couple of adjustments to the code here and there. Lastly I wrote a short code for a sensor visualization.
I used my phototransistor board as an input device, and programmed it in Arduino IDE to send voltage levels to my serial port. The above Processing example code translates sensor values to a line graph.
I then programmed the board to also send a voltage value to my serial port according to the button being pressed high or low. I tweaked the code to make vertical lines, which appear on the bottom of the graph when the button is pressed and on the top when not pressed.
I also learned how to do simple things in Processing like draw shapes of various sizes, colors, locations, and with changing line properties. Building on the examples I played with to read serial values from an input, I made a code that displays moving geometry according to the value it reads. Above, a horizontal line floats up along the screen and gets thicker when light shines on the photo sensor.
/ / / / / / / / / /
Arduino code (from example):
Processing code: