Giter VIP home page Giter VIP logo

smart-domofon's Introduction

smart-domofon

ESP32/8266/12E implementation of Unifon digital domfon/intercom

hobby-desk

Is this project finished?

NO

When this project will be finished?

Witam, chyba nigdy

I think never. It is hobby project :)

Documentation

I'll share my learnings here.

General

  • L+ is analog, 0-11V
  • L- is GND
  • digital domofon - it is only the name. It is still analog in practice.

How to connect into ESP?

ESP works only on 3.3v. Intercom is working on 11v. Some resistors is needed. My setup:

---
title: Connection diagram
---
flowchart TB
    eGND[GND]
    iGND[L-]
    iLP[L+]
    eD1[D1]
    R1[Resistor 10kΩ]
    R2[Resistor 3.5KΩ]
    
    eGND<-->iGND
    R1<-->iLP
    R1<-->eD1
    eGND<-->R2
    R2<-->eD1
    
    subgraph Intercom
        iGND
        iLP
    end
    
    subgraph Wires
        R1
        R2
    end
    
    subgraph ESP8266
        eGND
        eD1
    end

IDLE

In IDLE mode, L+ is low state

Dialling

In dialling mode L+ starting be UP. And then we have 58ms to count all Edge falling. Count of edge falling is dialled number.

Example how it looks like when number 10 is called

dialling 10

Example how it looks like when number 8 is called

dialling 8

Here full view of dialling procedure. It takes 58ms

dialling procedure

Detecting signal type

After 58ms of dialling, the event type need to be detected.

  • ringing: 500uS interval
  • wrong gate pin: 280uS interval, 530uS cycle
  • correct gate pin: 218uS interval , 424uS cycle

Solution implemented: Wait after dialling for next pull-up, start counting pull-ups for 10ms.

  • 10 ±1 = calling
  • 5 ±1 = wrong gate ping
  • 23 ±1 - correct pin

Example of calling - interval 500uS, 1ms cycle

calling calling

Example of gate unlock - interval 220uS, 424uS cycle

gate unlock gate unlock

Example of gate unlock wrong pin - interval 280uS, cycle around 530uS

gate unlock - wrong pin gate unlock - wrong pin

Cancelling calling

Cancelling signal (call & press (C) Key) looks like 10ms UP state, and then failing to 50% of signal.

Example of calling & right after pressing cancel key (C)

calling - cannceling

@ToDo

signals

  • after pickup the intercom, detected signal how call is ended
  • after pickup the intercom, detected opening the gate signal.
  • detect how procedure of wrong pin & correct pin is ended.
  • detect how to pickup the call.

software

  • implement two way voice communication
  • find some ADC/DAC working with 10 voltage or any other solution

smart-domofon's People

Contributors

bordeux avatar

Watchers

 avatar  avatar

Forkers

czosnekltd

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.