/** * The sketch is for communication between PC and any other device using Arduino Uno. With u-blox NEO-7M in the case. * * Because the Arduino Uno is used, which has only 1 USART, we have to deal with not quite stable `SoftwareSerial` * library. If there is one another hardware USART on your board, it's better to use it and replace `ss` with a * `Serial2`, for example. * * u-blox NEO-7M - Arduino Uno // ursprüngliche Verwendung, mkn * VCC - 5V * RX - 3 * TX - 2 * GND - GND * * Quelle: https://github.com/loginov-rocks/UbxGps * --------------------------------------------------------------------------------- * Adapted for sGPSDO with ublox NEO-6M, NEO-7M and Arduino NANO, modified and tested by mkn, DL7UKM, 16.02.2021 * Der Sketch dient zur Kommunikation zwischen dem PC und jedem anderen Geraet unter Verwendung des Arduino NANO. * In diesem Fall wird eine Verbindung zwischen dem PC und dem u-blox NEO-6M,NEO-7M hergestellt. * * * Ausgabe der vom GPS-Modul gesendeten Daten via USB des NANO an den PC und dort Ausgabe durch IDE Arduino Serieller Monitor * oder unter Nutzung eines externen Terminal-Programms oder ublox u-center, etc. * * Anzeige Serieller Monitor, 9600 Baud: die vom NEO-6M selektierten und gesendeten NMEA-Datensaetze * u-center,GNSS evaluation software for Windows, v20.10 by ublox, v20.10 * https://www.u-blox.com/en/product/u-center * Das u-center erlaubt neben dem Monitoring auch die Configuration des NEO-6M. * * Hardware: * u-blox NEO-6M/NEO-7M - Arduino NANO * VCC - 5V * RX - 3 Nano(3) sendet Daten zum GPS-Modul RX * TX - 4 TX ist das GPS-Modul und NANO(4) empfaengt die Daten vom GPS-Modul kommend * GND - GND * * Connections to the GPS board by Alain, F1CJN * GPS GND connects to Arduino Gnd * GPS RX connects to Software Serial pin 3(D3) on the Arduino Nano, via voltage divider : 330 Ohms in serial to 680 Ohms to ground Pin 3--330--NEO RX--680--GND * GPS TX connects to Software Serial pin 4(D4) on the Arduino Nano * GPS VCC connects to 5 volts */ #include #define PC_BAUDRATE 9600 // 9600 ex4800 #define GPS_BAUDRATE 9600 // 9600 ex4800 //#define GPS_RX 3 // UNO mod by mkn //#define GPS_TX 2 // UNO mod by mkn #define GPS_RX 3 // NANO new mkn GPSRx <---- 3 NANO TX #define GPS_TX 4 // NANO new mkn GPSTX ----> 4 NANO Rx SoftwareSerial ss(GPS_TX, GPS_RX); void setup() { Serial.begin(PC_BAUDRATE); ss.begin(GPS_BAUDRATE); } // If there is a data from the receiver, read it and send to the PC or vice versa. void loop() { if (ss.available()) { Serial.write(ss.read()); } if (Serial.available()) { ss.write(Serial.read()); } }