OpenMarine
How to connect a GPS device using UART? - Printable Version

+- OpenMarine (https://forum.openmarine.net)
+-- Forum: MacArthur HAT (https://forum.openmarine.net/forumdisplay.php?fid=29)
+--- Forum: General discussion (https://forum.openmarine.net/forumdisplay.php?fid=30)
+--- Thread: How to connect a GPS device using UART? (/showthread.php?tid=5439)



How to connect a GPS device using UART? - gordan - 2024-06-02

I have MacArthurHAT on top of Raspi 5 and I'm trying to connect M5Stack GPS. I am using Pimoroni NVMe Base (as suggested Wink ), if that's relevant.

  1. I connected the TX and RX from GPS to pins GPIO12, 13 on Raspi (and GND and 5V as well) and I see the yellow LED for NMEA 0183 2 on MacArthur blinking, so I'm assuming the connection is done well.
  2. According to Header pinout, I understand that GPIO12 and 13 are connecting to UART5, correct?
  3. Unexpectedly, I see UART5 greyed out in Serial 4.0.14    
  4. Consequently, I understand it's logical that there are no connections    

Can you please let me know what is the correct way to connect a GPS device using UART? Thanks!

OK, it works now, but seems that documentation is wrong.

Instead of UART5, I used UART4 (as it correctly say when enabling it on Serial app that it enables GPIO12 and 13) and now everything works fine, it seems.

Should the pinout be corrected to say GPIO12 and 13 are UART 4, instead of UART 5?


RE: How to connect a GPS device using UART? - winkaj - 2024-06-02

(2024-06-02, 06:34 PM)gordan Wrote: I have MacArthurHAT on top of Raspi 5 and I'm trying to connect M5Stack GPS. I am using Pimoroni NVMe Base (as suggested Wink ), if that's relevant.

  1. I connected the TX and RX from GPS to pins GPIO12, 13 on Raspi (and GND and 5V as well) and I see the yellow LED for NMEA 0183 2 on MacArthur blinking, so I'm assuming the connection is done well.
  2. According to Header pinout, I understand that GPIO12 and 13 are connecting to UART5, correct?
  3. Unexpectedly, I see UART5 greyed out in Serial 4.0.14
  4. Consequently, I understand it's logical that there are no connections

Can you please let me know what is the correct way to connect a GPS device using UART? Thanks!

OK, it works now, but seems that documentation is wrong.

Instead of UART5, I used UART4 (as it correctly say when enabling it on Serial app that it enables GPIO12 and 13) and now everything works fine, it seems.

Should the pinout be corrected to say GPIO12 and 13 are UART 4, instead of UART 5?

On a RPI4   it used UART5    But On a RPI5 it used UART4


RE: How to connect a GPS device using UART? - Sailoog - 2024-06-12

https://openplotter.readthedocs.io/en/4.x.x/serial/serial_app.html#uart