A14 - Interface and application programming

Individual Assignment

Measure something: add a sensor to a microcontroller board that you have designed and read it.

It was not possible to fabricate my PBC board and to measure something because the Fab Lab in Mexico was closed until this week due to the quarantine, so I´m working on all the assignments that I couldn't´t fabricate.

In this assignment I´m trying to connect the Arduino to Rhino 3d through a Grasshopper plug - In called FireFly.

The first thing its to install the Arduino drivers trough the Arduino IDE.

Also you have to install to download and install the FireFly.

After you have to connect thru USB the Arduino board to upload the firefly sketch file that comes in the FireFly installation so you can flash the libraries into the Arduino board.

I had to check the ports and open the connection trough a boolean toogle switch.

img

I wanted to try different sensors with different languages trying to measure different physical elements.

Water - Rain into Sound and Shape

I develop an art installation that turns rain into sound and shapes.

RainSoundWave

The project base was inspired by this Project

Fire - Flame Sensor trough Firefly

I utilize FireFly to connect the flame sensor to the Arduino. In grasshopper utilize the value of the temperature to generate a line in the Z axis.

I divide it and move its division points in the X axis to generate a line between the start and end points. With Between each line I generate an individual surface that reacts to the full length of the temperature value. And use the high value of the flame sensor to draw in red if there was fire.

img

Sound - Analog Visual Interface

I connected a smoke sensor a passive buzzer and some LEDs to get a visual and sound outputs when the smoke sensor gets activated.

Processing

With the help of Rodrigo Shiordia I utilize processing as a platform for my user interface.

I send the two values of the temperature and humidity as a println values to Processing through the serial port. At the beginning was hard to find the proper serial port com, so I have to check each port one by one.

After getting the values, I plot a Line that draw the values of the temperature and changes its color depending on the last temp value. I also put a floating linear points reference to observe better the temperature changes.


Check List

Compare as many tool options as possible. Individual assignment

Write an application that interfaces a user with an input and/or output device that you made Learning outcomes

  • [ ] Interpret and implement design and programming protocols to create a Graphic User Interface (GUI).

Have you?

  • [ ] Linked to the group assignment page
  • [ ] Documented your process
  • [ ] Explained the UI that you made and how you did it
  • [ ] Outlined problems and how you fixed them
  • [ ] Included original code (or a screenshot of the app code if that's not possible)
  • [ ] Included a ‘hero shot/video’ of your application running with your board

FAQ Do we have to interface to a board for the group assignment? Answer: No, but you need to learn how to create user interfaces.

Is it ok to use Command Line Interface (CLI)? Answer: Yes, as long as it's GUI-like.