Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7626367
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:18:57+00:00 2026-05-31T05:18:57+00:00

I am trying to connect Arduino Uno with skm53 GPS module, however before uploading

  • 0

I am trying to connect Arduino Uno with skm53 GPS module, however before uploading the sketch with the Arduino software, I verified it and found the following error.

Error: #error NewSoftSerial has been moved into the Arduino core as of version 1.0. Use SoftwareSerial instead.

I have included the libraries TinyGPS and NewSoftSerial in the libraries directory of the Arduino tool, I have searched and found that almost all code are the same as mine.

#include <TinyGPS.h>
#include <NewSoftSerial.h>

unsigned long fix_age;
NewSoftSerial GPS(2,3);
TinyGPS gps;
void gpsdump(TinyGPS &gps);
bool feedgps();
void getGPS();
long lat, lon;
float LAT, LON;

void setup(){
    GPS.begin(9600);
    //Serial.begin(115200);
}

void loop(){
    long lat, lon;
    unsigned long fix_age, time, date, speed, course;
    unsigned long chars;
    unsigned short sentences, failed_checksum;

    // Retrieves +/- latitude/longitude in 100000ths of a degree.
    gps.get_position(&lat, &lon, &fix_age);

    getGPS();
    Serial.print("Latitude : ");
    Serial.print(LAT/100000,7);
    Serial.print(" :: Longitude : ");
    Serial.println(LON/100000,7);
}

void getGPS(){
    bool newdata = false;
    unsigned long start = millis();
    // Every 1 seconds we print an update.
    while (millis() - start < 1000)
    {
        if (feedgps ()){
            newdata = true;
        }
    }
    if (newdata)
    {
        gpsdump(gps);
    }
}

bool feedgps(){
    while (GPS.available())
    {
        if (gps.encode(GPS.read()))
            return true;
    }
    return 0;
}

void gpsdump(TinyGPS &gps)
{
    //byte month, day, hour, minute, second, hundredths;
    gps.get_position(&lat, &lon);
    LAT = lat;
    LON = lon;
    {
        feedgps(); // If we don't feed the GPS during this long
                   //routine, we may drop characters and get 
                   //checksum errors.
    }
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T05:18:58+00:00Added an answer on May 31, 2026 at 5:18 am

    You might be looking at older examples (pre Arduino 1.0 and pre inclusion of softwwareserial).
    Those examples would have worked with Arduino .23 and earlier.
    Just change your first four lines of code like this and it will compile ok:

    #include <TinyGPS.h>
    #include <SoftwareSerial.h>
    
    unsigned long fix_age;
    SoftwareSerial GPS(2,3);
    

    Then you can delete the NewSoftLibrary to avoid future problems.

    Also a suggestion: having two variables named the same but with different case, is very confusing.
    Better to use more descriptive and distinquishing names to quickly identify them. Probably a better choice might be ssGPS for the serial software connection interface and tlibGPS for the tiny GPS library.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to connect to sql server 2005 with delphi 2010 gives me the following
Trying to connect to a SQL Server 2005 instance remotely but getting the following
I am trying to connect to Sybase backend using PHP. However, when I run:
When trying to connect to EC2 over SSH I get the following error: joshua-scotts-macbook-pro:.ec2
When trying to connect to a web service using the following $client = new
When trying to connect to an ORACLE user via TOAD (Quest Software) or any
I'm trying to connect to an oracle db from an ASP classic application, however
Iam trying to connect my android device with a bluetooth compatible device. I know
Im trying to connect my project via sFTP. and everytime I run the project
Im trying to connect MySql from VB.NET in visual basic 2010. I wanted to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.