Hello!
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
void setup() {
// initialize both serial ports:
Serial.begin(9600);
Serial1.begin(9600);
}
void loop() {
// read from port 1, send to port 0:
if (Serial1.available()) {
char inByte = Serial1.read();
Serial.write(inByte);
}
}
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.
Hmm- I can't get the sheet to open from USGlobalsat. But the board I have from them runs at 4800 baud, default- might be worth a quick try just to see...