# Raspberry Pi + Ignition Connection

**URL:** <https://forum.inductiveautomation.com/t/raspberry-pi-ignition-connection/76671>\
**Category:** Ignition\
**Created:** [July 20, 2023, 5:42pm UTC](https://forum.inductiveautomation.com/t/raspberry-pi-ignition-connection/76671 "2023-07-20T17:42:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon51424755](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@anon51424755](https://forum.inductiveautomation.com/u/anon51424755)\
**Post date:** [July 20, 2023, 5:42pm UTC](https://forum.inductiveautomation.com/t/raspberry-pi-ignition-connection/76671/1 "2023-07-20T17:42:40Z")

</div>

Hi,

I was wondering what people would consider is the easiest way of setting up a connection between a raspberry pi 3 model b and an ignition instance on a different device on the same network. I don't want to buy extra hardware, so I was wondering which type of connection most people would use, and if there were any resources you recommend.

The two sensors are a temperature sensor in one wire and a water level sensor in i2c.

Thanks!

Edit: I ended up using Modbus TCP for the connection, it worked well and you can find my code in this post: [Modbus TCP on Raspberry Pi to Ignition](https://forum.inductiveautomation.com/t/modbus-tcp-on-raspberry-pi-to-ignition/76730)

Past that code, the setup is pretty easy and you can google most of them.

---

<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 20, 2023, 5:44pm UTC](https://forum.inductiveautomation.com/t/raspberry-pi-ignition-connection/76671/2 "2023-07-20T17:44:17Z")

</div>

Do you already have software running on the RPi capable of reading those sensors?

---

<div class="post-metadata">

**Author:** ![anon51424755](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@anon51424755](https://forum.inductiveautomation.com/u/anon51424755)\
**Post date:** [July 20, 2023, 5:48pm UTC](https://forum.inductiveautomation.com/t/raspberry-pi-ignition-connection/76671/3 "2023-07-20T17:48:47Z")

</div>

Yeah I already have the sensors setup and I can read data from them on the pi. I just need help getting the data being read to the ignition instance.

---

<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 20, 2023, 5:49pm UTC](https://forum.inductiveautomation.com/t/raspberry-pi-ignition-connection/76671/4 "2023-07-20T17:49:38Z")

</div>

Well... the easiest thing might be to use the WebDev module to expose endpoints on the Ignition side, then periodically make HTTP POST requests to those endpoints with the sensor data. In the endpoint logic you can write it into memory tags.

---

<div class="post-metadata">

**Author:** ![anon51424755](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@anon51424755](https://forum.inductiveautomation.com/u/anon51424755)\
**Post date:** [July 20, 2023, 5:51pm UTC](https://forum.inductiveautomation.com/t/raspberry-pi-ignition-connection/76671/5 "2023-07-20T17:51:20Z")

</div>

Oh okay, thanks, I'll try that out and come back if I need any further help.

---

<div class="post-metadata">

**Author:** ![craigb](https://avatars.discourse-cdn.com/v4/letter/c/9f8e36/32.png) [@craigb](https://forum.inductiveautomation.com/u/craigb)\
**Post date:** [July 20, 2023, 6:16pm UTC](https://forum.inductiveautomation.com/t/raspberry-pi-ignition-connection/76671/6 "2023-07-20T18:16:57Z")

</div>

If you have used Node-red to read the sensor data there is an [ignition node](https://flows.nodered.org/node/node-red-contrib-ignition-nodes), There is also a [module for ignition](https://github.com/IgnitionModuleDevelopmentCommunity/IgnitionNode-RED) to read node-red too. You could also set node-red as OPC server. Never used any of these methods, only MQTT. Which would mean you have to buy the module unless this is for Maker.
