<?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[Earth sensor]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I am a newbie to M5stack and want to use the Earth sensor to display moisture values. I followed the instructions as outlined in this video by exactly rebuilding the respective code: <a href="https://www.youtube.com/watch?v=rYi8XLe3X_c" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.youtube.com/watch?v=rYi8XLe3X_c</a></p>
<p dir="auto">The device now does show data, but it is constantly above 1000 even when just laying on my desk without any contact to water (up to the maximum of 1024 which, as far as I understand, indicates that the sensor detects water (fully wet)). When I put the senor into water, the readings do not change they stay above 1000.</p>
<p dir="auto">Any idea what I did wrong?</p>
<p dir="auto"><img src="/assets/uploads/files/1716385036878-20240522_153156.jpg" alt="20240522_153156.jpg" class=" img-fluid img-markdown" /> <img src="/assets/uploads/files/1716385037158-20240522_153502.jpg" alt="20240522_153502.jpg" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/topic/6492/earth-sensor</link><generator>RSS for Node</generator><lastBuildDate>Thu, 30 Apr 2026 15:16:52 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/6492.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 22 May 2024 13:38:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Earth sensor on Sun, 26 May 2024 07:57:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rudi15" aria-label="Profile: rudi15">@<bdi>rudi15</bdi></a> said in <a href="/post/25352">Earth sensor</a>:</p>
<blockquote>
<p dir="auto">Hello,</p>
<p dir="auto">I am a newbie to M5stack and want to use the Earth sensor to display moisture values. I followed the instructions as outlined in this video by exactly rebuilding the respective code: <a href="https://www.youtube.com/watch?v=rYi8XLe3X_c" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.youtube.com/watch?v=rYi8XLe3X_c</a></p>
<p dir="auto">The device now does show data, but it is constantly above 1000 even when just laying on my desk without any contact to water (up to the maximum of 1024 which, as far as I understand, indicates that the sensor detects water (fully wet)). When I put the senor into water, the readings do not change they stay above 1000.</p>
<p dir="auto">Any idea what I did wrong?</p>
<p dir="auto"><img src="/assets/uploads/files/1716385036878-20240522_153156.jpg" alt="20240522_153156.jpg" class=" img-fluid img-markdown" /> <img src="/assets/uploads/files/1716385037158-20240522_153502.jpg" alt="20240522_153502.jpg" class=" img-fluid img-markdown" /></p>
</blockquote>
<p dir="auto">It wont work as the RED Port is PortA I2C, you need to connect it to a Black Port B or use a PBhub to convert to I2C</p>
]]></description><link>https://community.m5stack.com/post/25406</link><guid isPermaLink="true">https://community.m5stack.com/post/25406</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Sun, 26 May 2024 07:57:06 GMT</pubDate></item><item><title><![CDATA[Reply to Earth sensor on Fri, 24 May 2024 11:27:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/robski" aria-label="Profile: robski">@<bdi>robski</bdi></a> generally yes. I can see these examples in UI Flow and I did use them when building the code.</p>
]]></description><link>https://community.m5stack.com/post/25384</link><guid isPermaLink="true">https://community.m5stack.com/post/25384</guid><dc:creator><![CDATA[rudi15]]></dc:creator><pubDate>Fri, 24 May 2024 11:27:09 GMT</pubDate></item><item><title><![CDATA[Reply to Earth sensor on Fri, 24 May 2024 07:19:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rudi15" aria-label="Profile: rudi15">@<bdi>rudi15</bdi></a> said in <a href="/post/25379">Earth sensor</a>:</p>
<blockquote>
<p dir="auto">And just for the sake of completeness: The sensor is on Port B.</p>
<p dir="auto"><img src="/assets/uploads/files/1716529214960-screenshot-2024-05-24-at-07-39-24-m5flow.png" alt="Screenshot 2024-05-24 at 07-39-24 M5Flow.png" class=" img-fluid img-markdown" /></p>
</blockquote>
<p dir="auto">is example which you can load from Earth unit section works?</p>
<p dir="auto"><img src="/assets/uploads/files/1716535188773-earth-example.jpg" alt="earth example.jpg" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/post/25380</link><guid isPermaLink="true">https://community.m5stack.com/post/25380</guid><dc:creator><![CDATA[robski]]></dc:creator><pubDate>Fri, 24 May 2024 07:19:49 GMT</pubDate></item><item><title><![CDATA[Reply to Earth sensor on Fri, 24 May 2024 05:40:46 GMT]]></title><description><![CDATA[<p dir="auto">And just for the sake of completeness: The sensor is on Port B.</p>
<p dir="auto"><img src="/assets/uploads/files/1716529214960-screenshot-2024-05-24-at-07-39-24-m5flow.png" alt="Screenshot 2024-05-24 at 07-39-24 M5Flow.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/post/25379</link><guid isPermaLink="true">https://community.m5stack.com/post/25379</guid><dc:creator><![CDATA[rudi15]]></dc:creator><pubDate>Fri, 24 May 2024 05:40:46 GMT</pubDate></item><item><title><![CDATA[Reply to Earth sensor on Fri, 24 May 2024 05:37:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ajb2k3" aria-label="Profile: ajb2k3">@<bdi>ajb2k3</bdi></a> Yes, correct UIFlow 1. Should I switch to UIFlow 2? It's indeed just that piece of code so far as I found some videos that only do that and it seems to work. No initialization or so as I could not find any information or command on initialization etc. Also, I have no idea how I would calibrate the sensor and whether that would help. In case you have any hints on what to do? Thanks again!</p>
]]></description><link>https://community.m5stack.com/post/25378</link><guid isPermaLink="true">https://community.m5stack.com/post/25378</guid><dc:creator><![CDATA[rudi15]]></dc:creator><pubDate>Fri, 24 May 2024 05:37:47 GMT</pubDate></item><item><title><![CDATA[Reply to Earth sensor on Thu, 23 May 2024 16:42:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/robski" aria-label="Profile: robski">@<bdi>robski</bdi></a> said in <a href="/post/25371">Earth sensor</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rudi15" aria-label="Profile: rudi15">@<bdi>rudi15</bdi></a> said in <a href="/post/25366">Earth sensor</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ajb2k3" aria-label="Profile: ajb2k3">@<bdi>ajb2k3</bdi></a> Sure, thanks. Here is the code:</p>
<p dir="auto"><img src="/assets/uploads/files/1716445714334-uiflow_block_1716445581066.png" alt="uiflow_block_1716445581066.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">from m5stack import *<br />
from m5ui import *<br />
from uiflow import *<br />
import time<br />
import unit</p>
<p dir="auto">setScreenColor(0x222222)<br />
earth_0 = unit.get(unit.EARTH, unit.PORTB)</p>
<p dir="auto">MoistureAnalog = M5TextBox(14, 59, "Analog", lcd.FONT_Ubuntu, 0xFFFFFF, rotate=0)</p>
<p dir="auto">while True:<br />
MoistureAnalog.setText(str((str('Earth Sensor Analog: ') + str((earth_0.analogValue)))))<br />
wait_ms(500)<br />
wait_ms(2)</p>
</blockquote>
<p dir="auto">Is your earth unit initialized? I cant see any reference to port B gpio<br />
<img src="/assets/uploads/files/1716472646638-earthunit0.jpg" alt="earthunit0.jpg" class=" img-fluid img-markdown" /></p>
</blockquote>
<p dir="auto">Judging by the colour blocks he’s using UIFlow 1 not UIFlow2</p>
]]></description><link>https://community.m5stack.com/post/25374</link><guid isPermaLink="true">https://community.m5stack.com/post/25374</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Thu, 23 May 2024 16:42:55 GMT</pubDate></item><item><title><![CDATA[Reply to Earth sensor on Thu, 23 May 2024 13:57:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rudi15" aria-label="Profile: rudi15">@<bdi>rudi15</bdi></a> said in <a href="/post/25366">Earth sensor</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ajb2k3" aria-label="Profile: ajb2k3">@<bdi>ajb2k3</bdi></a> Sure, thanks. Here is the code:</p>
<p dir="auto"><img src="/assets/uploads/files/1716445714334-uiflow_block_1716445581066.png" alt="uiflow_block_1716445581066.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">from m5stack import *<br />
from m5ui import *<br />
from uiflow import *<br />
import time<br />
import unit</p>
<p dir="auto">setScreenColor(0x222222)<br />
earth_0 = unit.get(unit.EARTH, unit.PORTB)</p>
<p dir="auto">MoistureAnalog = M5TextBox(14, 59, "Analog", lcd.FONT_Ubuntu, 0xFFFFFF, rotate=0)</p>
<p dir="auto">while True:<br />
MoistureAnalog.setText(str((str('Earth Sensor Analog: ') + str((earth_0.analogValue)))))<br />
wait_ms(500)<br />
wait_ms(2)</p>
</blockquote>
<p dir="auto">Is your earth unit initialized? I cant see any reference to port B gpio<br />
<img src="/assets/uploads/files/1716472646638-earthunit0.jpg" alt="earthunit0.jpg" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/post/25371</link><guid isPermaLink="true">https://community.m5stack.com/post/25371</guid><dc:creator><![CDATA[robski]]></dc:creator><pubDate>Thu, 23 May 2024 13:57:28 GMT</pubDate></item><item><title><![CDATA[Reply to Earth sensor on Thu, 23 May 2024 06:29:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ajb2k3" aria-label="Profile: ajb2k3">@<bdi>ajb2k3</bdi></a> Sure, thanks. Here is the code:</p>
<p dir="auto"><img src="/assets/uploads/files/1716445714334-uiflow_block_1716445581066.png" alt="uiflow_block_1716445581066.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">from m5stack import *<br />
from m5ui import *<br />
from uiflow import *<br />
import time<br />
import unit</p>
<p dir="auto">setScreenColor(0x222222)<br />
earth_0 = unit.get(unit.EARTH, unit.PORTB)</p>
<p dir="auto">MoistureAnalog = M5TextBox(14, 59, "Analog", lcd.FONT_Ubuntu, 0xFFFFFF, rotate=0)</p>
<p dir="auto">while True:<br />
MoistureAnalog.setText(str((str('Earth Sensor Analog: ') + str((earth_0.analogValue)))))<br />
wait_ms(500)<br />
wait_ms(2)</p>
]]></description><link>https://community.m5stack.com/post/25366</link><guid isPermaLink="true">https://community.m5stack.com/post/25366</guid><dc:creator><![CDATA[rudi15]]></dc:creator><pubDate>Thu, 23 May 2024 06:29:04 GMT</pubDate></item><item><title><![CDATA[Reply to Earth sensor on Thu, 23 May 2024 05:15:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rudi15" aria-label="Profile: rudi15">@<bdi>rudi15</bdi></a> Can you post your UIFlow code?</p>
]]></description><link>https://community.m5stack.com/post/25360</link><guid isPermaLink="true">https://community.m5stack.com/post/25360</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Thu, 23 May 2024 05:15:34 GMT</pubDate></item><item><title><![CDATA[Reply to Earth sensor on Wed, 22 May 2024 15:19:48 GMT]]></title><description><![CDATA[<p dir="auto">Update: The readings do not change even when I completely unplug the sensor. The display still gives me similar values above 1000. Thus, it somehow seems as of the sensor might not be providing any data at all? It makes no difference whether or not the sensor is attached to the device. <img src="/assets/uploads/files/1716391172138-20240522_171840.jpg" alt="20240522_171840.jpg" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/post/25353</link><guid isPermaLink="true">https://community.m5stack.com/post/25353</guid><dc:creator><![CDATA[rudi15]]></dc:creator><pubDate>Wed, 22 May 2024 15:19:48 GMT</pubDate></item></channel></rss>