So you now have the input set to a pull-up going low on button press and you are still getting interference !Hi, I implemented a 10k resistor for each ground wire on the switch buttons and it reduced the noise by 80% i'd say, I used to get random noise several times per seconds and now it's like one every 4-5 seconds , so we are on the right track.
I noticed that when I press and hold the switch button to ground it to 0, the signal is stable and no noise is received, the test shows a permanent 0, but the button unpressed with the pull up to high on 3.3v is where noise is received which is weird because, if there is noise shouldn't it happen on both?
Thats rather odd is the input is pulled up to 3.3V you would have to have a lot of interference to be able to over come the 3.3V pull-up.
How exactly have you got the switch wired to the pi gpio ? both a diagram of what you think you have and some pictures would be a good idea for you to post just so we can check that you have actually wired it correctly.
Statistics: Posted by pcmanbob — Tue Apr 09, 2024 9:44 am