<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Raspberry Pi Ethernet Gateway with local sensors]]></title><description><![CDATA[<p dir="auto">Hi I’m new to MySensors and have some questions about a setup I want to make. I already have Domocticz running on a raspberry pi for the control of my lights and gas/power usage monitoring. Now I want to a MySensor that is monitoring the water level in our water tank. There is already a nice MySensors project done to measure this.</p>
<p dir="auto"><a href="https://forum.mysensors.org/topic/6216/round-water-tank-level-sensor">https://forum.mysensors.org/topic/6216/round-water-tank-level-sensor</a></p>
<p dir="auto">Only the setup usage a wireless connection to send the node information as are most of the projects. I want to use an old raspberry that I have and use it as gateway to connect to Domoticz which is gone be the controller. As sensor I use a Arduino nano and ultrasonic dept sensor, that I got working. But I want to connect de sensor/Arduino to the raspberry pi gateway by cable, let say a serial connection on the gpio.<br />
I found some topics that are saying you can add sensors directly to the gateway with MySensors library 2.0 but no further explanation are examples.<br />
What do I have so far:</p>
<ul>
<li>Domoticz controller that is looking for a MySensors Gateway with Lan interface  on IP bases.</li>
<li>Raspberry Pi with MySensors software probably not configured right.</li>
<li>Arduino Sensor with the wrong connection parameters.</li>
</ul>
<p dir="auto">I want to now how to start the MySensors configuration on the raspberry pi gateway. I used:<br />
./configure --my-gateway=ethernet --my-controller-ip-address=192.168.2.150<br />
make</p>
<p dir="auto">I think i’m missing something.</p>
<p dir="auto">Then there is the sensor. In the project the connection is through MY_RADIO_RF24 and I want to use a serial connection how can I modify the Arduino code so it connects with the gateway?</p>
<p dir="auto">Maybe It’s all very simple but I’m not getting there. Who can help me to get in the right direction.</p>
]]></description><link>https://forum.mysensors.org/topic/11596/raspberry-pi-ethernet-gateway-with-local-sensors</link><generator>RSS for Node</generator><lastBuildDate>Sun, 07 Jun 2026 17:05:36 GMT</lastBuildDate><atom:link href="https://forum.mysensors.org/topic/11596.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 28 Feb 2021 13:27:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Raspberry Pi Ethernet Gateway with local sensors on Wed, 03 Mar 2021 03:51:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jvdk" aria-label="Profile: jvdk">@<bdi>jvdk</bdi></a> I agree with the point made by <a class="plugin-mentions-user plugin-mentions-a" href="/user/evb" aria-label="Profile: evb">@<bdi>evb</bdi></a> , why would you want to wire connect the ultrasonic node rather than the usual radio connection ? You are adding levels of complexity and power demands for what reason ?</p>
<p dir="auto">My ultrasonic water tank node (pro-mini+rfm69) is now 2 years on the same 2xAA batteries sending in levels every hour (RTC), the only problem encountered - condensation forming a drip on the face of the ultrasonic head during very low temperatures.</p>
]]></description><link>https://forum.mysensors.org/post/109405</link><guid isPermaLink="true">https://forum.mysensors.org/post/109405</guid><dc:creator><![CDATA[zboblamont]]></dc:creator><pubDate>Wed, 03 Mar 2021 03:51:50 GMT</pubDate></item><item><title><![CDATA[Reply to Raspberry Pi Ethernet Gateway with local sensors on Mon, 01 Mar 2021 21:14:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jvdk" aria-label="Profile: jvdk">@<bdi>jvdk</bdi></a> What you want to do is possible, but requires a certain amount of electronics hardware knowledge and programming skills.<br />
I think this setup is not a standard within the mysensors library.</p>
<p dir="auto">Perhaps you should first ask yourself why you want to communicate with the gateway by wire?</p>
<p dir="auto">The sketch you have found to work with the ultrasonic sensor, normally sends its data via the radio module.<br />
This can be replaced by a serial protocol transport to the gateway, but you will have to write that yourself on both sides, both on the arduino and on the gateway.<br />
There are plenty of examples of code where arduino's talk to each other via the serial ports. On the Pi side you will also have to implement the same serial protocol.<br />
On the hardware side, you must take into account that the distance between the arduino and the Pi, is limited. The arduino and the Pi use a serial signal based on 5V. Be careful with arduino's that run on 3.3V, you will need to put a converter in between. If you want to bridge long distances, you will have to go to an RS485 implementation and not a serial RS232 implementation.</p>
<p dir="auto">Probably you want a wired solution because of the water tank.<br />
I've read already topics about it, I even think on this forum, about people who did build something equivalent.<br />
You can maybe search first other topics about this to get ideas of building this type of sensor.</p>
]]></description><link>https://forum.mysensors.org/post/109394</link><guid isPermaLink="true">https://forum.mysensors.org/post/109394</guid><dc:creator><![CDATA[evb]]></dc:creator><pubDate>Mon, 01 Mar 2021 21:14:39 GMT</pubDate></item><item><title><![CDATA[Reply to Raspberry Pi Ethernet Gateway with local sensors on Mon, 01 Mar 2021 20:23:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/evb" aria-label="Profile: evb">@<bdi>evb</bdi></a> Thanks for the fast reply!</p>
<p dir="auto">I read the other topic and I think that I know what I'm doing wrong. I want to connect a sensor to the gateway but stil want the Arduino in between because of the nice script I found.</p>
<p dir="auto">So my question should be is it possible to connect a Arduino with sensor to a raspberry gateway by wired connection?</p>
<p dir="auto">I a sketch of what I mean.</p>
<p dir="auto"><img src="/assets/uploads/files/1614630213802-mysensors-resized.png" alt="MySensors.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.mysensors.org/post/109392</link><guid isPermaLink="true">https://forum.mysensors.org/post/109392</guid><dc:creator><![CDATA[jvdk]]></dc:creator><pubDate>Mon, 01 Mar 2021 20:23:43 GMT</pubDate></item><item><title><![CDATA[Reply to Raspberry Pi Ethernet Gateway with local sensors on Sun, 28 Feb 2021 17:38:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jvdk" aria-label="Profile: jvdk">@<bdi>jvdk</bdi></a> I don't use a raspberry pi, but searching on this forum I found this topic : <a href="https://forum.mysensors.org/topic/11315/raspberry-pi-zero-gateway-with-local-sensor">https://forum.mysensors.org/topic/11315/raspberry-pi-zero-gateway-with-local-sensor</a><br />
(important : read the comment to use wait() and <strong>NOT</strong> delay())<br />
You could get in touch with the author if you have questions.</p>
]]></description><link>https://forum.mysensors.org/post/109362</link><guid isPermaLink="true">https://forum.mysensors.org/post/109362</guid><dc:creator><![CDATA[evb]]></dc:creator><pubDate>Sun, 28 Feb 2021 17:38:18 GMT</pubDate></item></channel></rss>