AM312 PIR Sensor?
Posted: Fri Jul 19, 2024 12:36 am
Hi,
Does anyone have a code example of the am312 PIR sensor? I've found them to be very reliable in MicroPython, but I can't get them to work in an ESP-IDF/FreeRTOS app written in C. Keep getting random motion detection for no reason (even when the sensor is completely covered).
Since this PIR sensor is so popular, I'm hoping someone would have a working example out there.
For the curious, here is my (randomly triggering) code. Any suggestions would be welcome.
Thanks,
-T
Does anyone have a code example of the am312 PIR sensor? I've found them to be very reliable in MicroPython, but I can't get them to work in an ESP-IDF/FreeRTOS app written in C. Keep getting random motion detection for no reason (even when the sensor is completely covered).
Since this PIR sensor is so popular, I'm hoping someone would have a working example out there.
For the curious, here is my (randomly triggering) code. Any suggestions would be welcome.
Thanks,
-T