Skip to Content

PLC Solution Library

65 field-proven functionalities from real industrial deployments of Industrial Shields PLCs — filter by device, protocol, category or application.

Water pumping (sanitation)ESP32 PLC 38ARGPIOAcquisition

4-20 mA Level Sensor Reading with an ESP32 PLC

Read a 4-20 mA level probe on an ESP32 PLC: scaling to cm, moving-average filtering, broken-wire detection and hysteresis pump control in Arduino.

Example of use
Fuse test benchRaspberry PLC 19RI2CAcquisition

ADS1015 Differential Readings with Auto Gain on a PLC

Read shunt current and voltage drop with an ADS1015 over I2C on a Raspberry PLC: differential channels, automatic gain switching, real Python formulas.

Example of use
Fuse test benchRaspberry PLC 19RGPIOControl

Automated Fuse Test Sequences with a Raspberry PLC

Run standardized fuse tests from Python on a Raspberry PLC: PD, non-fusing and fusing sequences, relay-selected holders, 500 ms monitoring and verdicts.

Example of use
Two-axis solar trackersRaspberry PLC 21CANopenAcquisition

CANopen Encoder Reading on a Raspberry PLC Solar Tracker

Read CANopen encoders and inclinometers from a Raspberry PLC 21 in Python. NMT operational state, SDO position_value reads and degree calibration.

Example of use
Two-axis solar trackersRaspberry PLC 21CANopenControl

CANopen VFD Control of a LOVATO VLB3 from a Raspberry PLC

Control a LOVATO VLB3 variable frequency drive over CANopen SDO from a Raspberry PLC 21 in Python. Run, stop, frequency setpoint, current and errors.

Example of use
Two-axis solar trackersCentral serverMQTTInfrastructure

Central Mosquitto MQTT Broker for a Solar Tracker Fleet

Set up a central Mosquitto MQTT broker with authentication and per-plant ID mapping CSVs to supervise a fleet of two-axis solar trackers from one server.

Example of use
Fuse test benchRaspberry PLC 19RSCPII2CControl

Closed-Loop Current Calibration on a Raspberry PLC

Closed-loop current calibration in Python: read a shunt every 50 ms via ADS1015 and trim a SCPI power supply setpoint in 0.1 A steps until it converges.

Example of use
Industrial mixing (touch HMI)TouchBerry PiGPIOControl

Control a PLC Digital Output from Node-RED (rpiplc)

Drive a relay from a Node-RED dashboard using the rpiplc-digital-write node, with software interlocks and a safety auto-off timer on a Raspberry PLC.

Example of use
Hydraulic moving floor (BLE app)ESP32 PLC 38RBLECommunication

Control an ESP32 PLC from a Mobile App via Bluetooth LE

Drive valves and read 4-20 mA sensors from a smartphone over BLE UART. Complete Arduino example for the industrial ESP32 PLC 38R, no network needed.

Example of use
Industrial mixing (touch HMI)TouchBerry PiFicherosDatalogging

CSV Logging with a Live History Table in Node-RED

Log machine activations to a CSV file and show them in a live Node-RED dashboard table using a watch node — simple, auditable datalogging on a PLC panel.

Example of use
Fuse test benchRaspberry PLC 19R1-WireAcquisition

DS18B20 Temperature on Raspberry PLC via 1-Wire

Read a DS18B20 temperature sensor from a Raspberry PLC with the w1-gpio overlay and pure Python: sysfs parsing, CRC checks and noise filtering included.

Example of use
Water pumping (sanitation)ESP32 PLC 38ARGPIOControl

Dual Pump Station with LoRaWAN Telemetry on an ESP32 PLC

Build a dual-pump station with automatic alternation, failover and LoRaWAN telemetry on an ESP32 PLC 38AR. Full Arduino code with FreeRTOS tasks.

Example of use
Hydraulic moving floor (BLE app)ESP32 PLC 38RGPIOAcquisition

ESP32 PLC 4-20 mA Pressure and Temperature Sensors

Read 4-20 mA pressure and temperature transmitters on an ESP32 PLC 38R, convert to bar and Celsius, and detect broken loops. Full Arduino example.

