Microcontroller’s based Password Locker
Hello Everybody , the goal of this instructables is to learn how to do a simple locker for your room, or anything which need to be safe.
I’ve made it on a non-soldering card but there is the PCB if you want to make it !
Here is the list of differents components that we will need:
– A Microchip microcontroller 16F88 (but all mid-range of microchip will be good)
– Some wires
– 2 LEDs (a green for granted access and a red for denied access, i’m using a pcb with 3 leds the third if when the keypad wait)
– A keypad 3×4 (I’m using an old one but you will find it in every electronics shop)
– 3 Pull-up resistor 47Kohms (needed to make a logical “low”)
– 2 resistors for the Leds (221 ohm will be enough)
– A 9 V battery (with the connector) and a regulator MCP 1702 (from microchip)
– 4 capacitors 100µF 16V / 10µF 16V / 100nF / 100nF
– A way to program the 16f88 ( like http://www.instructables.com/id/All-pic-programmer/ or buy a pickit http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en010053 )
(The components like the 16F88 and the MCP 1702 can be obtained by asking samples from microchip)
OPTIONAL : A multimeter to test the circuit.
Other components if you want to had a sound when the code is wrong (like a buzzer)
So if you’re ready , Let’s Go !
Step 1: The regulator parts
We need to build the regulator part which will power the microcontroller !
So take the following components :
– MCP 1702 Regulator
– The 4 capacitors (100nF, 100nF , 10µF 16V , 100µF 16V)
– Some little wires
– The male connector
– The battery connector
And finally the non-soldering board (or something similar)
At first place the MCP on the board, like on the picture,
then put the 4 capacitors between the Vin and the Ground,the Vout and the ground following the schematics.
Step 2: The Keypad
Now that we have our power supply for the microcontroller we need to know how to put the keypad.
Keypad can be used with a decoder to know the number of the key pressed but I’ve choosed to do it by programmation, so it’s simple because it’s similar with a simple push button.
As you can see, the keypad is divided in columns (X1 X2 X3) and lines (Y1 Y2 Y3 Y4)
I know that every keypad are different so check the datasheet to see how the wire are soldered.
On this keypad the 7 wires at the bottom correspond to the 4 lines and the 3 column !
Even if yours isn’t the same, the principle is the same !
So now we will choose the different Input/output of the microcontroller :
My choice was made for the non-soldering board so I choosed I/0 wich are close,
Pin B7 <-> Y1
Pin B6 <-> Y2
Pin B5 <-> Y3
Pin B4 <-> Y4
Pin A0 <-> X1
Pin A7 <-> X2
Pin A6 <-> X3
Let’s check the picture of the microcontroller. (Picture 2)
So the board will be like that. (Picture 3)
If you didn’t understand how to do it just check this schematic (picture 4)
For more detail: Microcontroller’s based Password Locker
From Schematic to PCB Production, Just Need One Tool
Free Circuit Design Software: learn to use Editor quickly and easily
Cheapest PCB: 10pcs 2-layers 10cm×10cm only $8.21, 3-day build time, 100% E-test
Current Project / Post can also be found using:
- microchip pic password locking