Page 1 of 1

PASSWORD SECURITY SYSTEM WITH PIC16F1939

Posted: Tue Mar 27, 2018 11:40 pm
by SILVESTROS9
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.

Re: PASSWORD SECURITY SYSTEM WITH PIC16F1939

Posted: Wed Mar 28, 2018 10:23 am
by Benj
Hello,

Have you seen the lock example here.
https://www.flowcode.co.uk/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.flowcode.co.uk/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.

Re: PASSWORD SECURITY SYSTEM WITH PIC16F1939

Posted: Wed Mar 28, 2018 6:09 pm
by SILVESTROS9
Many thanks Ben for info.