UKHAS Wiki

UK High Altitude Society

User Tools

Site Tools


code:nmea_collection

This is an old revision of the document!


NMEA collection (Arduino code)

void setup() {

Serial.begin(9600); // Initialize the serial connection

}

void loop() {

if(Serial.available()>0) {
  int nmea = Serial.read();
  if(nmea==0) {
    Serial.print(nmea);
  }
  else {
    Serial.print(nmea, BYTE);
  }
  Serial.println();
}

}

code/nmea_collection.1206191377.txt.gz ยท Last modified: 2008/07/19 23:31 (external edit)