This is a multi-part message in MIME format. ------=_NextPart_000_01BB_01C12B63.8411CBC0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit > Does anyone have info on connecting a PIR sensor > to a PIC?? This would be great for devices or > lighting systems that activate when you enter > the room, etc. A great use for a PIC. :o) > -Roman I use this for a battery-operated indoor application. It has very low power requirements (140uA @ 5V). The 5V supply comes from a PIC pin which turns the PIR off with a logic "0" after the PIR has woken the PIC from sleep. The sensors are from Murata. A proper Fresnel lens is essential - the response to PIR in the low Hz is far better than with no lens and the range (7-8 metres) is around 10 times greater. There are more sophisticated circuits in security lights, based on quad amps like the LM324. I've no need for that as occasional false triggering is no big disadvantage in my application, but there are ultra-low power around that could replace the standard type One improvement I'd like to make to this circuit is a self-settling function. Replacing the trimpot with a fixed RC filter that responds quickly to (relatively) fast wave bumps such as caused by a body but ignores drafts or increasing/decreasing sunlight ------=_NextPart_000_01BB_01C12B63.8411CBC0 Content-Type: image/gif; name="pir1.gif" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="pir1.gif" R0lGODlhcAHlAPcAAAAAAP////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////ywAAAAAcAHlAAAI/gADCBxI sKDBgwgTKlzIsKHDhxAjSpxIsaLFixgzatzIsaPHjyBDihxJsqTJkyhTqlzJsqXLlzBjypxJs6bN mzg9Aji4M6fPn0CDCt3ZcyBRoUiTngTAtKnTp1CjSp1KtarVq1izTjXKVWBRrWDDih1LtqzZs1tF FlVqsenSAGvhylXLFKLbpHeDxtXJ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t4hnTmTXlnXOAliaKYga2Yi6AY i8yVX1w2Se7RVLuFiCBXiRLoh5P4W/O0ibWmjLbIi7gYjZbYidSYiY44gyv1iHyIjNKYiNOYjNvE QC+IWdZ0LZAVZYqVh4OIIWB1g7tUTW9IiqCUjtUIjnzRhtYEdQOWj5yIVvIhG83yhMbYjTx4MO70 b90EWDOIg53BjNZDj7D0hd+4jFeBSCboj+1oSq5FMTwFJZEGXH2SVL7Vj/mXbUR4JJHEWSmlkPgX kgMpNsAx/kye45EkCYvCFlk1OUXSghljVVHt5pKuiIrQiGHF2Gd9aF3CQoFytJO0xZLYSJRPqZEl GWQSyY+r6IC/s4JixpSy55R69ksCWUT1SJVhWYrb2H8Yg2rRcops5JV1B2wRlmtZqHdyF4dYCYJ3 Qz1P05U+SWH4RZV8FHNj0lEluYvrZY2o5VQYZVy7N5jAR5BRKX3wiFI2BZj0UyOWCYxHWZRV6YOT uVxEppQwKWqOiS4QGYrjUT+LFUWh2Zm1gziuiU/mWJi6GHrvSI7AhFt0wisOGZioaZhJso8Ww5MF eIHxZFg2eZi3qZEM6Yn6uI4eN5TuuJpMNZHgc5GPAlrR/vSY0/mbWjkh0eknsvN03Ch+s/WKyhKe ejKekUmb3OeMd5me6skmZRmIRqguqmmfJpOA9XifNNd9+hmJJfdd0SeFw8aentl+HohzrHiI7Pec hNegDgqBqbl49rifD1qhQXeLE2icl1mLxHigHNqhNiid/lmCF4qhFGqiIcqfAep6JVqeJ8p7LCqg wamK8pih3mmjytldZymiKcqjaIej6uhz/Yl6ELqOz0ijMoqkGuqjBuqiskif2NmQkDWfEUl4XLil XNqlXloWaRemsiamZOqhZXqmOIKmajqka9qmi1GlbtqmcBqnajqndHqmdnqnZJqnehqmfNqnZPen gLp1N4I6qFJXqIZ6cgiVqIzaqI76WAX6qJI6qZT6plhaqZiaqZq6qZzaqZ76qaAaqqI6qqRaqg8R EAAAOw== ------=_NextPart_000_01BB_01C12B63.8411CBC0-- -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.