# RPi4 question/info

**URL:** <https://forum.inductiveautomation.com/t/rpi4-question-info/36444>\
**Category:** Maker\
**Created:** [July 7, 2020, 5:38pm UTC](https://forum.inductiveautomation.com/t/rpi4-question-info/36444 "2020-07-07T17:38:20Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![a.sliver](https://avatars.discourse-cdn.com/v4/letter/a/71c47a/32.png) [@a.sliver](https://forum.inductiveautomation.com/u/a.sliver)\
**Post date:** [July 7, 2020, 5:38pm UTC](https://forum.inductiveautomation.com/t/rpi4-question-info/36444/1 "2020-07-07T17:38:20Z")

</div>

I have looked online for some information on how to get the GPIO to Ignition but I’m a bit lost. I have done programming (C#, C++, Java and Python) so I have I have to write code the shouldn’t be too much of an issue. However, I’m trying to find any current way to get the information on a Raspberry Pi 4 to Ignition. I will let you know that I am new to Ignition itself and this is more as a home learning project.

Thank you for any answers!

---

<div class="post-metadata">

**Author:** ![bruce](https://avatars.discourse-cdn.com/v4/letter/b/ccd318/32.png) [@bruce](https://forum.inductiveautomation.com/u/bruce)\
**Post date:** [July 7, 2020, 6:35pm UTC](https://forum.inductiveautomation.com/t/rpi4-question-info/36444/2 "2020-07-07T18:35:22Z")

</div>

Try Node Red. Can control the GPIO pins and can be configured as an OPC UA server that you can configure in the gateway under OPC connections. Or you can do modbus tcp in node red on the pi. Easier to set up if you’re unfamiliar with OPC UA.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [July 7, 2020, 9:12pm UTC](https://forum.inductiveautomation.com/t/rpi4-question-info/36444/3 "2020-07-07T21:12:23Z")

</div>

It’d be great if someone versed in Java could write a module to talk directly to the pins 🙂 🙂

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [July 7, 2020, 9:15pm UTC](https://forum.inductiveautomation.com/t/rpi4-question-info/36444/4 "2020-07-07T21:15:31Z")

</div>

If pi4j 2.0 ever sees a release me or somebody else around here probably will.

[https://github.com/Pi4J/pi4j-v2](https://github.com/Pi4J/pi4j-v2)

---

<div class="post-metadata">

**Author:** ![a.sliver](https://avatars.discourse-cdn.com/v4/letter/a/71c47a/32.png) [@a.sliver](https://forum.inductiveautomation.com/u/a.sliver)\
**Post date:** [July 9, 2020, 3:39pm UTC](https://forum.inductiveautomation.com/t/rpi4-question-info/36444/5 "2020-07-09T15:39:27Z")

</div>

I did some looking into Node Red and other ways of creating an OPC UA server but everything I have found has old out of date commands. However, I found this site on github ([https://github.com/OPCFoundation](https://github.com/OPCFoundation)) and would like feedback as this type of programming is new for me. I’m use to Discord bots, basic chat applications that people want to use on a single network to name the more involved programs i have made. Lesser programs is custom made budget tracking. i know a bit low level programming for a lot of you.

---

<div class="post-metadata">

**Author:** ![Garrettwosmek](https://avatars.discourse-cdn.com/v4/letter/g/a4c791/32.png) [@Garrettwosmek](https://forum.inductiveautomation.com/u/Garrettwosmek)\
**Post date:** [July 17, 2020, 7:57pm UTC](https://forum.inductiveautomation.com/t/rpi4-question-info/36444/6 "2020-07-17T19:57:08Z")

</div>

download and install OPENPLC from [https://www.openplcproject.com/runtime/raspberry-pi/](https://www.openplcproject.com/runtime/raspberry-pi/) on to the raspberry pi.

right now I have multiple pi zeros running with it installed. simple program running that just has holding registers mapped to outputs. I also have DS18b20 temp sensors installed and mapped to holding registers. so for about $25 total you get a rasp pi that has 10 input 10 output and temp input that talks ModbusTCP. they are also working on Eth/IP for it.

---

<div class="post-metadata">

**Author:** ![Kyle\_Chase](https://avatars.discourse-cdn.com/v4/letter/k/9de0a6/32.png) [@Kyle\_Chase](https://forum.inductiveautomation.com/u/Kyle_Chase)\
**Post date:** [July 18, 2020, 7:04am UTC](https://forum.inductiveautomation.com/t/rpi4-question-info/36444/7 "2020-07-18T07:04:54Z")

</div>

You can also run Codesys on the raspberry pi to get access to GPIO (I think). Expensive, but might be worth a shot.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [July 18, 2020, 1:46pm UTC](https://forum.inductiveautomation.com/t/rpi4-question-info/36444/8 "2020-07-18T13:46:15Z")

</div>

If no one gets to it first, I'll eventually do a driver based on pigpio, as I noted over in this other thread:

> [@Maker and Rasbery pi & Jetson nano GPIO access](http://forum.inductiveautomation.com/t/maker-and-rasbery-pi-jetson-nano-gpio-access/36344/2):
>
> I recommend running the [pigpiod](https://github.com/joan2937/pigpio) daemon and connecting to its socket interface from a long-lived asynchronous thread. The client-side python module for that project looks jython-compatible, but you might want to optimize it. Python’s socket module is notoriously laggy in jython.

Its worth noting that the driver could be on any gateway that has network access to the RPi, not necessarily on-board. A single gateway could have multiple driver instances pointing into a cloud of RPi's as if they were "Remote I/O".

---

<div class="post-metadata">

**Author:** ![MikeAllgood](https://avatars.discourse-cdn.com/v4/letter/m/a183cd/32.png) [@MikeAllgood](https://forum.inductiveautomation.com/u/MikeAllgood)\
**Post date:** [August 17, 2020, 9:38pm UTC](https://forum.inductiveautomation.com/t/rpi4-question-info/36444/9 "2020-08-17T21:38:15Z")

</div>

That sounds interesting!  
I’m planning on building a weather station with interior temp/humidity monitoring.  
The base will be an RPi 4 with the remote sensors using RPi 0s.  
All will be connected to a wireless network.  
Having the base simply pull the sensor data from the 0s would make things simple!  
I hope you get some time to create this driver. 🙂
