Overview
Purchase the Parts
The Pi-Lock parts can be purchased from the web, however for this specific project it is best to use the equipment purchased from said websites.
Assemble the Parts together
The Pi-Lock parts can be purchased from the web, however for this specific project it is best to use the equipment purchased from said websites.
Install
Installing the software is as easy as typing a few shell lines into the terminal. There are two parts to this step:
- Installing the python library
- Downloading and Installing and the python code from Github
Run the Code
Everything is setup! Run the program.
Purchase the Parts
Most parts can be purchased from anywhere on the web. However, if you wish to use the PCB I previously designed, it is important to use the components linked to below.
Component | Description | Price |
---|---|---|
RFID Module | The 125Khz module is a cheap and small RFID reader with a detachable antenna |
$13 |
LEDs | A Blue, Red and Green LED light is to indicate idleness, access granted or denied |
$2 |
PIN Keypad | A simple 1×4 Keypad | $5 |
Door Strike | A 5V Door Strike to open and close the door | $10 |
Relay | A 5V Door Strike to open and close the door | $10 |
Component | Description | Price |
---|---|---|
Custom PCB Board | Pi-Lock has its own custom printed PCB board. The files required to make your own board can be found here here. The cost of each board, if printed in mass can be as low as $10, or as high as $30. | $10 – $30 |
Speaker | If you want an alarm to ring, you can purchase a small speaker | $5 |
Assembly
Circuitry
Follow this circuit below to replicate the pi-lock python code:
Install the Code
Python Libraries
Installing python libraries is very simple, and doesn’t even require complicated shell scripting. A Little basic command-line scripting experience can’t hurt though.
If you haven’t already installed Python SetupTools then I highly recommend you do that first:
1 |
sudo apt-get install python-setuptools |
Next you can update the Raspberry Pi software:
1 |
sudo apt-get update |
Next you can move on to installing the python libraries individually, line by line:
1 2 3 4 5 6 7 |
sudo apt-get install git-core sudo apt-get install python-dev sudo apt-get install python-pip sudo easy_install -U pyserial sudo easy_install -U RPIO sudo easy_install -U cherrypy sudo easy_install psutil |
Github Code
By installing the code from Github, you can easily run the RFID reading routine, and have your Pi-Lock up and running in no time. The files on Github can be found at the following link: github.com/pi-lock/pi
In order to install this without going through a web-browser, simple type into your shell command-line:
1 |
git clone https://github.com/pi-lock/pi |