Suspected noise on push buttons
-
- Posts: 265
- http://meble-kuchenne.info.pl
- Joined: Tue Jul 13, 2021 1:53 pm
- Has thanked: 36 times
- Been thanked: 29 times
Suspected noise on push buttons
Can anyone help with suspected noise on push buttons. I'm using 3 buttons for a menu but one of them and occasionally a second don't respond as expected. When I put my hand near the wires of one of the buttons the lcd flickers and the menu reacts as if i have exited the menu. Almost as if a button has been pressed. I'm using active high and a 1k and 10k resistor as per a diagram from older flowcode forums. Should I use a cap from each of the pins of the pic to ground and what value would it be? Its difficult to tell if the code is working properly as it appears like a reset from the particular menu item
-
- Matrix Staff
- Posts: 1917
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 621 times
- Been thanked: 645 times
Re: Suspected noise on push buttons
It sounds like you could have a poor joint between the microcontroller input, 10K resistor and GND.
You could try removing the power and measuring the resistance between the VSS of the Microcontroller and the input pin.
Make sure it's 10K.
If it is then check that the input pin matches the corresponding input pin of your flowchart.
You could just have the correct pin floating by mistake?
If it matches then try reducing the 10K to 5K6 or even 4K7.
You could try removing the power and measuring the resistance between the VSS of the Microcontroller and the input pin.
Make sure it's 10K.
If it is then check that the input pin matches the corresponding input pin of your flowchart.
You could just have the correct pin floating by mistake?
If it matches then try reducing the 10K to 5K6 or even 4K7.
Martin
-
- Matrix Staff
- Posts: 1917
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 621 times
- Been thanked: 645 times
Re: Suspected noise on push buttons
You're welcome.
That's brilliant you have found the issue, well done.
Hardware mistakes are easily done by anyone.
Thanks for updating us.
That's brilliant you have found the issue, well done.
Hardware mistakes are easily done by anyone.
Thanks for updating us.
Martin