Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Algorithm For Code Lock Using PIC16F886

Status
Not open for further replies.

Code Warrior

Full Member level 4
Joined
Dec 30, 2004
Messages
230
Helped
10
Reputation
20
Reaction score
2
Trophy points
1,298
Activity points
1,831
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.
 

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.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top