Page 1 of 1

Matrix Keypad Issues Disturbance

Posted: Fri May 17, 2024 2:46 pm
by Danielrob306
I am having issues setting up a matrix keypad using flowcode, I have wired up the columns and rows correctly and switched at the wiring multiple times but when I put my hand near my Arduino it starts reading random inputs and when I move it away it stops (this happens even when they keypad is not wired up, if I put my hand over the assigned ports) and also if I press the buttons on the keypad it doesn't do anything.
Here is my flowcode but I am sure that it is a problem caused by something else I have no idea how to fix.
Image
(the loop in this code was just put to test reading the keypad inputs)
I would appreciate it if someone knows what is happening and could help me, I have two Arduino boards and have tried both, same issue.

Re: Matrix Keypad Issues Disturbance

Posted: Fri May 17, 2024 3:07 pm
by chipfryer27
Hi
when I put my hand near my Arduino it starts reading random inputs
That sounds like the inputs are floating (unconnected, no weak pull-up / down) and when your hand goes near, the capacitive effect is causing the inputs to change.

I'd confirm your connections to start with.

Regards

Re: Matrix Keypad Issues Disturbance

Posted: Fri May 17, 2024 3:40 pm
by medelec35
Hello.
If you look at Generic Keypad on the Wiki, it shows you how to wire up the keypad.

Re: Matrix Keypad Issues Disturbance

Posted: Sun May 19, 2024 8:27 pm
by kiroshia
Thank you I how can I use pullup/pulldown when it is a keypad connection, where would I put them

Re: Matrix Keypad Issues Disturbance

Posted: Sun May 19, 2024 9:31 pm
by kersing
kiroshia wrote:
Sun May 19, 2024 8:27 pm
Thank you I how can I use pullup/pulldown when it is a keypad connection, where would I put them
Have you checked the wiki link? It shows where to position the required resistors.