<?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[Help with the GPS module and M5Stack for AWS]]></title><description><![CDATA[<p dir="auto">I have an M5Stack for AWS, and I have a GPS module connected to its port C. What is the index of the HardwareSerial I should use?</p>
<p dir="auto">I tried from 0 to 6, but I had no luck reading the data.</p>
<pre><code>HardwareSerial GPSRaw(2);
</code></pre>
<pre><code>void loop() {
  if (GPSRaw.available())
  {
    int ch = GPSRaw.read();
    Serial.write(ch);
  }
}
</code></pre>
<p dir="auto">Connection</p>
<p dir="auto"><img src="/assets/uploads/files/1689279552148-cca83b01-1be3-489c-90d9-b56ed0be219a-telegram-cloud-photo-size-1-5008453422650862428-y-resized.jpg" alt="0_1689279562359_cca83b01-1be3-489c-90d9-b56ed0be219a-telegram-cloud-photo-size-1-5008453422650862428-y.jpg" class=" img-fluid img-markdown" /></p>
<p dir="auto">What I am doing wrong?</p>
]]></description><link>https://community.m5stack.com/topic/5488/help-with-the-gps-module-and-m5stack-for-aws</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 10:02:41 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/5488.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 13 Jul 2023 20:27:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Help with the GPS module and M5Stack for AWS on Fri, 14 Jul 2023 11:51:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/felmue" aria-label="Profile: felmue">@<bdi>felmue</bdi></a> it worked flawless, thank you so much!</p>
]]></description><link>https://community.m5stack.com/post/21577</link><guid isPermaLink="true">https://community.m5stack.com/post/21577</guid><dc:creator><![CDATA[skhaz]]></dc:creator><pubDate>Fri, 14 Jul 2023 11:51:09 GMT</pubDate></item><item><title><![CDATA[Reply to Help with the GPS module and M5Stack for AWS on Thu, 13 Jul 2023 23:58:12 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/skhaz" aria-label="Profile: skhaz">@<bdi>skhaz</bdi></a></p>
<p dir="auto">have a look at the M5Core2 GPS <a href="https://github.com/m5stack/M5Core2/blob/master/examples/Unit/GPS_AT6558/FullExample/FullExample.ino#L29" target="_blank" rel="noopener noreferrer nofollow ugc">example</a>. M5Core2 UART uses GPIO 13/14 whereas M5Stack uses GPIO 16/17. If <code>GPSRaw.begin()</code> is called w/o parameters then GPIO 16/17 are used by default. Try something like below to change the GPIOs:</p>
<pre><code>GPSRaw.begin(9600, SERIAL_8N1, 13, 14);
</code></pre>
<p dir="auto">BTW: Index <code>2</code> is fine.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/21571</link><guid isPermaLink="true">https://community.m5stack.com/post/21571</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Thu, 13 Jul 2023 23:58:12 GMT</pubDate></item></channel></rss>