[PD] arduino question/bang once

Pagano, Patrick pat at digitalworlds.ufl.edu
Fri Nov 25 05:40:47 CET 2011

Well after restarting Arduino and pd i am getting values to reside between 0 and 1 from the PIR so i can hook up a select to the r_ANA_0 but when i trigger the sensor it continually bangs for the 10 seconds that the sensor is on, is there a way to only bang once?

From: pd-list-bounces at iem.at [pd-list-bounces at iem.at] on behalf of Pagano, Patrick [pat at digitalworlds.ufl.edu]
Sent: Thursday, November 24, 2011 11:28 PM
To: Dafydd Hughes
Cc: pd-list at iem.at
Subject: Re: [PD] arduino question

that kind of works but after it sends it's message to bang something the PIRturns off when the sensor goes "off" and it sends another value is there a way to ignore that?

From: Dafydd Hughes [dafydd61 at gmail.com]
Sent: Thursday, November 24, 2011 10:43 PM
To: Pagano, Patrick
Subject: Re: [PD] arduino question

Hi Patrick

Are you trying to turn the sample on/off by comparing it to a range?

If so, have you tried something like:

[< 0.3]



On Thu, Nov 24, 2011 at 10:31 PM, Pagano, Patrick <pat at digitalworlds.ufl.edu<mailto:pat at digitalworlds.ufl.edu>> wrote:

I am using a PIR sensor with pduino playground and I have the sensor picking up movement. It'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'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 "banged" 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.

It'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/

Any help?


Pd-list at iem.at<mailto:Pd-list at iem.at> mailing list
UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20111125/4cebdc03/attachment.htm>

More information about the Pd-list mailing list