Selection guides

Raspberry Pi vs PLC

Updated

A bare Raspberry Pi board is not a replacement for a PLC: it has 3.3 V logic pins, no isolated 24 V I/O, and no industrial ratings. An industrial controller built on a Raspberry Pi Compute Module is different. It adds 24 V I/O, a DIN-rail enclosure and sometimes PLC-standard design and UL listing, and it can do many jobs a small PLC does, plus things a PLC cannot, such as running databases, web dashboards and cloud connections. For safety functions and hard real-time motion, use a PLC or a safety controller.

What makes a PLC a PLC

A programmable logic controller is defined less by its processor than by the standards it is built and programmed to:

  • IEC 61131-2 sets functional and EMC requirements, and the tests to verify them, for programmable controllers and their peripherals used in machines and industrial processes. The current edition is from 2017, and it moved safety requirements to IEC 61010-2-201 (IEC). It covers things like 24 V digital input types, power interruptions and noise immunity.
  • IEC 61131-3 defines the programming languages, including Structured Text, Ladder Diagram and Function Block Diagram. The current edition is IEC 61131-3:2025 (IEC). PLCopen promotes the standard and its tooling (PLCopen).

A PLC also runs a fixed, cyclic program: read inputs, run logic, write outputs, repeat. Its firmware does little else, so the cycle time is predictable, and it starts in seconds after a power cut.

What a Raspberry Pi controller is

An industrial Pi controller is a Linux computer in a DIN-rail case. At its core is a Compute Module such as the CM5, with a quad-core Cortex-A76 at 2.4 GHz and up to 16 GB of RAM (Raspberry Pi), rated -20 to +85 °C as a module (CM5 brief). Around it the vendor adds power, isolated I/O and fieldbus ports. Some go further toward a PLC:

  • KUNBUS says the Revolution Pi series was “developed according to” EN 61131-2 (product page), and the RevPi Connect 5 documentation gives UL File No. E494534 (docs).
  • KUNBUS supports CODESYS, an IEC 61131-3 environment, alongside Python and Node-RED (software).
  • Industrial Shields sells a “Raspberry PLC” family with 17 to 62 I/O points built in (Industrial Shields).

Side by side

Typical compact PLC Industrial Raspberry Pi controller Bare Raspberry Pi board
I/O 24 V isolated, built in or modules 24 V isolated, built in or modules (varies by vendor) 3.3 V GPIO, not isolated
Programming IEC 61131-3 languages Python, Node-RED, C, containers; IEC 61131-3 through CODESYS or similar Same as controller
Determinism Fixed scan cycle by design Depends on the OS, real-time patches and your code Same as controller
Boot after power loss Seconds A Linux boot; plan for it A Linux boot
Storage Firmware and retentive memory eMMC or SSD; file system can corrupt on power loss if not designed for it Often microSD
Networking and IT Usually limited, vendor-specific Full Linux stack: MQTT, databases, web, VPN Same
Certifications Usually CE, UL, often hazardous-area options Varies: CE common, UL rare None for industrial use
Lifecycle Often 10+ years from major vendors Module: CM5 until at least January 2036 (Raspberry Pi); controller depends on vendor Board-specific

Where a Pi controller is the better choice

  • Data and connectivity. Logging to a database, publishing MQTT, serving a web dashboard and calling cloud APIs are routine on Linux. Node-RED runs on it directly.
  • Protocol gateways. Reading Modbus RTU over RS485 and republishing it as Modbus TCP or MQTT. Several controllers have three or more isolated RS485 ports (Seeed).
  • Monitoring and alarms. Watching levels, pumps or temperatures and notifying people, where a missed scan cycle of a few milliseconds does not matter.
  • Software teams. If your staff write Python or JavaScript rather than ladder logic, they can use the tools they know, with version control and code review.
  • Edge computing. Running vision or analytics next to the machine.

Where a PLC is the better choice

  • Safety functions. Emergency stops, guards and light curtains belong on certified safety relays or safety PLCs, not on a general-purpose Linux controller.
  • Hard real-time control. Fast motion, tight loops and synchronized axes need guaranteed cycle times. A Linux controller can get close with a real-time kernel and careful design, but you must test it; a PLC gives it by design.
  • Plants standardized on one vendor. If maintenance staff troubleshoot in one PLC environment, a second platform adds training and spares.
  • Regulated or insured sites that require a specific listing the Pi controller does not have.

Using both

A common pattern is to let a PLC run the machine and put a Pi controller beside it to read the PLC over Modbus TCP or another protocol, store data, show it, and send alarms. The PLC keeps control deterministic; the Pi does the IT work the PLC is poor at. This also avoids touching validated PLC code.

A middle option: microcontroller PLCs

Arduino Opta is a PLC built on a microcontroller, not Linux. It is programmable in IEC 61131-3 languages, cULus-listed, rated -20 to +50 °C (datasheet), and costs from €156 for the Opta Lite as of 2026-11-19 (store). It boots fast and runs a fixed cycle, but it cannot host Linux software.

How to decide

  1. Is any function safety-related? Use a safety-rated device for it, whatever else you choose.
  2. Do you need a cycle time you must guarantee in milliseconds? Prefer a PLC, or test a real-time Linux setup under load.
  3. Is the job mostly data, connectivity, gateways or alarms? A Pi controller is usually cheaper and more flexible.
  4. Does the site require UL or another listing? Check the specific product’s file number before buying.

halfnine plans a CM5 controller aimed at monitoring, gateways and alarms. To be decided: halfnine I/O, real-time behaviour and certification status, once confirmed.

Sources

  1. IEC 61131-2:2017, Programmable controllers, equipment requirements and tests, accessed 2026-11-19
  2. IEC 61131-3:2025, Programmable controllers, programming languages, accessed 2026-11-19
  3. PLCopen, IEC 61131-3, accessed 2026-11-19
  4. Raspberry Pi Compute Module 5 product page, accessed 2026-11-19
  5. Raspberry Pi Compute Module 5 product brief, accessed 2026-11-19
  6. Revolution Pi Connect product page, accessed 2026-11-19
  7. RevPi Connect 5 documentation, accessed 2026-11-19
  8. Revolution Pi software overview, accessed 2026-11-19
  9. Industrial Shields product taxonomy, accessed 2026-11-19
  10. Arduino Opta Lite store page, accessed 2026-11-19
  11. Arduino Opta datasheet, accessed 2026-11-19
  12. Seeed Studio wiki, reComputer Industrial R20xx, accessed 2026-11-19
  13. Node-RED, accessed 2026-11-19