I have a strange problem. Every now and then, when I start serial monitor, this module sends data nicely, and sometimes not. I have checked it with oscilloscope, and it confirms that when the data is not coming,Tx-signal is sending only random pulses, instead of clear serial data.
What I need to do, is simply cut the VCC and connect it again, and the game goes on.
I have connected the module to Arduino Mega, so I don't have to use software based serial. Module send good 3V signals (when it does) and mega talks back with 5V.
Here is the link for the modules datasheet.
Too bad this one don't have external reset pin, other model, 100s, that does.
Here is the code for testing
char gps_byte = 0;
void setup(void)
{
Serial3.begin(9600);
Serial.begin(9600);
Serial.print("Program started");
}
void loop(void)
{
gps_byte = Serial3.read();
if (gps_byte != -1)
{
if (gps_byte == '
Also, I have tested the module with +3.3 and +5 Vcc, no change.
Connections are simply:
+Vcc
GND
(GPS TX) pin2 - (Mega serial3 Rx) pin 15
(GPS RX) pin3 - (Mega serial3 Tx) pin 14
(GPS Vbat) pin6 - +Vcc
Well, last night was again a long one with searching the solution, now I must ask from pro's...
Thanks!
Cheers,
Kari)
{
//What_ever_code_here
}
Serial.print(gps_byte);
}
}
Also, I have tested the module with +3.3 and +5 Vcc, no change.
Connections are simply:
+Vcc
GND
(GPS TX) pin2 - (Mega serial3 Rx) pin 15
(GPS RX) pin3 - (Mega serial3 Tx) pin 14
(GPS Vbat) pin6 - +Vcc
Well, last night was again a long one with searching the solution, now I must ask from pro's...
Thanks!
Cheers,
Kari