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.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s