# M5Stack StamPLC

> ESP32-S3 industrial PLC controller with 1.14" IPS LCD, 4 relays, 8 opto-isolated inputs, RS-485, CAN bus, INA226 power monitor, RTC, buzzer, microSD, and DIN-rail mounting in a compact enclosure.

## Quick Facts

- **Brand:** M5Stack
- **Board Type:** plc
- **Price:** ~$42.9
- **Product Readiness:** consumer
- **CPU:** Xtensa LX7 dual-core @ 240MHz, FPU, AI vector instructions
- **CPU Architecture:** Xtensa LX7
- **CPU Cores:** 2
- **RAM:** 512KB SRAM
- **Flash:** 8MB
- **USB:** USB-C
- **Power:** DC 6-36V via DC5521 barrel jack
- **Operating Voltage:** 3.3V
- **Dimensions:** 80 x 72 x 33.4mm
- **Weight:** 139.4g
- **Antenna:** Built-in PCB antenna
- **SD Card:** microSD
- **Display:** 1.14" IPS LCD 135x240

## Connectivity

- **Wifi:** 802.11 b/g/n
- **Bluetooth:** BLE 5.0

## Open Source

- **Firmware:** Yes
- **Schematics:** Yes
- **PCB Layout:** No

## Compatible Firmware

arduino, esp-idf, esphome, micropython, uiflow

## Use Cases

- industrial-automation
- plc-replacement
- energy-monitoring
- home-automation
- smart-switch

## Components

- **ESP32-S3FN8** (mcu): Espressif ESP32-S3 with 8MB flash, dual-core Xtensa LX7 at 240MHz — [Datasheet](https://openhardware.directory/r?to=https%3A%2F%2Fwww.espressif.com%2Fsites%2Fdefault%2Ffiles%2Fdocumentation%2Fesp32-s3_datasheet_en.pdf&ref=openhardware.directory&product=m5stack-stamplc&source=md-export)
- **ST7789V2** (display-driver): 135x240 IPS LCD driver — [Datasheet](https://openhardware.directory/r?to=https%3A%2F%2Fm5stack.oss-cn-shenzhen.aliyuncs.com%2Fresource%2Fdocs%2Fdatasheet%2Funit%2Flcd%2FST7789V2_SPEC_V1.0.pdf&ref=openhardware.directory&product=m5stack-stamplc&source=md-export)
- **INA226** (current-sensor): High-precision I2C current and voltage monitor — [Datasheet](https://openhardware.directory/r?to=https%3A%2F%2Fwww.ti.com%2Flit%2Fds%2Fsymlink%2Fina226.pdf&ref=openhardware.directory&product=m5stack-stamplc&source=md-export)
- **LM75B** (sensor): I2C temperature sensor with 0.125C resolution — [Datasheet](https://openhardware.directory/r?to=https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fdata-sheet%2FLM75B.pdf&ref=openhardware.directory&product=m5stack-stamplc&source=md-export)
- **RX8130CE** (rtc): RTC with built-in crystal oscillator — [Datasheet](https://openhardware.directory/r?to=https%3A%2F%2Fwww.mouser.com%2Fdatasheet%2F2%2F137%2FRX8130CE-3361531.pdf&ref=openhardware.directory&product=m5stack-stamplc&source=md-export)

## Protocols

- **I2C**: SDA: GPIO13, SCL: GPIO15
- **SPI**: SCK: GPIO7, MOSI: GPIO8, MISO: GPIO9
- **RS-485**: TX: GPIO0, RX: GPIO39, DIR: GPIO46
- **CAN**: TX: GPIO42, RX: GPIO43

## GPIO Map

| Pin | Name | Type | Functions |
|-----|------|------|-----------|
| GPIO13 | I2C SDA | I2C | digital-input, digital-output, adc, touch, pwm |
| GPIO15 | I2C SCL | I2C | digital-input, digital-output, adc, touch, pwm |
| GPIO2 | Grove Port A SDA | I2C | digital-input, digital-output, adc, touch, pwm |
| GPIO1 | Grove Port A SCL | I2C | digital-input, digital-output, adc, touch, pwm |
| GPIO5 | Grove Port B SDA | I2C | digital-input, digital-output, adc, touch, pwm |
| GPIO4 | Grove Port B SCL | I2C | digital-input, digital-output, adc, touch, pwm |

## Description

## Overview

The M5Stack StamPLC is an IoT programmable logic controller designed for industrial automation and remote monitoring. Built around the ESP32-S3FN8 dual-core processor with WiFi and BLE connectivity, it bridges the gap between traditional PLCs and modern IoT platforms.

The StamPLC features 4 relay outputs, 8 opto-isolated digital inputs, RS-485 and CAN bus interfaces, an INA226 power monitor, LM75B temperature sensor, RX8130CE RTC, and a 1.14-inch IPS display with two Grove expansion ports. Powered by a wide-range DC 6-36V input via barrel jack, it supports DIN-rail mounting for industrial installations. The device is compatible with Arduino, ESP-IDF, ESPHome, and MicroPython.

## Where to Buy

- [M5Stack Official](https://openhardware.directory/r?to=https%3A%2F%2Fshop.m5stack.com%2Fproducts%2Fm5stamp-plc-controller-with-m5stamps3&ref=openhardware.directory&product=m5stack-stamplc&source=md-export) — $42.90

## Resources

- [product](https://openhardware.directory/r?to=https%3A%2F%2Fshop.m5stack.com%2Fproducts%2Fm5stamp-plc-controller-with-m5stamps3&ref=openhardware.directory&product=m5stack-stamplc&source=md-export)
- [github](https://openhardware.directory/r?to=https%3A%2F%2Fgithub.com%2Fm5stack%2FM5StamPLC&ref=openhardware.directory&product=m5stack-stamplc&source=md-export)
- [wiki](https://openhardware.directory/r?to=https%3A%2F%2Fdocs.m5stack.com%2Fen%2Fcore%2FStamPLC&ref=openhardware.directory&product=m5stack-stamplc&source=md-export)

## Tags

`esp32-s3`, `m5stack`, `plc`, `industrial`, `relay`, `rs485`, `can-bus`, `din-rail`

## Images

![M5Stack StamPLC](https://nbg1.your-objectstorage.com/openhardware-directory/entities/m5stack-stamplc/90f0f904bc37.webp)
![M5Stack StamPLC](https://nbg1.your-objectstorage.com/openhardware-directory/entities/m5stack-stamplc/5932f7e8f995.webp)

---
[View full device page](https://openhardware.directory/devices/m5stack-stamplc)