Nmea 0183 simulated output

I hate to ask this, but I'm not sure how to simulate a fixed heading and gps nmea sentence output.
Part of our simulator died at work. I know how to build a nmea sentence, I'm not sure how to get the ardunio to output it.
any help or pointing in the right direction would be greatly appreciated.

Is there a Carriage Return at the end of a 'sentence'?
I composed this, thinking that there isn't.
Since you're in the know, I guess the prompt you're looking for is using SoftwareSerial. This outputs on pin_11 (changing data means changing the checksum at the end) --

#include <SoftwareSerial.h>

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

void setup() {
  // Open serial communications and wait for port to open:
  Serial.begin(57600);
  while (!Serial) {
    ; // wait for serial port to connect. Needed for native USB port only
  }


  Serial.println("ok");

  // set the data rate for the SoftwareSerial port
  GPSfake.begin(4800);
  GPSfake.print("$GPGLL, 3723.2475, N, 12158.3416, W, 161229.487, A, A*41");
}

void loop() 
{ 
  GPSfake.print("$GPGLL, 3723.2475, N, 12158.3416, W, 161229.487, A, A*41");
  delay(1000);
}

Thank you very much,
I'm a little out of practice, but it's starting to come back

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