Simplified industrial plants are modelled as finite state machines and implemented on Raspberry Pi using Python. Logic controllers are designed for these plants and implemented on an ATMega828P microcontroller. An alternative implementation of the Logic Controllers as Programmable Logic Controllers (PLCs) is also carried out using OpenPLC.
Using a Raspberry Pi and an ATMega828P equipped Arduino UNO, real-time industrial control processes can be simulated!
As a possible future extension, fault states & transitions may be added to the plants and dignosis systems may be incorporated to tackle these.
Basic industrial plants are simplified and modelled as finite state machines. Simulation models are developed using Mathworks's Stateflow. Stateflow is a control logic tool used to model reactive systems via state machines and flow charts [1]. The simplified plants are implemented on a Raspberry Pi using the Python programming language. The choice of using the Raspberry Pi is due to the ease of communicating with the logic controller via it's general purpose input/output (GPIO) ports.
The logic controllers are designed as finite state machines and validated and verified using NuSMV. They are implemented on an ATMega828P using avr-libc package and also as PLCs using OpenPLC.
The following plants are modelled: