Go Down

Topic: problems reading gps output (Read 1 time) previous topic - next topic


Jul 14, 2012, 10:08 am Last Edit: Jul 14, 2012, 10:10 am by 1101 Reason: 1
i'm trying to read gps(global sat et-332) tx output using arduino mega 2560
i've connected gps tx to arduino rx1
gps configured to work in nmea mode, if i connect it to pc - i get perfect nmea output

but when i when i run this code on arduino
Code: [Select]

void setup() {
 // initialize both serial ports:

void loop() {
 // read from port 1, send to port 0:
 if (Serial1.available()) {
   char inByte = Serial1.read();


i get this
Code: [Select]


instead of NMEA

none of googled gps reading solutions are worked, i'm stuck :(


I haven't used a GPS device before. But I do know that when talking over the Serial monitor you have to use the right baud rate. Perhaps 9600 baud is the wrong rate. Also you misspelled Serial in your code. Perhaps that may be causing the problem.
Hope this helps.


whwn i connect to pc using same baud rate - i get nmea sentences

misspelled? where? i'm using arduino mega, it has 3 serial's, i connect gps to serial1 rx


In void setup you have it as "Seriall.begin(9600);
You put an extra 'l', lol


Go Up