PaulZC:
@ Rayb,
I still recommend using a level-shifter. The Mega IO pins are 5V. The Serial1/2/3 TX and RX pins will output 5V and expect 5V signals. Likewise the I2C SCL and SDA pins will output 5V and expect 5V. The NEO-M9N is a 3.3V board. A direct connection may work, but it will not be reliable and could cause damage.
There is a Great Circle Distance example here:
https://github.com/sparkfun/SparkFun_u- … stance.ino
Many of the examples show how to read SIV - Satellites In View. Although that name is not quite correct. The u-blox modules output the number of satellites used in the position calculation, which is not quite the same thing.
https://github.com/sparkfun/SparkFun_u- … sition.ino
Best,
Paul
Hello Paul,
I ordered the level shifter and I will install it. The baud rate is 38400 so it is ok. I down loaded my recent sketch and I turned on the debug and the following was my response. It looks like there is a missing acknowledge. Do you know what this means.
Sending: CLS:NAV ID:PVT Len: 0x0 Payload:
sendCommand: Waiting for No ACK response
Incoming: Size: 92 Received: CLS:NAV ID:PVT Len: 0x5C Payload: E0 8 63 1D E7 7 5 C 10 38 33 37 89 0 0 0 2F 0 C2 23 3 3 AB 6 1D 10 CB CC 18 4C D4 16 44 49 3 0 DF C8 3 0 6A 59 0 0 7 89 0 0 4F 0 0 0 76 0 0 0 1A 0 0 0 8E 0 0 0 E CB A3 1 39 3 0 0 94 D3 A3 0 11 1 0 0 EE 13 4F 2F 0 0 0 0 0 0 0 0
packetCfg now valid
packetCfg classAndIDmatch
waitForNoACKResponse: valid data with CLS/ID match after 1022 msec
This Far
Sending: CLS:NAV ID:PVT Len: 0x0 Payload:
sendCommand: Waiting for No ACK response
waitForNoACKResponse: TIMEOUT after 1100 msec. No packet received.
Sending: CLS:NAV ID:PVT Len: 0x0 Payload:
sendCommand: Waiting for No ACK response
waitForNoACKResponse: TIMEOUT after 1100 msec. No packet received.
Sending: CLS:NAV ID:PVT Len: 0x0 Payload:
sendCommand: Waiting for No ACK response
Incoming: Size: 92 Received: CLS:NAV ID:PVT Len: 0x5C Payload: 40 12 63 1D E7 7 5 C 10 38 36 37 88 0 0 0 58 BB FE FF 3 3 AB 5 D4 F CB CC 32 4C D4 16 4C 4B 3 0 E8 CA 3 0 6 58 0 0 47 87 0 0 83 0 0 0 CA FF FF FF 10 0 0 0 8E 0 0 0 E CB A3 1 EE 3 0 0 1A FB A3 0 16 1 0 0 EE 13 4F 2F 0 0 0 0 0 0 0 0
packetCfg now valid
packetCfg classAndIDmatch
waitForNoACKResponse: valid data with CLS/ID match after 163 msec
This Far
Sending: CLS:NAV ID:PVT Len: 0x0 Payload:
sendCommand: Waiting for No ACK response
waitForNoACKResponse: TIMEOUT after 1100 msec. No packet received.
Sending: CLS:NAV ID:PVT Len: 0x0 Payload:
sendCommand: Waiting for No ACK response
waitForNoACKResponse: TIMEOUT after 1100 msec. No packet received.
Sending: CLS:NAV ID:PVT Len: 0x0 Payload:
sendCommand: Waiting for No ACK response
Incoming: Size: 92 Received: CLS:NAV ID:PVT Len: 0x5C Payload: A0 1B 63 1D E7 7 5 C 10 38 38 37 87 0 0 0 7E 40 D6 17 3 3 AB 5 3D F CB CC 22 4C D4 16 9 4B 3 0 A5 CA 3 0 D7 56 0 0 BF 85 0 0 1C 0 0 0 C3 FF FF FF 16 0 0 0 43 0 0 0 E CB A3 1 B3 3 0 0 40 20 A4 0 15 1 0 0 EE 13 4F 2F 0 0 0 0 0 0 0 0
packetCfg now valid
packetCfg classAndIDmatch
waitForNoACKResponse: valid data with CLS/ID match after 162 msec
This Far
Sending: CLS:NAV ID:PVT Len: 0x0 Payload:
sendCommand: Waiting for No ACK response
waitForNoACKResponse: TIMEOUT after 1100 msec. No packet received.
Sending: CLS:NAV ID:PVT Len: 0x0 Payload:
sendCommand: Waiting for No ACK response
waitForNoACKResponse: TIMEOUT after 1101 msec. No packet received.
Thanks,
Rayb
PS: the PPS Led is blinking.