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.
So to create a visual graph in Processing generated by triggering a sensor in Arduino.
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.
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.