{"id":507,"date":"2016-05-01T19:22:21","date_gmt":"2016-05-01T19:22:21","guid":{"rendered":"https:\/\/einhugur.com\/blog\/?page_id=507"},"modified":"2018-12-15T13:45:44","modified_gmt":"2018-12-15T13:45:44","slug":"mini-ir-pyroelectric-infrared-pir-motion-human-sensor-detector-module","status":"publish","type":"page","link":"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/mini-ir-pyroelectric-infrared-pir-motion-human-sensor-detector-module\/","title":{"rendered":"Mini IR Pyroelectric Infrared PIR Motion Human Sensor Detector Module"},"content":{"rendered":"<p>Connecting the\u00a0Mini IR Pyroelectric Infrared PIR Motion Human Sensor Detector Module. This guide is detail guide for one of the sensor types on this guide here:\u00a0<a href=\"https:\/\/einhugur.com\/blog\/index.php\/xojo-gpio\/hc-sr501-sensor\/\">Infrared motion detection<\/a><\/p>\n<figure id=\"attachment_504\" aria-describedby=\"caption-attachment-504\" style=\"width: 150px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/i2.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2015\/09\/MiniMotionSensorSoldered.jpg?ssl=1\"><img data-attachment-id=\"504\" data-permalink=\"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/hc-sr501-sensor\/minimotionsensorsoldered\/\" data-orig-file=\"https:\/\/i1.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/09\/MiniMotionSensorSoldered.jpg?fit=150%2C314&amp;ssl=1\" data-orig-size=\"150,314\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;2.2&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;iPhone 6&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1462123799&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;4.15&quot;,&quot;iso&quot;:&quot;64&quot;,&quot;shutter_speed&quot;:&quot;0.03030303030303&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;1&quot;}\" data-image-title=\"MiniMotionSensorSoldered\" data-image-description=\"\" data-medium-file=\"https:\/\/i1.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/09\/MiniMotionSensorSoldered.jpg?fit=143%2C300&amp;ssl=1\" data-large-file=\"https:\/\/i1.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/09\/MiniMotionSensorSoldered.jpg?fit=150%2C314&amp;ssl=1\" loading=\"lazy\" class=\"size-full wp-image-504\" src=\"https:\/\/i2.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2015\/09\/MiniMotionSensorSoldered.jpg?resize=150%2C314&#038;ssl=1\" alt=\"This one we found no name for except just &quot;Mini IR Pyroelectric Infrared PIR Motion Human Sensor Detector Module&quot;\" width=\"150\" height=\"314\" srcset=\"https:\/\/i1.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/09\/MiniMotionSensorSoldered.jpg?w=150&amp;ssl=1 150w, https:\/\/i1.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/09\/MiniMotionSensorSoldered.jpg?resize=143%2C300&amp;ssl=1 143w\" sizes=\"(max-width: 150px) 100vw, 150px\" data-recalc-dims=\"1\" \/><\/a><figcaption id=\"caption-attachment-504\" class=\"wp-caption-text\">This one we found no name for except just &#8220;Mini IR Pyroelectric Infrared PIR Motion Human Sensor Detector Module&#8221;<\/figcaption><\/figure>\n<p>We\u00a0found no official name for this sensor\u00a0but its sold as &#8220;Mini IR Pyroelectric Infrared PIR Motion Human Sensor Detector Module&#8221;. WARNING do not attempt to connect it directly. Specs on its output pin on the net were fluctuating from 3.3V to 4 V so I measured just in case and found it to be 4.4 V !<\/p>\n<p>This sensor costs about $2.2 on Ali express.<\/p>\n<p>Specs are supposed to be something like this:<br \/>\nWorking voltage: DC 4.5-20V<br \/>\nStatic current: &lt;55uA<br \/>\nElectronic level output: High 3.3V\/Low 0V <span style=\"color: #ff0000;\">(Some sellers listed this as 4V but I measured it as 4.4 V ! So assume its 4.4 V to be safer)<\/span><br \/>\nTrigger mode: Repeated triggering<br \/>\nBlockade time: 2.5S<br \/>\nDetective angle: &lt;100\u00b0<br \/>\nInduction distance: less than 3m<br \/>\nWorking temperature: -20&#8212;+80<\/p>\n<p>First problem is that this sensor does not come with pins soldered on it. And since the sensor is really small, only 10 mm wide then normal header pins will not fit <em>(It is actually smaller than it seems on the picture, it is smaller than finger nail)<\/em>. So in the end I soldered wires directly to it which was a bit of detail work. Also clamped the 3 wires together to keep it nice and tidy. Then it ended like this:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2015\/09\/MiniMotionSensorPicture.jpg?ssl=1\"><img data-attachment-id=\"502\" data-permalink=\"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/hc-sr501-sensor\/minimotionsensorpicture\/\" data-orig-file=\"https:\/\/i1.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/09\/MiniMotionSensorPicture.jpg?fit=500%2C190&amp;ssl=1\" data-orig-size=\"500,190\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;2.2&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;iPhone 6&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1462125443&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;4.15&quot;,&quot;iso&quot;:&quot;40&quot;,&quot;shutter_speed&quot;:&quot;0.03030303030303&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;1&quot;}\" data-image-title=\"MiniMotionSensorPicture\" data-image-description=\"\" data-medium-file=\"https:\/\/i1.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/09\/MiniMotionSensorPicture.jpg?fit=300%2C114&amp;ssl=1\" data-large-file=\"https:\/\/i1.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/09\/MiniMotionSensorPicture.jpg?fit=474%2C180&amp;ssl=1\" loading=\"lazy\" class=\"alignnone size-full wp-image-502\" src=\"https:\/\/i0.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2015\/09\/MiniMotionSensorPicture.jpg?resize=474%2C180&#038;ssl=1\" alt=\"MiniMotionSensorPicture\" width=\"474\" height=\"180\" srcset=\"https:\/\/i1.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/09\/MiniMotionSensorPicture.jpg?w=500&amp;ssl=1 500w, https:\/\/i1.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/09\/MiniMotionSensorPicture.jpg?resize=300%2C114&amp;ssl=1 300w\" sizes=\"(max-width: 474px) 100vw, 474px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>Red to VCC (5 V)<br \/>\nBlue to GND<br \/>\nYellow to OUT<\/p>\n<p>Because the voltage output is clearly to high for GPIO, then do not connect the out pin on this sensor directly to the GPIO pin. Instead we need to lower the voltage on the output like shown here bellow:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/05\/MiniMotionSensor.png?ssl=1\"><img data-attachment-id=\"508\" data-permalink=\"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/mini-ir-pyroelectric-infrared-pir-motion-human-sensor-detector-module\/minimotionsensor\/\" data-orig-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/MiniMotionSensor.png?fit=350%2C480&amp;ssl=1\" data-orig-size=\"350,480\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"MiniMotionSensor\" data-image-description=\"\" data-medium-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/MiniMotionSensor.png?fit=219%2C300&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/MiniMotionSensor.png?fit=350%2C480&amp;ssl=1\" loading=\"lazy\" class=\"alignnone size-full wp-image-508\" src=\"https:\/\/i0.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/05\/MiniMotionSensor.png?resize=350%2C480&#038;ssl=1\" alt=\"MiniMotionSensor\" width=\"350\" height=\"480\" srcset=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/MiniMotionSensor.png?w=350&amp;ssl=1 350w, https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/MiniMotionSensor.png?resize=219%2C300&amp;ssl=1 219w\" sizes=\"(max-width: 350px) 100vw, 350px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>R1 we choose as 1k\u03a9<\/p>\n<p>So we can calculate:<\/p>\n<p>3,3 = 4.4\u00a0* (1000 \/ (R + 1000))<br \/>\n0.75 = \u00a0(1000 \/ (R + 1000))<br \/>\n0.75R + 750 = 1000<br \/>\n0.75R =\u00a0250\u00a0\u03a9<br \/>\n<strong>R\u00a0= 333 \u03a9 -&gt; <\/strong><\/p>\n<p><strong>Nearest resistor above it was 360\u00a0\u03a9 which is good we use that<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Connecting the\u00a0Mini IR Pyroelectric Infrared PIR Motion Human Sensor Detector Module. This guide is detail guide for one of the sensor types on this guide here:\u00a0Infrared motion detection We\u00a0found no official name for this sensor\u00a0but its sold as &#8220;Mini IR Pyroelectric Infrared PIR Motion Human Sensor Detector Module&#8221;. WARNING do not attempt to connect it &hellip; <a href=\"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/mini-ir-pyroelectric-infrared-pir-motion-human-sensor-detector-module\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Mini IR Pyroelectric Infrared PIR Motion Human Sensor Detector Module<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":94,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"spay_email":""},"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/Pd75nk-8b","jetpack-related-posts":[{"id":79,"url":"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/hc-sr501-sensor\/","url_meta":{"origin":507,"position":0},"title":"Infrared motion detection","date":"September 19, 2015","format":false,"excerpt":"In this example we are going to connect to infrared motion detection sensor (various of sensors work, see bellow the ones we have tested). (Updated 24. Oct 2015, adding code with interrupts and changed setup to use a breadboard) (Updated 8. Nov\u00a02015, adding ST-00082 Mini sensor) (Updated 1. May 2016,\u2026","rel":"","context":"Similar post","img":{"alt_text":"HC-SR501 Sensor_bb","src":"https:\/\/i0.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2015\/09\/HC-SR501-Sensor_bb.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":94,"url":"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/","url_meta":{"origin":507,"position":1},"title":"Xojo GPIO","date":"September 19, 2015","format":false,"excerpt":"Guides for GPIO in Xojo \u00a0Infrared motion detection (Updated 1. May 2016) Shows\u00a02 ways of coding: Using Interrupts or simple polling. Sensors: \u00a0HC-SR501,\u00a0ST-00082 Mini,\u00a0Mini IR Pyroelectric Infrared PIR Motion Human Sensor Detector Module Uses:\u00a0Basic GPIO Relay board In this example we \u00a0wire up a relay board and let your Xojo\u2026","rel":"","context":"Similar post","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":137,"url":"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/ir-infrared-obstacle-reflection-photoelectric-sensor\/","url_meta":{"origin":507,"position":2},"title":"IR Infrared Obstacle Reflection Photoelectric Sensor","date":"September 20, 2015","format":false,"excerpt":"In this example we are going to connect to infrared obstacle reflection photoelectric sensor motion detection sensor. I am not going to deny it, I find this sensor to be awful rubbish. Without reading the data you can hook it up and see it when the 2nd green lights goes\u2026","rel":"","context":"Similar post","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2015\/09\/IRSensor-e1442754741492-225x300.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":345,"url":"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/using-logic-gates\/","url_meta":{"origin":507,"position":3},"title":"Using logic gates","date":"November 8, 2015","format":false,"excerpt":"In this guide we are going to learn how to use logic gates. \u00a0Even if you can usually do things by just taking more GPIO pins and do the logic in a code then there will be times you may want to do things in hardware. For example you might\u2026","rel":"","context":"Similar post","img":{"alt_text":"LogicCircuits","src":"https:\/\/i2.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2015\/11\/LogicCircuits.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":108,"url":"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/f85-vibration-sensor\/","url_meta":{"origin":507,"position":4},"title":"F85 Vibration sensor","date":"September 19, 2015","format":false,"excerpt":"In this example we are going to connect to\u00a0vibration sensor. This example is super easy after doing the infrared motion detection with the HC-SR501 in a previous example, since basically same code will work. I found this sensor to be excellent, it gives readings when I expect it to and\u2026","rel":"","context":"Similar post","img":{"alt_text":"","src":"https:\/\/i1.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2015\/09\/Sensor-connection-e1442664059628-225x300.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":113,"url":"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/flame-sensor\/","url_meta":{"origin":507,"position":5},"title":"Flame sensor","date":"September 19, 2015","format":false,"excerpt":"In this example we are going to connect to flame\u00a0sensor. Programming for this sensor works on exactly the same principle as the\u00a0HC-SR501 infrared sensor and the F85 vibration sensor except the signal from this sensor comes inverted. As in it will send 1 when everything is all right and zero\u2026","rel":"","context":"Similar post","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2015\/09\/FlameSensor-e1442681877884-225x300.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/pages\/507"}],"collection":[{"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=507"}],"version-history":[{"count":1,"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/pages\/507\/revisions"}],"predecessor-version":[{"id":509,"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/pages\/507\/revisions\/509"}],"up":[{"embeddable":true,"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/pages\/94"}],"wp:attachment":[{"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=507"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}