A door phone needs to connect the person outside with someone inside—even when the home router isn't cooperating. Alexey’s ESP8266 door phone on Hackaday.io started with a handset that doubled as a gateway to a home-automation network. After a year of use, that extra connection became the feature worth removing.
The project, created on January 17, 2019, combines voice communication, RFID key handling and a motorized door bolt. Its later, undated v1 write-up describes two substantial changes: separating the intercom from the home Wi-Fi network and reducing the work involved in moving audio samples.
The gateway made the router part of the conversation
In the original design, the indoor ESP8266 played two Wi-Fi roles at once. It created an access point for the outdoor unit while also joining the existing home network to reach an MQTT broker and Home Assistant. The door and handset exchanged bare UDP packets and simple one-byte commands. A main list of recognized keys lived on the handset, with a copy synchronized to the door unit.
That arrangement put home-automation access on the indoor side and let the handset act as a range extender. But Alexey reports that the handset-to-door connection would occasionally disappear for 10–30 minutes. With the home router powered down, the two units wouldn't connect at all because the ESP kept searching for the home network.
Alexey suspected reconnect behavior associated with events such as channel changes or lease renewal; the write-up doesn't establish the exact cause. The useful observation was more direct: disabling the home-network connection made the problem disappear.
Since adding and deleting keys was essentially the only reason to maintain that connection—and Alexey hadn't done either during the year—the v1 revision removed it. A simple web interface built with Vue.js and Bulma.css replaced MQTT-based key management. This wasn't a move away from wireless communication between the two units; it was a decision to stop making the intercom depend on a second network connection.
One transfer moves audio in both directions
The audio revision tackles another source of workload. Alexey replaced the MCP4725 DAC with an I2S-compatible PT8211/TM8211 16-bit DAC and connected the MCP3201 ADC's chip-select line to the new DAC's word-select line. That arrangement lets a hardware SPI transfer read an incoming sample while sending an outgoing one.
The interrupt handler now reads the previous transfer's result, starts the next transfer and returns immediately. Instead of keeping the processor occupied with software I2C for the old DAC, the design hands more of the sample movement to the hardware peripheral. Alexey reports that this also allowed the ESP8266 to run at its normal 80 MHz, contributing to stability.
Physical placement changed too. Moving the ADC and DAC into the speakerphone panel eliminated long analog connections; communication between the ESP and that panel now travels over SPI. Alexey designed and etched a small board for the converters and the MFRC522 reader connector. It's a useful pairing of firmware and wiring changes: spend less processor time moving samples, and carry fewer analog signals over long leads.
A handset, a bolt and a deliberately smaller scope
The original build grew from a simple unlock-button controller, with voice and RFID added later. A power door-lock actuator moves a basic bolt, while a reed switch and magnet detect the door's position. An old army-phone handset helped motivate the project; by v1, all indoor components were housed in a handset, with pickup and hangup detected by a reed switch and a magnet in its stand. The printed enclosures were designed in OpenSCAD.
The January 18, 2019 next-steps log proposed a second bell elsewhere in the house and possible computer or mobile notifications. Answering from a mobile device was an idea without an implementation approach yet—not a demonstrated feature. The linked project repository is the place to investigate the code and design files further.
The strongest lesson here is about dependencies rather than feature count. Remote key administration was convenient, but it wasn't worth letting a missing router interrupt a conversation at the door. For a similar build, a useful early test is to turn off the home network and check which local functions still work. Alexey's revision shows why that test belongs near the beginning, not after a year of use.
Source: ESP8266 door phone