As for now, I’ve can read the accelerometer values and I want to get the GPS value. I’ve been playing around but looks like I’m still in the dark… If someone can give me a clue to hook up my GPS Data it will be very appreciated!
Sorry for getting back to you late. 'Cause I’m travelling!
Have you tried to do the simple Serial Comm. between GPS and PC using terminal program, something like the sample from the eBook, to see that the communication is working fine before step to more complicate thing?
I was looking in to this GeoShield and here is what I found:
An0 to read X value
An1 to read Y value
An2 to read Z value
using software serial with the Baudrate of 9600
(this sofware serial library [for Arduino] allows you to specify any digital pins as TX and RX, in this case,
Di4-RX, Di5-TX as TX/RX Comm. Shown as COMM2 on the Schematic, page 2) http://www.liquidware.com/system/0000/3669/GeoShield-RevB.pdf
At the same time, these GPS RX/TX pins also hook up to COM1 (Di0-TX, Di1-RX)
So you could get by the problem by using COM1(I hope!) in the code instead of COM2, like this
_port = new SerialPort("COM1", 9600, Parity.None, 8, StopBits.One);
_port.ReadTimeout = 0;
_port.ErrorReceived += new SerialErrorReceivedEventHandler(_port_ErrorReceived);
_port.DataReceived += new SerialDataReceivedEventHandler(_port_DataReceived);
This shield consisted of four layers of board! Look like a top secret board. :
Well, here is my way to find out if there is a connection to the COM1 TX/RX pins(Di0, Di1).
Just use the external battery (2xAA - 3V) or equivalent and hook the positive (+) to the 5V pin on the shield.
And hook the negative(-) to Di0 and see if one of the LED on top of the shield lid up.
If it lits up that means there is a connection from GPS to COM1-RX.
Then try to hook the negative(-) to Di1 and see if one of the LED on top of the shield lid up.
If so there is a connection from GPS to COM1-TX.
Then you could proceed to use the GPS on this shield.