mirror of https://github.com/arendst/Tasmota.git
Created Wemos D1 Mini and HC-SR501 PIR Motion Sensor (markdown)
parent
38726b4817
commit
e60af8e94f
|
@ -0,0 +1,28 @@
|
||||||
|
## HC-SR501 PIR Motion Sensor (single pin)
|
||||||
|
|
||||||
|
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/pir-hc-sr501-motion-front.jpg" align=right width=200>
|
||||||
|
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/pir-hc-sr501-motion-back.jpg" align=right width=300>
|
||||||
|
|
||||||
|
PIR sensors allow you to sense motion, almost always used to detect whether a human has moved in or out of the sensors range.
|
||||||
|
See [PIR Motion Sensor](https://learn.adafruit.com/pir-passive-infrared-proximity-motion-sensor/overview) for more information.
|
||||||
|
|
||||||
|
### Connecting the PIR to a Wemos Mini D1
|
||||||
|
|
||||||
|
| Wemos |PIR |
|
||||||
|
|---|---|
|
||||||
|
|GND |GND |
|
||||||
|
|5V |POWER (VCC) |
|
||||||
|
|D5 (gpio14) |OUTPUT |
|
||||||
|
|
||||||
|
### Tasmota Configuration
|
||||||
|
In the Configuration -> Configure Module page, select the following:
|
||||||
|
1. **Module Type : 18 Generic**
|
||||||
|
2. **D5 GPIO14 Sensor : 09 Switch1**
|
||||||
|
3. **D6 GPIO12 Relay1 : 17 Relay1**
|
||||||
|
|
||||||
|
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/wemos_pir_hc-sr501_config_marked.png" width=350>
|
||||||
|
|
||||||
|
### Tasmota Main
|
||||||
|
After reboot of the device the displays the status of relay1 aka switch1.
|
||||||
|
|
||||||
|
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/wemos_pir_hc-sr501_main_marked.png" width=350>
|
Loading…
Reference in New Issue