FlatLock in service

A smart entrance lock for an apartment building. Custom board, firmware and mobile app, from schematic to everyday operation.

Deska FlatLock: ESP32 s relé a šroubovými svorkami, napájená z USB

What it solves

The building's front door unlocks from a phone, with no fob and no key. It sounds like a detail until you are standing outside with your hands full. Then you just push the door open.

Aplikace FlatLock: velké tlačítko se stavem zámku, firmware a síla signálu

The app

One button, and under it the truth about the board: lock state, firmware version and signal strength. It updates itself, outside Google Play.

Access to a particular door is granted separately; installing the app alone lets nobody in.

I am interested in the app

Technical

ControllerESP32, Wi-Fi, powered over USB
Outputrelay with screw terminals, wired in parallel with the door release button
ControlMQTT for commands (response in tenths of a second), HTTPS as a fallback
Telemetryrelay state, uptime, signal strength – every 5 s
UpdatesOTA over HTTPS, with automatic rollback to the previous version
AppFlutter (Android), home screen widget, self-updating outside Google Play
BackendPHP on my own VPS, permission records, unlock history
ESP32 ESP-IDF MQTT OTA Flutter PHP Wi-Fi

Want something similar?

From the schematic through the board and firmware all the way to the app and the server.

Write me

davidpetrov@email.cz • or via contact form