GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - c-base/raspberrylock: Door-lock software for the Raspberry Pi using GPIOs

BranchesTags
Open more actions menu

Latest commit

 

History

39 Commits
39 Commits

Folders and files

NameName
Last commit message
Last commit date
schematics
schematics
 
 
scripts
scripts
 
 
themes
themes
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
bootup.wav
bootup.wav
 
 
config.py.sample
config.py.sample
 
 
docopt.py
docopt.py
 
 
ldap_interface.py
ldap_interface.py
 
 
raspberrylock.service
raspberrylock.service
 
 
requirements.txt
requirements.txt
 
 
run.sh
run.sh
 
 
schloss.py
schloss.py
 
 
schloss_tests.py
schloss_tests.py
 
 

Repository files navigation

Raspberry Lock

The raspberry lock is a small application that runs on a Raspberry Pi with a PiFace shield. It reads a 4-digit user-ID and a 4-6 digit passcode from a 4x4 matrix keypad. It then sends this data to a LDAP server to check if the entered user-id and passcode combination is correct. If the server answers with "correct", a door is opened by switching on an electric strike with a relais.

Installation

Install the piface module with the Raspberry Pi configuration tool:

sudo raspi-config (then follow the menu to Advanced -> SPI)

sudo apt-get install python3.2 python3.2-dev build-essential
sudo apt-get install libldap-2.4-2
sudo ln -s /usr/lib/arm-linux-gnueabihf/libldap_r-2.4.so.2 /usr/lib/arm-linux-gnueabihf/libldap.so
sudo ldconfig
sudo apt-get install python3-setuptools
sudo apt-get install python3-pifacedigitalios

git clone http://git.jaseg.net/python-lmap.git
cd python-lmap
python3 setup.py install

Now clone this repository and change into its subdirectory.

Copy config.py.sample to config.py and change the password/binddn/pin field/group membership test for your application.

How To Run It

python3 schloss.py

Usage

Press A, then enter your 4 digit UID code, then press A again. Now enter your 4-6 digit PIN code and hit A. If the code was correct, the door will open.

Hardware-Setup

+-----------------------------------------------------------------------+
|+---------------------------------------------------------------------+|
||+-------------------------------------------------------------------+||
|||+-----------------------------------------------------------------+|||
||||  +------+.................                                      ||||
||||  |      |                :                   +---------------+  ||||
|||+---+0    |  RASPBERRY PI  :                   |    KEYPAD     |  ||||
||+----+1    +--------+       :                   |               |  ||||
|+-----+2             |       :                   | 1   2   3   F |  ||||
+------+3             |       :                   | 4   5   6   E |  ||||
      |+4             +-------+                   | 7   8   9   D |  ||||
      |+5                     |                   | A   0   B   C |  ||||
      |+6                     ^                   |               |  ||||
      |+7                     |                   |               |  ||||
      |+0V                    +                   +---++++-++++---+  ||||
      |                       |    to LEDs            |||| ||||      ||||
      |                       |      ^ ^              |||| |||+------+|||
      |        PIFACE         |   Red| |Green         |||| ||+--------+||
      |                       |      | |              |||| |+----------+|
      |                       |      | |              |||| +------------+
      | ++                  7+-------+ |              ||||
      | ||                  6+---------+              ||||
      | ||                  5+------------------------+|||
      | ||                  4+-------------------------+||
      | ||  +----+ +----+   3+--------------------------+|
      | ||  |    | |    |   2+---------------------------+
      | ||  | R0 | | R1 |   1 |
      | ||  |    | |    |   0 |
      | ++  +----+ +----+ GND |
      |   .. +++    +++  +++ :|
      +-------------||--------+	        +-------------+
                    |+------------------| DOOR OPENER |-----+ +7.5V DC
                    |		            +-------------+
                    +---------------------------------------+ - (GND)

Additional Links

  • PiFace documentation: http://www.farnell.com/datasheets/1684425.pdf
  • The keypad that we used looks somethink like this: http://uk.farnell.com/eao/eco-16250-06/keypad-4x4-matrix-0-02a-24v-plastic/dp/1130806

About

Door-lock software for the Raspberry Pi using GPIOs

Resources

Readme
BSD-3-Clause license
Activity
Custom properties

Stars

20 stars

Watchers

30 watching

Forks

4 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.