mirror of https://github.com/arendst/Tasmota.git
Created Wemos D1 Mini and AM312 PIR Motion Sensor (markdown)
parent
9ef7b09016
commit
b557e8e2a9
|
@ -0,0 +1,29 @@
|
|||
## AM312 PIR Motion Sensor (single pin)
|
||||
|
||||
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.
|
||||
|
||||
The [AM312](https://www.aliexpress.com/item/GREATZT-Mini-IR-Pyroelectric-Infrared-PIR-Motion-Human-Sensor-Automatic-Detector-Module-AM312-Sensor-DC-2/32924338791.html?spm=2114.search0104.3.8.f706107b2XhiH4&ws_ab_test=searchweb0_0,searchweb201602_1_10065_5729911_10068_319_317_10696_5728811_453_10084_454_10083_10618_10304_10307_10820_10301_10821_537_536_5730811_10843_5733211_328_5733311_10059_10884_5733411_10887_5730011_100031_5731011_321_322_10103_5729011_5733611_5733111_5733511,searchweb201603_55,ppcSwitch_0&algo_expid=1dc18730-ea08-4989-9e63-b26fd56e2ee2-1&algo_pvid=1dc18730-ea08-4989-9e63-b26fd56e2ee2) is pretty much the same as HC-SR501 but works on 3.3v instead of 5v.
|
||||
|
||||
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/pir-am312-motion-front.png" width=300>
|
||||
|
||||
### Connecting the PIR to a Wemos Mini D1
|
||||
|
||||
| Wemos |PIR |
|
||||
|---|---|
|
||||
|GND |GND |
|
||||
|3.3V |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