The easy way is to get arduino to send bytes, like: Serial.print(value, BYTE); This is fine if the value is between 0 and 255, otherwise you need to send: Serial.println(value); , catch the ASCII linefeed (CR = 10 or LF = 13) and accumulate all the digits before that, subtract ASCII zero ('0' = 48) from each digit, then multiply the digits by powers of 10 and add them together.
Martin
On 2010-10-25 18:08, Dafydd Hughes wrote:
Hey folks
I feel like an idiot. I'm trying to get a rotary encoder to send data to Pd - I have the arduino end working fine, but I'm getting a bunch of ascii numbers coming out of [comport]. Can somebody help this poor old tired brain change them to floats?
cheers dafydd _______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list