<?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[[Solved] Connecting 3 ENV units via 1 to 3 Hub to M5 Stack]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">is it possible to connect 3 Env Units via a 1 to 3 Hub to a M5 Stack and reading measurements of each of them?</p>
<p dir="auto">Thanks &amp; Best regards<br />
Thomas</p>
]]></description><link>https://community.m5stack.com/topic/1701/solved-connecting-3-env-units-via-1-to-3-hub-to-m5-stack</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Apr 2026 23:06:19 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/1701.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 16 Feb 2020 09:48:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [Solved] Connecting 3 ENV units via 1 to 3 Hub to M5 Stack on Mon, 17 Jul 2023 11:30:30 GMT]]></title><description><![CDATA[<p dir="auto">There is generic information on the PAHubs product information page.<br />
An almost identical project was on my list for last week but didn’t get around to it</p>
]]></description><link>https://community.m5stack.com/post/21604</link><guid isPermaLink="true">https://community.m5stack.com/post/21604</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Mon, 17 Jul 2023 11:30:30 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved] Connecting 3 ENV units via 1 to 3 Hub to M5 Stack on Mon, 17 Jul 2023 03:18:46 GMT]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I just started learning how to code and would like to connect ENVIII Unit and Mini TVOC/eCO2 Gas Unit with the PA.HUB to the BASIC kit using the Arduino IDE.<br />
Is there a simple tutorial in how to use the addresses provided in PA.HUB git?</p>
<p dir="auto">Thanks</p>
]]></description><link>https://community.m5stack.com/post/21602</link><guid isPermaLink="true">https://community.m5stack.com/post/21602</guid><dc:creator><![CDATA[Cmon169]]></dc:creator><pubDate>Mon, 17 Jul 2023 03:18:46 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved] Connecting 3 ENV units via 1 to 3 Hub to M5 Stack on Wed, 07 Dec 2022 21:24:55 GMT]]></title><description><![CDATA[<p dir="auto">I use UIFlow<br />
i get weard readings like -482827.3 when connect to pa.hub but connected direct to core 2 ewerything is ok</p>
]]></description><link>https://community.m5stack.com/post/19471</link><guid isPermaLink="true">https://community.m5stack.com/post/19471</guid><dc:creator><![CDATA[Kivlow]]></dc:creator><pubDate>Wed, 07 Dec 2022 21:24:55 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved] Connecting 3 ENV units via 1 to 3 Hub to M5 Stack on Wed, 07 Dec 2022 21:03:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kivlow" aria-label="Profile: kivlow">@<bdi>kivlow</bdi></a> Hi!  I have some experience with the PaHub and ENV sensors.<br />
Could you post your code (if it is Arduino IDE) or if it is too big, email me?</p>
]]></description><link>https://community.m5stack.com/post/19470</link><guid isPermaLink="true">https://community.m5stack.com/post/19470</guid><dc:creator><![CDATA[teastain]]></dc:creator><pubDate>Wed, 07 Dec 2022 21:03:18 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved] Connecting 3 ENV units via 1 to 3 Hub to M5 Stack on Wed, 07 Dec 2022 18:00:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/m5stack" aria-label="Profile: m5stack">@<bdi>m5stack</bdi></a> said in <a href="/post/7641">[Solved] Connecting 3 ENV units via 1 to 3 Hub to M5 Stack</a>:</p>
<blockquote>
<p dir="auto">0x76</p>
</blockquote>
<p dir="auto">Hello,<br />
i get a problem with Pa.HUB i connected to it ENV.III. I get Temp and Hum ok but i get -482827.3 for pressure.<br />
What is wrong ??</p>
]]></description><link>https://community.m5stack.com/post/19469</link><guid isPermaLink="true">https://community.m5stack.com/post/19469</guid><dc:creator><![CDATA[Kivlow]]></dc:creator><pubDate>Wed, 07 Dec 2022 18:00:11 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved] Connecting 3 ENV units via 1 to 3 Hub to M5 Stack on Wed, 29 Dec 2021 14:29:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/capacious" aria-label="Profile: capacious">@<bdi>capacious</bdi></a> Ah ok thanks. Do you know how to use the 1 to 3 Hub because when i connect 3 devices to the hub i get the error message: Please change unit to other grove. Do I need to select custom ports for these devices?</p>
]]></description><link>https://community.m5stack.com/post/15989</link><guid isPermaLink="true">https://community.m5stack.com/post/15989</guid><dc:creator><![CDATA[roccoskye]]></dc:creator><pubDate>Wed, 29 Dec 2021 14:29:27 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved] Connecting 3 ENV units via 1 to 3 Hub to M5 Stack on Wed, 29 Dec 2021 08:46:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/roccoskye" aria-label="Profile: roccoskye">@<bdi>roccoskye</bdi></a> Yes, the HUB makes it possible to connect more diferent I2C devices to the same port A. They all need to have different I2C addressess. The PaHub makes it possible to connect several sensors with the same I2C address and use them. On a HUB they would conflict and the system would know what sensor you'd be referencing to.</p>
]]></description><link>https://community.m5stack.com/post/15987</link><guid isPermaLink="true">https://community.m5stack.com/post/15987</guid><dc:creator><![CDATA[capacious]]></dc:creator><pubDate>Wed, 29 Dec 2021 08:46:10 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved] Connecting 3 ENV units via 1 to 3 Hub to M5 Stack on Tue, 28 Dec 2021 21:32:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/world101" aria-label="Profile: world101">@<bdi>world101</bdi></a> so the 1 to 3 Hub is used for 3 different i2C addresses?</p>
]]></description><link>https://community.m5stack.com/post/15984</link><guid isPermaLink="true">https://community.m5stack.com/post/15984</guid><dc:creator><![CDATA[roccoskye]]></dc:creator><pubDate>Tue, 28 Dec 2021 21:32:10 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved] Connecting 3 ENV units via 1 to 3 Hub to M5 Stack on Sun, 17 Jan 2021 13:10:33 GMT]]></title><description><![CDATA[<p dir="auto">I keep finding this thread whenever I search using ENV II over PaHUB, so instead of openning a new one I wanted to continue on this.</p>
<p dir="auto">I am new to development boards however I am an experienced platform developer.</p>
<p dir="auto">I have a Core2 and I want to use PaHUB and add couple of more units to read. I have no problem reading data via using Wire command over PaHUB like using 4way Relay.</p>
<p dir="auto">However, I have no idea how to use BMP and SHT over PaHUB. I have tried combining examples without any luck and tried above without any luck.</p>
<p dir="auto">Question is after portselect, how come bmp access to right address? If you can point me to any direcon, I will be grateful.</p>
<p dir="auto">Cheers.</p>
]]></description><link>https://community.m5stack.com/post/11843</link><guid isPermaLink="true">https://community.m5stack.com/post/11843</guid><dc:creator><![CDATA[OffLineR]]></dc:creator><pubDate>Sun, 17 Jan 2021 13:10:33 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved] Connecting 3 ENV units via 1 to 3 Hub to M5 Stack on Tue, 03 Mar 2020 03:43:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/thbonk" aria-label="Profile: thbonk">@<bdi>thbonk</bdi></a>  in the I2C bus, you can't  use two same address device at the same time. so if you connect the BTC to the BASIC, when the PaHUB switch channal select ENV Unit,  it will working not normal.  beacuse BTC and ENV all used DHT12, also has same I2C  address</p>
]]></description><link>https://community.m5stack.com/post/7654</link><guid isPermaLink="true">https://community.m5stack.com/post/7654</guid><dc:creator><![CDATA[m5stack]]></dc:creator><pubDate>Tue, 03 Mar 2020 03:43:54 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved] Connecting 3 ENV units via 1 to 3 Hub to M5 Stack on Mon, 02 Mar 2020 11:55:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/m5stack" aria-label="Profile: m5stack">@<bdi>m5stack</bdi></a> I only want to read the temperature and the humidity of the sensors connected to the PaHUB.</p>
<p dir="auto">The M5Stck was connected to the Base BTC. The PaHUB was connected to the red Grove port and two ENV sensors were connected to channels 0 and 1 of the PaHUB. I then installed my application, but the ENV sensors connected to the PaHUB didn't deliver any values. When I queried the channels 2-5 of PaHUB I received values, but all were the same.</p>
<p dir="auto">So I disconnected the M5Stack from the Base BTC; afterwards I received the temperature and humidity of the two ENV sensors connected to channels 0 and 1 of the PaHUB.</p>
<p dir="auto">Is it somehow possible to connect the M5Stack to the Base BTC but read the sensors connected to the PaHUB? Or do I need the PbHUB to achieve this?</p>
<p dir="auto">Best regards<br />
Thomas</p>
]]></description><link>https://community.m5stack.com/post/7647</link><guid isPermaLink="true">https://community.m5stack.com/post/7647</guid><dc:creator><![CDATA[thbonk]]></dc:creator><pubDate>Mon, 02 Mar 2020 11:55:05 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved] Connecting 3 ENV units via 1 to 3 Hub to M5 Stack on Mon, 02 Mar 2020 01:36:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/thbonk" aria-label="Profile: thbonk">@<bdi>thbonk</bdi></a> actually , the ENV Unit build-in two sensor IC. they I2C address is DHT12(0x5C) ， BMP280（0x76）, i saw your code.  you  was only define a 0x76 ,  but it is the BMP280 I2C address.</p>
]]></description><link>https://community.m5stack.com/post/7641</link><guid isPermaLink="true">https://community.m5stack.com/post/7641</guid><dc:creator><![CDATA[m5stack]]></dc:creator><pubDate>Mon, 02 Mar 2020 01:36:14 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved] Connecting 3 ENV units via 1 to 3 Hub to M5 Stack on Sun, 01 Mar 2020 16:20:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/m5stack" aria-label="Profile: m5stack">@<bdi>m5stack</bdi></a> <a class="plugin-mentions-user plugin-mentions-a" href="/user/sysdl132" aria-label="Profile: sysdl132">@<bdi>sysdl132</bdi></a> I don't get it working. I have connected the PaHUB to my M5Stack and two ENV sensors to the PaHUB.</p>
<p dir="auto">When I run the PaHUB demo, it shows the addresses 0x5C, 0x70, 0x75 and 0x76 for channel 0 and 1, and 0x5C, 0x70, 0x75 for the remaining channels.</p>
<p dir="auto">I my own program, I added the class TCA9548A and DHT22 (I renamed TCA9548A to PaHUB).</p>
<p dir="auto">My setup function looks like this:</p>
<pre><code class="language-C++">#define PaHub_I2C_ADDRESS  0x70
#define ENV_I2C_ADDRESS    0x76

