Please help with the keyboard 4x4¡¡¡¡¡

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
pibepru
Posts: 7
Joined: Fri Nov 20, 2009 10:40 am

Please help with the keyboard 4x4¡¡¡¡¡

Post by pibepru »

Hi need help with the keyboard 4x4 i tested the program in simulator works without problems, but when i am the plate got the numbers of the keyboard without press the buttons.Also i tested several examples and i do not work i have assembled the resistance as in the EB014 and makes me the same are no longer look to me you can have a hand????

Thank you.

Hola necesito ayuda con el teclado 4x4 he probado el programa en en simulador funciona sin problemas, pero cuando lo pongo en la placa salen los numeros del teclado sin que aprete los botones.Tambien he probado varios ejemplos y tampoco me funcionan he montado las resistencias como en el EB014 y me hace lo mismo ya no se que mirar ΒΏΒΏme podeis hechar una mano????

Gracias.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Please help with the keyboard 4x4¡¡¡¡¡

Post by Benj »

Hello

Do you have a multimeter or similar that you can use to confirm that the connections are correct and that the keypad is behaiving how you are expecting. You might also want to check that the connections are ok in the keypad component in Flowcode.

Other then this have you ran other programs on your hardware. Eg it could be something to do with your chip configuration settings or the clock speed settings in Flowcode. A simple 1 second LED flasher program is a great way to confirm if the chip is running at the correct frequency as expected.

medelec35
Matrix Staff
Posts: 9521
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times

Re: Please help with the keyboard 4x4¡¡¡¡¡

Post by medelec35 »

I had a similar problem. With my setup I had keypad in port A. One of the pins of port A was unable to go-to 5V. This made a character appear without any key pressed.

My advice would be to set your whole port to logic1 then measure the voltage to confirm all of port pins measure 5V.

I would assume since you can see numbers and not squares on your LCD would suggest your configuration and frequency are OK, but the one second LED test is always a good first choice!
Martin

pibepru
Posts: 7
Joined: Fri Nov 20, 2009 10:40 am

Re: Please help with the keyboard 4x4¡¡¡¡¡

Post by pibepru »

Thank you both for the interest I have the problem solved, the reason for the malfunction was a resistance to bad contact and therefore always went out 4 values randomly.
Thank you very much for the help and thanks to the folks at Matrix for giving us the chance to those who do not know complicated programming languages do it with Flowcode.
A hug to the whole forum.




Gracias a los dos por el interes tengo el problema solucionado, el motivo del mal funcionamiento era una resistencia, hacia mal contacto y por lo tanto siempre salian 4 valores aleatoriamente.
Muchas gracias por la ayuda y gracias a la gente de Matrix por darnos la oportunidad a los que no sabemos programar con lenguajes complicados hacerlo con FLOWCODE.
Un abrazo a todo el foro.

Post Reply