fischertechnik is a German building system used as well to play, teach STEM and perform industrial simulations.
An interface board from Didacta Advance allows to use a Raspberry Pi to control a model. Along sequential programming with Pyhton, I've explored event-based programming with Node-RED to drive an automatic barrier model.
Sure, Linux could not offer real-time deterministic monitoring, but Node-RED makes IIoT really easy to use, with remote command-and-control dashboard .
Discover the project.