PaHUB pahub;

void setup() {
  ez.begin();
  Wire.begin();
  pahub.address(PaHub_I2C_ADDRESS);
}
</code></pre>
<p dir="auto">I defined a struct for my sensors:</p>
<pre><code>struct Sensor {
  uint8_t channel;
  DHT12   device;
  char*   name;
};
</code></pre>
<p dir="auto">and an array of the struct which is initialized that way:</p>
<pre><code>struct Sensor sensors[] = {
  {0, DHT12(CELSIUS, ENV_I2C_ADDRESS), "Left"},
  {1, DHT12(CELSIUS, ENV_I2C_ADDRESS), "Hotspot"},
  {2, DHT12(CELSIUS, ENV_I2C_ADDRESS), "Right"},
  {3, DHT12(CELSIUS, ENV_I2C_ADDRESS), "Left"},
  {4, DHT12(CELSIUS, ENV_I2C_ADDRESS), "Hotspot"},
  {5, DHT12(CELSIUS, ENV_I2C_ADDRESS), "Right"}
};
</code></pre>
<p dir="auto">This is how I'm reading the sensors:</p>
<pre><code>struct SensorValues readSensor(int channel) {
  struct SensorValues sensorValues;
  struct Sensor sensor = sensors[channel];
  uint8_t returnCode = pahub.selectChannel(sensor.channel);

  Serial.println(" ---------- readSensor() ----------");
  Serial.print("pahub.selectChannel(");
  Serial.print(sensor.channel);
  Serial.print(") = ");
  Serial.println(returnCode);

  if (returnCode == 0) {
    sensorValues.temperature = sensor.device.readTemperature();
    sensorValues.humidity = sensor.device.readHumidity(); 
  }

  Serial.println(" ---------- readSensor() ----------");

  return sensorValues;
}
</code></pre>
<p dir="auto">Unfortunately I'm receiving always 0 for both the temperature and the humidity.<br />
Could anybody please give me a hint what I'm doing wrong?</p>
<p dir="auto">Thanks &amp; Best regards<br />
Thomas</p>
]]></description><link>https://community.m5stack.com/post/7636</link><guid isPermaLink="true">https://community.m5stack.com/post/7636</guid><dc:creator><![CDATA[thbonk]]></dc:creator><pubDate>Sun, 01 Mar 2020 16:20:26 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved] Connecting 3 ENV units via 1 to 3 Hub to M5 Stack on Mon, 24 Feb 2020 08:30:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/thbonk" aria-label="Profile: thbonk">@<bdi>thbonk</bdi></a> You can refer to these examples. Then combine them</p>
<p dir="auto">ENV:<a href="https://github.com/m5stack/M5Stack/tree/master/examples/Unit/ENV" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5Stack/tree/master/examples/Unit/ENV</a><br />
PaHUB：<a href="https://github.com/m5stack/M5Stack/tree/master/examples/Unit/PaHUB" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5Stack/tree/master/examples/Unit/PaHUB</a></p>
]]></description><link>https://community.m5stack.com/post/7560</link><guid isPermaLink="true">https://community.m5stack.com/post/7560</guid><dc:creator><![CDATA[m5stack]]></dc:creator><pubDate>Mon, 24 Feb 2020 08:30:39 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved] Connecting 3 ENV units via 1 to 3 Hub to M5 Stack on Mon, 24 Feb 2020 08:24:08 GMT]]></title><description><![CDATA[<p dir="auto">Maybe you can use the ENV example,then set the ENV I2C Address(to their port I2C address).You can see the examples of ENV and PaHub.Like:</p>
<pre><code>// Defines
#define PaHub_I2C_ADDRESS	0x70
#define ENV1_ADD	&lt;Your I2C address&gt;
#define ENV2_ADD	&lt;Your I2C address&gt;
#define ENV3_ADD	&lt;Your I2C address&gt;
#define ENV4_ADD	&lt;Your I2C address&gt;
...

