Week 15: Interface and Application Programming
Hi everyone! On this week assignment we had to write an application that would interface with an input and/or output device. I have to say that I've been having many difficulties with this assignment. At week 10 everything turned out okay. I could visualize the output of the sensor in Python, but I had some problems trying to do so. The problem was based on some Python's dependencies not being installed properly and so I could not make the graphical bar move when I touched the sensor. Everything is okay now.
For this week I was having a problem of the same nature, but this time Processing had nothing wrong with its installation so whenever I tried to run a sketch on my board, nothing happened. After some tries, the sketch started to run but there was no visualization for it, only a black window with no graphical output. I don't even know what happened this time, but surely it was something like voodoo, because now processing is working with my board.
For this part of the assignment I simply ran one example sketch that we made at our Lab with the help of our instructor Ferdinand Meier and everything turned out okay. Here is a video of the working sketch:
Extra work!
I have to tell you the story on how this extra work came to be. I missed the Output Devices class, but in my mind that week was supposed to be Interface and Application Programming week, but I was getting my schedule from the wrong place. Since I missed class, I stayed all weekend at home learning the basics of Processing. After some days working with the software, I decided to make some sketches that, in my opinion are pretty useful.
I've done three different sketches: one about a grayscale, another about the use of a loop function to create a perfect grid, and last but not least a really simple sketch on how to work with strokeWeight. Each sketch has the feature of generating a PDF file for later use, like the lasercutter, for example. In fact, all my sketches were drawn thinking about the laser and how could I write some code that everyone can run and generate some PDF files to use with the machine. I must admit that I got fascinated by this possibility and so I worked on it.
I will now explain the sketches I've written for better understanding:
- Grayscale
- Loop Grid
- Stroke Weight
Project's Files
Here you can download the sketch made with the help of my instructor:
Processing sketch for the assignment
Here you can download the extra sketches that I developed this week as well:
Thank you for watching everyonre! Hope this documentation can be of any help