gt;
>
>
> On Oct 26, 2010, at 12:13 AM, pd-list-requ...@iem.at wrote:
>
> Message: 5
>
> Date: Mon, 25 Oct 2010 22:48:21 -0400
>
> From: Dafydd Hughes
>
> Subject: Re: [PD] Stupid arduino question
>
> To: Mathieu Bouchard
>
> Cc: pd-list@iem.at
>
&
22:48:21 -0400 From: Dafydd Hughes <dafyd...@gmail.com> Subject: Re: [PD] Stupid arduino question To: Mathieu Bouchard <ma...@artengine.ca> Cc: pd-list@iem.at Message-ID: <7c5029d0-90fd-4212-86fc-892f0fbcb...@gmail.com> Content-Type: text/plain; charset=iso-8859-1 Thanks everybody
Thanks everybody for the advice. I think, as this needs to be done Wednesday,
it's time to lose the rotary encoders in favour of pots and use pduino (thank
you pduino!!) and analog ins.
It's so rare for me that the analog version is simpler and cleaner than the
digital!
cheers
dafydd
On 2010-
On Mon, 25 Oct 2010, Dafydd Hughes wrote:
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?
se
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' = 4
Hi, Maybe adjust de baud rate
Best regards
José
2010/10/25 Dafydd Hughes
> 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 h
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
__