Skip to the content
2 layers28 × 80 mmDoorman, the printed circuit board in 3D

System of a doorbell and smart lock integration into Apple HomeKit

Size
28 × 80 mm
Copper layers
2
Thickness
1.6 mm
Parts
20
Nets
15
Pads
57
Tracks, vias
118, 0
Pours
1
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
10 Jan 2020
Updated
3 Feb 2021

Overview

Doorman is an open-source printed circuit board by zokl, from the zokl/homekit-doorman repository on GitHub, published under the MIT licence. It is a 2-layer board of 28 × 80 mm with 20 parts on 15 nets, routed with 118 tracks and 0 vias.

It is built around the BC337. Its parts include 5 resistors, 3 connectors, 2 ICs, 2 diodes and 1 transistor. It belongs with the ESP8266 boards of this library.

Main components

1

README

README.md

Doorman HomeKit System

System of a doorbell and smart lock integration into Apple HomeKit. The project platform is ESP8266 - WeMos D1 Mini. Target door phone system is Fermax.

The SW part of the project is based on https://github.com/maximkulkin/esp-homekit-demo and https://github.com/pfalcon/esp-open-sdk.

Fermax phone interconnection

Fermax phone signals:

  • RingDet - ringing detector
    • 3 - common (- on PCB)
    • 4 - call (+ on PCB)
  • Lock - door lock control
    • 1 - door opener and microphone supply (+ on PCB)
    • 3 - common (+ on PCB)

Initial configuration

The initial configuration could be modified in the file config.h.

HomeKit Access Parameters

  • HOMEKIT_PASSWORD - "111-00-111"
  • HOMEKIT_SETUP_ID - "1QJ9"

System Parameters

  • The GPIO pin that is connected to a relay - WeMos D1 Mini - Pin D1
  • The GPIO pin that is connected to a LED - WeMos D1 Mini - Pin D4 (Internal Blue LED)
  • The GPIO pin that is connected to a button - WeMos D1 Mini - Pin D3
    • Button for door open or factory reset
  • The GPIO pin that is connected to a door bell - WeMos D1 Mini - Pin D2
    • Door bell detection - iOS notify as moving
  • Timeout in seconds to open lock for - 5 seconds
  • Button timeout for log press - 10000 ms (factory reset)
    • Shorter press = open the door
  • Doorbell notify timeout - 3000 ms
    • After this timeout system disarm the door bell notification

PCB Design

PCB is designed for using in DIN rail box Z103J ABS V0 KRADEX with AC/DC power supply MEAN WELL DR-15-5. The system can be powered only by 5V DC!!!

Doorman v 1.1 - schematics

Doorman v 1.1 - PCB

Doorman v 1.1 - PCB render #1

Doorman v 1.1 - PCB render #1

Compilation and deployment

All binary files are in bin directory.

Flash process

text
esptool.py write_flash -fs 1MB -fm dout -ff 40m 0x0 rboot.bin 0x1000 blank_config.bin 0x2000 doorman.bin

Parts

20
QtyValueFootprintReferences
21N4148Diode_THT:D_DO-35_SOD27_P7.62mm_HorizontalD1, D2
21kResistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_HorizontalR4, R5
2380RResistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_HorizontalR2, R3
2MountingHole_PadMountingHole:MountingHole_2.2mm_M2_PadH1, H2
1680RResistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_HorizontalR1
1BC337Package_TO_SOT_THT:TO-92_Inline_WideQ1
1ButtonConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalButton
1GreenLED_THT:LED_D3.0mmRinging
1JumperConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical
1LockTerminalBlock_TE-Connectivity:TerminalBlock_TE_282834-2_1x02_P2.54mm_HorizontalJ2
1PC817Package_DIP:DIP-4_W7.62mmU2
1Power SupplyTerminalBlock_TE-Connectivity:TerminalBlock_TE_282834-2_1x02_P2.54mm_HorizontalJ3
1RedLED_THT:LED_D3.0mmUnlocking
1Ring DetectionTerminalBlock_TE-Connectivity:TerminalBlock_TE_282834-2_1x02_P2.54mm_HorizontalJ1
1S1A05Relay_THT:Relay_SPST_StandexMeder_SIL_Form1AK1
1WeMos_miniModule:WEMOS_D1_mini_lightU1

Similar boards

  • 2 layers50 × 25 mmMbus master, the printed circuit board in 3D

    Mbus master

    roarfred/AmsToMqttBridge

    Minimalistic system to read AMS/HAN data from electrical meter

    50 parts223
  • 2 layers118 × 103.5 mmEV Charger2, the printed circuit board in 3D

    EV Charger2

    fotherja/EV_Charger

    Arduino Uno Code for EV Charger

    62 parts167MIT
  • 2 layers28.7 × 81.3 mmLine sensor mini wide, the printed circuit board in 3D

    Line sensor mini wide

    ukmars/ukmarsbot

    A simple beginners multi purpose robot platform

    37 parts138MIT
  • 2 layersLM80C R6, the printed circuit board in 3D

    LM80C R6

    leomil72/LM80C

    A Z80-based homebrew computer withTMS9918, AY-3-8910, Z80 CTC, Z80 PIO, and Z80 SIO

    153 parts123GPL-3.0
  • 2 layers121 × 68 mmFreeds sanchez, the printed circuit board in 3D

    Freeds sanchez

    pablozg/freeds

    Derivador de energía solar excedente creado por Pablo Zerón, Diseño PCB por Amcalo, Tester original por Aeizoon, Wiki por Zoilo Mora

    42 parts108
  • 2 layers56.6 × 57.7 mmTashTwenty Tiny, the printed circuit board in 3D

    TashTwenty Tiny

    lampmerchant/tashtwenty

    An interface for the DCD protocol used by Apple's Hard Disk 20.

    31 parts35GPL-3.0
  • 2 layers52.8 × 149.3 mmPixelSlasher, the printed circuit board in 3D

    PixelSlasher

    CTXz/Video-Glitch-Array

    A collection of glitch art circuits dedicated to VGA signal manipulation

    22 parts30
  • 2 layers37.1 × 24.1 mmZX81-Composite, the printed circuit board in 3D

    ZX81-Composite

    redhawk668/ZX81-Composite

    ZX81 Composite video with Backporch

    16 parts25GPL-3.0

Questions

How big is the Doorman PCB?

It measures 28 × 80 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Doorman use?

20 parts, built around the BC337. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Doorman KiCad files?

From the zokl/homekit-doorman repository on GitHub, at the commit this page was made from: the board is hw/kicad_1v1/doorman.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Doorman design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).