Instead of using Serial.print() in Arduino, use Firmata. Check out
the Library-Firmata examples in Arduino. The Firmata object in
Arduino replaces the Serial object and then automatically speaks the
Firmata protocol, so that you can then use [arduino] in Pd.
.hc
On Mar 1, 2009, at 8:21
Hi folks
I'm wondering if anybody can point me at an example of using Pduino
and an SRF05 ultrasonic ranger? Not sure how to get the microsecond
intervals needed. Apologies if this is covered elsewhere on the list
or if it's just a stupid question.
cheers
dafydd
--
www.sideshowmedia.ca
skype:
I think that is one of the sensors where you have to do the triggering
and pulseIn measurement yourself. There are examples on the arduino
forum of firmwares that do this, then if you combine such a firmware
with the Firmata Arduino library, then you'll have a firmware that
will work
Thanks Hans-Christoph
In over my head again.
cheers
dafydd
On Sun, Mar 1, 2009 at 4:59 PM, Hans-Christoph Steiner h...@eds.org wrote:
I think that is one of the sensors where you have to do the triggering and
pulseIn measurement yourself. There are examples on the arduino forum of
It wouldn't be so hard, but you'd need some arduino programming
experience. If you want something like that sensor that is really
easy to use, get a Maxbotix, you can just hook them up to an analog
pin and read them immediately with Pduino:
Hey Hans-Christoph
Actually, I've had the sensor working with Arduino and pulsing LEDs
for a while - that part's fine. Now it's just getting Pd to understand
Arduino's Serial.println that's giving me trouble. I'm going to open
up [arduino] and I bet I'll find the secret there.
I was hoping
Hi Daffydd,
I don't recall having too much trouble transferring bytes from an
Arduino over to [comport].
Do you not have any data flowing between the two, or is your concern
more about how numeric figures are to be formatted?
--
David Shimamoto
Hey Hans-Christoph
Actually, I've had
On Sun, 2009-03-01 at 19:54 -0500, Dafydd Hughes wrote:
Hi David
I'm sure it's easier than I'm making it.
Really, I just need to turn the data from the arduino into usable
floats. Right now it's coming in as ascii characters and I'm building
lists between carriage returns. Hopefully I can
Thanks. I'll look into that tomorrow. In the meantime, I have it
working with decimal well enough.
Thanks everybody for the help!
cheers
dafydd
On Sun, Mar 1, 2009 at 8:11 PM, Roman Haefeli reduzie...@yahoo.de wrote:
On Sun, 2009-03-01 at 19:54 -0500, Dafydd Hughes wrote:
Hi David
I'm sure