Uses m2x16mm and nuts, #6 screws to mount. You will have to bend or desolder the pins on the PIR module and trim down the leads poking out of from the capacitors
At the beginning of this year, I went with zigbee to put motion sensors throughout my apartment. They're nice and convenient and relatively fast. I got a good deal on the coordinator and the $10 PIR sensors work great. I got into electronics and started playing with some ESP32's and motion sensors. My initial idea was to make just some motion sensor lights with mosfets, but I got the idea to hook the PIR sensor up to the ESP32 and connect that to HA through MQTT, it's a no brainer.
If you are looking for a budget, responsive PIR sensor solution, delve into the electronics and figure out how to attach a PIR sensor module to an ESP32. they're faster than zigbee for down to $5 a sensor, and you can add buttons, etc too. I can give you the quick and dirty:
BOM:
depending on how much you already know/ are capable of:
- Mini Breadboards (I straight up stuck them to my walls, practical learning ftw. in retrospect, I should have attached them to something and attached that to the wall, but oh well. landlord is already going to hate me)
- Male to Female dupont wires
or if you are comfortable soldering/crimping:
- 3 Wire Ribbon Cable
- Dupont crimps, solder (or however you will connect to the ESP32)
- 5-12v PSU
(I'm going through this guide using home assistant, but you can figure out how to hook Tasmota up to whatever ecosystem you are using)
You need an MQTT broker installed and configured on your Home Assistant
You can power the PIR sensors with the max voltage they can handle but you have to ground the ESP32 to that psu. don't go crazy with this info, I'm a noob. do your own research before doing something crazy.
The setup process goes like this:
- Flash ESP32 with Tasmota and do initial setup
- Connect 10k Resistor to gpio13 and GND to pull the voltage down when the signal is not active.
- Connect Sensor VCC and GND to ESP32 5v and GND, appropriately
- Switch the sensor mode to repeat mode (2 pins closer to center, on the side)
- Connect Sensor TTL to gpio13
- Configure Tasmota, under Modules, to use gpio13 as a Switch
- Goto Console: type
- so114 1 This unlinks the switches from relays in Tasmota (by default Tasmota turns on relay1 based on switch1, etc.)
- switchmode1 15 This makes it so switch1 only communicates through MQTT (research other options too)
- Configure MQTT in Tasmota to connect to HA and Configure the Name of the ESP32 running Tasmota under "Other Options"
- Restart Tasmota manually if your sensor isn't showing up and refresh the HA integrations
- Configure the switch as a motion sensor
- Dial in the Timing and sensitivity potentiometers to your liking
Here is the guide I followed: https://www.youtube.com/watch?v=_OUg7yUehVc
태그
모델 소스
