[PD] Arduino, Pd and ultrasonics: HELP needed for degree project!

Chris Jack itsmrjack at gmail.com
Tue Sep 28 12:28:24 CEST 2010


Collin, Pat, thanks for your replies.

Collin, I will try the route method in a short while...

Pat, that's interesting you use Messenger. I considered it but as I got SMS
working quite quickly I've since disregarded it. I will give it a go. Do you
mean to apply the identifier at the arduino stage, and if so, what does the
code look like? And how does Pd decipher it? I'm sorry, but nothing is
obvious to me at this stage - it's all new and I'm trying to make sense of
it.

Many thanks

On 28 September 2010 06:43, <pd-list-request at iem.at> wrote:

> Send Pd-list mailing list submissions to
>        pd-list at iem.at
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://lists.puredata.info/listinfo/pd-list
> or, via email, send a message with subject or body 'help' to
>        pd-list-request at iem.at
>
> You can reach the person managing the list at
>        pd-list-owner at iem.at
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Pd-list digest..."
>
>
> Today's Topics:
>
>   1. Re: GUI speed (Ivica Ico Bukvic)
>   2. Re: [PD-announce] dither8 (tramage) (ydegoyon at gmail.com)
>   3. Re: [PD-announce]   dither8 (tramage) (ydegoyon at gmail.com)
>   4. Re: [PD-announce] dither8 (tramage) (ydegoyon at gmail.com)
>   5. Re: [PD-announce]   dither8 (tramage) (ydegoyon at gmail.com)
>   6. Re: Arduino,      Pd and ultrasonics: HELP needed for degree
>      project! (patrick)
>   7. Re: Arduino,      Pd and ultrasonics: HELP needed for degree
>      project! (Collin)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 27 Sep 2010 23:21:36 -0400
> From: Ivica Ico Bukvic <ico at vt.edu>
> Subject: Re: [PD] GUI speed
> To: PD List <pd-list at iem.at>
> Message-ID: <jx4f636ctdxm1owk5r1u9h7r.1285644096103 at email.android.com>
> Content-Type: text/plain; charset=utf-8
>
> Another thing to consider is if you have large GUI objects that are
> updating quickly (e.g. number2 with huge fonts). This will also potentially
> tax the cpu.
>
> Bernardo Barros <bernardobarros2 at gmail.com> wrote:
>
> >you can post your patch, so maybe we will discover the problem.
> >for the abstraction one solution is to change the name of your hacked
> >abstractions and send them as well.
> >
> >2010/9/27 Andr?s Mur?nyi <muranyia at gmail.com>:
> >> well, i meant a bug in my patch...
> >> what i understood was that it overloaded the CPU on Jo?o's box too
> >>
> >> 2010/9/28 Bernardo Barros <bernardobarros2 at gmail.com>
> >>>
> >>> maybe this is a bug od pd-gui?
> >>> (well, poor performance *is* a bug)
> >>>
> >>> 2010/9/27 Andr?s Mur?nyi <muranyia at gmail.com>:
> >>> > On Mon, Sep 27, 2010 at 11:45 AM, Jo?o Pais <jmmmpais at googlemail.com
> >
> >>> > wrote:
> >>> >>>
> >>> >>> Well, it's not very exportable as i have modified/overwritten some
> >>> >>> abstractions made by others. Baaad practice!
> >>> >>> I'm trying to attach it now and i hope i works. Need pd-extended
> and
> >>> >>> many
> >>> >>> libs from it, moonlib for sure.
> >>> >>
> >>> >> not much, some abstractions are missing.
> >>> >>
> >>> >> anyway, even with the patch not working, I can see something is
> >>> >> definitively wrong. just by opening it with audio off, I get
> consistent
> >>> >> 50%
> >>> >> cpu usage - which means it's using a whole processor of my dual
> core.
> >>> >> unless
> >>> >> one of the missing abs is the problem, I would suggest you spend
> some
> >>> >> hours
> >>> >> bug tracking.
> >>> >
> >>> > yes, i've spent some nights bug tracking, and at one point i thought
> ask
> >>> > the
> >>> > list too... :o)
> >>> > something is definitely wrong!
> >>> >
> >>> >
> >>> >> On Mon, Sep 27, 2010 at 3:34 PM, Ivica Ico Bukvic <ico at vt.edu>
> wrote:
> >>> >> FWIW you may want to try to simply cut pieces of the patch while it
> is
> >>> >> running and observe the cpu load meter until it drops. That way you
> >>> >> should
> >>> >> be able to locate the problem quicker.
> >>> >>
> >>> >
> >>> > yes, i was trying thing like this, and will go on until i find what i
> >>> > messed
> >>> > up.
> >>> > I was just starting to think that it's normal and i have to live with
> it
> >>> > (or
> >>> > get a few more CPU cores) but now you guys reassured me that the bug
> is
> >>> > somewhere... in the haystack
> >>> >
> >>> > Andras
> >>> >
> >>> > _______________________________________________
> >>> > Pd-list at iem.at mailing list
> >>> > UNSUBSCRIBE and account-management ->
> >>> > http://lists.puredata.info/listinfo/pd-list
> >>> >
> >>> >
> >>
> >>
> >>
> >> --
> >> Muranyi Andras
> >>
> >
> >_______________________________________________
> >Pd-list at iem.at mailing list
> >UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
>
> ------------------------------
>
> Message: 2
> Date: Tue, 28 Sep 2010 05:45:48 +0200
> From: "ydegoyon at gmail.com" <ydegoyon at gmail.com>
> Subject: Re: [PD] [PD-announce] dither8 (tramage)
> To: pd-list at iem.at
> Cc: gridflow-dev at artengine.ca, pd-announce at iem.at
> Message-ID: <4CA164EC.2020000 at gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> are you naked-?
>
> Mathieu Bouchard wrote:
> >
> >   http://gridflow.ca/gallery/dither8.png
> >   http://gridflow.ca/gallery/dither8b.png
> >
> >   made with dither.pd (the new version found in GridFlow 9.12)
> >
> >  _______________________________________________________________________
> > | Mathieu Bouchard ------------------------------ Villeray, Montr?al, QC
> >
> >
> > _______________________________________________
> > Pd-announce mailing list
> > Pd-announce at iem.at
> > http://lists.puredata.info/listinfo/pd-announce
> >
> >
> >
> > _______________________________________________
> > Pd-list at iem.at mailing list
> > UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
> >
>
>
>
>
> ------------------------------
>
> Message: 3
> Date: Tue, 28 Sep 2010 05:45:48 +0200
> From: "ydegoyon at gmail.com" <ydegoyon at gmail.com>
> Subject: Re: [PD] [PD-announce]   dither8 (tramage)
> To: pd-list at iem.at
> Cc: gridflow-dev at artengine.ca, pd-announce at iem.at
> Message-ID: <4CA164EC.2020000 at gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"
>
> are you naked-?
>
> Mathieu Bouchard wrote:
> >
> >   http://gridflow.ca/gallery/dither8.png
> >   http://gridflow.ca/gallery/dither8b.png
> >
> >   made with dither.pd (the new version found in GridFlow 9.12)
> >
> >  _______________________________________________________________________
> > | Mathieu Bouchard ------------------------------ Villeray, Montr?al, QC
> >
> >
> > _______________________________________________
> > Pd-announce mailing list
> > Pd-announce at iem.at
> > http://lists.puredata.info/listinfo/pd-announce
> >
> >
> >
> > _______________________________________________
> > Pd-list at iem.at mailing list
> > UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
> >
>
>
> _______________________________________________
> Pd-announce mailing list
> Pd-announce at iem.at
> http://lists.puredata.info/listinfo/pd-announce
>
>
>
> ------------------------------
>
> Message: 4
> Date: Tue, 28 Sep 2010 05:45:48 +0200
> From: "ydegoyon at gmail.com" <ydegoyon at gmail.com>
> Subject: Re: [PD] [PD-announce] dither8 (tramage)
> To: pd-list at iem.at
> Cc: gridflow-dev at artengine.ca, pd-announce at iem.at
> Message-ID: <4CA164EC.2020000 at gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> are you naked-?
>
> Mathieu Bouchard wrote:
> >
> >   http://gridflow.ca/gallery/dither8.png
> >   http://gridflow.ca/gallery/dither8b.png
> >
> >   made with dither.pd (the new version found in GridFlow 9.12)
> >
> >  _______________________________________________________________________
> > | Mathieu Bouchard ------------------------------ Villeray, Montr?al, QC
> >
> >
> > _______________________________________________
> > Pd-announce mailing list
> > Pd-announce at iem.at
> > http://lists.puredata.info/listinfo/pd-announce
> >
> >
> >
> > _______________________________________________
> > Pd-list at iem.at mailing list
> > UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
> >
>
>
>
>
> ------------------------------
>
> Message: 5
> Date: Tue, 28 Sep 2010 05:45:48 +0200
> From: "ydegoyon at gmail.com" <ydegoyon at gmail.com>
> Subject: Re: [PD] [PD-announce]   dither8 (tramage)
> To: pd-list at iem.at
> Cc: gridflow-dev at artengine.ca, pd-announce at iem.at
> Message-ID: <4CA164EC.2020000 at gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"
>
> are you naked-?
>
> Mathieu Bouchard wrote:
> >
> >   http://gridflow.ca/gallery/dither8.png
> >   http://gridflow.ca/gallery/dither8b.png
> >
> >   made with dither.pd (the new version found in GridFlow 9.12)
> >
> >  _______________________________________________________________________
> > | Mathieu Bouchard ------------------------------ Villeray, Montr?al, QC
> >
> >
> > _______________________________________________
> > Pd-announce mailing list
> > Pd-announce at iem.at
> > http://lists.puredata.info/listinfo/pd-announce
> >
> >
> >
> > _______________________________________________
> > Pd-list at iem.at mailing list
> > UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
> >
>
>
> _______________________________________________
> Pd-announce mailing list
> Pd-announce at iem.at
> http://lists.puredata.info/listinfo/pd-announce
>
>
>
> ------------------------------
>
> Message: 6
> Date: Tue, 28 Sep 2010 14:32:13 +0900
> From: patrick <puredata at 11h11.com>
> Subject: Re: [PD] Arduino,      Pd and ultrasonics: HELP needed for degree
>        project!
> To: pd-list at iem.at
> Message-ID: <4CA17DDD.8090203 at 11h11.com>
> Content-Type: text/plain; charset=windows-1252; format=flowed
>
> hi,
>
> i use Messenger instead of Simple Message System:
> http://www.arduino.cc/playground/Code/Messenger
>
> as for sending multiple sensors, just add an identifier:
> ...
> sensor1 789
> sensor2 345
> ...
>
> pat
>
>
>
> ------------------------------
>
> Message: 7
> Date: Mon, 27 Sep 2010 22:43:08 -0700
> From: Collin <coldham at mac.com>
> Subject: Re: [PD] Arduino,      Pd and ultrasonics: HELP needed for degree
>        project!
> To: itsmrjack at gmail.com, pd-list at iem.at
> Message-ID: <871A3ACF-74E2-4427-BB5D-432503E1DED2 at mac.com>
> Content-Type: text/plain; charset="us-ascii"; Format="flowed";
>        DelSp="yes"
>
> I've done this a few times adding a char and a space before the value
> and sorting it out with a [route]
> The char goes in quotes, and don't forget the space!
>
> On Sep 27, 2010, at 10:59 AM, pd-list-request at iem.at wrote:
>
> >   // SRF02 READING //
> >
> >   sendCommand(sensorAddress, readInches);
> >
> >   delay(70);
> >
> >   setRegister(sensorAddress, resultRegister);
> >
> >   int sensorReading = readData(sensorAddress, 2);
> >
>        Serial.print("s ");
> >  Serial.println(sensorReading);
> >
> >
> >   delay (200);
> >
> >
> >
> >   // GPD12 READING //
> >
> >   sensorValue = analogRead(sensorPin);
> >
> >   int range = (6787 / sensorValue);
> >
>        Serial.print("r ");
> >   Serial.println(range);
>
>
> then in the patch:
>
> [comport 8 9600]
> |
> [ascii2pd CR]
> |
> [route list]
> |
> [route s r]
>
>
> Collin
>
> collinoldham.com
>
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.puredata.info/pipermail/pd-list/attachments/20100927/4b91673d/attachment.htm
> >
>
> ------------------------------
>
> _______________________________________________
> Pd-list mailing list
> Pd-list at iem.at
> to manage your subscription (including un-subscription) see
> http://lists.puredata.info/listinfo/pd-list
>
>
> End of Pd-list Digest, Vol 66, Issue 196
> ****************************************
>



-- 
Mr Jack

Discus Jockey
Audio Tweeker
Musical Protagonist

itsmrjack at gmail.com
http://soundcloud.com/mrjack
http://www.myspace.com/itsmrjack

http://earshaveeyes.blogspot.com
http://campari0safari.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20100928/d4a724e2/attachment-0001.htm>


More information about the Pd-list mailing list