Hi,
I have recently taken on my first ESP32 and ESPHome project. I have an old security system installed in my house, where most of the hardware was removed before I purchased the property. What was left was 14 cables terminating in my utility cupboard. This includes 8 PIR sensors, 3 Door contact sensors, an entryway keypad, an internal audio alarm and an external audio and visual alarm.
The system was originally powered by a cable with 6 cores, color-coded as black, red, white, green, blue and yellow.
The PIR sensors are connected as follows:
+: Red
-: Black
C: White
NC: Green
T: Blue
T: Yellow
My thinking was, I install a 60w 12V5A power supply in the utility cupboard and use this to power all of the devices with 12V power. I then have a 5V regulator connected which powers the ESP32.
I have successfully installed ESPHome, and flashed my ESP32 with a YAML file that means it appears within Home Assistant.
I can get a motion sensor to show in Home Assistant, and to flick between Clear and Detected when I connect a wire to GPIO4 and switch it between 3.3v and GND. This meant the ESP32 is working as expected.
What I am having issues with it getting the PIR sensor to output a singnal from its C or NC connection that the ESP32 can recognise. The PIR is Normally Closed (which I verify using the continuity setting on my multimeter, it beeps when no motion is detected, and doesn’t when motion is detected).
The PIR is the Honeywell IS-215QT (chrome-extension://efaidnbmnnnibpcajpcglclefindmkaj/https://www.sourcesecurity.com/datasheets/honeywell-security-is-215tq/co-2173-ga/is2125tqdatasheet.pdf)
The label shows - and + as 12 VDC 10mA, the C and NC as 16VDC 90mA and the Tamper as 30 VDC 0.5A.
I have tried changing between INPUT_PULLUP and INPUT_PULLDOWN without success, and am assuming it is my lack of understanding of electronics meaning I am not clear on what connects to what. I have tried resistors between the C and GPIO 4 to take the Voltage down to 3.3V, but this hasn’t helped.
Please see my rudementary diagram below. I am actually now using an ESP32-C3-MINI, not a C6.
Any help or advice would be appreciated. I am completely new to electronics, so my knowledge is limited.