-->
Page 1 of 1

GPS receiver on hardware serial

PostPosted: Thu Jul 23, 2020 4:48 am
by viktak
Hi guys,

In a project I need to use a GPS receiver on the hardware serial Rx pin, but it doesn't seem to work. On SoftwareSerial it works without a problem, also, with a direct connection to my PC's serial port I can confirm that the data is coming in.

Is there a particular setup I need to do on the Serial setup to get it to work?

Is it OK to use the hardware Rx for receiving GPD data while using the Tx to send debug info to the PC?

All the examples I found on the Internet on GPS use SoftwareSerial.
thanks for any pointers in advance!

Re: GPS receiver on hardware serial

PostPosted: Tue Jul 28, 2020 9:03 am
by QuickFix
I did it a couple of times and had no problems whatsoever, just connect the TX of the GPS module to the RX of the ESP8266 (only make sure the module uses 3.3V levels or use a voltage divider), open serial in your sketch (rate is most probably 9600 Baud) and process the passing bytes; it can even be done with an ESP-01.
GPSMonitor.jpg

Re: GPS receiver on hardware serial

PostPosted: Tue Jul 28, 2020 9:46 am
by viktak
Thank you for your input. This is exactly as I tried, so there must be an oversight or contact error on my side. It is enough for me to know that it IS possible to do this.
Thanks again!