Board-dat/Board-DAT.md
... ...
@@ -212,7 +212,10 @@ Darlinton driver - [[SCU1024-dat]]
212 212
213 213
### SMO
214 214
- [[SMO1095-DAT]] - [[SMO1099-dat]]
215
-
215
+
216
+PIR Sensors
217
+- [[SMO1088-dat]]
218
+
216 219
### STH
217 220
- [[STH1074-DAT]] - [[STH1078-DAT]]
218 221
Board-dat/SMO/SMO1060-dat/2023-12-12-17-54-23.png
... ...
Binary files /dev/null and b/Board-dat/SMO/SMO1060-dat/2023-12-12-17-54-23.png differ
Board-dat/SMO/SMO1060-dat/2023-12-12-17-55-06.png
... ...
Binary files /dev/null and b/Board-dat/SMO/SMO1060-dat/2023-12-12-17-55-06.png differ
Board-dat/SMO/SMO1060-dat/SMO1060-dat.md
... ...
@@ -0,0 +1,10 @@
1
+
2
+# SMO1060-dat
3
+
4
+## All setup of HC-SR501
5
+
6
+![](2023-12-12-17-54-23.png)
7
+
8
+## Schematic
9
+
10
+![](2023-12-12-17-55-06.png)
... ...
\ No newline at end of file
Board-dat/SMO/SMO1088-dat/2023-12-12-17-50-16.png
... ...
Binary files /dev/null and b/Board-dat/SMO/SMO1088-dat/2023-12-12-17-50-16.png differ
Board-dat/SMO/SMO1088-dat/SMO1088-dat.md
... ...
@@ -0,0 +1,10 @@
1
+
2
+# SMO1088-dat
3
+
4
+## Definitions
5
+
6
+![](2023-12-12-17-50-16.png)
7
+
8
+## ref
9
+
10
+- [[SMO1088]] - [[PIR-sensor-dat]]
... ...
\ No newline at end of file
Board-dat/SMO/SMOS026-dat/SMOS026-dat.md
... ...
@@ -7,4 +7,6 @@
7 7
8 8
## ref
9 9
10
-- [[SMOS026]]
... ...
\ No newline at end of file
0
+- [[SMOS026]]
1
+
2
+- [[SMOS026-dat]]
... ...
\ No newline at end of file
Tech/Sensor-dat/Motion-sensor-dat/PIR-sensor-dat/2023-12-12-17-56-14.png
... ...
Binary files /dev/null and b/Tech/Sensor-dat/Motion-sensor-dat/PIR-sensor-dat/2023-12-12-17-56-14.png differ
Tech/Sensor-dat/Motion-sensor-dat/PIR-sensor-dat/2023-12-12-17-58-19.png
... ...
Binary files /dev/null and b/Tech/Sensor-dat/Motion-sensor-dat/PIR-sensor-dat/2023-12-12-17-58-19.png differ
Tech/Sensor-dat/Motion-sensor-dat/PIR-sensor-dat/PIR-sensor-dat.md
... ...
@@ -0,0 +1,78 @@
1
+
2
+# PIR-sensor-dat
3
+
4
+- legacy wiki page - https://w.electrodragon.com/w/PIR_sensor
5
+
6
+## Boards
7
+
8
+- [[SMO1088-dat]] - [[SMOS026-dat]] - [[SMO1060-dat]]
9
+
10
+## Working priciple
11
+
12
+![](2023-12-12-17-56-14.png)
13
+
14
+
15
+## Arduino Demo Code
16
+
17
+- http://playground.arduino.cc/Code/PIRsense
18
+
19
+Connecting PIR sensors to a microcontroller is really simple. The PIR acts as a digital output so all you need to do is listen for the pin to flip high (detected) or low (not detected).
20
+
21
+Its likely that you'll want reriggering, so be sure to put the jumper in the H position!
22
+
23
+Power the PIR with 5V and connect ground to ground. Then connect the output to a digital pin. In this example we'll use pin 2.
24
+See the following picture about how it connects:
25
+
26
+![](2023-12-12-17-58-19.png)
27
+
28
+Without a microcontroller, PIR sensor can also be a simple TTL signal control relay, to use on many application such as road light!
29
+
30
+Use following code to read the PIR value:
31
+
32
+ /*
33
+ * PIR sensor tester
34
+ */
35
+
36
+ int ledPin = 13; // choose the pin for the LED
37
+ int inputPin = 2; // choose the input pin (for PIR sensor)
38
+ int pirState = LOW; // we start, assuming no motion detected
39
+ int val = 0; // variable for reading the pin status
40
+
41
+ void setup() {
42
+ pinMode(ledPin, OUTPUT); // declare LED as output
43
+ pinMode(inputPin, INPUT); // declare sensor as input
44
+
45
+ Serial.begin(9600);
46
+ }
47
+
48
+ void loop(){
49
+ val = digitalRead(inputPin); // read input value
50
+ if (val == HIGH) { // check if the input is HIGH
51
+ digitalWrite(ledPin, HIGH); // turn LED ON
52
+ if (pirState == LOW) {
53
+ // we have just turned on
54
+ Serial.println("Motion detected!");
55
+ // We only want to print on the output change, not state
56
+ pirState = HIGH;
57
+ }
58
+ } else {
59
+ digitalWrite(ledPin, LOW); // turn LED OFF
60
+ if (pirState == HIGH){
61
+ // we have just turned of
62
+ Serial.println("Motion ended!");
63
+ // We only want to print on the output change, not state
64
+ pirState = LOW;
65
+ }
66
+ }
67
+ }
68
+
69
+
70
+## Note of the sensing
71
+* Sensor module is powered up after a minute, in this initialization time intervals during this module will output 0-3 times, a minute later enters the standby state.
72
+
73
+* Should try to avoid the lights and other sources of interference close direct module surface of the lens, in order to avoid the introduction of interference signal malfunction; environment should avoid the wind flow, the wind will cause interference on the sensor.
74
+
75
+* Sensor module with dual probe, the probe window is rectangular, dual (A B) in both ends of the longitudinal direction so when the human body from '''left to right or right to left''' through the infrared spectrum to reach dual time, distance difference, the greater the difference, the more sensitive the sensor,
76
+when the human body from the front to the probe or from top to bottom or from bottom to top on the direction traveled, double detects changes in the distance of less than infrared spectroscopy, no difference value the sensor insensitive or does not work;
77
+
78
+* '''The dual direction of sensor should be installed parallel as far as possible in inline with human movement.''' In order to increase the sensor angle range, the module using a circular lens also makes the probe surrounded induction, but the left and right sides still up and down in both directions sensing range, sensitivity, still need to try to install the above requirements.