</code></pre>
]]></description><link>https://community.m5stack.com/post/7559</link><guid isPermaLink="true">https://community.m5stack.com/post/7559</guid><dc:creator><![CDATA[sysdl132]]></dc:creator><pubDate>Mon, 24 Feb 2020 08:24:08 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved] Connecting 3 ENV units via 1 to 3 Hub to M5 Stack on Mon, 24 Feb 2020 07:38:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/m5stack" aria-label="Profile: m5stack">@<bdi>m5stack</bdi></a> Do you have a link to an example to access the ENV sensors via I2C hub? I'm using the Arduino IDE.</p>
]]></description><link>https://community.m5stack.com/post/7558</link><guid isPermaLink="true">https://community.m5stack.com/post/7558</guid><dc:creator><![CDATA[thbonk]]></dc:creator><pubDate>Mon, 24 Feb 2020 07:38:56 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved] Connecting 3 ENV units via 1 to 3 Hub to M5 Stack on Mon, 17 Feb 2020 13:29:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/thbonk" aria-label="Profile: thbonk">@<bdi>thbonk</bdi></a> yes use Pahub(the 1 to 6 Expansion Unit) would be a best choice to connect more than one ENV unit to a M5 Stack device.</p>
]]></description><link>https://community.m5stack.com/post/7458</link><guid isPermaLink="true">https://community.m5stack.com/post/7458</guid><dc:creator><![CDATA[m5stack]]></dc:creator><pubDate>Mon, 17 Feb 2020 13:29:19 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved] Connecting 3 ENV units via 1 to 3 Hub to M5 Stack on Sun, 16 Feb 2020 10:25:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/thbonk" aria-label="Profile: thbonk">@<bdi>thbonk</bdi></a> said in <a href="/post/7414">Connecting 3 ENV units via 1 to 3 Hub to M5 Stack</a>:</p>
<blockquote>
<p dir="auto">I also found the I2C 1 Hub to 6 Expansion Unit. I guess that this would be a better choice to connect more than one ENV unit to a M5 Stack device. Am I right?</p>
</blockquote>
<p dir="auto">Correct. With the other 1 to 3 Hub, you would have address conflicts. Use the 1 to 6 Expansion Unit.</p>
]]></description><link>https://community.m5stack.com/post/7415</link><guid isPermaLink="true">https://community.m5stack.com/post/7415</guid><dc:creator><![CDATA[world101]]></dc:creator><pubDate>Sun, 16 Feb 2020 10:25:17 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved] Connecting 3 ENV units via 1 to 3 Hub to M5 Stack on Sun, 16 Feb 2020 10:05:04 GMT]]></title><description><![CDATA[<p dir="auto">I also found the I2C 1 Hub to 6 Expansion Unit. I guess that this would be a better choice to connect more than one ENV unit to a M5 Stack device. Am I right?</p>
]]></description><link>https://community.m5stack.com/post/7414</link><guid isPermaLink="true">https://community.m5stack.com/post/7414</guid><dc:creator><![CDATA[thbonk]]></dc:creator><pubDate>Sun, 16 Feb 2020 10:05:04 GMT</pubDate></item></channel></rss>