Industrialized Raspberry Pi for Custom Automation Projects
For platform details read on here.
The image - Raspbian OS with Node-RED and Fieldbus node
Base of this image builds a tagged version of debian:jessie with installed Internet of Things flow-based programming web-tool Node-RED and two extra nodes Fieldbus in and Fieldbus out providing access to netPI's Industrial Networks SoC netX. The nodes initialize netX as either PROFINET IO device or EtherNet/IP adaptor allowing the exchange of cyclic IO process data with PLCs such as Siemens S7 or Allen Bradley.
To grant access to the Node-RED programming tool in the container its used port
1880 needs to be mapped to a free netPI host port.
To grant access to the Fieldbus Configuration web pages in the container the port
9000 needs to be mapped to netPI's port
The container needs the netPI "Host" network stack to be shared with it to use the same IP network setup as netPI
To grant access to the netX from inside the container the netPI's
/dev/spidev0.0 host device needs to be exposed to the container.
(On Pi 3 make sure the device /dev/spidev0.0 is activated. If not use
raspi-config tool to enable it.)
STEP 1. Open netPI's landing page under
https://<netpi's ip address>.
STEP 2. Click the Docker tile to open the Portainer.io Docker management user interface.
STEP 3. Enter the following parameters under Containers > Add Container
Host "1880" (any unused one) -> Container "1880"and
Host "9000" -> Container "9000"
Network > Network:
Restart policy" :
Runtime > Devices > add device:
Host "/dev/spidev0.0" -> Container "/dev/spidev0.0"
STEP 4. Press the button Actions > Start container
Pulling the image from Docker Hub may take up to 5 minutes.
On Pi 3
STEP 1. Establish a console connection to Pi 3.
STEP 2. Install Docker if not already done, else skip.
STEP 3. Run a container instance of image using the following command line
docker run -p 1880 -p 9000 --device=/dev/spidev0.0 --restart=always --network=host hilschernetpi/netpi-nodered-fieldbus
After starting the container open Node-RED in your browser with
http://<netPi ip address>:<mapped host port> e.g.
http://192.168.0.1:1880. Two extra nodes Fieldbus in and Fieldbus out in the nodes library provides you access to netPI's netX SoC. Their info tab explains how to use them.