<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div><br></div><div>Try [debounce] from mapping, it is designed for exactly that problem.  You'll just need to set the time high, like 2000 (ms).</div><div><br></div><div>Those debug messages are correct, that's just the raw bytes being transmitted.</div><div><br></div><div>.hc</div><br><div><div>On Aug 12, 2008, at 11:40 PM, Adityo Pratomo wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">hi there everybody, i have a question about the PIR in firmata. I'm connecting a PIR sensor to an ardunio board and then programming it on Pd using the Firmata firmware. Then, the input from the PIR sensor will detect any motion and any voltage output will be used to trigger a bang. But i have a problem, i guess the sensor will trigger the bang twice, since the output from the sensor change twice from a single motion. The question is how can i make the bang only react from the first trigger and then ignores the second trigger. I've used the delay routed to number "0", but it's useless since there's no exact time when the second trigger will occur. Any idea everybody.<br> <br>And when i debug the firmata, for every single detected output, i have a message like these <br clear="all"><br>DEBUG: 144<br>DEBUG: 4<br>DEBUG: 0<br>DEBUG: 144<br> DEBUG: 4<br> DEBUG: 0<br>DEBUG: 144<br> DEBUG: 0<br> DEBUG: 0<br>DEBUG: 144<br> DEBUG: 0<br> DEBUG: 0<br><br>can anybody tell me what these messages means? is my system working correctly?<br><br>many thanks in advance.<br><br> </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a></div> </blockquote></div><br><div> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><br class="Apple-interchange-newline"></span><div><br class="khtml-block-placeholder"></div><div><br class="khtml-block-placeholder"></div><div><br class="khtml-block-placeholder"></div><div><br class="khtml-block-placeholder"></div><div><br></div><div>----------------------------------------------------------------------------<br></div><div><br class="khtml-block-placeholder"></div><div>"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</div><div><br class="khtml-block-placeholder"></div><div><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></span> </div><br></body></html>