Door lock: Difference between revisions

From NURDspace
Line 45: Line 45:
=== Pin out of reader to CAT5 ===
=== Pin out of reader to CAT5 ===


12v+ RED > ORANGE
12v+ RED > ORANGE |
12-(Ground) BLACK > BROWN/WHITE
12-(Ground) BLACK > BROWN/WHITE |
D0/RX/4AR+(wiegand) GREEN > GREEN
D0/RX/4AR+(wiegand) GREEN > GREEN |
D1/TX/4AR- WHITE > GREEN/WHITE
D1/TX/4AR- WHITE > GREEN/WHITE |
LED BLUE > BLUE
LED BLUE > BLUE|
BEEP YELLOW > BROWN
BEEP YELLOW > BROWN |
WG26/34 GRAY > BLUE>WHITE
WG26/34 GRAY > BLUE>WHITE |
Door Bell > PURPLE > ?
Door Bell > PURPLE > ? |
ORANGE/WHITE isn't used
ORANGE/WHITE isn't used



Revision as of 12:29, 16 June 2022

Door lock
Door lock.jpg
Participants
Skills Electronics
Status Active
Niche Electronics
Purpose Infra
Tool No
Location Front Door
Cost
Tool category Electronics

Door lock Property "Tool Image" (as page type) with input value "File:{{{Picture}}}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process. {{{Picture}}} {{#if:No | [[Tool Owner::{{{ProjectParticipants}}} | }} {{#if:No | [[Tool Cost::{{{Cost}}} | }}

Introduction

This page describes the hardware used to create the new door lock of the space. Basically there is a RFID-reader that can read blue keychain tokens and some types of RFID-cards (like OV-chipkaart and WUR-cards). The code of the token/card needs to be read once to match it to a user and then grants access to the front door. Zarya can do this for you when needed.

Hardware used

Pics

Doordaemon script

  • doordaemon
    • responds to offering a RFID tag (mifare and others) at the doorsensor

Now running in a docker container on docker.vm.nurd.space

Seeing the logs: docker logs -f doordeamon

Restarting: docker restart doordeamon


** runs on the nurdbot VM

      • reads an imap box
      • sends metrics to mqtt
      • Installed under /home/nurdbot/doordaemon
      • configured via /home/nurdbot/doordaemon/config.json
      • Management via /etc/init.d/doordaemon
      • Logging in /var/log/doordaemon.log

Restarting:

/etc/init.d/doordaemon restart


Next generation

Reader and WEMOS have been ordered, will make a test setup with this software: https://github.com/esprfid/esp-rfid when it's all in the reader supports MiFare and 125khz tags.

Running

  • Wemos D1 reachable via d00rl0ck.local (Needs update due to MQTT BROKER ISSUES)

Pin out of reader to CAT5

12v+ RED > ORANGE | 12-(Ground) BLACK > BROWN/WHITE | D0/RX/4AR+(wiegand) GREEN > GREEN | D1/TX/4AR- WHITE > GREEN/WHITE | LED BLUE > BLUE| BEEP YELLOW > BROWN | WG26/34 GRAY > BLUE>WHITE | Door Bell > PURPLE > ? | ORANGE/WHITE isn't used

ToDo

  • Upgrade ESP-RFID to 1.3.3 HOTFIX [1]
  • Test out the scanner
  • Hack that SBOARD?
  • Maybe rewrite ESP-RFID to python to run on space nanny