Week 14 - interface and application programming

Write an application that interfaces with an input &/or output device

Posted on May 13, 2015

What about this assignment?

This week hopefully I started felt more comfortable with programming, and my plans are start with Processing just to get the concept of applications and interfaces and then choose another platform with more resources, like openframeworks for example, to explore a little bit.

Processing

Software used:
  • Processing
  • Arduino IDE
  • So first I started having a look at Processing witch has a friendly interface, very similiar with Arduino IDE and lot of examples that could make your life easier. Our instructor Ferdi gave us a quick introduction to processing + input devices, also he explained basically how a serial communication should work using as example Neil’s Python and C codes.

    After that I did some examples using Processing and some of my boards just to get used with this. This is a nice tutorial to learn how to connect some outputs and inputs:
    Processing + eletronics tutorial

    At the end I made two examples, one using as input a step response board and other using as an output a hello.bus.45.bridge, both turning a LED on and off. See the result and commented code below:

    This is the Arduino IDE code that I ran in hello.bus.bridge.45 board to make LED blink.

    Then this is the Processing code that talks with my board to make the LED blink:

    And this is the Processing code to receive the values of my step response sensor and “turn the LED on and off” on the image.

    What's next?
    Since I saw some nice projects using Openframeworks I decided that I have to learn it! So first step was follow the installation tutorial, very well made: http://www.openframeworks.cc/setup/xcode/
    By now I’m still following some ready made examples and trying to understand C++… I hope that until the end I can update some extra application here with OF…

    week 13 / network and communication week 15 / applications and implications