Example of use
Hydraulic moving floor (BLE app)ESP32 PLC 38RGPIOAcquisition

ESP32 PLC Flow Measurement with a Pulse Flow Meter

Measure oil flow in L/min from a magnetic pulse sensor on an ESP32 PLC 38R. Interrupt timing, K-factor math, presence detection and full Arduino code.

Example of use
Hydraulic moving floor (BLE app)ESP32 PLC 38RGPIOResilience / OTA

ESP32 PLC Hardware Watchdog for Unattended Machines

Make ESP32 PLC firmware self-healing with esp_task_wdt. A 20-second hardware watchdog reboots a hung controller automatically, with NVS diagnostics.

Example of use
Hydraulic moving floor (BLE app)ESP32 PLC 38RNVSDatalogging

ESP32 PLC Persistent Counters with NVS Preferences

Store cycle counters, serial numbers and totals in ESP32 NVS flash so they survive reboots. Arduino Preferences example for an industrial PLC 38R.

Example of use
Hydraulic moving floor (BLE app)ESP32 PLC 38RBLEInfrastructure

ESP32 PLC RTC Sync from a Smartphone over BLE

Set the ESP32 PLC clock from a smartphone over Bluetooth LE — no NTP or internet needed. Arduino example with a timestamp frame and settimeofday.

Example of use
Hydraulic moving floor (BLE app)ESP32 PLC 38RGPIOBLEControl

ESP32 PLC Solenoid Valve Control with a State Machine

Control hydraulic solenoid valves safely from an ESP32 PLC 38R using a load/unload state machine with timeouts. Complete Arduino relay output example.

Example of use
Industrial mixing (touch HMI)TouchBerry PiFicherosDatalogging

Export CSV Logs to USB from a Node-RED Dashboard

One-tap USB export for industrial data logs: detect a pendrive on Raspberry Pi, copy the CSV history and confirm on screen, all from Node-RED.

Example of use
Water pumping (sanitation)ESP32 PLC 14 / 38ARLoRaWANResilience / OTA

FreeRTOS Tasks on an ESP32 PLC with a LoRaWAN Watchdog

Run pump control, LoRaWAN telemetry and an hourly OTAA re-join as separate FreeRTOS tasks on an ESP32 PLC. Full Arduino code from a real station.

Example of use
Automated agricultural irrigationRaspberry Pi (Docker)Modbus TCPAcquisition

Fronius SunSpec Modbus TCP Monitoring on a Raspberry Pi

Read solar power from a Fronius inverter and Smart Meter over SunSpec Modbus TCP with Python on a Raspberry Pi, and irrigate only on solar surplus.

Example of use
Geotechnical slope monitoringServer (Node-RED)FTPCommunication

FTP Data Upload from Node-RED to a Monitoring Platform

Generate timestamped CSV files with Python and upload them by FTP to an official monitoring platform. Complete ftplib script used on a real slope site.

Example of use
Textile monitoring (weaving)ESP32 PLCHTTPEthernetAcquisition

HTTP Client on an ESP32 PLC to Read Machine XML Data

Poll a knitting machine controller over Ethernet with an ESP32 PLC HTTP client: GET its status XML, parse RPM and state, repackage as JSON for MQTT.

Example of use
Geotechnical slope monitoringESP32 PLC 14 (×4, Ethernet)HTTPCommunication

HTTP Polling of Multiple PLCs with Node-RED Alert Levels

Poll multiple ESP32 PLC stations over HTTP from Node-RED and classify every reading into alert levels 0-4 with a 5-output switch. Full flow code inside.

Example of use
Visual inspection (machine vision)Raspberry Pi + USB cameraFicherosInfrastructure

JSON Config and Golden References for Pi Vision

Persist camera and processing parameters in JSON and manage golden reference images as preprocessed PNGs on a Raspberry Pi visual inspection station.

Example of use
Water pumping (sanitation)ESP32 PLC 14 / 38ARLoRaWANCommunication

LoRaWAN Payload Bit Packing on an ESP32 PLC (4 Bytes)

