Introduction
The Raspberry Pi is a tiny and affordable computer that you can use to learn programming through fun and practical projects for industrial automation.
At Industrial Shields we take it to the next level, allowing it to be used in the industrial field, with higher capabilities.
So, in this post, we are going to show you how to adapt a Raspberry Pi image to a Raspberry Pi based PLC image so that you can use them with your open-source industrial controllers.Â
Related Links
Requirements
- Raspberry PLC
- Power Supply
- MicroSD card
- MicroSD card adapter for PC
- HDMI cable with an external screen + keyboard for your Raspberry PLCÂ
Explanation
In order to add the configuration files of an industrial Raspberry PLC image to a Raspberry Pi OS, follow these steps:
1. Download the Raspberry Pi ImagerÂ
2. Download an operating system image from Raspberry Pi. You can choose among "Raspberry Pi OS with desktop and recommended software", "Raspberry Pi OS with desktop", "Raspberry Pi OS Lite" or any available image.
All the operating system images are available HERE.Â
3. Take your microSD card with an adapter for your PC, and write the image from the Raspberry Pi Imager.
4. Once written, introduce the microSD card in your Raspberry PLC and do the setup.
5. Create a file in your industrial Raspberry Pi PLC controller called install.sh, and copy this content. (Do not use windows notepad for this)Â
Another way of doing this step is to run this command on your open source PLC Raspberry Pi terminal (Internet connectivity is needed)
wget https://apps.industrialshields.com/main/rpi/rpiplc_v4/install.sh
6. Run this command to change the permissions:Â
chmod 755 install.sh
7. Finally, run it as a superuser:
sudo ./install.sh
How to build a Raspberry PLC image from a Raspberry Pi OS