WeMos ESP32 want to use GPS Click

Hello everyone
WeMos ESP32 D1 R32 want to use GPS Click u-blox LEA-6S

Info:
WeMos ESP32 D1 R32
Board: DOIT ESP32 DEVKIT V1
COM4
User: GPS Click u-blox LEA-6S

GPS_user_ESP32.ino (1005 Bytes)

Is there anyone here who can make a simple code so that I can test the units in practice**?**

Kind regards
Monie

Do you have a question ?

Topic moved; please see sticky topics in Uncategorized - Arduino Forum why you should not post in "Uncategorized".

Is there anyone here who can make a simple code so that I can test the units in practice**?**

Use example code and modify it if needed.

The original post, now edited a few times, links added etc etc, that I replied to only contained this;

"WeMos ESP32 D1 R32 want to use GPS Click u-blox LEA-6S"

Hence my comment about was there a question.

I'm sorry for my reply to You. I apologize.

Hello everyone

Is there anyone willing to help with correcting codes for Danske and my local coordinates.
Which is:

Latitude: 55.12154
Longitude: 10.51272

I get some wrong coordinates printed to the display. look here: ( Lat: 30.240 Long: -97.818)

//http://arduiniana.org/libraries/tinygpsplus/include 

#include <SoftwareSerial.h>
#include <TinyGPSPlus.h>
#include <Wire.h> 
#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x27,20,4);

 //A sample NMEA stream.
const char *gpsStream =
  "$GPRMC,045103.000,A,3014.1984,N,09749.2872,W,0.67,161.46,030913,,,A*7C\r\n"
  "$GPGGA,045104.000,3014.1985,N,09749.2873,W,1,09,1.2,211.6,M,-22.5,M,,0000*62\r\n"
  "$GPRMC,045200.000,A,3014.3820,N,09748.9514,W,36.88,65.02,030913,,,A*77\r\n"
  "$GPGGA,045201.000,3014.3864,N,09748.9411,W,1,10,1.2,200.8,M,-22.5,M,,0000*6C\r\n"
  "$GPRMC,045251.000,A,3014.4275,N,09749.0626,W,0.51,217.94,030913,,,A*7D\r\n"
  "$GPGGA,045252.000,3014.4273,N,09749.0628,W,1,09,1.3,206.9,M,-22.5,M,,0000*6F\r\n";

// The TinyGPSPlus object
TinyGPSPlus gps;

void setup()
{
  lcd.init();                      // initialize the lcd 
  lcd.init();
  lcd.backlight();
  
  Serial.begin(115200);

  Serial.println(F("BasicExample.ino"));
  Serial.println(F("Basic demonstration of TinyGPSPlus (no device needed)"));
  Serial.print(F("Testing TinyGPSPlus library v. ")); Serial.println(TinyGPSPlus::libraryVersion());
  Serial.println(F("by Mikal Hart"));
  Serial.println();

  while (*gpsStream)
    if (gps.encode(*gpsStream++))
      displayInfo();

  Serial.println();
  Serial.println(F("Done."));  
}

void loop()
{
    //Latitude    
    lcd.setCursor(0,0);
    lcd.print("Latitude : "); lcd.print(gps.location.lat(), 3);
    
    //Longitude  
    lcd.setCursor(0,1);
    lcd.print("Longitude: "); lcd.print(gps.location.lng(), 3); 

    lcd.setCursor(0,2);
    lcd.print("Satellites: ");
    lcd.print(gps.satellites.value());

}

void displayInfo()
{
  Serial.print(F("Location: ")); 
  if (gps.location.isValid())
  {
    Serial.print(gps.location.lat(), 6);
    Serial.print(F(","));
    Serial.print(gps.location.lng(), 6);
  }
  else
  {
    Serial.print(F("INVALID"));
  }

  Serial.print(F("  Date/Time: "));
  if (gps.date.isValid())
  {
    Serial.print(gps.date.month());
    Serial.print(F("/"));
    Serial.print(gps.date.day());
    Serial.print(F("/"));
    Serial.print(gps.date.year());
  }
  else
  {
    Serial.print(F("INVALID"));
  }

  Serial.print(F(" "));
  if (gps.time.isValid())
  {
    if (gps.time.hour() < 10) Serial.print(F("0"));
    Serial.print(gps.time.hour());
    Serial.print(F(":"));
    if (gps.time.minute() < 10) Serial.print(F("0"));
    Serial.print(gps.time.minute());
    Serial.print(F(":"));
    if (gps.time.second() < 10) Serial.print(F("0"));
    Serial.print(gps.time.second());
    Serial.print(F("."));
    if (gps.time.centisecond() < 10) Serial.print(F("0"));
    Serial.print(gps.time.centisecond());    

  }
  else
  {
    Serial.print(F("INVALID"));
  }

  Serial.println();
}

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.