GPS NEO is not showing data

Hi, I tried many codes to see if my GPS neo is working, I tried codes like this :

#include <SoftwareSerial.h>

#include <TinyGPS.h>

TinyGPS gps;
SoftwareSerial ss(4, 3);

void setup()
{
  Serial.begin(9600);
  
  ss.begin(9600);
}

void loop()
{
    while (ss.available())
      Serial.print(ss.read());
}

and like this :

#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("");
  }
}

But no one is showing data even if i change the pins or the code and the led is blinking

Can the GPS antenna see satellites or only the ceiling of the your work shop?

If the first "echo" program doesn't produce any output on the serial monitor, then you either have a defective GPS module, or you wired it incorrectly,

I didn't tried outside yet, it can blink green when is not connected to an satellite?

Give them a try simply.

I will try tomorrow in the morning and I'll come with a reply.

I made the connection correctly, but this is what i think, is defective or fake because i dont see any output.

A GPS module produces serial output regardless of whether it sees satellites.

This is what happen when i open serial monitor, I dont see any data only the message I wrote in the code

If there is no serial output, from the first example in post #1 its a wast of time going any further, or trying any other examples.

The serial output is what you nead to read the GPS ........

Did you try reversing the RX and TX connections ?

no, I will give it a try

If you had a standard USB to serial adapter, you can hook that up direct to the GPS to check the output of the GPS, no Arduino needed.

I tried out the first sketch, and found it did not work.
(even after commenting out the references to the Tiny GPS library, which is not used).

After comparing it with a similar sketch which I knew worked, I found I could get it working by changing Serial.print() to Serial.write().

Try this modified version of your first sketch:

#include <SoftwareSerial.h>
SoftwareSerial ss(4, 3);

void setup()
{
  Serial.begin(9600);
  ss.begin(9600);
}

void loop()
{
  while (ss.available())
    Serial.write(ss.read());
}

It does indeed work, but it prints the numeric value of the ASCII characters received. As expected.

Whilst you are correct, in that you should use Serial.write() in place of Serial.print(), the OP reported 'no data' in the serial monitor, which there should have been, as in if the GPS was producing output there would have been a series of numbers.

Jremington,
yes, of course you are correct in saying that it does work.

Perhaps I should have said that it does not produce nice human readable NMEA sentences.

Yes you should have.

Are you able to show us this 'data' that was not shown ?

I tried what you write and nothing is working, the gps is defective. i will buy another one

I hope not.

If you have used a brand new GPS module, it takes a long time for the position data to be reported because the satellite almanach is building up in the receiver.

Not true;

although it does depend on what you mean by 'a long time'.

From cold, factory fresh, or whatever, most modern GPS should, under good signal situations, get a location fix in around 40 seconds or so.

That is the performance quoted in the data sheets of most GPS, and the real world reality.