Skip to Content

ESP32 MicroPLC

(0 review)
The HOMEMASTER MicroPLC is a compact and powerful open-source automation controller based on the ESP32-WROOM-32U. Designed for seamless integration with Home Assistant using ESPHome, it enables control of smart home devices, sensors, actuators, and industrial systems through RS-485 Modbus and wireless communication.
110.00 110.00

HomeMaster MicroPLC (ESP32)

HomeMaster MicroPLC (ESP32)

The HomeMaster MicroPLC is a professional, open-source DIN rail controller built around the ESP32 platform, designed for robust and scalable smart automation in residential, commercial, and light industrial environments. It combines digital inputs, relay outputs, RS-485 communication, real-time clock functionality, and USB programming interface.

Engineered for reliability and flexibility, the MicroPLC supports 24 V DC power input and features an integrated RS-485 Modbus interface for expansion with compatible I/O modules and field devices. Its local processing capability ensures continued operation even when network or cloud connectivity is lost, making it suitable for mission-critical applications.

HomeMaster MicroPLC DIN-rail ESP32 industrial controller
DIN rail • 24 V DC • ESP32 • Modbus RTU • Home Assistant

Quick Overview

  • ESP32 industrial controller platform
  • Industrial DIN-rail form factor with 24 V DC supply
  • Runs locally and offline without cloud dependency
  • Expandable via RS-485 Modbus field devices

Typical Applications

  • Industrial automation controller
  • HVAC automation and plant control
  • Energy management systems
  • Industrial I/O controller
  • Building management systems (BMS)
  • SCADA edge controller
  • RS-485 Modbus master / field gateway

Tech Specs

Technical Specifications
SpecificationDetails
MicrocontrollerESP32-WROOM-32U-N16 (dual-core)
Flash Memory16 MB SPI flash
SRAM536 KB SRAM
Power Input 24 V DC nominal (24VDC)
Digital Inputs1 × isolated 24 V digital input (ISO1212 receiver)
Relay Outputs 1 × SPDT relay (HF115F-005-1ZS3)
Temperature Inputs1-Wire interface supported
User Interface 1 button, status LEDs
Wi-FiIntegrated Wi-Fi (ESP32)
Wi-Fi standardIEEE 802.11 b/g/n (2.4 GHz)
RS-485 RS-485 Modbus RTU (MAX485 transceiver, half-duplex)
StorageInternal ESP32 flash
USBUSB-C programming interface via CP2102N USB-UART bridge
RTCPCF8563 RTC with CR2032 battery backup

Installation, Environmental & Mechanical

Installation, Environmental & Mechanical Specifications
Category Specification Details
Terminal Specifications Terminal type Pluggable screw terminal blocks, 5.08 mm pitch
Terminal pitch5.08 mm
Wire cross-section0.2–2.5 mm² (AWG 24–12)
Conductor typeSolid or stranded copper
Stranded wireFerrules recommended
Tightening torque0.4 Nm (max)
Environmental Ratings Operating temperature0 °C to +40 °C
Storage temperature-10 °C to 55 °C
Relative humidity0–90 % RH, non-condensing
Ingress protectionIP20 (inside cabinet)
Installation Indoor control cabinet only; not for outdoor or exposed installation
Terminal protection All wiring terminals must be protected against accidental contact
Mechanical & Packaging Product dimensions 35.5 × 91 × 67.3 mm (L × W × H)
DIN units2 division units (≈ 35 mm DIN rail mounting width)
Mounting35 mm DIN rail
Net weightxxx g
Gross weightxxx g
Pack size xxx × xxx × xxx mm (L × W × H)
Mechanical drawing Front + side views with DIN-clip depth (see below)
Notes All dimensions shown in millimeters unless stated otherwise

Install only inside a control cabinet with ventilation; the cabinet must include a protective front plate covering all module connection terminals and a closing protective door; not for outdoor or exposed installation.

All wiring terminals must be protected against accidental contact by an insulating front plate, wiring duct, or terminal cover. Exposed live terminals are not permitted.

HomeMaster MicroPLC mechanical drawing (front and side view) with dimensions in mm
Mechanical drawing: front view + side view + DIN-clip depth (all dimensions in mm).

Home Assistant & ESPHome Integration

The MicroPLC comes with ESPHome pre-installed and can be integrated directly into Home Assistant without flashing custom firmware.

