Hello Forum,
I’ve been trying to find a way to configure a NEO6MV2 (Arduino Compatible GPS Receiver Module | Jaycar Electronics) to increase the default cadence of data update from 1 Hz to … as high as possible to still give a reasonably accurate (<10m) measurement.
There’s a lot of configurable items, so to be clear; I want to be able to obtain GPS data faster than once a second - ideally perhaps, around 0.25 Hz. (the default is 1 Hz). - Not modify the TIMEPULSE nor the baud rate.
I’ve examined available documentation including /Dev’s library at NeoGPS/Extending.md at master · SlashDevin/NeoGPS · GitHub, and spent too long searching various fora, but if anyone can point me to some documentation might have missed, or has a solution on-hand, please let me know!.
Many thanks.
Module documentation is at
https://www.jaycar.com.au/medias/sys_master/images/9183387811870/XC3712-dataSheetMain.pdf I’m using NMEAGPS library, and my test scripts are pretty basic per below, I’m using an arduino UNO, but i dont think the board matters a great deal.
#include <NMEAGPS.h>
#include <NeoSWSerial.h>
NeoSWSerial gpsPort(8, 7);
NMEAGPS GPS;
void setup()
{
Serial.begin(115200);
gpsPort.begin(9600);
GPS.send_P( &gpsPort, F("PMTK220,1000") ); // 1 Hz update rate
}
void loop() {
if (GPS.available( gpsPort )) {
gps_fix fix = GPS.read();
if (fix.valid.location) {
<do stuff>
}
}
}
I should also point out that the UNO pin 7 is connected to the top of a series resistor voltage divider(P7 → 4k7 => 10k =G) , and the GPS RX pin picks off at the junction of the resistors (at 3.3V) as at https://forum.arduino.cc/index.php?topic=434405.0. The TX pin from the GPS is connected directly to pin 8 in the arduino.