Jose Pino's projects & tidbits
"Great stuff from someone with an inquisitive mind"

Security Keypad II

An improved version that can be used on security vaults, Doors with electric latches, Alarms, Safety devices and many other uses. It uses an HITACHI LCD (16x1 or 8x1) and a matrix keypad. The HEX code is available for 16F84A and 16F628. (5/27/2006)


Source: http://www.josepino.com/?security_keypad_2   Tags: microcontroller circuits diy

Finally I was able to control an LCD Hitachi display and a 12-key matrix keypad with only one 16F84 or 16F628. In a near future, I will be able to control a full QUERTY-type keyboard and a LCD display. Anyway, this project is an improved version of the Security Keypad/Electronic Code Lock that I made on November 2004.

The function of this Security keypad is similar to the previous version but it have more applications.
Taken from http://www.josepino.com

security keypad key pad matrix keypad array safety keypad with LCD Hitachi Display.

The biggest improvement on this projects was the compatibility with the Microchip PIC 16F84 and the 16F628, also the 16x1 or the 8x1 LCD Hitachi can be used. To reduce the cost of this proyect, is possible to remove the LCD and the circuit will work with the beep codes. Basically, the hardware is a mini-terminal controlled by a 16-pin PIC.

Here is the schematic:
security keypad key pad matrix keypad array safety keypad with LCD Hitachi Display.

As you can see, the 3x4 keypad uses only 4 I/O ports. To determine what key is pressed, I read the discharge time of each capacitor. This is a new technique that I developed since two years ago but finally I was able to test it successfully. The only inconvenience of this method is the reading from the keypad is affected by the voltage of the circuit. Anyway, the circuit needs exactly +5V because the LCD.

The switch labeled as "Toggle" and "Normal" defines the function of the security keypad. With the "Toggle" setting, the "Enable Signal" will toggle each time the correct password is entered. With the "Normal" setting, each time when the correct password is typed, the "Enable signal" will be ON for only four seconds.

  • Activate an electric or electronic device enable by the signal. Example: A car or any electric machine cannot be turned on until the correct password is provided.
  • To enable or disable a central alarm.
  • Keep a circuit ON or OFF that requieres authorization. (Maybe to keep children without TV until the homework is donde).

  • Security vault - Input the code and an electromagnet will be enable during 4 seconds allowing to open the door.
  • Security entry port - Only authorized employees can input the code enabling the electromagnetic door lock for 4 seconds.
  • Enable a circuit with one pulse to toggle it.

    Here is how it works:

    security keypad key pad matrix keypad array safety keypad with LCD Hitachi Display.

    To enter the code:

    Press "#" to enter the code.

    The display shows ">".

    Input the SIX DIGITS code. Use "*" to cancel it and start again.

    security keypad key pad matrix keypad array safety keypad with LCD Hitachi Display.

    If the code is correct, the display with show "Granted!" and the "Enable signal" will be on according the setting on pin 3 (a4).

    security keypad key pad matrix keypad array safety keypad with LCD Hitachi Display. If the code is incorrect, the display shows "Invalid" and doesn't activate the signal.

    To change the code:

    security keypad key pad matrix keypad array safety keypad with LCD Hitachi Display Changing the code. Press "*" for three or four seconds until the display shows "Chg Code".

    The display will show: ">". Enter the actual code.

    security keypad key pad matrix keypad array safety keypad with LCD Hitachi Display Changing the code. If the code entered is correct, the displays asks for the new code. ("New Code"). Enter the new six-digits code.

    The display will show: "Repeat!" Enter the new six-digit code again for verificacion purposes. If no display is used, it allows to verify the new code.

    The display will show: "Changed!" Now the security terminal is ready to accept the new code.

    This is a DEMO version. A commercial version may have more codes. This version will lost the code if it is powered off. The "factory code" is 000000. Everytime when this circuit is powered on, the password is reset to 000000.

    Download the HEX file HERE for the 16F84A. The configuration for the PIC is: PWRT ON, OSC RC.

    Click HERE for the 16F628. The configuration for the 16F628 is: PWRT ON, OSC INTRC/IO. Use the right-click and choose "Save as...".


    < Security Keypad.   Home   Sending e-mails with PHP>

    Share your comments and experience:
    Keep it short, Comments with bad words, spam and non-related will be deleted.

    09/30/09 - 09:33:32 somic1222 from Philippines wrote: Hey Jose, In this version may i ask what pin is output signal?
    Thanks for your reply.
    09/30/09 - 17:55:10 José Pino wrote: The pin 1 is the output signal.  You can connect a LED with a resistor to see how it works.
    10/26/09 - 19:32:33 rafael avila from colombia wrote: muy buenos lo felicito
    11/10/09 - 16:31:21 aliqasim from pak wrote: if i used any other lcd 16*2 then its not worked

    Name:   Location:
    Captcha:   <-- This is the Captcha
    Your Comments:

  • Bookmark or Bookmark and Share Suscribe to RSS Feeds

    10 most viewed pages:

    - How To Make a Speaker
    - Hi-fidelity Homemade Loudspeaker.
    - Tachometer/RPM II.
    - Homemade WiFi Lid Antenna.
    - Super Simple Sun Tracker.
    - Led Clock
    - USB LED Light.
    - How To Repair Sony PSP
    - Knowing Everything.
    - Matrix Led Display.

    Articles related:

    - Getting Started with PICs.
    - 'Almost No Parts' 12/24hrs LED Clock
    - Anthony Sotillet's POV Display
    - Computer to TV adapter.
    - Fluorescent Light.
    - Homemade COLDHEAT.
    - LCD Clock/Calendar
    - LED chaser using PIC 16F84A
    - Led Chaser II
    - Led Clock
    - Lie Detector
    - Matrix Led Display.
    - One Second Timebase.
    - PIC 16F505
    - Led Chaser.
    - My PIC Programmer
    - PIC Programmer sent by Fco. Arroyo.
    - Traffic Light.
    - Security Keypad.
    - Security Keypad II
    - Soundmeter
    - Strobe from Flash.
    - Tachometer/RPM.
    - Tachometer/RPM II.
    - Tachometer for Bikes (circuit).
    - Timebase generator.
    - Transistor LED Flasher
    - Water Level Control/Monitor.

    All categories:

    - about
    - advertisement
    - audio
    - automobile
    - bad_ones
    - best
    - circuits
    - computer
    - discover
    - diy
    - electronics
    - fail
    - food
    - from_readers
    - funny
    - furniture
    - hacks
    - homemade
    - how_it_works
    - howto
    - humor
    - interesting
    - lego
    - light
    - microcontroller
    - mysql
    - opinion
    - php
    - projects
    - readings
    - realmeal
    - religion
    - robots
    - science
    - scripts
    - trips
    - videos
    - websites
    - woodworking


    Mr. Counter says: 2184 views.

    Search Article

    Additional Links:

    - Mary's Creations.
    - Publicidad Gráfica.
    - Todito Yucatán
    - Lucina Castillo's Art
    - Conoce Amigos en Dalnet
    - Narciso González' Alebrijes

    Need to contact me?
    e-mail address
    Please get a good reason before sending me an e-mail.

    IE, Firefox, SeaMonkey & Opera tested OK, Some features may not work with Google Chrome. © 2006 - 2009 José Pino - JPC-PHP V5.0
    If any information, data, picture or design infringes a copyright material, please send me an e-mail asking to remove it along with the supporting data.