Quick Setup Process (Improv Wi-Fi)

  1. Mount & Power – Install on a 35mm DIN rail and connect power.
  2. Open Improv – Go to improv-wifi.com.
  3. Connect – Use USB-C (Serial) or Bluetooth LE.
  4. Enter Wi-Fi – Input SSID and password, then press Connect.
  5. Auto-Discovery – Device appears in Home Assistant & ESPHome Dashboard.

One-Click Import (ESPHome Dashboard)

Once connected to Wi-Fi, the MicroPLC is automatically discovered in the ESPHome Dashboard. Click “Take Control” to import the official configuration directly from GitHub.

USB Type-C Manual Flashing (Optional)

  1. Connect the MicroPLC to your computer using USB Type-C.
  2. Download the official YAML configuration: microplc.yaml
  3. Open ESPHome Dashboard and import the YAML file.
  4. Update Wi-Fi credentials in the YAML.
  5. Flash directly from ESPHome (no reset or boot buttons required).
  6. The device reboots automatically and runs the new firmware.
  • No firmware flashing required for basic use
  • Native Home Assistant API
  • OTA updates supported
  • Automatic ESPHome dashboard import
  • Full YAML customization
ESPHome Improv WiFi setup flow

Documentation

The MicroPLC is open-source hardware. You can build your own board using the files below.

Hardware Design Files

File Description Link
Schematic (MCU Board) Main controller board schematic MCUBoard.pdf
Schematic (Relay Board) Relay and power section schematic RelayBoard.pdf

Firmware & Software

Resource Description Link
Default ESPHome Config Pre-configured YAML for Home Assistant microplc.yaml
Firmware Source Code Latest firmware builds and source Firmware/
ESPHome Integration Guide Complete setup instructions README.md

Power Supply

The MicroPLC is powered by 24 V DC nominal on V+ / 0V terminals.

Power Input Specifications

Power Input Specifications
Input Option Terminals Range Notes
24 V DC V+ / 0V 24 V DC Powers internal rail +24VDC_FUSED.

24 V DC Input (V+ / 0V)

  • Typical operating current: 150 mA @ 24 V (≈ 3.6 W) — measured typical device power consumption
  • Internal rail: 24 V input is conditioned into +24VDC_FUSED
  • Input protection: surge suppression (TVS), EMI filtering, reverse-polarity / power-path protection
  • Internal protection: 1.0 A soldered service fuse and resettable PTC protection devices
  • Upstream protection (recommended): external 0.5 A slow-blow fuse or 0.5 A breaker on V+ so the external device clears before the internal service fuse. Recommended to protect wiring and simplify troubleshooting.
Wiring example: 24 V DC connected to V+ and 0V
Connect + to V+ and to 0V.
Installation checklist
  • Use a regulated 24 V DC supply
  • Install 0.5 A fuse/breaker upstream of V+
  • Observe polarity: V+ / 0V
  • Route power wiring away from low-level analog signal wiring

Inputs & Outputs

Digital Inputs (1 channel)

Digital Inputs (1 channel)
Channel Pin Type Voltage Description
DI #1 DI24V (ESP32 GPIO via ISO1212) Sourcing 24 V DC Isolated 24 V digital input with internal field supply, dry contact

Features:

  • 1× isolated 24 V DC digital input using ISO1212 digital input receiver
  • Internal fused 24 V field supply for dry-contact sensing
  • Sourcing-type inputs for passive devices (relay contacts, open-collector outputs)
  • Separate field ground and logic ground domains
  • Per-channel protection with resettable PTC fuses and TVS surge suppression
  • Integrated EMI and noise filtering on each input
  • Configurable input inversion and debounce filtering via ESPHome
  • Status monitoring via Home Assistant binary sensors
Wiring example: dry contact wiring to DI inputs
Wiring example: dry contact wiring to DI inputs.

Relay Outputs

The MicroPLC provides 1 SPDT mechanical relay (HF115F-005-1ZS3) for switching AC or DC loads. The relay provides SPDT switching contacts (NO / NC / COM) available on the relay output terminals and is driven via optocoupler-isolated control circuitry.

System/board rating: 3 A MAX per output (system limit). The MicroPLC board/system can safely carry ONLY 3 A per relay output. This limit is determined by PCB trace width, terminal block rating, and thermal constraints, not the relay component rating. Using more than 3 A directly can overheat and permanently damage the board.

