<?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[SoftwareSerial, how do I convert those projects to use the hardware serial on the M5?]]></title><description><![CDATA[<p dir="auto">Hello</p>
<p dir="auto">I am a newbie trying to understand how to convert the sample grove code for their 125Khz RFID from a SoftwareSerial to be able to connect to the hardware red grove connector on the side of the M5 stack?</p>
<p dir="auto"><a href="https://wiki.seeedstudio.com/Grove-125KHz_RFID_Reader/" target="_blank" rel="noopener noreferrer nofollow ugc">link text</a></p>
<p dir="auto">Sorry, another newbie question...  I am a little confused as the module says grove serial port with TX &amp; RX but the documentation on the grove port on the M5 seems to refer to SLA or SPI?</p>
<p dir="auto">Also in general question... I see a lot of sample Arduino tutorial code that uses SoftwareSerial, how do I convert those projects to use the hardware serial on the M5?</p>
<p dir="auto">Thank you for your help.</p>
]]></description><link>https://community.m5stack.com/topic/3039/softwareserial-how-do-i-convert-those-projects-to-use-the-hardware-serial-on-the-m5</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 01:46:28 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/3039.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 03 Mar 2021 20:34:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to SoftwareSerial, how do I convert those projects to use the hardware serial on the M5? on Mon, 10 Apr 2023 11:14:02 GMT]]></title><description><![CDATA[<p dir="auto">Regarding the RFID module, the Grove connector on the M5Stack provides serial communication, which means you can use either a SoftwareSerial or the hardware serial to communicate with the module. The SLA and SPI interfaces are different types of communication protocols, so they are not relevant in this case.</p>
<p dir="auto">To use the hardware serial on the M5Stack, you can simply use the standard Serial library in your Arduino code instead of the SoftwareSerial library. The hardware serial on the M5Stack is available on pins 1 (TX) and 3 (RX) of the Grove connector<a href="https://incompreneur.com/venmo-age-requirement/" target="_blank" rel="noopener noreferrer nofollow ugc">,</a> so you need to connect the RFID module's TX pin to the M5Stack's RX pin and vice versa.</p>
<p dir="auto">Here's an example code to get you started with using the hardware serial on the M5Stack:<br />
#include &lt;M5Stack.h&gt;</p>
<p dir="auto">void setup() {<br />
M5.begin();<br />
Serial.begin(9600);<br />
}</p>
<p dir="auto">void loop() {<br />
if (Serial.available() &gt; 0) {<br />
// read data from serial and process it<br />
// ...<br />
}<br />
}</p>
<p dir="auto">In this example, we initialize the M5Stack library and then start the hardware serial communication with a baud rate of 9600. In the loop() function, we check if there is any data available on the serial port, and if there is, we can read it and process it accordingly.</p>
<p dir="auto">I hope this helps! Let me know if you have any more questions.</p>
]]></description><link>https://community.m5stack.com/post/20564</link><guid isPermaLink="true">https://community.m5stack.com/post/20564</guid><dc:creator><![CDATA[LynneCosme]]></dc:creator><pubDate>Mon, 10 Apr 2023 11:14:02 GMT</pubDate></item><item><title><![CDATA[Reply to SoftwareSerial, how do I convert those projects to use the hardware serial on the M5? on Fri, 17 Mar 2023 17:05:34 GMT]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I'm also trying to make the same RFID reader work with my ExtPort by using the port C and UART</p>
<p dir="auto">But I cannot get any value from the reader.<br />
Can somebody help me in this ?</p>
<p dir="auto"><a href="https://forum.m5stack.com/topic/5050/don-t-know-what-to-use/26" target="_blank" rel="noopener noreferrer nofollow ugc">Here are the details</a> of my setup.</p>
<p dir="auto">Thank you very much<br />
Regards</p>
]]></description><link>https://community.m5stack.com/post/20373</link><guid isPermaLink="true">https://community.m5stack.com/post/20373</guid><dc:creator><![CDATA[jerome83136]]></dc:creator><pubDate>Fri, 17 Mar 2023 17:05:34 GMT</pubDate></item><item><title><![CDATA[Reply to SoftwareSerial, how do I convert those projects to use the hardware serial on the M5? on Thu, 04 Mar 2021 08:23:23 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/pipy71" aria-label="Profile: pipy71">@<bdi>pipy71</bdi></a></p>
<p dir="auto">On M5Stack (Fire, Gray, Basic) the <strong>red</strong> Groove port A is only usable for I2C communication. The reason is that the same GPIOs (21, 22) are used internally for I2C communication with the IP5306 and therefore cannot be reprogrammed to be used as serial port.</p>
<p dir="auto">Please also check out Pin Map for <strong>red</strong> Groove Port A <a href="https://docs.m5stack.com/#/en/core/basic?id=pinmap" target="_blank" rel="noopener noreferrer nofollow ugc">here</a>.</p>
<p dir="auto">For serial communication you'd need a M5GO Bottom (or Bottom2) which provides you with the <strong>blue</strong> Groove port C.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/12795</link><guid isPermaLink="true">https://community.m5stack.com/post/12795</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Thu, 04 Mar 2021 08:23:23 GMT</pubDate></item></channel></rss>