Compress 11 digital inputs, error flags and a 10-bit analog probe into a 4-byte LoRaWAN payload on an ESP32 PLC. Real Arduino bit-packing example.

Example of use
Bioreactor controlM-DuinoModbus RTUAcquisition

Modbus Flow Meter 32-bit Counter Read and Remote Reset

Read 32-bit flow meter totals over Modbus RTU with an M-Duino PLC and expose a remote counter reset as a Modbus TCP coil. Full Arduino code included.

Example of use
Bioreactor controlM-DuinoModbus RTUControl

Modbus RTU Chiller Control with an M-Duino PLC

Control thermoelectric chillers over Modbus RTU with an M-Duino PLC. Write start/stop, cold/heat enable and a x10 temperature setpoint on RS485. Full code.

Example of use
Textile monitoring (weaving)ESP32 PLCModbus RTURS485Communication

Modbus RTU Master on an ESP32 PLC over RS-485

Modbus RTU master on an ESP32 PLC: generic FC3 register reads over RS-485 with timeouts, 32-bit value conversion and JSON output ready for MQTT.

Example of use
Bioreactor controlM-DuinoModbus RTUControl

Modbus RTU VFD RPM Control with an M-Duino PLC

Drive variable frequency drives over Modbus RTU with an M-Duino PLC. Write run and x100 RPM setpoint, read real speed from two 16-bit registers. Full code.

Example of use
Bioreactor controlM-DuinoModbus TCPCommunication

Modbus TCP Register Map for a Bioreactor Plant

Design a clean Modbus TCP register map on an M-Duino PLC: coils, holding and input registers for a whole bioreactor plant. Full Arduino code and layout.

Example of use
Bioreactor controlM-DuinoModbus TCPModbus RTURS485Communication

Modbus TCP to RTU Gateway on an M-Duino PLC

Turn an M-Duino into a Modbus TCP slave and RTU master gateway. Expose a whole bioreactor plant on port 502 while polling six RS485 slaves. Full code.

Example of use
Textile monitoring (weaving)ESP32 PLCMQTTControl

MQTT Remote Commands on an ESP32 PLC with Response Topic

Operate a fleet of ESP32 PLCs over MQTT remote commands: request/response topics, SD file listing, system info and safe callback handling explained.

Example of use
Industrial mixing (touch HMI)TouchBerry PiMQTTHTTPHMI / Dashboard

MQTT Status LEDs on a Node-RED Touchscreen Dashboard

Build a touchscreen HMI with Node-RED Dashboard 2.0: MQTT-driven status LEDs, machine state text and a guarded force-start button on a TouchBerry Pi.

Example of use
Industrial mixing (touch HMI)TouchBerry PiMQTTSQL ServerCommunication

MQTT to SQL Server Bridge in Python on a Raspberry PLC

Connect an MQTT broker to SQL Server with Python: paho-mqtt plus pyodbc, two-way sync, auto-reconnection and parameterised inserts on a Raspberry PLC.

Example of use
Industrial mixing (touch HMI)TouchBerry PiHTTPSafety

Node-RED Admin Login on a Touchscreen HMI (TouchBerry Pi)

Protect Node-RED dashboard settings with an admin password, on-screen keyboard and session timeout on a TouchBerry Pi touchscreen HMI panel.

Example of use
Geotechnical slope monitoringServer (Node-RED)HTTPHMI / Dashboard

Node-RED Dashboard for Multi-Station PLC Monitoring

Build a Node-RED dashboard with gauges, text widgets and status LEDs to watch four remote PLC stations from one screen. Function node code included.

Example of use
Textile monitoring (weaving)Server (Node-RED)MQTTHTTPInfrastructure

Node-RED MQTT Concentrator for ESP32 PLC Fleets

Build a Node-RED MQTT concentrator for ESP32 PLC fleets: payload validation, deduplication, file backups, an HTTP recovery endpoint and fleet health.

Example of use
Textile monitoring (weaving)ESP32 PLCWiFiResilience / OTA

Non-Blocking WiFi Reconnection on an ESP32 PLC

