Saturday 2 June 2012

Arduino, Processing & The Modular (Part 5)

A code update on the Arduino side sees not just CV values being sent to the serial (USB) port but also the values from the randomness knob so that these can be displayed on the Processing app's screen. These values are prefixed with an 'R' before sending so that they can be detected and treated differently when they are received. Turning the randomness kob now changes a value and moves a green bar on the app as shown below:


Ultimately all control values will be sent when they change (and also upon receipt of an "I'm starting" message sent the other way down the wire by the app to the Arduino. That way initial values will show when the app starts rather than having to wait for a knob to be turned for them to be updated to the current true values.

No comments:

Post a Comment