Hello Everyone,
I'm having some trouble with interrupts triggering unexpectedly when operating a relay, presumably due to some noise or bluntly put bad/poor circuit design due to lack of experience. Any help to resolve this is greatly appreciated. Detailed explanation below.
I'm trying to make my existing house alarm system 'smart' using an ESP32 based dev board. The idea is to read SET indication (know when the alarm is armed/disarmed) and monitor when the BELL (Siren) triggers off my alarm control panel and send the status of these inputs to my phone . I've configured the inputs as interrupts rather than "constantly read" signals for stand-by mode future proofing. Finally, I can remotely arm, disarm or stop an alarm though a Remote Key Switch (RKS) feature again through the phone.
The interrupt of the SET signal used to behave as expected, triggering only once, as expected both when going HIGH or LOW.
The BELL interrupt was a little more problematic as it was associated with a relay and triggered a few times for each change. I assumed that was a result of the relay contacts debouncing so I dealt with that problem through software via time-barring the interrupt. Okay so far.
The problem I'm having now though, is when I operate the RKS relay I see both the SET and BELL interrupts trigger several times without any real reason to do so. The BELL signal more so than the SET signal.
I attach a schematic of my current circuit for your review. Any obvious ideas on what would cause this behavior? I'm hoping it's something blaring obvious but open to any suggestions.
Let me know if you have any queries, comments or improvement suggestions on the rest of the circuit (as simple or complex as they may be).
Thanks in advance,
Christakis
I'm having some trouble with interrupts triggering unexpectedly when operating a relay, presumably due to some noise or bluntly put bad/poor circuit design due to lack of experience. Any help to resolve this is greatly appreciated. Detailed explanation below.
I'm trying to make my existing house alarm system 'smart' using an ESP32 based dev board. The idea is to read SET indication (know when the alarm is armed/disarmed) and monitor when the BELL (Siren) triggers off my alarm control panel and send the status of these inputs to my phone . I've configured the inputs as interrupts rather than "constantly read" signals for stand-by mode future proofing. Finally, I can remotely arm, disarm or stop an alarm though a Remote Key Switch (RKS) feature again through the phone.
The interrupt of the SET signal used to behave as expected, triggering only once, as expected both when going HIGH or LOW.
The BELL interrupt was a little more problematic as it was associated with a relay and triggered a few times for each change. I assumed that was a result of the relay contacts debouncing so I dealt with that problem through software via time-barring the interrupt. Okay so far.
The problem I'm having now though, is when I operate the RKS relay I see both the SET and BELL interrupts trigger several times without any real reason to do so. The BELL signal more so than the SET signal.
I attach a schematic of my current circuit for your review. Any obvious ideas on what would cause this behavior? I'm hoping it's something blaring obvious but open to any suggestions.
Let me know if you have any queries, comments or improvement suggestions on the rest of the circuit (as simple or complex as they may be).
Thanks in advance,
Christakis
Attachments
-
55.5 KB Views: 19