Non-blocking WiFi reconnection for ESP32 PLC firmware: rate-limited retries, drop counters and a loop that keeps monitoring machines with no network.

Example of use
Textile monitoring (weaving)ESP32 PLCNTPResilience / OTA

NTP-Synced Hardware RTC on an ESP32 PLC for Timestamps

Sync the hardware RTC of an ESP32 PLC over NTP with retries and periodic resync, so industrial datalogging timestamps stay correct through outages.

Example of use
Textile monitoring (weaving)ESP32 PLCMQTTWiFiCommunication

Offline-First MQTT Data Logging on an ESP32 PLC with SD Card

Machine monitoring that never loses data: event-driven MQTT publishing with SD card buffering, NTP-synced RTC and pulse counting on an ESP32 PLC.

Example of use
Visual inspection (machine vision)Raspberry Pi + USB cameraUSB/V4L2Machine vision

OpenCV Quality Inspection Pipeline on a Raspberry Pi

Build an OpenCV preprocessing pipeline for print inspection on Raspberry Pi. Thresholding, morphology, CLAHE and adaptive threshold, fully explained.

Example of use
Fuse test benchRaspberry PLC 19RFicherosDatalogging

Plain-Text Test Reports from a Raspberry PLC in Python

Generate timestamped TXT test reports on a Raspberry PLC: header with conditions, per-sample current and resistance table, verdict and operator notes.

Example of use
Textile monitoring (weaving)ESP32 PLCGPIOAcquisition

Production Pulse Counter on an ESP32 PLC with Interrupts

Count production pulses on an ESP32 PLC using hardware interrupts: debouncing, atomic reads, RPM estimation and MQTT reporting for machine monitoring.

Example of use
Visual inspection (machine vision)Raspberry Pi + USB cameraUSB/V4L2HMI / Dashboard

PySide6 Camera GUI for a Raspberry Pi Vision System

Build a PySide6 inspection GUI on Raspberry Pi with a QThread camera loop that only emits frames when the live view is visible, keeping the CPU free.

Example of use
Automated agricultural irrigationRaspberry Pi (Docker)HTTPMySQLInfrastructure

Raspberry Pi Docker Stack: Node-RED, MySQL, Nginx, Laravel

Run a four-container industrial stack on a Raspberry Pi with Docker Compose: Node-RED logic, MySQL history, Laravel frontend and Nginx reverse proxy.

Example of use
Automated agricultural irrigationRaspberry Pi (Docker)HTTPHMI / Dashboard

Raspberry Pi Kiosk Mode for a Node-RED Dashboard HMI

Turn a Raspberry Pi with a touchscreen into a dedicated plant HMI: Chromium kiosk mode under Wayfire boots straight into the Node-RED dashboard.

Example of use
Automated agricultural irrigationRaspberry Pi (Docker)MySQLDatalogging

Raspberry Pi MySQL Alarm Logging with Node-RED and Laravel

Log industrial alarms to MySQL from Node-RED on a Raspberry Pi: event history plus per-input alarm definitions, queried by a Laravel web frontend.

Example of use
Two-axis solar trackersRaspberry PLC 21WiFiGPIOInfrastructure

Raspberry PLC WiFi Access Point Triggered by a Button

Turn a push button into a temporary WiFi access point on a Raspberry PLC 21 using nmcli and GPIO interrupts, for field configuration without networks.

Example of use
Geotechnical slope monitoringESP32 PLC 14 (×4, Ethernet)HTTPResilience / OTA

Remote OTA Firmware Updates on ESP32 PLC Ethernet Stations

Update firmware on remote ESP32 PLC stations over Ethernet with a built-in web server: /status JSON endpoint plus /update OTA. Full Arduino example.

Example of use
Fuse test benchRaspberry PLC 19RGPIOSafety

Safety Interlocks and E-Stop on a Raspberry PLC

Implement fail-safe interlocks in Python on a Raspberry PLC: emergency stop, blown-fuse chain and end-of-test inputs that cut power and latch a red beacon.

Example of use
Automated agricultural irrigationRaspberry Pi (Docker)Modbus TCPControl

