All projects
PRJ-03 · Embedded Systems · Hardware · PCB Design
Professional ProjectAccess Control / Embedded ElectronicsCompleted

Video Door Intercom over 2-Wire Bus

Custom PCB & Firmware for a Residential Video Intercom Device

Complete embedded hardware and firmware development for a real intercom/access-control device communicating over an existing two-wire building bus.

Custom PCBEmbedded C/C++2-Wire BusPulse DecodingEEPROMState MachineVideo IntercomDoor Release
Conceptual diagram: entrance panel connected over a 2-wire bus to the intercom controller

01 Project Overview

Designed and developed a custom residential video door intercom device that communicates with the building entrance panel over a proprietary two-wire bus. I was responsible for the PCB hardware and embedded firmware, including low-level bus communication, pulse/frame decoding, command transmission, call handling, door-release control, monitor/video activation and overall device state management.

The system was designed to interoperate with the existing entrance-panel infrastructure while providing core indoor intercom functionality through a custom embedded implementation.

02 Core Device Functions

Bus frame reception

Receives communication frames from the entrance panel.

Incoming call detection

Detects calls addressed to this unit.

Video / monitor mode

Activates the monitor / video session.

Door release

Transmits the door-release command over the bus.

User buttons

Processes local user button presses.

Ringtone / melody

Plays a local melody during incoming calls.

Addressing

Stores the apartment / device address.

State management

Manages the firmware operating states.

Response frames

Sends response / control frames back to the bus.

03 My Contribution

I designed the PCB and developed the complete embedded firmware, including the two-wire communication protocol implementation, interrupt-driven pulse decoding, command transmission, call-state logic, EEPROM configuration, user controls, audio/video control and door-release functionality.

Hardware

  • System architecture
  • PCB design
  • Bus-interface integration
  • Device I/O integration
  • User-button integration
  • Output/control integration
  • Hardware bring-up
  • Testing and debugging

Firmware

  • 2-wire bus communication
  • Interrupt-driven pulse decoding
  • Frame parsing
  • Command transmission
  • Checksum handling
  • Call-state management
  • EEPROM address storage
  • Monitor / talk / unlock functions
  • Melody / ringtone handling
  • State-machine design
  • Testing and debugging

04 System Architecture

Building Entrance Panel
║ proprietary 2-wire bus ║
Bus Interface / Pulse Decoder
Embedded Controller
Call Logic
Talk / Audio
Door Unlock
EEPROM Address
Video / Monitor Control
Indoor Intercom Unit
Conceptual system architecture

05 2-Wire Bus Communication

The device communicates with the building entrance panel over a two-wire bus. The firmware handles low-level communication over the two-wire bus, receiving pulse-based data from the entrance panel, decoding valid communication frames and generating response/control frames when required.

06 Low-Level Protocol Handling

  • Interrupt-driven signal detection
  • Pulse timing / pulse acquisition
  • Frame decoding
  • Command interpretation
  • Outgoing frame generation
  • Checksum handling
  • Address verification
Incoming Bus Pulses
Interrupt Edge Timing
Pulse / Bit Interpretation
Frame Decode
Address / Command Check
State Machine
Action / Response

07 Firmware State Machine

The firmware uses a state-based architecture to manage standby, incoming call handling, self-monitoring, programming and restricted/controlled operation states.

Standby
Incoming Call
User Action
Answer / Talk
Open Door
Activate Monitor
Timeout → Standby
Separate states
Monitor / Self Call
Active Session
Restricted State
Programming → EEPROM
Conceptual state names

08 Incoming Call Handling

The device receives incoming call requests from the entrance panel and transitions into a call-handling state. The firmware identifies valid incoming communication, triggers the appropriate user indication (including melody/ringtone) and enables the relevant user actions.

Entrance Panel Call
Bus Frame Received
Frame Validation
Address Match
Incoming Call State
Ringtone / User Notification
User Response

09 Door Release Control

One of the core functions of the device is to send a control command back to the entrance system in order to unlock / release the building door. The firmware generates and transmits the required command frame over the two-wire bus when the user requests door release.

User Unlock Command
Command Generation
Checksum / Frame Build
2-Wire Bus Transmission
Entrance Panel / Door Control

10 Video / Monitor Activation

The device supports opening a monitor / video session and controlling the relevant intercom session behaviour. The firmware supports monitor/video activation and related session-control behaviour as part of the indoor intercom operation.

11 EEPROM Configuration & Addressing

The device stores its configured address in EEPROM so that it can identify bus frames addressed to it and retain its configuration across power cycles.

Programming Mode
Address Entry / Assignment
EEPROM Storage
Power Cycle Persistence
Address Match During Runtime

12 User Controls

The device handles user interaction through local controls:

  • Answer / talk
  • Monitor activation
  • Unlock / door release
  • Function / programming input where relevant

13 Local Indication & Melody Handling

Incoming calls trigger local user notification, including melody / ringtone playback handled by the embedded firmware.

14 Firmware Architecture

Incoming Bus Pulses
Interrupt Handler
Frame Decoder
Protocol Logic
State Machine
Call Handling
Door Release
Monitor / Video
User Inputs
EEPROM Config
Supporting modules
Checksum HandlingTimeoutsMelody / NotificationDiagnosticsConfiguration Storage

15 Testing & Debugging

  • Two-wire bus communication verification
  • Pulse/frame reception testing
  • Outgoing frame transmission testing
  • Call handling validation
  • Address / EEPROM programming tests
  • Door-release command validation
  • Monitor/video activation testing
  • User-button logic tests
  • Timeout / state-transition testing
  • Hardware/firmware integration debugging
Bus Communication
Frame Decode
State Action
Output / User Response
Validation

16 Engineering Challenges

  • ▸Interfacing with an existing proprietary two-wire bus system
  • ▸Implementing reliable low-level pulse/frame decoding
  • ▸Generating outgoing control frames correctly
  • ▸Managing state transitions for call handling and user actions
  • ▸Persisting address/configuration data in EEPROM
  • ▸Synchronizing communication, UI logic and control actions
  • ▸Integrating custom hardware with protocol-level firmware
  • ▸Ensuring reliable interaction with existing building intercom infrastructure

17 Technology Stack

Custom PCBEmbedded C/C++2-Wire BusSerial CommunicationPulse DecodingInterruptsState MachineEEPROMChecksumsVideo IntercomAccess ControlDoor ReleaseFirmware DevelopmentHardware Debugging