ede 1144 keypad help
turboEK2000
Posts: 18
I'v been working with the ede 1144 keypad encoder, and I'm new to programming so this should be simple for someone else, I got everything to work properly and have the encoder output decimal numbers to debug without a problem (long bulky code I know but it works for me). but now I want to have to push 4 buttons in a row to light an LED, obviously this is for a security system of some sort. here is the code I have right now, the part that says “security pass” is my problem, its set up for just 2 buttons 2 and 8, it looks like it should work but I don’t know, it doesn’t…
Post Edited (turboEK2000) : 4/26/2006 12:26:01 AM GMT
Post Edited (turboEK2000) : 4/26/2006 12:26:01 AM GMT
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
startover:
'above this would just be the SERIN and the code to correct hex to dec
IF·keypad = 2 THEN GOTO me1 ELSE GOTO startover
me1:
IF keypad = 8 THEN GOTO me ELSE GOTO startover
me:
HIGH 3
PAUSE 200
LOW 3
LOOP
Post Edited By Moderator (Chris Savage (Parallax)) : 4/29/2006 3:22:31 AM GMT
Please strike the expletive from your previous post, I think we try to keep it clean around here.
Post Edited (PJ Allen) : 4/29/2006 3:09:03 AM GMT
·· Expletive removed...That's twice in two days on that one...
Now, for the OP, I will get my EDE1144 out right now and churn something out for you tonight...It may benefit others and I meant to do that anyway.· Be patient.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
·· I have everything wired up and like 90% of the code done but I am fading so I will pick this up in the morning...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
·· I say down and quickly put together something that simulates a password entry system without infringing on any customer code I have written.· So this code isn't very neat or necessarily the beast/easiest way to do this but it gets the job done.· Anyone should feel free to optimize or change it as they see fit.· I basically took the EDE1144 subroutine code I posted which translates the keypresses and remaps them for a given keypad and added this little routine.
·· The routine works as follows.· Generally in an alarm system an event will trigger a prompt for your password.· This system waits for you to press a key on the keypad then prompts you (on the Parallax LCD) for your password.· You punch it in followed by pressing the "A" key (See my layout) and the password is compared to the one in the EEPROM (DATA statement).· If they match you get the appropriate message and if not, you are "unauthorized!".
·· In an alarm system you need to timeout if the person doesn't press a key or you cannot continue with your normal functions as you would be stuck wait for a keypress.· So this code has a very simple timeout function so that if no key is pressed within a certain time it "times out" and restarts.· Bear in mind you would need to handle this differently in a real alarm system but the code shows one way to implement such a timer.· I hope this helps the OP and anyone else who isn't sure how to read multiple keypresses from the EDE1144 or EDE1188 and do something with the data.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Post Edited By Moderator (Chris Savage (Parallax)) : 4/30/2006 3:37:20 AM GMT
oh my! is that what·I think it is!! ·· its a little towards the [noparse]:cough:[/noparse]center[noparse]:cough:[/noparse]
lol i'm sorry its too funny, im just playin
Post Edited (turboEK2000) : 5/1/2006 1:52:34 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
ps. thanks for the code
http://www.allelectronics.com/spec/EDE-702.pdf
Better get the keypad reader squared away first.