Relay contact (component) rating: 12 A @ 250 V AC (resistive). This value belongs ONLY to the relay component itself and is NOT usable as a system output rating. The MicroPLC must NOT be used above 3 A.

Loads above 3 A (or inductive/inrush loads) MUST be switched using an external contactor or power relay. The MicroPLC relay may be used as a control signal for the external contactor. Do not attempt to switch loads above 3 A directly through the MicroPLC relay outputs.

⚠️ External protection required: Every relay output MUST be protected by an external fuse or circuit breaker (max 3 A per channel). Relay output circuits are not internally fused. External overcurrent protection is mandatory for safe operation.

Relay Specifications

Relay Specifications
Channel Control Pin Type Rating Description
Relay #1 RELAY (ESP32 GPIO via optocoupler driver) SPDT 12A @ 250V AC (relay component rating, NOT usable as system output)
3 A MAX per output (board/system limit)
General purpose relay output 1 (NO/NC/COM)

Relay Wiring Examples

Relay wiring example NO and NC contacts
Example wiring using Normally Open (NO) and Normally Closed (NC) relay contacts.
  • Each relay has COM / NO / NC terminals
  • Use NO for default OFF loads
  • Use NC for default ON loads
  • ⚡ Loads may carry hazardous voltage
  • Supports AC and DC switching (DC and inductive loads require derating)

⚠️ External protection rule: Every relay output MUST be protected by an external fuse or circuit breaker. The rated current of the protective device shall not exceed 3 A MAX per output (board/system limit).

⚠️ Common protection warning: If a single common fuse or circuit breaker is used to protect multiple relay outputs (as shown in the wiring example), the protective device shall NOT be sized by summing relay outputs. The rating of the common protective device shall not exceed 3 A MAX per output (board/system limit).

For inductive or DC loads (contactors, solenoids, motors), use appropriate suppression (RC snubbers, MOVs, or flyback diodes). Loads exceeding the recommended PCB current limit shall be switched using external contactors or wiring methods that bypass PCB copper paths.


Temperature Inputs

MicroPLC supports 1-Wire temperature sensors (DS18B20 or compatible) for reliable cabinet and process temperature monitoring.

Temperature Input Specifications

Temperature Input Specifications
Type Channel Sensor / Interface Range Accuracy
1-WireBUS #11-WIRE-55°C to +125°C±0.5°C

Wiring Examples

1-Wire wiring example
1-Wire wiring example.

Limitations / Notes

  • Recommended topology: daisy-chain configuration (see wiring example above)
  • Maximum number of sensors (recommended): ≤ 10 sensors per bus
  • Typical maximum cable length (recommended): ≤ 50 m using shielded cable with proper topology
  • Power mode: External power using +5V/GND is recommended. Parasitic power mode is not recommended for long cable runs or multiple sensors.

User Interface

User Interface Components
ComponentQuantityControlDescription
Button1BUTTONUser button for local control
LED11+5V rail+5V power indicator
LED21RLEDRelay status LED (hardware-driven)
LED31LEDFirmware-configurable status LED
LED41DIDigital input status indicator
LED51RS-485 RXRS-485 receive activity indicator
LED61RS-485 TXRS-485 transmit activity indicator

Features:

  • 1× user button for local control (BUTTON)
  • LED1 indicates internal +5V power
  • LED3 is a firmware-configurable status LED
  • LED4 indicates digital input state (DI)
  • LED5/LED6 indicate RS-485 RX/TX activity

Communication & Protocols

  • Modbus RTU (RS-485) – UART-based communication for expansion modules and field devices
  • Wi-Fi – ESP32 integrated (Improv onboarding supported)

RS-485 Communication (Modbus RTU)

The MicroPLC provides a half-duplex RS-485 interface with integrated protection and fail-safe biasing. The interface is available on the A / B / COM terminals.

Hardware Features:

  • RS-485 transceiver: MAX485 (half-duplex)
  • Fail-safe biasing network on A/B (idle state defined)
  • Common-mode choke for EMI suppression
  • TVS surge and ESD protection on A/B/COM
  • Resettable PTC fuses on A and B lines
  • Bidirectional logic level shifting between MCU and transceiver

RS-485 Wiring

