Hello and thank you very much for the replies!
All switch wires were disconnected from the pcb, only the ribbon cable from the raspberry to the pcb remained connected, it's a 20 cm ribbon cable, yet the false triggers still happened (tried also with 2cm ribbon cable).
I don't think it's RF induced issue because when running the raspberry pi and the pcb from a mains power disconnected UPS, the issue does not occur. I think those false triggers are coming through mains power cables... but I may be wrong...
I will try to get some and use opto-isolators to see if it helps.
Unfortunately I don't understand much of coding but I've asked chatgpt to provide a software solution by checking again after 5-10 milliseconds but all it's suggestions didn't worked, even the real button presses weren't detected anymore so I gave up on modifying the code.
If someone is willing to take a look at the mycodo code for edge detection I think it's located here: https://github.com/kizniche/Mycodo/blob ... pi_edge.py
There is also a debounce option in the software but unfortunately it doesn't work, or at least it's not made for this kind of issue I'm having..tried debouncing with values from 2 to 5 seconds but issue still persists.
In the meantime will check on opto-couplers and how to connect them to the raspberry pi/pcb.
All switch wires were disconnected from the pcb, only the ribbon cable from the raspberry to the pcb remained connected, it's a 20 cm ribbon cable, yet the false triggers still happened (tried also with 2cm ribbon cable).
I don't think it's RF induced issue because when running the raspberry pi and the pcb from a mains power disconnected UPS, the issue does not occur. I think those false triggers are coming through mains power cables... but I may be wrong...
I will try to get some and use opto-isolators to see if it helps.
Unfortunately I don't understand much of coding but I've asked chatgpt to provide a software solution by checking again after 5-10 milliseconds but all it's suggestions didn't worked, even the real button presses weren't detected anymore so I gave up on modifying the code.
If someone is willing to take a look at the mycodo code for edge detection I think it's located here: https://github.com/kizniche/Mycodo/blob ... pi_edge.py
There is also a debounce option in the software but unfortunately it doesn't work, or at least it's not made for this kind of issue I'm having..tried debouncing with values from 2 to 5 seconds but issue still persists.
In the meantime will check on opto-couplers and how to connect them to the raspberry pi/pcb.
Statistics: Posted by F_trigger — Mon Jun 10, 2024 10:50 pm