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.

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.

The Basics
Component Description Price
Raspberry Pi You can buy a raspberry pi here $25
Power Cord Power your RPI from the mains with a 5V micro USB outlet $5
Wi-Fi Dongle Connect your RPI to a Wi-Fi network using here $10


The Components
Component Description Price
RFID Module The 125Khz module
is a cheap and small RFID reader with a detachable antenna
$13
LEDs 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


The Extras
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


Circuitry

Follow this circuit below to replicate the pi-lock python code:

circuit


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:

Next you can update the Raspberry Pi software:

Next you can move on to installing the python libraries individually, line by line:


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: