StamPLC is an IoT programmable logic controller designed for industrial automation and remote monitoring. The product is based on the StampS3A control module, which not only delivers powerful processing capabilities but also provides efficient wireless connectivity. In terms of control, StamPLC offers 8 opto-isolated digital inputs and 4 relay outputs (supporting both AC and DC loads), along with a GPIO.EXT port and 2 Grove interfaces, making the integration of various sensors and actuators both simple and reliable. Meanwhile, through the onboard PWR-CAN and PWR-485 interfaces, the device can be seamlessly integrated into industrial fieldbus networks, enabling remote data transmission and centralized control. For human-machine interaction, the product features a 1.14-inch color display, a RESET/BOOT button, 3 user buttons, and a buzzer, which facilitate real-time parameter configuration and status monitoring, and can alert users in the event of anomalies. To withstand harsh industrial environments, StamPLC supports a wide voltage input (DC 6–36V) and is designed for DIN rail mounting to ensure secure installation; the built-in Micro SD card slot further facilitates data storage and firmware updates. Additionally, its environmental monitoring system integrates an LM75 temperature sensor and an INA226 voltage/current sensor for real-time feedback on device operation, while the RTC (RX8130CE) module ensures accurate time synchronization and log recording. The factory firmware automatically uploads data to M5’s EZDATA cloud platform, generating monitoring pages and offering users convenient remote cloud access and control. This product is suitable for industrial automation, remote monitoring, smart manufacturing, and other applications.
This tutorial will show you how to control the StamPLC device using the Arduino IDE
Note
Power supply precautions
Precautions: The power supply output pins for StamPLC’s PWR-CAN and PWR-485 are directly connected to the main input power. Therefore, during operation, please ensure that the input voltage matches the power requirements of any connected external devices. For example, when using StamPLC to control Unit Roller485 or Unit RollerCAN, it is recommended to maintain the input voltage within the DC 6–16V range to prevent damage caused by voltage mismatches.
Features
StampS3A Control Module (ESP32-S3FN8)
EZData Cloud Monitoring
8 Opto-isolated Digital Inputs
4 Relay Outputs (AC/DC)
1.14-inch Color Display (ST7789v2)
PWR-CAN & PWR-485 Interfaces
Wide Voltage Input (DC 6–36V)
Voltage/Current Sensor
Internal Temperature Sensor
User Buttons
Micro SD Card Slot
DIN Rail Mounting
Buzzer
Grove Interface
RTC Module
Development Platform
UIFlow 2.0
Arduino IDE
ESP-IDF
Includes
1 x StamPLC
4 x Mounting Accessories
4 x Screw Clip Fasteners
Applications
Industrial Automation and Remote Control
Distributed Control Systems
Smart Energy Management
Smart Manufacturing
Specifications
Specification
Parameter
Control Module
StampS3A Control Module, based on ESP32-S3FN8, with 8MB Flash, 2.4GHz Wi-Fi
FLASH
8MB
Digital Inputs
8 opto-isolated digital inputs, Input voltage range: DC 5~36V
Digital Outputs
4 relay outputs
Relays
AC – 5A @ 250V DC – 5A @ 28V
DC Power Supply
Supports wide voltage input of DC 6–36V @ 1A DC Power Connector: DC5521 (female, 5.5 x 2.1mm, center positive, outer negative)
Expansion Interfaces
GPIO.EXT interface, 2 Grove interfaces
Communication Interfaces
Onboard PWR-CAN and PWR-485 interfaces
PWR-CAN Interface
XT30(2+2)PW-M
PWR-485 Interface
HT3.96-4P
Display
1.14-inch color display (135×240 resolution), driven by ST7789v2 chip
Interactive Controls
1 RESET/BOOT button, 3 user buttons, buzzer
Data Storage
Built-in Micro SD card slot
Sensors
LM75 temperature sensor, INA226 voltage/current sensor, RTC (RX8130CE)
IO Port Load Capacity
2×8 connector maximum load: DC-4.76V @ 700mA Grove port load test: DC-4.81V @ 700mA
To enter download mode, connect the data cable, then press and hold the Boot button until the red indicator light turns on. Release the Boot button to enter download mode.
Input channel integrates optocoupler isolation, supports DC5~36V high-level/low-level signal input acquisition, adaptable to different types of sensor inputs
1. Wiring method for low-level signal input sensor: - COM connects to the sensor's positive power - INPUT connects to the sensor's input signal 2. Wiring method for high-level signal input sensor: - COM connects to the sensor's negative power - INPUT connects to the sensor's input signal
RGB LED Control Instructions
NH-B2020RGBA-HF is an RGB LED device that can only achieve color combinations by controlling the on/off state of the three independent R, G, and B LEDs separately, and does not support PWM dimming to control brightness or achieve gradient effects
After the StamPLC firmware starts by default, it will automatically initialize as a Modbus slave. External devices can control the device via the PWR-485 interface using the Modbus RTU protocol. The specific register protocol is as follows.