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
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 with Pduino and that sensor.
.hc
On Mar 1, 2009, at 3:43 PM, Dafydd Hughes wrote:
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: chickeninthegrass
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
"It is convenient to imagine a power beyond us because that means we
don't have to examine our own lives.", from "The Idols of
Environmentalism", by Curtis White
Thanks Hans-Christoph
In over my head again.
cheers dafydd
On Sun, Mar 1, 2009 at 4:59 PM, Hans-Christoph Steiner hans@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 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 with Pduino and that sensor.
.hc
On Mar 1, 2009, at 3:43 PM, Dafydd Hughes wrote:
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: chickeninthegrass
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
"It is convenient to imagine a power beyond us because that means we don't have to examine our own lives.", from "The Idols of Environmentalism", by Curtis White
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:
http://www.sparkfun.com/commerce/categories.php?c=84
.hc
On Mar 1, 2009, at 5:03 PM, Dafydd Hughes wrote:
Thanks Hans-Christoph
In over my head again.
cheers dafydd
On Sun, Mar 1, 2009 at 4:59 PM, Hans-Christoph Steiner
hans@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 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 with
Pduino and that sensor..hc
On Mar 1, 2009, at 3:43 PM, Dafydd Hughes wrote:
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: chickeninthegrass
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
"It is convenient to imagine a power beyond us because that means
we don't have to examine our own lives.", from "The Idols of
Environmentalism", by Curtis White-- www.sideshowmedia.ca skype: chickeninthegrass
All mankind is of one author, and is one volume; when one man dies,
one chapter is not torn out of the book, but translated into a better
language; and every chapter must be so translated.... -John Donne
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 there's be a strictly Pd way to do it - it's for an intro workshop and I was going to show folks how super-easy it is. Hopefully I'll be able to show folks how almost super-easy it is instead.
This may be one of those rare occasions where it's actually easier to do something _without_ Pd:)
cheers dafydd
On Sun, Mar 1, 2009 at 5:14 PM, Hans-Christoph Steiner hans@eds.org wrote:
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:
http://www.sparkfun.com/commerce/categories.php?c=84
.hc
On Mar 1, 2009, at 5:03 PM, Dafydd Hughes wrote:
Thanks Hans-Christoph
In over my head again.
cheers dafydd
On Sun, Mar 1, 2009 at 4:59 PM, Hans-Christoph Steiner hans@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 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 with Pduino and that sensor.
.hc
On Mar 1, 2009, at 3:43 PM, Dafydd Hughes wrote:
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: chickeninthegrass
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
"It is convenient to imagine a power beyond us because that means we don't have to examine our own lives.", from "The Idols of Environmentalism", by Curtis White
-- www.sideshowmedia.ca skype: chickeninthegrass
All mankind is of one author, and is one volume; when one man dies, one chapter is not torn out of the book, but translated into a better language; and every chapter must be so translated.... -John Donne
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 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 there's be a strictly Pd way to do it - it's for an intro workshop and I was going to show folks how super-easy it is. Hopefully I'll be able to show folks how almost super-easy it is instead.
This may be one of those rare occasions where it's actually easier to do something _without_ Pd:)
cheers dafydd
On Sun, Mar 1, 2009 at 5:14 PM, Hans-Christoph Steiner hans@eds.org wrote:
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:
http://www.sparkfun.com/commerce/categories.php?c=84
.hc
On Mar 1, 2009, at 5:03 PM, Dafydd Hughes wrote:
Thanks Hans-Christoph
In over my head again.
cheers dafydd
On Sun, Mar 1, 2009 at 4:59 PM, Hans-Christoph Steiner hans@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 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 with Pduino and that sensor.
.hc
On Mar 1, 2009, at 3:43 PM, Dafydd Hughes wrote:
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: chickeninthegrass
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
"It is convenient to imagine a power beyond us because that means we don't have to examine our own lives.", from "The Idols of Environmentalism", by Curtis White
-- www.sideshowmedia.ca skype: chickeninthegrass
All mankind is of one author, and is one volume; when one man dies, one chapter is not torn out of the book, but translated into a better language; and every chapter must be so translated.... -John Donne
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 now turn those lists into numbers without too much trouble. Should I maybe be doing this with binary numbers? Would that be easier?
cheers dafydd
On Sun, Mar 1, 2009 at 7:44 PM, PSPunch shima@pspunch.com wrote:
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 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 there's be a strictly Pd way to do it - it's for an intro workshop and I was going to show folks how super-easy it is. Hopefully I'll be able to show folks how almost super-easy it is instead.
This may be one of those rare occasions where it's actually easier to do something _without_ Pd:)
cheers dafydd
On Sun, Mar 1, 2009 at 5:14 PM, Hans-Christoph Steiner hans@eds.org wrote:
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:
http://www.sparkfun.com/commerce/categories.php?c=84
.hc
On Mar 1, 2009, at 5:03 PM, Dafydd Hughes wrote:
Thanks Hans-Christoph
In over my head again.
cheers dafydd
On Sun, Mar 1, 2009 at 4:59 PM, Hans-Christoph Steiner hans@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 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 with Pduino and that sensor.
.hc
On Mar 1, 2009, at 3:43 PM, Dafydd Hughes wrote:
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: chickeninthegrass
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
"It is convenient to imagine a power beyond us because that means we don't have to examine our own lives.", from "The Idols of Environmentalism", by Curtis White
-- www.sideshowmedia.ca skype: chickeninthegrass
All mankind is of one author, and is one volume; when one man dies, one chapter is not torn out of the book, but translated into a better language; and every chapter must be so translated.... -John Donne
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
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 now turn those lists into numbers without too much trouble. Should I maybe be doing this with binary numbers? Would that be easier?
i'd guess so. you could use [mapping/debytemask] in order to convert the byte into its single bits. then parsing of the data you want should be really easy.
roman
___________________________________________________________ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de
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 reduzierer@yahoo.de wrote:
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 now turn those lists into numbers without too much trouble. Should I maybe be doing this with binary numbers? Would that be easier?
i'd guess so. you could use [mapping/debytemask] in order to convert the byte into its single bits. then parsing of the data you want should be really easy.
roman
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de
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 PM, Dafydd Hughes wrote:
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 reduzierer@yahoo.de
wrote: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 now turn those lists into numbers without too much trouble. Should I maybe be doing this with binary numbers? Would that be easier?i'd guess so. you could use [mapping/debytemask] in order to
convert the byte into its single bits. then parsing of the data you want should
be really easy.roman
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo!
Mail: http://mail.yahoo.de-- www.sideshowmedia.ca skype: chickeninthegrass
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Access to computers should be unlimited and total. - the hacker ethic