Category: Processing

Arduino to Processing Revisited

I have revisited an experiment I did a few weeks back, of creating a visual graph in Processing generated by triggering a sensor in Arduino. The graph generated didn’t look aesthetically pleasing so I tweaked the Processing code to change the visualisation of the data.

proc-4

The visuals still don’t look as I want them so I have introduced some new code in the Processing sketch.

proc-6

This changes the look of the data generated by the Arduino sensor and is closer to the look I wanted to achieve.

proc-3

proc-1

Note to Self:

  • Do some more versions.

Tutorial v2.0

Tutor: Jonathan Kearney

I discussed with Jonathan what I have been up to, a lot of reading and experiments with Arduino and Processing mostly.

arduino-proc-1

I have been using the Blynk app to trigger Arduino events in the physical world, but Blynk is no longer free so may bin using it.

proc-3

I have been generating visuals on the screen by getting Arduino to talk to the Processing app but the imagery is not what I envisaged. I want the aesthetic to be more 3D rendered/gaming look + feel, not sure I can achieve this via these methods.

Note to Self:

  • The end results with the Arduino experiments are not producing the visuals I though they would, so I’m having a re-think about my approach and methods.
  • I have been increasingly drawn to the world of 3D scanning, 360 films and VR.

Arduino to Processing

I wondered previously if it was possible to get Arduino to talk to Processing and vice versa and previously had rigged up a quick experiment that got them talking and to display a simple message, but it seemed to always cause problems with the serial ports.

Arduino Sketch

So to create a visual graph in Processing generated by triggering a sensor in Arduino.

arduino-proc-1

Processing Sketch

When I play the Processing sketch a purple graph is created in the display window. As I move my hand up and down over the Arduino sensor, the graph displays peaks and troughs representing the sound triggered. The numbers created by Ardunino are between 0 and 1023.

arduino-proc-2

Note to Self:

  • Visually this graph looks fairly horrible, so the next step is to manipulate the Processing sketch so it looks aesthetically appealing
  • I also thought it would easily be able to display any binary info/numbers generated via Arduino in the Blynk app, but they only have a bog standard graphical method of display, not very creative, also the Blynk app has stared to charge since jan 1st 2016, so I think its best used as a virtual button to trigger any Arduino events if need be in the future.

Processing 3.0

We had an interesting talk regarding Processing with tutor Ed Kelly a few weeks back. I haven’t had a chance to have a proper investigation until now.

proc-1

I was very impressed and the possibilities seem endless. I combined some code from various sketches to arrive at this very short test sequence.

The sketch window used is very similar to Arduino.

proc-3

Note to Self:

  • Arduino/Processing: I wonder is it possible to get Arduino + Processing to talk to each other?
  • Getting kind of bored now tw*tting around with Arduino, I need to see some visual results on ‘the other side’ of the screen, Processing may be another way in?

Lives driven by Data

Media theorist ‘Lev Manovich’ said:

“19th Century culture was defined by the novel,
20th Century culture by Cinema,
The culture of the 21st century will be defined by the interface.”

lee-1

His media visualisation techniques compress massive amounts of data into ‘smaller observable media landscapes. Rather than searching through metadata, we’re then able to find relevant information in a way that’s more compatible with the way humans process information. This is particularly valuable in giving us the ability to observe where patterns of structure and colour may exist.

A lot of digital works for me in general are conceptually sound, but the arrived at outcome is not always aesthetically pleasing.

Artist Aaron Koblin expands on this, he takes vast amounts of data — and at times vast numbers of people — and weaves them into interesting visualizations. From elegant lines tracing airline flights to landscapes of cell phone data, his works explore how modern technology can make us more human.

aaron-1

We can set parameters and choose what to pull out of the data glut. Below is a visualisation of data from the U.S. Federal Aviation Administration processed to create animations of flight traffic patterns and density. The outcome is Colour coded by type: Altitude, make and model.

aaron-2

Note to Self:

  • I Will continue my reading/research into the representation of information gathered, and how best to present it once captured.