Hello to all!
I would like to use an electronic lock system to have access to a device...There are many projects that use a password as input with a keyboard,compares that input with the preset password inside program and if the user input and stored password matches, access will be granted, or else will be denied...I would like to modify this operation as follows..A number of arithmetic codes ( 200-250) of 5-6 digits will be stored in a memory (maybe at EEPROM of PIC16F1939 or similar),instead of 1 preset code. So the user has to input several codes to access to device . If the user input one of the preset codes, he must have access for a preset time. After that time,access denied and the code will be cleared from memory , so to have access again must be use a new code of the rest stored codes...Is there an idea about a code for a PIC 16F1939 with FC7, or to modify a code of an lock system with pic, that uses 1 code in memory ? Many thanks in advance.
PASSWORD SECURITY SYSTEM WITH PIC16F1939
Moderator: Benj
-
- Posts: 115
- Joined: Wed Aug 03, 2016 10:45 pm
- Has thanked: 24 times
- Been thanked: 11 times
- Contact:
- 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: PASSWORD SECURITY SYSTEM WITH PIC16F1939
Hello,
Have you seen the lock example here.
https://www.matrixtsl.com/wikiv7/index. ... try_System
You could easily adapt this so that the code is stored in EE memory and allow for the key to be changed, say after entering the key you then enter a secret admin key which then lets you change the main key.
State machines would be a good way of doing this additional functionality.
https://www.matrixtsl.com/wikiv7/index. ... ateMachine
You could even start a timer interrupt running after the initial key has been entered which provides a time period where you can wait for the admin key without blocking using a delay.
Have you seen the lock example here.
https://www.matrixtsl.com/wikiv7/index. ... try_System
You could easily adapt this so that the code is stored in EE memory and allow for the key to be changed, say after entering the key you then enter a secret admin key which then lets you change the main key.
State machines would be a good way of doing this additional functionality.
https://www.matrixtsl.com/wikiv7/index. ... ateMachine
You could even start a timer interrupt running after the initial key has been entered which provides a time period where you can wait for the admin key without blocking using a delay.
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
-
- Posts: 115
- Joined: Wed Aug 03, 2016 10:45 pm
- Has thanked: 24 times
- Been thanked: 11 times
- Contact: