Matrix Keypad Issues Disturbance

For general Flowcode discussion that does not belong in the other sections.
Post Reply
Danielrob306
Posts: 1
http://meble-kuchenne.info.pl
Joined: Fri Sep 30, 2022 10:05 pm

Flowcode v9 Matrix Keypad Issues Disturbance

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

chipfryer27
Valued Contributor
Posts: 1609
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 357 times
Been thanked: 565 times

Re: Matrix Keypad Issues Disturbance

Post 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

medelec35
Matrix Staff
Posts: 1994
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 630 times
Been thanked: 666 times

Re: Matrix Keypad Issues Disturbance

Post by medelec35 »

Hello.
If you look at Generic Keypad on the Wiki, it shows you how to wire up the keypad.
Martin

kiroshia
Posts: 2
Joined: Sat Apr 27, 2024 7:23 pm

Re: Matrix Keypad Issues Disturbance

Post by kiroshia »

Thank you I how can I use pullup/pulldown when it is a keypad connection, where would I put them

kersing
Valued Contributor
Posts: 192
Joined: Wed Dec 02, 2020 7:28 pm
Has thanked: 78 times
Been thanked: 64 times

Re: Matrix Keypad Issues Disturbance

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

Post Reply