PLC Solution Library
65 field-proven functionalities from real industrial deployments of Industrial Shields PLCs — filter by device, protocol, category or application.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.