Skip to content

Wemos D1 Mini and AM312 PIR Motion Sensor

RTurala edited this page Nov 29, 2018 · 1 revision

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 for more information.

The AM312 is pretty much the same as HC-SR505 but works on 3.3v instead of 5v.

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

Tasmota Main

After reboot of the device the displays the status of relay1 aka switch1.

Home
Theo's Tasmota Tips
What's New

Getting Started

Upload tools

Usage

Devices - Additional Info

Home Automation Integration

Other Integrations

Further Topics

ESP32

Misc

Clone this wiki locally