Hi there, I am looking for some suggestions of where I may be going wrong with my arduino communications with a GPS unit through RS232.
I have a GPS unit which uses a trimble module, this then goes through a max 232 and outputs data to the RS232. The output of the RS232 is NMEA data in ascii format proven by being displayed on the computer via an RS232 cable on tera term.
(NMEA data, eg: $GPGGA,123519,4807.038,N,01131.000,E,1,08,0.9,545.4,M,46.9,M,,*47)
If I connect the output of the RS232 to a digital pin of the arduino and connect the ground cable to the arduino's ground, then use the code attached to serially print the data that is received to the serial monitor via usb from the arduino, the output to the serial computer monitor is jumbled characters.
(GPS Unit ---------RS232 cable--------Arduino Digital pin-------USB cable------Computer)
I have tried adjusting baud rates as I thought this would solve the problem, this will change the output but this output is still just a jumble of characters. The baud rate that is used in tera term where it displays accurately is 9600.
I have tried altering the pins to (0,1) of the arduino as well. I have tried a few different GPS codes that people have posted and shown to be working, however as I have said I think the problem is in how the data is being received/processed by the arduino.
Please let me know if I am unclear or if there is anything I have missed, thank you so much in advance for your time.
GPS-serial-Set.ino (334 Bytes)
