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!
Gabriel,
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:
GeoShield Summary:
Compass (HMC6352)
using I2C
Accelerometer (LIS302SG)
An0 to read X value
An1 to read Y value
An2 to read Z value
GPS (MC-1513)
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.Open();
_port.DataReceived += new SerialDataReceivedEventHandler(_port_DataReceived);
You probably right! since the value of R6, R7 and R11, R12 is 0 Ohm.
So they must prepare the solder holes for user can connect the wire from GPS TX/RX traces
to connect to the choosen TX/RX.
If I understand right (I’m far from an hardware guru), if I put some resistance on R6, R7 (R11 , R12 are also at 0ohm) that will activate the COM1 port?
If so, I will have to use some tweaking since they do not expose anything from the shield except the Arduino pinout. And yes, this is a pretty neat board when it works (under the arduino…)
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.