M5Stamp PLC Controller with Opto-Isolated Inputs, Relays, PWR CAN, and RS485
Mar 21, 2025 — by Giorgio Mendoza 18 viewsThe M5Stamp PLC Controller, built on the StampS3A module, is a compact programmable logic controller designed for industrial automation and remote monitoring. With wireless connectivity, versatile I/O, and industrial communication support, it fits applications such as smart manufacturing and distributed control.
The StamPLC leverages the StampS3A, which incorporates an ESP32-S3FN8 microcontroller with 8MB of flash memory and 2.4GHz Wi-Fi support.
— ADVERTISEMENT —

M5Stamp PLC Controller Side Views
The control module includes eight opto-isolated digital inputs and four relay outputs, supporting both AC and DC loads. Inputs accept voltages between 5V and 36V. According to the specifications, the outputs are rated for up to 5A at 250V AC or 28V DC.
For external device interfacing, the unit provides a GPIO.EXT port and two Grove connectors. Communication is further extended through onboard PWR-CAN and PWR-485 interfaces, enabling integration with industrial fieldbus networks. These interfaces use XT30 and HT3.96 connectors for power and data transmission.

M5Stamp PLC Controller w/ M5StampS3
The device is equipped with a 1.14-inch color display (135×240 resolution), three user buttons, a RESET/BOOT button, and a buzzer. A Micro SD card slot supports data logging and firmware updates.
Power input is supported over a wide range, from 6V to 36V DC, using a DC5521 connector. The enclosure is designed for DIN rail mounting to ensure secure installation in industrial settings.

M5Stamp PLC Controller Bottom View
Environmental monitoring is handled through an LM75 temperature sensor and an INA226 sensor for voltage and current measurement. A built-in RTC module provides timekeeping for data logging and synchronized operation.
Factory firmware supports automatic data uploads to M5Stack’s EZData cloud platform, allowing users to visualize and control systems remotely via generated web interfaces. The controller is also compatible with development environments including UIFlow 2.0, Arduino IDE, and ESP-IDF.
Documentation for the M5Stamp PLC is available through M5Stack’s Wiki pages and GitHub repository.

M5Stamp PLC Controller
Regarding power consumption, the device consumes 21.60mA at 5V and 15.22mA at 12V in standby mode, while operating current reaches 93.89mA at 5V and 47.84mA at 12V.
Specification list for the M5Stamp PLC Controller w/ M5StampS3:
- Memory & Storage:
- 8MB Flash Storage (StampS3A Module)
- MicroSD card slot
- Connectivity:
- Wi-Fi: 2.4GHz Wi-Fi (ESP32-S3FN8)
- PWR-CAN Interface: XT30(2+2)PW-M
- PWR-485 Interface: HT3.96-4P
- Display:
- 1.14-inch IPS LCD (ST7789v2)
- I/O:
- 8x opto-isolated inputs (DC 5–36V)
- 4x relays (5A @ 250V AC / 5A @ 28V DC)
- GPIO.EXT (2×8-pin)
- 2x Grove Ports
- 3x programmable buttons (A, B, C) + Reset/Boot button
- 1x Buzzer
- Sensors:
- LM75 (temperature)
- INA226 (voltage/current)
- Other Features:
- Real-Time Clock (RX8130CE)
- USB:
- USB type-C (via ESP32-S3FN8)
- Power Supply:
- DC 6–36V @ 1A (DC5521, 5.5×2.1mm, center positive)
- Operating Temperature:
- 0–40°C
- Mechanical:
- 72 × 80 × 33.4mm
- 139.4g
- DIN rail compatible
Further information
The M5Stamp PLC Controller with the M5StampS3 is available for $42.90. Each unit includes the StamPLC controller, four mounting accessories, and four screw clip fasteners.
Please comment here...