Page 1 of 1

5 X 5 matrix keypad

Posted: Fri Nov 23, 2012 10:37 am
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

Re: 5 X 5 matrix keypad

Posted: Fri Nov 23, 2012 1:17 pm
by Enamul
Yes, it can be done by editing in the keypad c code which shouldn't be very tough :)

Re: 5 X 5 matrix keypad

Posted: Fri Nov 23, 2012 1:36 pm
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.

Re: 5 X 5 matrix keypad

Posted: Fri Nov 23, 2012 2:47 pm
by LeighM
Hi
I have attached an idea as a flowcode macro, not tested it, but it should give you a starting point.
Leigh

Re: 5 X 5 matrix keypad

Posted: Fri Nov 23, 2012 6:58 pm
by jgu1
Hi Leigh!

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

Best regard

Jorgen

Re: 5 X 5 matrix keypad

Posted: Sat Nov 24, 2012 1:17 pm
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.

Re: 5 X 5 matrix keypad

Posted: Sat Nov 24, 2012 2:58 pm
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:

Re: 5 X 5 matrix keypad

Posted: Sat Nov 24, 2012 3:51 pm
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