Thursday, February 21, 2013

GPS Telemetry is SENDING on RCHL!

We finally have the GPS sending over the XBEE! Here is the code that we used, very simple and easy code on the sending side:

#include <SoftwareSerial.h>

SoftwareSerial GPS = SoftwareSerial(8, 9);

void setup()
{
GPS.begin(9600);
Serial.begin(57600);
}
void loop()
{
Serial.print(GPS.read(), BYTE);
}

On the receiving side, Arduino UNO with an XBEE shield in USB mode and then SiRFDemo running in windows to test output. I set the XBEE's to 57600 for their comms between each other and then the GPS is sending at 9600. Works like a charm, one second refresh rate.

Steve also has all of the boards mounted and they are great looking! Nice job :)


No comments:

Post a Comment