I bought the GPS Bee and the Xbee Shield V1.1 and now I’m trying to use them. There seems to be very little documentation. I want to use serial communications, and the doc says it can communicate on pins 11 and 12 (depending on how those little switches are set). However, the board doesn’t even connect to pins 11 and 12.
Thanks. So I wrote the code below to see if could listen to pin 11. It’s not showing me that pin as “available.” Does the GPS Bee need to be initialized or configured someway to make it automatically generate the NMEA data?
#include <NewSoftSerial.h>
int ledPin = 13; // LED test pin
int rxPin = 11; // RX PIN
int txPin = 12; // TX TX
int GPSbyte=-1;
NewSoftSerial GPS = NewSoftSerial(rxPin, txPin);
void setup() {
pinMode(ledPin, OUTPUT); // Initialize LED pin
pinMode(rxPin, INPUT);
pinMode(txPin, OUTPUT);
Serial.begin(9600); // Open comm with serial monitor
Serial.println(“Serial comm initiated”); // Print a test line
GPS.begin(9600); // Open serial comm with xbee
}
void loop() {
digitalWrite(ledPin, HIGH); // Turn on LED 13
while (GPS.available())
{
GPSbyte = GPS.read(); // Read a byte from the xbee
Serial.print(GPSbyte, BYTE); // Print the read byte to serial monitor
}
Serial.println("—"); // Line return
digitalWrite(ledPin, LOW); // Turn off LED 13
delay(100);
}
Hey,
I have bought this new Xbee shield and the gpsbee too but, I can´t make it work…
I have already tried some kind of bridge between soft serial and the usb serial… nothing
I have tried with the Bus piratev3, but its ( gps bee ) doesn´t send anything over serial ( I have already changed the baud rate too 4800 to 115200).
So I want to ask, there anything more that I can do?