Try this.<br><br><div class="gmail_quote">On Fri, Nov 25, 2011 at 12:19 AM, Pagano, Patrick <span dir="ltr">&lt;<a href="mailto:pat@digitalworlds.ufl.edu">pat@digitalworlds.ufl.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">





<div>
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt">Yes.<br>
<br>
r_ANA_0 <br>
<br>
i assume it sees it as constantly sending something but i do not know how to control it.<br>
<br>
pp<br>
<br>
<div style="font-family:Times New Roman;color:rgb(0,0,0);font-size:16px">
<hr>
<div style="direction:ltr"><font color="#000000" face="Tahoma" size="2"><b>From:</b> Dafydd Hughes [<a href="mailto:dafydd61@gmail.com" target="_blank">dafydd61@gmail.com</a>]<br>
<b>Sent:</b> Friday, November 25, 2011 12:18 AM<div><div class="h5"><br>
<b>To:</b> Pagano, Patrick<br>
<b>Cc:</b> <a href="mailto:pd-list@iem.at" target="_blank">pd-list@iem.at</a><br>
<b>Subject:</b> Re: [PD] arduino question<br>
</div></div></font><br>
</div><div><div class="h5">
<div></div>
<div>Oh cool - is this your stuff coming out of ANA_0?<br>
<br>
<div class="gmail_quote">On Fri, Nov 25, 2011 at 12:16 AM, Pagano, Patrick <span dir="ltr">
&lt;<a href="mailto:pat@digitalworlds.ufl.edu" target="_blank">pat@digitalworlds.ufl.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div style="direction:ltr;font-family:Tahoma;color:rgb(0,0,0);font-size:10pt">
it&#39;s a number box that is constantly sending 0 or 1 depending on whether the sensor is on or off.
<br>
<br>
the value is a constant stream and i am just unsure how to just get ONE bang when it&#39;s turned on and  ignore the 0 bang when it turns off.<br>
<br>
<br>
<div style="font-family:Times New Roman;color:rgb(0,0,0);font-size:16px">
<hr>
<div style="direction:ltr"><font color="#000000" face="Tahoma" size="2"><b>From:</b> Dafydd Hughes [<a href="mailto:dafydd61@gmail.com" target="_blank">dafydd61@gmail.com</a>]<br>
<b>Sent:</b> Friday, November 25, 2011 12:12 AM
<div>
<div><br>
<b>To:</b> Pagano, Patrick<br>
<b>Cc:</b> <a href="mailto:pd-list@iem.at" target="_blank">pd-list@iem.at</a><br>
<b>Subject:</b> Re: [PD] arduino question<br>
</div>
</div>
</font><br>
</div>
<div>
<div>
<div></div>
<div>Hi Patrick
<div><br>
</div>
<div>Do you mean you only want a bang when the sensor turns on?
<div><br>
</div>
<div>What do the messages look like coming from the arduino? What is that second value?</div>
<div><br>
</div>
<div>I hope I&#39;m able to help here!</div>
<div><br>
</div>
<div>cheers</div>
<div>dafydd</div>
<div><br>
<div class="gmail_quote">On Fri, Nov 25, 2011 at 12:04 AM, Pagano, Patrick <span dir="ltr">
&lt;<a href="mailto:pat@digitalworlds.ufl.edu" target="_blank">pat@digitalworlds.ufl.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div style="direction:ltr;font-family:Tahoma;color:rgb(0,0,0);font-size:10pt">
Kind of. I am still a newbie to this but i have been using pduino_playaround.<br>
So are you suggesting removing the second value that is sent by Arduino?<br>
What is happening is that pd receives the &quot;on&quot; from the sensor and keeps baninging until the sensor turns off and then it sends another bang when it turns off so if the sensor turns it on it eventually bangs again and resets to 0 again. whereas i just want
 it to send  bang when it&#39;s activated to play a sound and not band when it&#39;s done.<br>
