+ Post New Thread
Results 1 to 2 of 2
  1. #1
    Full Member level 4
    Points: 2,433, Level: 11

    Join Date
    Dec 2004
    Posts
    230
    Helped
    10 / 10
    Points
    2,433
    Level
    11

    Algorithm For Code Lock Using PIC16F886

    Hello,

    I am designing PIC16F886 based code lock project. Please provide me algorithm for the same and some important C code as an example, example of how to implement certain things in C, like how store password in temporary variable and how to compare entered password with stored password etc. When ever I press a key buzzer should beep to indicate key-press. At present I want to implement these things after successful completion I will add three LED and some more functions.
    Following are the details.

    PIC16F886
    4X3 Matrix Keypad
    Buzzer
    Solenoid
    Master Key Switch (For resetting password)
    NO DISPLAY

    Four digit password and it should get stored in EEPROM of PIC16F886.
    Kindly do the needful.

    •   AltAdvertisement

        
       

  2. #2
    Advanced Member level 4
    Points: 6,490, Level: 19

    Join Date
    Feb 2011
    Posts
    1,170
    Helped
    284 / 284
    Points
    6,490
    Level
    19

    Re: Algorithm For Code Lock Using PIC16F886

    See this application note and this source code.
    It is for AVR but it won't exactly be difficult to translate the concept to PIC.

    Anyway, for extra security you shouldn't really be storing a password in EEPROM, you should store a hash. There is an MD5 algorithm coded for AVR if
    you google for it, maybe someone has done it for PIC too.



--[[ ]]--