EM-406a GPS Sensor Issues w Nano Atmega328

I can not seem to get my GPS Sensor to send data to the Arduino and pick it up on my serial Port. I have my code below. Please offer any advice. I have my RX from the GPS sensor wired to D4 and the TX wired to D7. I have GND to GND and 5V to 5V pin on Arduino. I do not have the 1PPS pin connected. I have a picture attached of the wiring. I also have a screen shot of the Serial Print Out on my Serial Window.

Please help!

#include <SoftwareSerial.h>
#include <TinyGPS.h>

/* This sample code demonstrates the normal use of a TinyGPS object.
It requires the use of NewSoftSerial, and assumes that you have a
4800-baud serial GPS device hooked up on pins 2(rx) and 4(tx).

TinyGPS gps;
SoftwareSerial nss(7, 4); // my gps data is inverted!!

void gpsdump(TinyGPS &gps);
bool feedgps();
void printFloat(double f, int digits = 2);

void setup()

Serial.print("Testing TinyGPS library v. "); Serial.println(TinyGPS::library_version());
Serial.println(“by Al Hamilton”);
Serial.print("Sizeof(gpsobject) = "); Serial.println(sizeof(TinyGPS));

void loop()
bool newdata = false;
unsigned long start = millis();

// Every 5 seconds we print an update
while (millis() - start < 10000)
if (feedgps())
newdata = true;

if (!newdata)
Serial.println(“Acquired Data”);

void printFloat(double number, int digits)
// Handle negative numbers
if (number < 0.0)
number = -number;

// Round correctly so that print(1.999, 2) prints as “2.00”
double rounding = 0.5;
for (uint8_t i=0; i<digits; ++i)
rounding /= 10.0;

number += rounding;

// Extract the integer part of the number and print it
unsigned long int_part = (unsigned long)number;
double remainder = number - (double)int_part;

// Print the decimal point, but only if there are digits beyond
if (digits > 0)

// Extract digits from the remainder one at a time
while (digits-- > 0)
remainder *= 10.0;
int toPrint = int(remainder);
remainder -= toPrint;

void gpsdump(TinyGPS &gps)
long lat, lon;
float flat, flon;
unsigned long age, date, time, chars;
int year;
byte month, day, hour, minute, second, hundredths;
unsigned short sentences, failed;

gps.get_position(&lat, &lon, &age);
Serial.print("Lat/Long(10^-5 deg): “); Serial.print(lat); Serial.print(”, “); Serial.print(lon);
Serial.print(” Fix age: "); Serial.print(age); Serial.println(“ms.”);

// feedgps(); // If we don’t feed the gps during this long routine, we may drop characters and get checksum errors

gps.f_get_position(&flat, &flon, &age);
Serial.print("Lat/Long(float): “); printFloat(flat, 5); Serial.print(”, “); printFloat(flon, 5);
Serial.print(” Fix age: "); Serial.print(age); Serial.println(“ms.”);

// feedgps();

gps.get_datetime(&date, &time, &age);
Serial.print("Date(ddmmyy): “); Serial.print(date); Serial.print(” Time(hhmmsscc): “); Serial.print(time);
Serial.print(” Fix age: "); Serial.print(age); Serial.println(“ms.”);

// feedgps();

gps.crack_datetime(&year, &month, &day, &hour, &minute, &second, &hundredths, &age);
Serial.print(“Date: “); Serial.print(static_cast(month)); Serial.print(”/”); Serial.print(static_cast(day)); Serial.print("/"); Serial.print(year);
Serial.print(" Time: “); Serial.print(static_cast(hour)); Serial.print(”:"); Serial.print(static_cast(minute)); Serial.print(":"); Serial.print(static_cast(second)); Serial.print("."); Serial.print(static_cast(hundredths));
Serial.print(" Fix age: "); Serial.print(age); Serial.println(“ms.”);

// feedgps();

Serial.print("Alt(cm): “); Serial.print(gps.altitude()); Serial.print(” Course(10^-2 deg): “); Serial.print(gps.course()); Serial.print(” Speed(10^-2 knots): "); Serial.println(gps.speed());
Serial.print("Alt(float): “); printFloat(gps.f_altitude()); Serial.print(” Course(float): "); printFloat(gps.f_course()); Serial.println();
Serial.print("Speed(knots): “); printFloat(gps.f_speed_knots()); Serial.print(” (mph): “); printFloat(gps.f_speed_mph());
Serial.print(” (mps): “); printFloat(gps.f_speed_mps()); Serial.print(” (kmph): "); printFloat(gps.f_speed_kmph()); Serial.println();


gps.stats(&chars, &sentences, &failed);
Serial.print("Stats: characters: “); Serial.print(chars); Serial.print(” sentences: “); Serial.print(sentences); Serial.print(” failed checksum: "); Serial.println(failed);

bool feedgps()
while (nss.available())
int c = nss.read();
if (gps.encode(c))
return true;
return false;

Are you sure that 4800 the right baud rate for your GPS module?

John, thanks for your reply. I really appreciate it and really need the support.

Yes I am sure from the specifications of the product as pasted below:

Protocol Electrical level TTL level, Output voltage level: 0V ~ 2.85V RS-232 level Baud rate 4,800 bps Output message NMEA 0183 GGA, GSA, GSV, RMC, VTG, GLL Physical Characteristics Dimension 30mm*30mm*10.5mm ±0.2mm Operating temperature -40? to +85?

Are you running the Nano at 5V? If so I don’t think 2.85V logic levels will be high enough.

When run at 2.4V to 5.5V the ATmega needs Vcc*0.6 or higher to read a logic HIGH. At Vcc=5V that would be 3V. The absolute maximum Vcc you can use and expect 2.85V to read as HIGH is 4.75V. Try running the Nano at a lower voltage like 4.5V (three alkaline AA cells in series connected to Gnd (-) and +5V (+)) Then the logic threshold would be 2.7V.

Note: You can go to an even lower voltage to get more signal margin but aren’t supposed to run a 16 MHz ATmega at less than 3.78V.

Ok thanks John. I will try that and see what happens!!! Stay tuned.