Git Product home page Git Product logo

homekit-doorman's Introduction

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

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

homekit-doorman's People

Contributors

zokl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

kzekih zzlflash

homekit-doorman's Issues

Great Project!

Hey Zokl, this is a great project. I've recently started playing with an ESP8266 and flashed your project to a test unit. Using a multimeter on the GPIOs everything appears to be working but I need to make some configuration changes such as modifying the default opening time from 5 to 3 seconds. I see this can be easily tweaked in the config.h file but I'm stuck with rebuilding the BIn file.

So far I've figured out that I can use the esptool.py to convert an .ELF file to .bin but I'm not sure the exact process for generating this first ELF file or which IDE I should use to do this. Can you provide any guidance or links to instructions?

P.s.
I owe you a beer/coffee. Let me know where I can donate.

PCB layout problem

Wrong WeMos D1 Mini PCB board layout used. ESP module is rotated by 180st and pins D1 and D3 are swapped.

Fermax iloft 4+n

Hi i ve seen your project and looks interesting.As i understood you are using a fermax VDS monitor. I have a fermax iloft 4+n(analogue). Is this project compatible or is it only for vds technology?

Code

What is the setup code?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.