Suspected noise on push buttons

For general Flowcode discussion that does not belong in the other sections.
Post Reply
WingNut
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

Post by WingNut »

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

medelec35
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

Post by medelec35 »

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.
Martin

WingNut
Posts: 265
Joined: Tue Jul 13, 2021 1:53 pm
Has thanked: 36 times
Been thanked: 29 times

Re: Suspected noise on push buttons

Post by WingNut »

Thanks martin. I'll go over it all today

WingNut
Posts: 265
Joined: Tue Jul 13, 2021 1:53 pm
Has thanked: 36 times
Been thanked: 29 times

Re: Suspected noise on push buttons

Post by WingNut »

Solved. Even more fundamental mistake. I'd soldered 2 of 3 resistors to the same pin :shock:
Eyesight is not what it used to be. Thanks again Martin

medelec35
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

Post by medelec35 »

You're welcome.
That's brilliant you have found the issue, well done.
Hardware mistakes are easily done by anyone.
Thanks for updating us.
Martin

Post Reply