Hello,
I`m having a hard time trying to read data from the EM-406A. The unit seems to be working - at least partially, but
I get nothing but 'garbage' from it.
First I´ve connected only EM´s pins 1 and 5 to GND and 2 to +5V. The EM406 red led lit, and after a couple of
hours in an open environment it started to blink, indicating a fixed position.
Problem starts when I try to read the NMEA strings. First I connected EM pin 4 to one of Arduino´s digital
I/O pin and tried a bunch of ways to read the serial data ( SoftwareSerial, reading with digitalRead() from
pin considering the asynchronous serial protocal, etc ) with no success. To isolate the problem I tried the
simple code below suggested by wayneft in another thread:
void setup(){
digitalWrite(0,LOW);
pinMode(0,INPUT);
digitalWrite(1,LOW);
pinMode(1,INPUT);
}
void loop(){
while(1);
}
After connecting the GPS Tx to the Tx pin on my UNO I´ve got the same 'garbage' in the serial monitor,
no matter the baud rate used - the expected baud rate should be 4800.
Now, I use 'garbage' between '' because there seems to be a pattern in the strings I´m getting. For
instance, this is some of the data from the serial monitor:
[[bunch of non printable]]ª¨ÈèA$H9EºAd
J¨-ª¨h(-ÍN(/(+(ª¨È)-ò$rÈJJJÅE[[bunch of non printable]]
(-ò誨H[[bunch of non printable]]ÈEºÇèHÕâÿ¨h(mÚÍ^(/(ÚHAIª¨È)-òrÈJJJÅE
So, there are sequences like "ÈJJJÅE" that repeat along the stream. That indicates
that there is a pattern underneath. I´m aware about the GPS´ 2.85V level and
Arduino expecting 5, but there are so many reports of success in using this unit
without any level circuitry that I expected that to work.
Any thoughts?
Thanks in advance,