<?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[Cant Get RS485 TTL Convertor Working]]></title><description><![CDATA[<p dir="auto">Trying to get this working, but am unable to send/receive anything at all <a href="https://shop.m5stack.com/products/rs485-module" target="_blank" rel="noopener noreferrer nofollow ugc">https://shop.m5stack.com/products/rs485-module</a></p>
<p dir="auto">Ive tried on the core (pins 17/16) and core 2 (pins 14/13).</p>
<p dir="auto">For testing im just running this very basic code but can only get 'None' as a response. To send data im just using YAT and a USB-&gt;RS485 convertor which I have tested using a known-working device. Any ideas of what might be wrong?</p>
<pre><code>from m5stack import *
from m5ui import *
from uiflow import *

uart1 = machine.UART(1, tx=14, rx=13)
uart1.init(9600, bits=8, parity=None, stop=1)
while True:
  print(uart1.readline())
  wait_ms(500)
</code></pre>
]]></description><link>https://community.m5stack.com/topic/5655/cant-get-rs485-ttl-convertor-working</link><generator>RSS for Node</generator><lastBuildDate>Fri, 01 May 2026 07:12:59 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/5655.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 19 Sep 2023 23:55:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Cant Get RS485 TTL Convertor Working on Wed, 20 Sep 2023 22:28:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/gavin67890" aria-label="Profile: gavin67890">@<bdi>gavin67890</bdi></a> I was able to get it working with 32/33 just by assigning  with</p>
<pre><code>uart1 = machine.UART(1, tx=32, rx=33)
</code></pre>
<p dir="auto">which it looks like is the same the guy did in the video</p>
]]></description><link>https://community.m5stack.com/post/22283</link><guid isPermaLink="true">https://community.m5stack.com/post/22283</guid><dc:creator><![CDATA[jkeyser]]></dc:creator><pubDate>Wed, 20 Sep 2023 22:28:30 GMT</pubDate></item><item><title><![CDATA[Reply to Cant Get RS485 TTL Convertor Working on Wed, 20 Sep 2023 10:19:46 GMT]]></title><description><![CDATA[<p dir="auto">This, at approx. 5 mins in, might help with the I2C port reassigning for UART (I recalled I used it for StickC).<br />
<a href="https://www.youtube.com/watch?v=zSUyC-SQOEU" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.youtube.com/watch?v=zSUyC-SQOEU</a></p>
]]></description><link>https://community.m5stack.com/post/22271</link><guid isPermaLink="true">https://community.m5stack.com/post/22271</guid><dc:creator><![CDATA[gavin67890]]></dc:creator><pubDate>Wed, 20 Sep 2023 10:19:46 GMT</pubDate></item><item><title><![CDATA[Reply to Cant Get RS485 TTL Convertor Working on Wed, 20 Sep 2023 09:59:18 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/jkeyser" aria-label="Profile: jkeyser">@<bdi>jkeyser</bdi></a>, Did you get it working on pins 32/33?</p>
<p dir="auto">If not, these posts might help you.<br />
<a href="https://forum.m5stack.com/topic/5615/m5-tough-uart-communication/12" target="_blank" rel="noopener noreferrer nofollow ugc">https://forum.m5stack.com/topic/5615/m5-tough-uart-communication/12</a><br />
<a href="https://forum.m5stack.com/topic/1546/micro-bit/8" target="_blank" rel="noopener noreferrer nofollow ugc">https://forum.m5stack.com/topic/1546/micro-bit/8</a></p>
<p dir="auto">I just wanted to clarify because I think that UART is indeed on pins 13/14.</p>
<p dir="auto">If you see the table in this document<br />
<a href="https://docs.m5stack.com/en/core/core2" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.m5stack.com/en/core/core2</a></p>
<p dir="auto">PORT.			PIN		Note:<br />
PORT-A(Red)		32/33	I2C<br />
PORT-B(Black)	26/36	DAC/AD<br />
PORT-C(Blue)	13/14	UART</p>
<p dir="auto">The Groove port on the side of the Core2 is I2C (A/Red), which is probably where the 32/33 comes from (you may be able to switch mode and run on 32/33, please confirm if you can). The port of the TTL to RS485 convertor is UART (C/Blue). You can pin this directly onto a naked Core2 with a Groove to Dupont cable or a base with UART (C/Blue) port. In my case, I have CatM IoT base or you might have the blue port on the M5GO2 base available, which I think is default supplied with the Core2. Best of luck.</p>
]]></description><link>https://community.m5stack.com/post/22270</link><guid isPermaLink="true">https://community.m5stack.com/post/22270</guid><dc:creator><![CDATA[gavin67890]]></dc:creator><pubDate>Wed, 20 Sep 2023 09:59:18 GMT</pubDate></item><item><title><![CDATA[Reply to Cant Get RS485 TTL Convertor Working on Wed, 20 Sep 2023 02:35:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jkeyser" aria-label="Profile: jkeyser">@<bdi>jkeyser</bdi></a> if anyone comes across this in the future, at least on the core 2 the correct pins are 33/32</p>
]]></description><link>https://community.m5stack.com/post/22266</link><guid isPermaLink="true">https://community.m5stack.com/post/22266</guid><dc:creator><![CDATA[jkeyser]]></dc:creator><pubDate>Wed, 20 Sep 2023 02:35:45 GMT</pubDate></item></channel></rss>