5 X 5 matrix keypad

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

5 X 5 matrix keypad

Post by jgu1 »

Hi! :D

I have been lucky to get a couple 5 X 5 matrix keybad, very fine with arrows, and just for good projects. FC handle either 4 x 3 or 4 x4. Does anyone have an idea for how I can use it in FC. I'm missing the one row and coloum in FC
I can imagine I must use a Custom Component, I do not know how this is used and not C. Has anyone an idea and will help with perhaps an little example please. :D

Thank´s in advance.

Jorgen

User avatar
Enamul
Posts: 1772
Joined: Mon Mar 05, 2012 11:34 pm
Location: Nottingham, UK
Has thanked: 271 times
Been thanked: 814 times
Contact:

Re: 5 X 5 matrix keypad

Post by Enamul »

Yes, it can be done by editing in the keypad c code which shouldn't be very tough :)
Enamul
University of Nottingham
enamul4mm@gmail.com

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

Re: 5 X 5 matrix keypad

Post by jgu1 »

Hi Enamul! :D

No not for you. You are an expert in programming (also). But I am far from expert :( , but would really like to learn. Yes, I dare scarcely ask you again Enamul, you have many projects and not least for me, hi, hi. but how do I make something by this 5X5 keypad. If I had to do it, I need almost one extra port 5 input, then I think it´s possible. One input for Row and 4 for coulom and then I have to read the input binaer, but this would be a tricky program for that.

Best regard

Jorgen.

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: 5 X 5 matrix keypad

Post by LeighM »

Hi
I have attached an idea as a flowcode macro, not tested it, but it should give you a starting point.
Leigh
Attachments
GetKey.fcm
(11 KiB) Downloaded 420 times

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

Re: 5 X 5 matrix keypad

Post by jgu1 »

Hi Leigh!

Thank you. I will test it in the weekend, and you hear from me- :D

Best regard

Jorgen

User avatar
Enamul
Posts: 1772
Joined: Mon Mar 05, 2012 11:34 pm
Location: Nottingham, UK
Has thanked: 271 times
Been thanked: 814 times
Contact:

Re: 5 X 5 matrix keypad

Post by Enamul »

Hi Jorgan,

I have been through the macro Leigh posted..that's really interesting and compact. Please let us know what you are getting from keypad. It is also important to know the default status of column port pins; as if they are normally at high state program will condition will be different than if they normally at low state.
I am attaching here a list of Key value that the macro will return when you press any in any particular row and column.
Attachments
5_5.png
(9.3 KiB) Downloaded 3870 times
Enamul
University of Nottingham
enamul4mm@gmail.com

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

Re: 5 X 5 matrix keypad

Post by jgu1 »

Hi both!

Yes of course you will get responce. I hope tomorrow. :D
it's the least I can do when I get help from you.
Yes Leigh's program is very interesting.

Best regard
jorgen :roll:

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

Re: 5 X 5 matrix keypad

Post by jgu1 »

Hi Both! :D :D :D :D :D

Yaeh, yeah. Perfect.

Testet on a Pic16f876 with pulldownresistor on A0 to A3.

It was faster than I thought to make the presentation in real life.

I big fool. It was a 4x5 matrix. But it does´nt matter, I can save A4.

But it works perfectly. I have connected a display on port C, so I get the values ​​read out and it's something I can use. In this way it is possible to use all kinds of keyboards.
Good, simple and ingenious way. Even I understand the program :lol: Thank you both, for interesting and help again, really greafull.
:D

Best regard

Jorgen

Post Reply