Ok, I'm working on a project that is using a Duemilanova and a EM-406A, as well throwing in a analog pressure sensor as a rocket flight computer. I am able to get the NMEA data from the serial, in this case using the NewSoftSerial library, then passing it to the serial rx port. That gives me typical (although no-lock at the moment) NMEA data in the serial port. Below is the program
#include <NewSoftSerial.h>
NewSoftSerial gps(2, 3);
void setup()
{
Serial.begin(9600);
Serial.println("Setup intiated");gps.begin(4800);
gps.println("Hello, world?");
}void loop()
{if (gps.available()) {
Serial.print((char)gps.read());
}
//Serial.print('$APS ');
//Serial.println(millis());
//delay(100);
}
If i uncomment out the final 3 lines, the serial data goes crazy and gives me almost entirely the millis() command output with sometimes a random character in the front of the millis, and no $APS output. Basically this above program is a simplified version of my current program giving the same error. Below is the error text from the serial output i'm encountering:
Setup intiated
–2128054
,21280163
±21280273
Æ21280384
?2128049421280604
Ë21280714
–21280823
,21280931
c212801038
Æ212801146
?212801255
e212801367
Ì212801478
¢212801589
The end result is that i want to output to serial the gps data as well as a set of data created by 1-2 analog sensors. This will then be passed by an XBee to a computer for further interpretation.
What exactly is my code problem, is there any examples of something like this i would be able to use?
If you have any questions let me know,
thanks DMP