Recently i am involved in a project where i have to use GPS module with that of Arduino uno.
The thing is i am unable to get the value as it automatically disconnects after some time.
Secondly i have gone through the examples given and i somewhat understand the concept of Blynk timer but unable to get the required result.
char auth = "aaaaaaa";
char SoftSerialid = "bbbbbbb";
char paSoftSerial = "cccccccccccc";
// or Software Serial on Uno, Nano...
SoftwareSerial EspSerial(2, 3); // RX, TX
static const int RXPin = 8, TXPin = 9;
static const uint32_t GPSBaud = 9600;
// Your ESP8266 baud rate:
#define ESP8266_BAUD 9600
unsigned int move_index = 1;
SoftwareSerial SoftSerial(RXPin, TXPin);
Blynk.begin(auth, wifi, SoftSerialid, paSoftSerial);
if (gps.charsProcessed() < 10)
Serial.println(F("No GPS detected: check wiring."));
// Blynk.virtualWrite(V4, "GPS ERROR"); // Value Display widget on V4 if GPS not detected
while (SoftSerial.available() > 0)
// sketch displays information every time a new sentence is correctly encoded.
if (gps.location.isValid() )
float latitude = (gps.location.lat()); //Storing the Lat. and Lon.
float longitude = (gps.location.lng());
Serial.println(latitude, 6); // float to x decimal places
Sorry, I don’t have any answers, I don’t have any GPS modules to experiment with… I was just pointing out the area that you need to work on. You might have to find another way of polling data from your particular GPS sensor… perhaps a different library or something?
We already determined that in above posts… the GPS/Library you are running requires constant “babysitting” and overrides all other background needs. stick a Blynk Run() in the While() loop and if that doesn’t work, then find another library and/or GPS that can feed the data stream without TinyGPS’s apparent reliance on that constant serial scan.
This is an old topic, and the OP’s original code is very strange because it uses two SoftwareSerial ports, and personally I can’t follow which one is being used for what.
Many different solutions were suggested, and the OP’s responses where simple one line ‘it didn’t work’ type of replies. No detail was provided about the exact code changes that were tried, or what results were observed, so it’s hard to know whether any of the suggestions came close to solving the problem.
We have no idea whether you are using the same GPS hardware, board and connections as the OP, and which of the suggestions above you’ve tried.
My suggestion would be to try using an Arduino Mega, and forget all of the SoftwareSerial rubbish, then if you can’t get it working start your own topic with FULL details of your setup, what results you’re getting, and what variations you’ve tried.
I’m locking this thread, as it’s not the proper place to help you diagnose your specific issue.