<?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[M5Core problem with UART0]]></title><description><![CDATA[<p dir="auto">I use PZEM V4.0 for my project, so I want to use it for 2 and I connect to TXRXD0,TXRXD2 and this is my code.</p>
<pre><code>#include &lt;PZEM004Tv30.h&gt;

PZEM004Tv30 pzem(&amp;Serial);
PZEM004Tv30 pzem2(&amp;Serial2);

void setup() {
  Serial.begin(115200);

  Serial.print("Reset Energy");
  pzem.resetEnergy();
  pzem2.resetEnergy();

  Serial.print("Set address to 0x42");
  pzem.setAddress(0x42);
  pzem2.setAddress(0x42);
}

void loop() {

  float cur = pzem.current();
  Serial.print("Current: ");
  Serial.print(cur);
  Serial.println("A");

  float cur2 = pzem2.current();
  Serial.print("Current 2: ");
  Serial.print(cur2);
  Serial.println("A");

  delay(1000);
}
</code></pre>
<p dir="auto">The result is not showing the value of UART0 (pin GPIO1,3).<br />
How can I fix this?</p>
]]></description><link>https://community.m5stack.com/topic/1576/m5core-problem-with-uart0</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 08:45:21 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/1576.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 04 Jan 2020 16:16:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to M5Core problem with UART0 on Mon, 06 Jan 2020 15:41:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/thrasher" aria-label="Profile: thrasher">@<bdi>thrasher</bdi></a> Sorry for my bad writing.<br />
So I want to use 2 piece of PZEM for my project and I test PZEM that connect to UART2 it can send value to monitor with speed 115200 and then I test to PZEM that connect to UART0 it not show any value excpet "NaN" from my monitor. how can I fix this?</p>
]]></description><link>https://community.m5stack.com/post/6903</link><guid isPermaLink="true">https://community.m5stack.com/post/6903</guid><dc:creator><![CDATA[nikza5566]]></dc:creator><pubDate>Mon, 06 Jan 2020 15:41:13 GMT</pubDate></item><item><title><![CDATA[Reply to M5Core problem with UART0 on Sun, 05 Jan 2020 10:57:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nikza5566" aria-label="Profile: nikza5566">@<bdi>nikza5566</bdi></a> said in <a href="/post/6884">M5Core problem with UART0</a>:</p>
<blockquote>
<p dir="auto">PZEM V4.0</p>
</blockquote>
<p dir="auto">Also, Im not sure about your wiring, but you're using software serials, you should keep speed at 9600. My multiple experiments with rs485 and software serial show unstable results on speed beyond 9600</p>
]]></description><link>https://community.m5stack.com/post/6890</link><guid isPermaLink="true">https://community.m5stack.com/post/6890</guid><dc:creator><![CDATA[Thrasher]]></dc:creator><pubDate>Sun, 05 Jan 2020 10:57:34 GMT</pubDate></item><item><title><![CDATA[Reply to M5Core problem with UART0 on Sun, 05 Jan 2020 02:27:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nikza5566" aria-label="Profile: nikza5566">@<bdi>nikza5566</bdi></a></p>
<p dir="auto">Level converter is required for connection.</p>
<ol>
<li>
<p dir="auto">resistor to connect<br />
Meter PZEM-004T with Arduino ESP32 ESP8266 Python &amp; Raspberry Pi<br />
Modification TTL UART from 5v to 3.3v<br />
<a href="http://pdacontrolen.com/meter-pzem-004t-with-arduino-esp32-esp8266-python-raspberry-pi/" target="_blank" rel="noopener noreferrer nofollow ugc">http://pdacontrolen.com/meter-pzem-004t-with-arduino-esp32-esp8266-python-raspberry-pi/</a></p>
</li>
<li>
<p dir="auto">level converter to connect<br />
Measuring home energy consumption with the PZEM004T and ESP8266<br />
<a href="https://primalcortex.wordpress.com/tag/pzem004t/" target="_blank" rel="noopener noreferrer nofollow ugc">https://primalcortex.wordpress.com/tag/pzem004t/</a></p>
</li>
</ol>
]]></description><link>https://community.m5stack.com/post/6887</link><guid isPermaLink="true">https://community.m5stack.com/post/6887</guid><dc:creator><![CDATA[macsbug]]></dc:creator><pubDate>Sun, 05 Jan 2020 02:27:47 GMT</pubDate></item></channel></rss>