jnp843
December 22, 2022, 4:42pm
1
Hello, I am using a raspberry pi pico and the arduino IDE to get GPS positions using a neo 6m GPS module but when I check the serial monitor the strings outputted have alot of special characters in them like this:
$GPRMC,150506.00,A,3020.60871,N,00249.45087����������������������������������������������L)��bZ����5)�A����������������������9�������ij
pnX�XbXbXb\dbXbnr\dX�Xjb\fX�XXThpH����A,A,3,12,24,25,32,19,10,22,15,17,06,,,1.81,
Heres the code im using to check my GPS works:
#include <SoftwareSerial.h>
SoftwareSerial mySerial(5, 4); //(RX, TX)
void setup() {
mySerial.begin(9600);
Serial.begin(9600);
Serial.println("GPS start");
}
void loop() {
while (mySerial.available()) {
Serial.write(mySerial.read());
}
}
The GPS module im using is this: https://www.amazon.co.uk/dp/B0BJ6CRS3R/ref=sspa_dk_detail_1?psc=1&pd_rd_i=B0BJ6CRS3R&pd_rd_w=8Byfa&content-id=amzn1.sym.15c0cc83-c6c5-4d44-aa3d-0de17a9f3682&pf_rd_p=15c0cc83-c6c5-4d44-aa3d-0de17a9f3682&pf_rd_r=Q64ETJ5KMY97BJY3YM2H&pd_rd_wg=k03gc&pd_rd_r=0f785dfd-82ba-4e7f-aa6a-de53e88e8979&s=electronics&sp_csd=d2lkZ2V0TmFtZT1zcF9kZXRhaWw
I have tried the module outside aswell and it produces the same results.
Does anyone know what the problem could be?
Thanks
What baud rate is the Serial monitor set to ?
jnp843
December 22, 2022, 4:50pm
4
Its at 9600, I have also tried lowering it and raising it but more characters appear.
I wonder if SoftwareSerial is acting up. Does the raspberry pi pico have a second hardware serial port you could use instead?
red_car
December 22, 2022, 11:16pm
6
Have you tried using the U-Center tool to talk to it?
Near the bottom of this page...
Learn about NEO-6M GPS Module along with its Working, Pinout, Wiring, Library, Arduino Code for Reading, Parsing NMEA data & Using u-center software.
Estimated reading time: 15 minutes
system
Closed
June 20, 2023, 11:17pm
7
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.