GPS

HELLO

I'm sorry for my english

I'm pretty new in Arduino, I have a basic knowledge of electronics And I'm asking for your help.

I have an idea (GPS project), So I bought kits of Arduino (mega 2560, uno, nano, pro mini..............).

Type of GPS - Ublox neo 6/7/8 (All kinds).

I see a lot of movies on YouTube How to connect GPS To Arduino.

I download library(TinyGPSPlus Adafruit_GPS, TinyGPS)

Problem: What works for everyone does not work for me.

With TTL TO USB THE GPS WORK FINE I Connect to u-center, All is well.

vcc-------------5v
grd-------------grd
tx--------------rx
rx--------------tx

I RUN all the examples, I DONT GET DATA.

Please help

Thenks

eli

Please read and follow the instructions in the "How to use this forum" message.

Hello

My English is not good , I use google translate

what mistake I do?

thenks

eli

what mistake I do?

You did not read and follow the forum instructions.

Identify the exact device you are using, post a link to the device product page or web site, and post the code, using code tags ("</>" button).

hello

The above code running and working properly

#include "SoftwareSerial.h"

SoftwareSerial mySerial(10, 11); // RX, TX

void setup() 
{
  // Open serial communications and wait for port to open:
  Serial.begin(9600);

  Serial.println("uBlox Neo 8M");

  // set the data rate for the SoftwareSerial port
  mySerial.begin(9600);

}

void loop() // run over and over
{
  if (mySerial.available())
    Serial.write(mySerial.read());

}

All the examples NOT RUN FOR ME (Attaching Example)

#include "TinyGPS++.h"
#include "SoftwareSerial.h"

SoftwareSerial serial_connection(10, 11); //RX=pin 10, TX=pin 11
TinyGPSPlus gps;//This is the GPS object that will pretty much do all the grunt work with the NMEA data
void setup()
{
  Serial.begin(9600);//This opens up communications to the Serial monitor in the Arduino IDE
  serial_connection.begin(9600);//This opens up communications to the GPS
  Serial.println("GPS Start");//Just show to the monitor that the sketch has started
}

void loop()
{
  while(serial_connection.available())//While there are characters to come from the GPS
  {
    gps.encode(serial_connection.read());//This feeds the serial NMEA data into the library one char at a time
  }
  //if(gps.location.isUpdated())//This will pretty much be fired all the time anyway but will at least reduce it to only after a package of NMEA data comes in
  {
    //Get the latest info from the gps object which it derived from the data sent by the GPS unit
    Serial.println("Satellite Count:");
    Serial.println(gps.satellites.value());
    Serial.println("Latitude:");
    Serial.println(gps.location.lat(), 6);
    Serial.println("Longitude:");
    Serial.println(gps.location.lng(), 6);
    Serial.println("Speed MPH:");
    Serial.println(gps.speed.mph());
    Serial.println("Altitude Feet:");
    Serial.println(gps.altitude.feet());
    Serial.println("");
  }
}

This is an example that I downloaded from YouTube.
The example work 100%.

I thank you for your attention

eli

  while(serial_connection.available())//While there are characters to come from the GPS
  {
    gps.encode(serial_connection.read());//This feeds the serial NMEA data into the library one char at a time
  }

The encode() method returns a value. Ignoring that value is silly.

HELLO

Thanks for your response

Do you have GPS?

Can you chack the program to see if the gps Working properly with ARDUINO UNO OR MEAG 2560.

I hope that I not exaggerated my request to you.

thenks

eli