<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://www.sketching-with-hardware.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Passive_Infrared_Sensor</id>
	<title>Passive Infrared Sensor - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://www.sketching-with-hardware.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Passive_Infrared_Sensor"/>
	<link rel="alternate" type="text/html" href="http://www.sketching-with-hardware.org/wiki/index.php?title=Passive_Infrared_Sensor&amp;action=history"/>
	<updated>2026-04-18T16:55:49Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>http://www.sketching-with-hardware.org/wiki/index.php?title=Passive_Infrared_Sensor&amp;diff=1469&amp;oldid=prev</id>
		<title>Mayersven at 07:51, 11 June 2024</title>
		<link rel="alternate" type="text/html" href="http://www.sketching-with-hardware.org/wiki/index.php?title=Passive_Infrared_Sensor&amp;diff=1469&amp;oldid=prev"/>
		<updated>2024-06-11T07:51:34Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 09:51, 11 June 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l37&quot;&gt;Line 37:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 37:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;youtube&amp;gt;dVE7R-Spf6M&amp;lt;/youtube&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;youtube&amp;gt;dVE7R-Spf6M&amp;lt;/youtube&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Sensor]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Mayersven</name></author>
	</entry>
	<entry>
		<id>http://www.sketching-with-hardware.org/wiki/index.php?title=Passive_Infrared_Sensor&amp;diff=1461&amp;oldid=prev</id>
		<title>Mayersven: Created page with &quot;= Description = A PIR Sensor can detect motion, it is also called motion sensor. It detect moveing people or animals. PIR stands for passive infrared. Here we use the SR602....&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.sketching-with-hardware.org/wiki/index.php?title=Passive_Infrared_Sensor&amp;diff=1461&amp;oldid=prev"/>
		<updated>2024-06-11T07:45:48Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= Description = A PIR Sensor can detect motion, it is also called motion sensor. It detect moveing people or animals. PIR stands for passive infrared. Here we use the SR602....&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Description =&lt;br /&gt;
A PIR Sensor can detect motion, it is also called motion sensor. It detect moveing people or animals. PIR stands for passive infrared. Here we use the SR602.&lt;br /&gt;
&lt;br /&gt;
It has 3 connectors:&lt;br /&gt;
* - connected to GND&lt;br /&gt;
* + connected to 3.3V&lt;br /&gt;
* Out - digital output is 1 if motion is detected&lt;br /&gt;
&lt;br /&gt;
[[File:Pir3.PNG|x300px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This one is the HC-SR501 sensor and it should be connected to 5V, GND and a digital Pin.&lt;br /&gt;
&lt;br /&gt;
[[File:Pir2.JPG|x300px]]&lt;br /&gt;
[[File:Pir4.JPG|x300px]]&lt;br /&gt;
&lt;br /&gt;
= How to connect it electrically =&lt;br /&gt;
[[File:PIR-electro.PNG|x400px]]&lt;br /&gt;
&lt;br /&gt;
= How to control it in MicroPython =&lt;br /&gt;
Reading the value and printing it to the console&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot; line=&amp;#039;line&amp;#039;&amp;gt;&lt;br /&gt;
#Example usage for ESP32&lt;br /&gt;
from machine import Pin&lt;br /&gt;
from time import sleep&lt;br /&gt;
# digital input on pin 26&lt;br /&gt;
pir = Pin(26, Pin.IN, Pin.PULL_UP) # enable internal pull-up resistor&lt;br /&gt;
&lt;br /&gt;
while True:&lt;br /&gt;
  pirVal = pir.value()&lt;br /&gt;
  print(pirVal)&lt;br /&gt;
  sleep(1)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Related Tutorial Videos =&lt;br /&gt;
&amp;lt;youtube&amp;gt;C0W-wI0qHIQ&amp;lt;/youtube&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;youtube&amp;gt;dVE7R-Spf6M&amp;lt;/youtube&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mayersven</name></author>
	</entry>
</feed>