All projects
PRJ-01 · Embedded Systems · Hardware · IoT · System Architecture

Smart Hotel Room Control & Access Platform

Embedded Access Control, Room Automation and Occupancy-Based Energy Management

A complete embedded hotel room control platform integrating access control, room status, lighting, HVAC and occupancy sensing into a locally autonomous system with centralized remote monitoring and administration.

ESP32Embedded C++Custom PCBRFID / NFCCapacitive TouchEthernetWi-FiMQTTPoEOTAmmWave RadarIoTMariaDBREST API
Custom access-control enclosure and front-panel concept
Custom access-control enclosure and front-panel concept
01 Project Overview

The system is designed as a complete hotel room technology platform — a connected room-control ecosystem combining access control, guest service status, lighting, HVAC, occupancy sensing, local hotel infrastructure and centralized remote monitoring.

The platform is being developed as a modular smart hotel room ecosystem. The Access Control Device is currently the completed and functional embedded product, while the DND / Make Up Room panel, lighting controller, touch thermostat and mmWave occupancy sensor are in the design and development phase.

Core design principles
Local autonomy
Hotel systems remain operational without Internet.
Central supervision
Central infrastructure provides monitoring and administration.
Local source of truth
Live device state is controlled by the hotel node.
Secure remote control
Remote commands are routed through the local backend.
Scalability
Architecture supports multiple hotels.
Energy optimization
Occupancy information enables intelligent HVAC and lighting control.
02 The Room Ecosystem

Five devices forming one coordinated room-control ecosystem, all connected to the local hotel node.

DEV-01
Access Control
RFID/NFC · Keypad · Door Control
  • · RFID / NFC credential reading
  • · PIN keypad
  • · Door strike / relay control
  • · Local credential handling
  • · Device identity & secure provisioning
Functional prototype
DEV-02
DND / Make Up Room
Guest Service Touch Panel
  • · Guest-controlled Do Not Disturb
  • · Make Up Room request
  • · Status synchronized with local hotel system
In design
DEV-03
Lighting Control
Room Lighting Touch Panel
  • · Lighting scenes
  • · Local room lighting control
  • · Occupancy-driven automated commands
In design
DEV-04
Touch Thermostat
HVAC Control
  • · Temperature setpoint
  • · Fan control
  • · Occupancy-based adjustment
In design
DEV-05
mmWave Radar
Presence / Occupancy Detection
  • · Guest presence detection
  • · Publishes occupancy to local node
  • · Enables energy-saving automation
In design

// Devices marked "In design": architecture defined, hardware design in progress. Not yet completed or deployed.

03 System Architecture

A hybrid local + central model. Each hotel runs its own operationally authoritative node; all room devices connect to it only. The central server is supervisory and administrative — not the live control endpoint for devices.

Data flow
Devices→Local MQTT Broker→Local Backend→Local Database→Sync Service→Central Backend→Central Database

Operational data is stored locally first and synchronized to the central server in the background. If Internet connectivity is lost, local operation continues and synchronization resumes later.

Remote command flow
Central UI→Central Backend→Local Hotel Backend→Local MQTT Broker→Room Device
Room Device→Local Hotel Backend→Central Backend→Central UI

Remote commands are routed through the local hotel node, never directly to devices.

Local web app
Local web app
04 Occupancy-Based Room Automation

The mmWave radar detects guest presence and publishes occupancy state to the local MQTT broker. The local backend uses it to automate energy-related functions.

mmWave Radar→Local MQTT→Local Backend→Thermostat + Lighting
Occupied room
  • ▸Normal thermostat setpoint
  • ▸Normal lighting behaviour
  • ▸Guest comfort prioritized
Unoccupied room
  • ▸Energy-saving thermostat setpoint
  • ▸Automatic lighting reduction or switch-off
  • ▸Room remains ready for guest return

Local automation continues even when Internet connectivity is unavailable.

Occupancy-based room automation
Occupancy-based room automation
05 Hardware Architecture
Access-control hardware
  • ▸ESP32-WROOM-32E
  • ▸PN7160 NFC controller
  • ▸MPR121 capacitive touch controller
  • ▸LAN8720 / LAN8710 Ethernet PHY
  • ▸TPS2378 PoE interface
  • ▸Relay / MOSFET door strike control
  • ▸LED driver
  • ▸Local power regulation
  • ▸Ethernet primary, Wi-Fi fallback
  • ▸Custom PCB design
Access ControlDND / Make Up RoomLighting ControlTouch ThermostatmmWave Radar
↓ Ethernet / Wi-Fi / MQTTLocal Hotel Node↓ Secure synchronizationCentral Platform
06 Embedded Firmware
Embedded C / C++MQTT communicationDevice identityPer-device credentialsLocal configurationOTA firmware updatesLocal fallback operationDevice status reportingEvent loggingRemote configurationSecure provisioning
07 Local Hotel Infrastructure & Central Monitoring
Local hotel node — authoritative
  • ▸Frontend web application
  • ▸Backend API service (REST, MQTT integration)
  • ▸MariaDB database
  • ▸MQTT broker
  • ▸Synchronization service & tracking
  • ▸OTA firmware management
  • ▸Command queue
  • ▸User / device / credential management
  • ▸Logging
  • ▸Hotel / site identity
Central server — supervisory
  • ▸Central frontend web application
  • ▸Central backend API
  • ▸Central MariaDB database
  • ▸Centralized monitoring & reporting
  • ▸Audit history
  • ▸Remote visibility & administration
  • ▸OTA request orchestration
  • ▸Aggregated multi-hotel data
08 Engineering Challenges
  1. 01Designing reliable embedded devices suitable for continuous hotel operation
  2. 02Integrating capacitive touch, RFID/NFC, Ethernet, Wi-Fi and physical door-control hardware
  3. 03Designing a local-first architecture that remains operational during Internet outages
  4. 04Creating reliable communication between multiple room devices and the local hotel node
  5. 05Managing device identity and provisioning
  6. 06Implementing OTA firmware update capability
  7. 07Designing safe remote administration without making cloud infrastructure the primary runtime dependency
  8. 08Integrating mmWave occupancy sensing with HVAC and lighting control
  9. 09Balancing guest comfort and energy efficiency
  10. 10Designing the system so that it can scale from one hotel to multiple hotel sites
09 My Contribution

My role covered the complete technical development of the embedded platform, from hardware architecture and PCB design through firmware, networking, device communication, enclosure integration and system-level architecture.

System architectureEmbedded hardware designPCB designComponent selectionBoard bring-upEmbedded firmwareRFID / NFC integrationCapacitive touchEthernet & Wi-FiMQTTOTADevice provisioningRoom-device communicationLocal server architectureCentralized synchronization conceptOccupancy automation conceptTesting & debuggingEnclosure / mechanical integration
Engineering workflow
Requirements→System Architecture→Hardware Design→Schematic→PCB→Prototype→Board Bring-Up→Firmware→Networking→Local Backend Integration→Testing→Validation→Deployment
10 Testing & Validation
OscilloscopeLogic analyserMultimeterProgrammable PSUUART debugging
11 Technology Stack
Embedded
ESP32C / C++RFID / NFCMPR121PN7160mmWave Radar
Hardware
Custom PCBPoEEthernet PHYRelay ControlPower Electronics
Connectivity
EthernetWi-FiMQTT
Backend
Node.jsREST APIMariaDBMQTT Broker
Platform
OTADevice ProvisioningLoggingSynchronizationRemote Administration
Security
Device IdentityPer-Device CredentialsSecure ProvisioningLocal-First Architecture