<?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[Adding sensors and relays to serial gateway]]></title><description><![CDATA[<p dir="auto">Hello all, as a newbie in the world of arduino's i've been messing with the serial gateway for a while now and i'm kinda stuck. Whatever I try, I just can't get the sensors and relays to work on the arduino nano with the serial gateway. Can anyone help me out? I am not sure how to assign those sensors and relays to childIDs. It probably isn't all too hard.. if you know how it works 😅.</p>
]]></description><link>https://forum.mysensors.org/topic/2535/adding-sensors-and-relays-to-serial-gateway</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Jul 2026 21:55:35 GMT</lastBuildDate><atom:link href="https://forum.mysensors.org/topic/2535.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 08 Dec 2015 16:09:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Adding sensors and relays to serial gateway on Wed, 09 Dec 2015 16:37:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/awi" aria-label="Profile: AWI">@<bdi>AWI</bdi></a> <a class="plugin-mentions-user plugin-mentions-a" href="/user/hoffan" aria-label="Profile: Hoffan">@<bdi>Hoffan</bdi></a> <a class="plugin-mentions-user plugin-mentions-a" href="/user/sundberg84" aria-label="Profile: sundberg84">@<bdi>sundberg84</bdi></a><br />
I can see both sketches are working, this is what the gateway prints out:</p>
<p dir="auto">0;0;3;0;14;Gateway startup complete.<br />
0;0;3;0;9;read: 105-105-0 s=255,c=0,t=18,pt=0,l=5:1.5.1<br />
105;255;0;0;18;1.5.1<br />
0;0;3;0;9;read: 105-105-0 s=255,c=3,t=6,pt=1,l=1:0<br />
105;255;3;0;6;0<br />
0;0;3;0;9;read: 105-105-0 s=255,c=3,t=11,pt=0,l=5:Relay<br />
105;255;3;0;11;Relay<br />
0;0;3;0;9;read: 105-105-0 s=255,c=3,t=12,pt=0,l=3:1.0<br />
105;255;3;0;12;1.0<br />
0;0;3;0;9;read: 105-105-0 s=1,c=0,t=3,pt=0,l=0:<br />
105;1;0;0;3;<br />
0;0;3;0;9;read: 105-105-0 s=2,c=0,t=3,pt=0,l=0:<br />
105;2;0;0;3;<br />
0;0;3;0;9;read: 105-105-0 s=3,c=0,t=3,pt=0,l=0:<br />
105;3;0;0;3;<br />
0;0;3;0;9;read: 105-105-0 s=4,c=0,t=3,pt=0,l=0:<br />
105;4;0;0;3;</p>
<p dir="auto">Is this correct?</p>
]]></description><link>https://forum.mysensors.org/post/26059</link><guid isPermaLink="true">https://forum.mysensors.org/post/26059</guid><dc:creator><![CDATA[Tino]]></dc:creator><pubDate>Wed, 09 Dec 2015 16:37:07 GMT</pubDate></item><item><title><![CDATA[Reply to Adding sensors and relays to serial gateway on Tue, 08 Dec 2015 20:26:38 GMT]]></title><description><![CDATA[<p dir="auto">Find parent means the node sends a request and trying to find its way to the gateway.<br />
Do you see anything in the gateway log during this time?</p>
]]></description><link>https://forum.mysensors.org/post/26005</link><guid isPermaLink="true">https://forum.mysensors.org/post/26005</guid><dc:creator><![CDATA[sundberg84]]></dc:creator><pubDate>Tue, 08 Dec 2015 20:26:38 GMT</pubDate></item><item><title><![CDATA[Reply to Adding sensors and relays to serial gateway on Tue, 08 Dec 2015 20:02:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hoffan" aria-label="Profile: Hoffan">@<bdi>Hoffan</bdi></a> I am using OpenHAB as automation on a Raspberry PI 2B and connected to a Arduino Nano.<br />
Next to that multiple (wireless) Nano's. The Nanos are connected with a serial gateway, atleast thats whats I am trying to achieve</p>
]]></description><link>https://forum.mysensors.org/post/26003</link><guid isPermaLink="true">https://forum.mysensors.org/post/26003</guid><dc:creator><![CDATA[Tino]]></dc:creator><pubDate>Tue, 08 Dec 2015 20:02:01 GMT</pubDate></item><item><title><![CDATA[Reply to Adding sensors and relays to serial gateway on Tue, 08 Dec 2015 19:45:56 GMT]]></title><description><![CDATA[<p dir="auto">What are you use as controller??</p>
]]></description><link>https://forum.mysensors.org/post/26002</link><guid isPermaLink="true">https://forum.mysensors.org/post/26002</guid><dc:creator><![CDATA[Hoffan]]></dc:creator><pubDate>Tue, 08 Dec 2015 19:45:56 GMT</pubDate></item><item><title><![CDATA[Reply to Adding sensors and relays to serial gateway on Tue, 08 Dec 2015 19:38:55 GMT]]></title><description><![CDATA[<p dir="auto">How to find out what the ChildIDs are of the relays? Or is this just guessing?</p>
]]></description><link>https://forum.mysensors.org/post/26001</link><guid isPermaLink="true">https://forum.mysensors.org/post/26001</guid><dc:creator><![CDATA[Tino]]></dc:creator><pubDate>Tue, 08 Dec 2015 19:38:55 GMT</pubDate></item><item><title><![CDATA[Reply to Adding sensors and relays to serial gateway on Tue, 08 Dec 2015 17:38:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/awi" aria-label="Profile: AWI">@<bdi>AWI</bdi></a></p>
<p dir="auto">As said, I've uploaded the gateway code and received this: 0;0;3;0;14;Gateway startup complete<br />
And I uploaded the <a href="http://www.mysensors.org/build/relay" rel="nofollow ugc">http://www.mysensors.org/build/relay</a> sketch to the other arduino, only changed the number of relays in the sketch. This is what I got from the relay sketch:</p>
<p dir="auto">find parent<br />
send: 105-105-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:<br />
find parent<br />
send: 105-105-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:<br />
find parent<br />
send: 105-105-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:<br />
repeater started, id=105, parent=255, distance=255<br />
find parent<br />
send: 105-105-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:<br />
find parent<br />
send: 105-105-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:<br />
find parent<br />
send: 105-105-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:<br />
find parent<br />
send: 105-105-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:<br />
find parent<br />
send: 105-105-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:<br />
find parent<br />
send: 105-105-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:</p>
]]></description><link>https://forum.mysensors.org/post/25995</link><guid isPermaLink="true">https://forum.mysensors.org/post/25995</guid><dc:creator><![CDATA[Tino]]></dc:creator><pubDate>Tue, 08 Dec 2015 17:38:18 GMT</pubDate></item><item><title><![CDATA[Reply to Adding sensors and relays to serial gateway on Tue, 08 Dec 2015 16:34:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tino" aria-label="Profile: Tino">@<bdi>Tino</bdi></a> Then next thing to do is get the gateway (with radio) running with the gateway sketch and verify the working with the serial monitor.</p>
<p dir="auto">If you completed that step, build the sensor node (with radio), load the relay sketch and verify if it connects to the gateway.</p>
]]></description><link>https://forum.mysensors.org/post/25992</link><guid isPermaLink="true">https://forum.mysensors.org/post/25992</guid><dc:creator><![CDATA[AWI]]></dc:creator><pubDate>Tue, 08 Dec 2015 16:34:13 GMT</pubDate></item><item><title><![CDATA[Reply to Adding sensors and relays to serial gateway on Tue, 08 Dec 2015 16:29:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/awi" aria-label="Profile: AWI">@<bdi>AWI</bdi></a></p>
<p dir="auto">I do have one arduino nano for the gateway, which is connected to my raspberry pi with the openHAB server. And furthermore I have four arduinos that I can use as nodes to connect sensors and relays to.</p>
]]></description><link>https://forum.mysensors.org/post/25991</link><guid isPermaLink="true">https://forum.mysensors.org/post/25991</guid><dc:creator><![CDATA[Tino]]></dc:creator><pubDate>Tue, 08 Dec 2015 16:29:29 GMT</pubDate></item><item><title><![CDATA[Reply to Adding sensors and relays to serial gateway on Tue, 08 Dec 2015 16:24:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tino" aria-label="Profile: Tino">@<bdi>Tino</bdi></a> Do you have only one nano for the gateway and relay node? or do you have two (a gateway nano and a node nano)?</p>
]]></description><link>https://forum.mysensors.org/post/25988</link><guid isPermaLink="true">https://forum.mysensors.org/post/25988</guid><dc:creator><![CDATA[AWI]]></dc:creator><pubDate>Tue, 08 Dec 2015 16:24:21 GMT</pubDate></item><item><title><![CDATA[Reply to Adding sensors and relays to serial gateway on Tue, 08 Dec 2015 16:20:48 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the fast reply!</p>
<p dir="auto">At this point I have my arduino nano with the mysensors serial gateway sketch uploaded to it and I have a 4 relayboard connected to the arduino. As I said, i'm new to Arduino programming and such. So the first question is, what to do next? Upload that relay code and include the code you sent?</p>
]]></description><link>https://forum.mysensors.org/post/25987</link><guid isPermaLink="true">https://forum.mysensors.org/post/25987</guid><dc:creator><![CDATA[Tino]]></dc:creator><pubDate>Tue, 08 Dec 2015 16:20:48 GMT</pubDate></item><item><title><![CDATA[Reply to Adding sensors and relays to serial gateway on Tue, 08 Dec 2015 16:14:26 GMT]]></title><description><![CDATA[<p dir="auto">Hi!  Do you have a gateway and a node working as a relay?</p>
<p dir="auto">Child ID is assigned 0 for first sensor/accutor 1 for the next and so on... this is done automaticly if you use the relay sketch from <a href="http://www.mysensors.org/build/relay" rel="nofollow ugc">http://www.mysensors.org/build/relay</a></p>
<pre><code>for (int sensor=1, pin=RELAY_1; sensor&lt;=NUMBER_OF_RELAYS;sensor++, pin++) {
    // Register all sensors to gw (they will be created as child devices)
    gw.present(sensor, S_LIGHT);```
</code></pre>
<p dir="auto">Maybe if you post your code and version its easier to help you, or what you have done so far.</p>
]]></description><link>https://forum.mysensors.org/post/25986</link><guid isPermaLink="true">https://forum.mysensors.org/post/25986</guid><dc:creator><![CDATA[sundberg84]]></dc:creator><pubDate>Tue, 08 Dec 2015 16:14:26 GMT</pubDate></item></channel></rss>