That was messy so let me be clear i have a pir sensor hooked up, in arduino you load firmata code to work with pduino_playaround, not necesarily the PIR sense code into arduino. but the problem is that the sensor is constantly sending a bang whether it's of 0, or on 1. Is there a way to just get one bang from the sensor not constant banging? I tried oneshot and that does not work right either
________________________________ From: [email protected] [[email protected]] on behalf of Pagano, Patrick [[email protected]] Sent: Friday, November 25, 2011 12:04 AM To: Dafydd Hughes Cc: [email protected] Subject: Re: [PD] arduino question Kind of. I am still a newbie to this but i have been using pduino_playaround. So are you suggesting removing the second value that is sent by Arduino? What is happening is that pd receives the "on" 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's activated to play a sound and not band when it's done. pp ________________________________ From: Dafydd Hughes [[email protected]] Sent: Friday, November 25, 2011 12:00 AM To: Pagano, Patrick Cc: [email protected] Subject: Re: [PD] arduino question You know what? I'm not sure. I've never worked with those sensors. What do you mean by "message to bang?" are you doing a call-and-response between Pd and the Arduino? Are you working with this sketch? http://www.arduino.cc/playground/Code/PIRsense On Thu, Nov 24, 2011 at 11:28 PM, Pagano, Patrick <[email protected]<mailto:[email protected]>> wrote: 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? pp ________________________________ From: Dafydd Hughes [[email protected]<mailto:[email protected]>] 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] | [change] ? cheers dafydd On Thu, Nov 24, 2011 at 10:31 PM, Pagano, Patrick <[email protected]<mailto:[email protected]>> wrote: Hi 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? pp _______________________________________________ [email protected]<mailto:[email protected]> mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
_______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
