Tag: 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?