RS-485 wiring example: bus connection (A/B/COM)
Connect A, B, and COM to the bus.
RS-485 wiring example with 120 ohm termination
Add 120Ω termination only at the two physical ends of the bus.

Termination & Biasing

  • Terminate with 120 Ω only at the two ends of the line.
  • Do not terminate intermediate devices.
  • Fail-safe biasing is already provided inside the MicroPLC.

COM / Reference Ground

  • Connect COM between all RS-485 nodes.
  • This limits common-mode voltage and prevents communication faults.

Power Supply for Extension Modules

  • Recommended: Use the same power supply for MicroPLC and all RS-485 extension modules.
  • Distribute power in a star topology from the PSU.
  • If separate PSUs are used, connect 0V references together at one point (unless the extension module is galvanically isolated).

A common 0V reference prevents RS-485 common-mode voltage errors and communication faults.

Practical Limits (Recommended)

  • Baud rates: 9,600–115,200 bps recommended
  • Bus length: Up to 1200 m at low baud rates (RS-485 standard), but typical cabinet runs are much shorter
  • Devices: Up to 32 standard unit loads; more devices require repeaters or low-load transceivers

Tip: Cable recommendations, shield bonding, and routing rules are defined in the Cable Recommendations & Shield Grounding section below.


Cable Recommendations & Shield Grounding

This section applies to Analog (0–10V), Temperature (RTD / 1-Wire), and RS-485. Use shielded, twisted constructions and bond shields correctly to reduce EMI and ground-loop issues.

General Routing Rules

  • Route low-level signal cables (Analog/RTD/1-Wire/RS-485) separately from mains, relay outputs, contactors, VFD motor cables, and power wiring.
  • If crossing power cables is unavoidable, cross at 90°.
  • Keep cable runs as short as practical and avoid parallel runs with high-current conductors.
1-Wire (DS18B20)
  • Recommended: shielded 3-core ( +5V / DATA / GND ) for typical installations
  • High-EMI / long runs: shielded pairs + overall shield (e.g. LI2YCY PIMF 2×2×0.50)
  • Topology: daisy-chain (bus). Avoid star wiring.
  • Stubs: keep sensor stubs ≤ 0.5 m.
  • Pull-up (DATA): 4.7 kΩ typical; 2.2–3.3 kΩ for long/heavy loads.

RS-485 Cable

  • Construction: twisted pair for A/B
  • Characteristic impedance: 120 Ω (recommended)
  • Shielding: overall shield is recommended in cabinets; use individually shielded pairs + overall shield in high-EMI
  • Examples: J-Y(ST)Y 2×2×0.5 mm² or LI2YCY PiMF 2×2×0.50
  • Use one twisted pair for A/B. Use the second pair for COM (0V reference) or spare.

Shield Grounding

  • Default recommendation: bond cable shield(s) to cabinet PE/EMC ground at the PLC end only.
  • Do not connect shields to signal terminals (AI/AO/RTD/1-Wire/RS-485 A/B/COM).
  • If both ends are in equipotential bonded cabinets, shields may be bonded at both ends using proper 360° clamps.

System Architecture & Pinout

ESP32 MicroPLC System Block Diagram
System block diagram showing internal architecture and interfaces.
ESP32 MicroPLC Pinout Diagram
Complete GPIO and connector pin assignments.

Compliance & Certifications

The HomeMaster MicroPLC is designed to comply with the applicable European Union directives. ISYSTEMS AUTOMATION (HomeMaster brand) maintains the technical documentation and a signed EU Declaration of Conformity (DoC).

EU Directives

EMC 2014/30/EU · LVD 2014/35/EU · RED 2014/53/EU · RoHS 2011/65/EU

Harmonised Standards

AreaStandards
EMCEN 55032 (Emissions) · EN 55035 (Immunity)
Electrical SafetyEN 62368-1
Radio (Wi-Fi)EN 300 328 · EN 301 489-1 · EN 301 489-17
RoHSEN IEC 63000

Equipment Classification

Class A Information Technology Equipment (industrial / commercial environment)

Radio

The product integrates a pre-certified ESP32 2.4 GHz Wi-Fi radio module. Final conformity with the Radio Equipment Directive (RED) is demonstrated by the conformity assessment of the complete apparatus and the maintained technical documentation.

Safety Notice

24 V DC: SELV · Qualified personnel only