Hi,
I was working on my next project and as always I tested the parts of the program before the whole thing. When I did a test of receiving a number from a keypad 4×4 and displaying it on an LCD I discovered a big error. The keypad was giving me different numbers (mostly around 1-10) even when no buttons were pressed (if I am correct it should be 255).
My test program contained: LCD start , and a continuous loop in which I had macros for reading from keypad as Byte and then displaying it on LCD (cursor 0,0) as a number. Simple program.
Has anyone an idea why this wold be happening?
Jan
PS: In simulation the whole thing worked.
keypad problem
Moderator: Benj
- JohnCrow
- Valued Contributor

- Posts: 1367
- Joined: Wed Sep 19, 2007 1:21 pm
- Location: Lincolnshire
- Has thanked: 364 times
- Been thanked: 716 times
Re: keypad problem
Are you able to post your flowchart if its not commercially sensitive, so we can have a look and try to help you
1 in 10 people understand binary, the other one doesn't !
Re: keypad problem
I didn't know how to insert it so I uploaded it on my web page under name test(.fcf or .c) (onely one)
you can find it here https://sites.google.com/site/janbozegl ... jekti/test
As I stayed the program is just a test program to test the keypad
Jan
you can find it here https://sites.google.com/site/janbozegl ... jekti/test
As I stayed the program is just a test program to test the keypad
Jan
- 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: keypad problem
Hi Jan,
Are you using pullup and pull down resistors on the physical hardware. You can look at our datasheet for our EB014 keypad to check if you have the hardware setup correctly. Random values even when your not pressing a key indicates floating inputs to me.
Are you using pullup and pull down resistors on the physical hardware. You can look at our datasheet for our EB014 keypad to check if you have the hardware setup correctly. Random values even when your not pressing a key indicates floating inputs to me.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel