Welcome to Joe's PIC Project Page
Microcontroller-based Keyless Door Lock Application
Introduction
The intention of this page is to publish information learned while working with the PIC16C84 microcontroller for a college projects class. This page will also try to provide the reader with a broad overview of the project, and at the same time, provide links to more detailed material.
The project is a keyless door lock system for common household door locks, but the concept is flexible enough to allow for expansion to many related applications.
Hardware
The hardware requirements of this project were to include the following:
- Microchip Technologies PIC16C84 EEPROM microcontroller
- General purpose R/C hobby motor servo to actuate door lock
- Standard household deadbolt lock mechanism
- 10-digit keypad for user input
Software
The general software requirements for the project were then defined as:
- Collect user input in the form of a 4 digit access code
- Validate the access code internally and return valid/invalid entry status
- Actuate a servo to unlock door if valid user entry
- Issue error tone if invalid user entry
- After valid servo actuation, monitor door for closure, actuate servo to relock door when closed
- Monitor status of an exit button, actuate servo to unlock when pressed, automatically relock when door closure is detected
Keyless Door Lock Program Source - Click here to view source code (20k)
Development Tools
The resulting code was assembled using Microchip's MPASM assembler. The code used 536 bytes of the 1024 bytes of available program memory. Microchip's MPSIM software simulator was used to test approximately 90% of the code offline before downloading to the PIC16C84. The code was programmed into the PIC16C84 using ITU Technologies' PIC-1a programmer board. The PIC-1a comes complete with the required utilities for programming.
Microchip Web Site - PIC16C84 microcontroller information
ITU Web Site - PIC microcontroller programming resources
Click here to send e-mail to Joe Daniel
*graphics courtesy of www.webdiner.com