Schneider Altivar 320 Modbus TCP Control from Raspberry Pi

Start, stop and supervise a Schneider Altivar 320 VFD over Modbus TCP from a Raspberry Pi: DriveCom state machine, speed setpoint and pipe pressure.

Example of use
Fuse test benchRaspberry PLC 19RSCPISerie USBControl

SCPI Power Supply Control with Raspberry PLC in Python

Control a Sorensen XG programmable power supply over SCPI from a Raspberry PLC: serial setup, SOUR:CURR and SOUR:VOLT commands, full Python example.

Example of use
Textile monitoring (weaving)ESP32 PLCSDDatalogging

SD Card Datalogging on an ESP32 PLC with Daily Files

SD card datalogging on an ESP32 PLC with one JSON file per day: RTC-named files, hot remount, offline buffering and recovery of pending machine data.

Example of use
Automated agricultural irrigationRaspberry Pi (Docker)TelegramAlerts

Smart Irrigation Telegram Bot: Alerts and Remote Control

Control irrigation from your phone with a Telegram bot on Node-RED: status queries, remote start and stop commands and instant alarm notifications.

Example of use
Automated agricultural irrigationRaspberry Pi (Docker)HTTPControl

Smart Irrigation with Weather API on Node-RED (OpenWeather)

Smart irrigation that checks OpenWeather before every cycle: Node-RED schedulers cancel watering when rain or frost is forecast, with a manual override.

Example of use
Geotechnical slope monitoringServer (Node-RED)SMTPAlerts

SMTP Email Alerts from a Monitoring Server with Python

Send automatic email alerts from an industrial monitoring server with Python smtplib and a Gmail app password. Restart and alarm notification script.

Example of use
Two-axis solar trackersRaspberry PLC 21CANopenControl

Solar Tracker Algorithm with PyEphem on a Raspberry PLC

Compute sun elevation and azimuth with PyEphem and drive a two-axis solar tracker from a Raspberry PLC 21. Full Python code with night rest position.

Example of use
Two-axis solar trackersRaspberry PLC 21systemdInfrastructure

Systemd Services for a Solar Tracker on a Raspberry PLC

Run a solar tracker control process and a WiFi hotspot as systemd services on a Raspberry PLC 21, with auto-restart, journald logs and Node-RED HMI.

Example of use
Two-axis solar trackersRaspberry PLC 21TCP socketCommunication

TCP Socket Between Python and Node-RED on a Raspberry PLC

Link a Python control process to a Node-RED dashboard with local TCP sockets on a Raspberry PLC 21. Encoder streaming plus start, stop, exit commands.

Example of use
Visual inspection (machine vision)Raspberry Pi + USB cameraUSB/V4L2Machine vision

Template Matching with Rotation Search in OpenCV

Rotation-tolerant template matching for pass/fail inspection in OpenCV. Rotate the capture from -15 to +15 degrees and score with TM_CCOEFF_NORMED.

Example of use
Fuse test benchRaspberry PLC 19RGPIOHMI / Dashboard

Tkinter Touchscreen HMI on a Raspberry PLC with Beacons

Build a fullscreen Tkinter HMI on a Raspberry PLC touchscreen: live current and temperature displays, mode buttons and stack-light beacons on relays.

Example of use
Textile monitoring (weaving)ESP32 PLCHTTPCommunication

Upload SD Files from an ESP32 PLC via HTTP POST

Recover buffered machine data: an ESP32 PLC streams SD card log files to a server by HTTP POST with basic auth, custom headers and confirmed delivery.

Example of use
Water pumping (sanitation)ESP32 PLC 14GPIOControl

Water Pump Control with an ESP32 PLC and Float Switches

Complete Arduino example: automatic water pump control with float level switches, fault detection and a state machine on an industrial ESP32 PLC.

Example of use
Textile monitoring (weaving)ESP32 PLCHTTPResilience / OTA

Web Server OTA Firmware Updates on an ESP32 PLC

Embedded web server with OTA firmware updates on an ESP32 PLC: status page, JSON endpoint and browser .bin upload — no USB cable on the factory floor.

Example of use