<br>
pp<br>
<div style="font-family:Times New Roman;color:rgb(0,0,0);font-size:16px">
<hr>
<div style="direction:ltr"><font color="#000000" face="Tahoma" size="2"><b>From:</b> Dafydd Hughes [<a href="mailto:dafydd61@gmail.com" target="_blank">dafydd61@gmail.com</a>]<br>
<b>Sent:</b> Friday, November 25, 2011 12:00 AM<br>
<b>To:</b> Pagano, Patrick<br>
<b>Cc:</b> <a href="mailto:pd-list@iem.at" target="_blank">pd-list@iem.at</a>
<div>
<div><br>
<b>Subject:</b> Re: [PD] arduino question<br>
</div>
</div>
</font><br>
</div>
<div>
<div>
<div></div>
<div>You know what? I&#39;m not sure. I&#39;ve never worked with those sensors. What do you mean by &quot;message to bang?&quot; are you doing a call-and-response between Pd and the Arduino?
<div><br>
</div>
<div>Are you working with this sketch? <a href="http://www.arduino.cc/playground/Code/PIRsense" target="_blank">http://www.arduino.cc/playground/Code/PIRsense</a><br>
<br>
<div class="gmail_quote">On Thu, Nov 24, 2011 at 11:28 PM, Pagano, Patrick <span dir="ltr">
&lt;<a href="mailto:pat@digitalworlds.ufl.edu" target="_blank">pat@digitalworlds.ufl.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div style="direction:ltr;font-family:Tahoma;color:rgb(0,0,0);font-size:10pt">
that kind of works but after it sends it&#39;s message to bang something the PIRturns off when the sensor goes &quot;off&quot; and it sends another value is there a way to ignore that?<br>
 <br>
pp<br>
<div style="font-family:Times New Roman;color:rgb(0,0,0);font-size:16px">
<hr>
<div style="direction:ltr"><font color="#000000" face="Tahoma" size="2"><b>From:</b> Dafydd Hughes [<a href="mailto:dafydd61@gmail.com" target="_blank">dafydd61@gmail.com</a>]<br>
<b>Sent:</b> Thursday, November 24, 2011 10:43 PM<br>
<b>To:</b> Pagano, Patrick<br>
<b>Subject:</b> Re: [PD] arduino question<br>
</font><br>
</div>
<div>
<div>
<div></div>
<div>Hi Patrick
<div><br>
</div>
<div>Are you trying to turn the sample on/off by comparing it to a range?</div>
<div><br>
</div>
<div>If so, have you tried something like:</div>
<div><br>
</div>
<div>[&lt; 0.3]</div>
<div>|</div>
<div>[change]</div>
<div><br>
</div>
<div>?<br>
<br>
cheers</div>
<div>dafydd<br>
<br>
<div class="gmail_quote">On Thu, Nov 24, 2011 at 10:31 PM, Pagano, Patrick <span dir="ltr">
&lt;<a href="mailto:pat@digitalworlds.ufl.edu" target="_blank">pat@digitalworlds.ufl.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div style="direction:ltr;font-family:Tahoma;color:rgb(0,0,0);font-size:10pt">
<span style="font-family:Calibri,sans-serif;font-size:14px">
<div>Hi</div>
<div><br>
</div>
<div>I am using a PIR sensor with pduino playground and I have the sensor picking up movement. It&#39;s my first pd-arduino excursion so forgive the noobie-ness. When I get the out form the PIR sensor it give me a constant value of SOMETHING The entire time. It&#39;s
 output values range from 0.13-0.664/0.665 constantly. I just want to use the sensor to turn off/on a sample but the file is constantly being &quot;banged&quot; a value. How do I just out put an on/off based upon  this constant stream of Data? I tried select bit that
 does seem to be working.</div>
<div><br>
</div>
<div>It&#39;s a simple parallax PIR sensor and I have been having good luck getting usd to wiring and  the breadboard etc. but when I take the analog0 stream/port into pd I do not know how to control that data/</div>
<div><br>
</div>
<div>Any help?</div>
<span><font color="#888888">
<div><br>
</div>
<div>pp</div>
</font></span></span></div>
</div>
<br>
_______________________________________________<br>
<a href="mailto:Pd-list@iem.at" target="_blank">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">
http://lists.puredata.info/listinfo/pd-list</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div></div></div>
</div>
</div>

</blockquote></div><br>