On 2013-03-12 09:32, Julian Brooks wrote:
Hi Martin,
Is this with Maxbotic and if so which one? I'm going to be running the sensor with an RPi as standalone so presume it's a similar setup (I believe comport runs fine on RPi)
I use the MB1010 (MaxSonarEZ1). The analog output is very low level and also quite noisy, so a RC filter would be a good idea. The serial output is RS232 on 0-5V, so you need to invert it before reading it with a microcontroller USART input. The format is ASCII but it should be readable in Pd: from the output of [comport] you need to make lists of 4 characters starting with 'R' and convert the last three digits to a single float. That actually looks more reliable than the analog but I haven't tried it. I attached a patch to do that.
With the Pi you probably need to watch out for voltages above 3.3V on the IO pins.
Martin
Would you mind letting me have a look at a patch for translating the input data (if you use/need one). I know from utilising xbees that the input data was tricky to parse - to me anyway.
Cheers,
Julian
On 12 March 2013 13:23, Martin Peach <martin.peach@sympatico.ca mailto:martin.peach@sympatico.ca> wrote:
On 2013-03-12 08:58, Julian Brooks wrote: Hi, I'm after some advice: For an installation piece I'd like to do I'm investigating range finder sensors (for outdoors). Has anyone experience of the Maxbotic URF's and any tips they'd like to share for getting the data into Pd? I connect them to the analog inputs of an Arduino and send the data to Pd which reads it using [comport]. Martin