<?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[Atom Lite ENV II with 3A mini Relay]]></title><description><![CDATA[<p dir="auto">I will switch the heating on if the sensor say i'm under a defined Temp.<br />
but i have a Problem with the Relay.</p>
<p dir="auto">Hi I'm use the following parts.</p>
<p dir="auto">ATOM Lite<br />
<a href="https://docs.m5stack.com/#/en/core/atom_lite" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.m5stack.com/#/en/core/atom_lite</a><br />
HUB<br />
<a href="https://docs.m5stack.com/#/en/unit/hub" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.m5stack.com/#/en/unit/hub</a><br />
ENV II<br />
<a href="https://docs.m5stack.com/#/en/unit/envII" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.m5stack.com/#/en/unit/envII</a><br />
Relay:<br />
<a href="https://docs.m5stack.com/#/en/unit/relay" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.m5stack.com/#/en/unit/relay</a></p>
<ol>
<li>i have connected the HUB with the Atom Lite</li>
<li>i have connected the ENV II with the HUB</li>
</ol>
<p dir="auto">itis working with this Code.</p>
<p dir="auto">#include "M5Atom.h"<br />
#include &lt;Wire.h&gt;<br />
#include "Adafruit_Sensor.h"<br />
#include &lt;Adafruit_BMP280.h&gt;<br />
#include "SHT3X.h"<br />
SHT3X sht30;<br />
Adafruit_BMP280 bme;</p>
<p dir="auto">float tmp = 0.0;<br />
float hum = 0.0;<br />
float pressure = 0.0;</p>
<p dir="auto">void setup()<br />
{<br />
M5.begin(true, false, true);<br />
Wire.begin(26, 32);<br />
Serial.println(F("ENV Unit(SHT30 and BMP280) test..."));<br />
while (!bme.begin(0x76))<br />
{<br />
Serial.println("Could not find a valid BMP280 sensor, check wiring!");<br />
}<br />
}</p>
<p dir="auto">void loop() {<br />
pressure = bme.readPressure();<br />
if(sht30.get()==0)<br />
{<br />
tmp = sht30.cTemp;<br />
hum = sht30.humidity;<br />
}<br />
Serial.printf("Temperature: %2.2f*C  Humidity: %0.2f%%  Pressure: %0.2fPa\r\n", tmp, hum, pressure);</p>
<p dir="auto">digitalWrite(26, HIGH);<br />
delay(500);<br />
digitalWrite(26, LOW);<br />
delay(500);</p>
<p dir="auto">delay(100);<br />
}</p>
<p dir="auto">After i connect the Relay to the HUB nothing is working.</p>
<p dir="auto">I also have a PbHUB, would it work with the PbHUB?</p>
<p dir="auto">Do you have an Code example with the Atom Lite?</p>
<p dir="auto">thank you</p>
]]></description><link>https://community.m5stack.com/topic/2652/atom-lite-env-ii-with-3a-mini-relay</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Apr 2026 23:40:11 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/2652.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 26 Dec 2020 14:09:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Atom Lite ENV II with 3A mini Relay on Sun, 27 Dec 2020 21:22:31 GMT]]></title><description><![CDATA[<p dir="auto">Yes, it will work with the PbHUB.<br />
This is an example on UI Flow. The relay is connected to PbHUB port 0</p>
<p dir="auto"><img src="/assets/uploads/files/1609104144840-77cd9ae0-5c1a-42a3-974b-1037206c1a7c-image-resized.png" alt="0_1609104140897_77cd9ae0-5c1a-42a3-974b-1037206c1a7c-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/post/11391</link><guid isPermaLink="true">https://community.m5stack.com/post/11391</guid><dc:creator><![CDATA[Dario]]></dc:creator><pubDate>Sun, 27 Dec 2020 21:22:31 GMT</pubDate></item><item><title><![CDATA[Reply to Atom Lite ENV II with 3A mini Relay on Sun, 27 Dec 2020 15:55:41 GMT]]></title><description><![CDATA[<p dir="auto">Connecting the Relay on the bottom side works fine.</p>
<p dir="auto">But i want it on the Groove, so the GPIO Expander will be my Solution.<br />
Thats what i'm looking for.</p>
<p dir="auto">Thank you</p>
]]></description><link>https://community.m5stack.com/post/11387</link><guid isPermaLink="true">https://community.m5stack.com/post/11387</guid><dc:creator><![CDATA[mamtho]]></dc:creator><pubDate>Sun, 27 Dec 2020 15:55:41 GMT</pubDate></item><item><title><![CDATA[Reply to Atom Lite ENV II with 3A mini Relay on Sat, 26 Dec 2020 22:22:56 GMT]]></title><description><![CDATA[<p dir="auto">You are using the GPIO 26 for the I2C connection to the BMP280 and SHT30 sensors. Then you can't use this pin as GPIO to switch the relay at the same time.<br />
For the Relay, you will need a GPIO pin. For the BMP280, you will need I2C. This puts you in a dilemma if you only want to use the Grove connector. You can use the peripheral pins on the bottom side of the ATOM lite. Check this pin mapping:<br />
<a href="https://docs.m5stack.com/#/en/core/atom_lite?id=peripherals-pin-map" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.m5stack.com/#/en/core/atom_lite?id=peripherals-pin-map</a><br />
There you can find 5V, GND and some free GPIOs. That should work.</p>
<p dir="auto">Alternately you can buy the <a href="http://EXT.IO" target="_blank" rel="noopener noreferrer nofollow ugc">EXT.IO</a> GPIO Expander:<br />
<a href="https://m5stack.com/products/official-extend-serial-i-o-unit" target="_blank" rel="noopener noreferrer nofollow ugc">https://m5stack.com/products/official-extend-serial-i-o-unit</a><br />
Then, you can address 8 additional GPIOS via I2C.</p>
]]></description><link>https://community.m5stack.com/post/11379</link><guid isPermaLink="true">https://community.m5stack.com/post/11379</guid><dc:creator><![CDATA[hague]]></dc:creator><pubDate>Sat, 26 Dec 2020 22:22:56 GMT</pubDate></item></channel></rss>