ptvoinfo / zigbee-configurable-firmware

PTVO firmware for CC2530, CC2531, and CC2652 Zigbee chips
https://ptvo.info/zigbee-configurable-firmware-features/
MIT License
192 stars 22 forks source link

Filter input GPIO #278

Closed Arthuret closed 1 month ago

Arthuret commented 2 months ago

Hello, I use your firmware to read 230V wall, standard buttons, through a reduction and limiting circuit and an opto-coupler. The AC side has two leds, thus the DC side see a 100Hz (AC is 50Hz) signal. It works fine most of the time, and always on the target button, but sometimes, a parasite passes through (this is AC afterall), and the controller see a pulse on all buttons.

TLDR : Is there a way to add a filter to GPIO inputs ? As in take a sample every 1-3 ms, and register the input changed only after x samples are equals ?

ptvoinfo commented 2 months ago

Sorry, but firmware does not have such logic.