Back to Embedded Projects

Custom Arduino PLC

Modular Industrial PLC ยท Opto-isolated I/O ยท Ladder Logic Support

๐Ÿ“Œ 1. Project Overview

This project aims to build a custom industrial PLC system based on Arduino, featuring a modular design that allows easy I/O expansion while ensuring maximum protection and electrical isolation for sensitive components, making it suitable for factory environments.

๐Ÿง  2. Controller Unit

The Arduino Nano was selected as the central brain of the system. Its compact size and sufficient processing power for automation applications make it ideal. The controller manages the scan cycle by interfacing with shift registers to expand its digital capabilities without consuming all I/O pins, leaving room for future expansions.

๐Ÿ”Œ 3. I/O Specifications

๐Ÿ“ฅ Digital Inputs (8 Channels)

Designed for 24V industrial sensors and switches.

  • Technology: 74HC165 (Parallel-to-Serial shift register)
  • Protection: PC817 Optocoupler for 24V isolation, protection diodes, and debouncing capacitors against EMI

๐Ÿ“ค Digital Outputs (8 Channels)

Designed for driving heavy loads via relays.

  • Technology: 74HC595 (Serial-to-Parallel shift register)
  • Protection: Opto-isolation โ†’ 2N2222 transistors โ†’ Relay coils + Flyback diodes

๐Ÿ“Š Analog Inputs (3 Channels)

Configured for 0-24V sensors (A0, A1, A2).

  • Signal Conditioning: Precision voltage dividers + 5.1V Zener diodes for over-voltage protection

๐Ÿ› ๏ธ 4. Key Components

Arduino Nano 74HC165 74HC595 PC817 Optocoupler 2N2222 Transistor 5V Relays Flyback Diodes Zener 5.1V

๐Ÿ’ป 5. Design & Simulation

โš™๏ธ 6. Programming Environment

๐Ÿ 7. Results & Conclusion

This project delivers an economical yet professional solution, combining Arduino's simplicity with robust industrial-grade isolation. The result is a fully customizable PLC capable of managing production lines with high efficiency and reliability.

View Full Code & Schematics