4x4 keypad connected EDE1144 keypad encoder
pasoson
Posts: 3
I am a newbie in the world of programming so please excuse my ignorance. I am currently working on a basic(simple) home security system using a bs2 microcontroller, serial lcd , three sensors(reed switch, impact sensor, PIR sensor) and a 4x4 keypad connected to a ede1144 keypad encoder. I am lost trying to write a subroutine that would allow a first time user to enter the desired 4 digit security pin ,store it to memory and call the code chosen by the user when attempting to disarm the system.
Step by step list of what I am attempting to do:
1) Display welcome message
2) Ask the user to enter their desired 4 digit pin
3) Store it temporarily somewhere
4) Ask the user to re-enter their desired pin
5) If they match then store it to memory
Because I am using a keypad (parallax item number 27899) connected to the EDE1144 encoder I am able to enter a four digit for the user code but getting the corresponding value on the keypad itself is eluding me. Could anyone provide me some constructive feedback.
Step by step list of what I am attempting to do:
1) Display welcome message
2) Ask the user to enter their desired 4 digit pin
3) Store it temporarily somewhere
4) Ask the user to re-enter their desired pin
5) If they match then store it to memory
Because I am using a keypad (parallax item number 27899) connected to the EDE1144 encoder I am able to enter a four digit for the user code but getting the corresponding value on the keypad itself is eluding me. Could anyone provide me some constructive feedback.
Comments
You might need to modify your program so it accepts the value from the encoder and then changes it to the correct value, using lookup and lookdown.
How is the EDE 1144 encoder connect to the Basic Stamp? Serial or Parallel?