10.Jun.2023

In this article, we will examine a GPS module for use in tracking systems, which is very easy to connect with microcontrollers.

This GPS module is also quite small in size. Its use with microcontroller cards, which are small in size, also provides advantages in terms of mounting and lightness in our tracking systems. It is very easy to connect and program with boards such as Raspberry Pi Pico or Arduino Nano.

After understanding the connections, the second issue we need to understand is how the data coming from the satellites to the GPS module is structured. GPS data from satellites is in NMEA format. The NMEA format is an ASCII-based format. This format is as follows:

$GPRMC,225446,A,4916.45,N,12311.12,W,000.5,054.7,060180,020.3,E*68

We will examine the parsing of these codes with Arduino commands below.

Now, let's examine the module...

GY-NEO6MV2 is a GPS receiver module based on the NEO-6M GPS module. This module is used to receive location data and connect to the GPS satellite system. Some basics about the GY-NEO6MV2:

GPS Function: The GY-NEO6MV2 is designed to access the GPS satellite system (Global Positioning System). It receives signals from the GPS satellite system and extracts location, speed, altitude and other navigation data from these signals.

NEO-6M GPS Module: GY-NEO6MV2 is based on u-blox's NEO-6M GPS module. NEO-6M is a high sensitivity and reliable GPS receiver and can be connected to devices such as microcontrollers or computers via serial communication protocol (UART).

Features: Some features of the GY-NEO6MV2 are:

GPS receiver over 50 channels
Provides location data with an accuracy of 2.5 meters
5 Hz refresh rate (5 location data updates per second)
Serial data output at TTL level
Stores configuration data with internal EEPROM memory
Connection and Usage: The GY-NEO6MV2 can be connected to a device such as a microcontroller or a computer. The module needs a power supply to power the VCC and GND pins and uses the RX and TX pins to output serial data. The module also requires an antenna connection.

Programming and Libraries: To use the GY-NEO6MV2, you may need to use an appropriate programming language and GPS libraries on the device it is connected to. For example, in Arduino-based projects, GPS data can be accessed with an appropriate GPS library using the Arduino IDE.

Below are sample Arduino codes. The project schema is in the article picture.

#include <SoftwareSerial.h>

SoftwareSerial gpsSerial(4, 3); // RX, TX pins

void setup() {
   Serial.begin(9600); // Serial communication speed
   gpsSerial.begin(9600); // baud rate of the GPS module
}

void loop() {
   while (gpsSerial.available()) {
     char data=gpsSerial.read();
     if (data=='$') { // NMEA sentence start check
       String sentence=gpsSerial.readStringUntil('\r');
       if (sentence.startsWith("$GPRMC")) { // Take only the GPRMC clause as an example
         parseGPRMC(sentence);
       }
     }
   }
}

void parseGPRMC(String sentence) {
   // Parsing the GPRMC clause
   // Take only latitude and longitude values as an example
   int comma1=sentence.indexOf(',');
   int comma2=sentence.indexOf(',', comma1 + 1);
   int comma3=sentence.indexOf(',', comma2 + 1);
   int comma4=sentence.indexOf(',', comma3 + 1);
   int comma5=sentence.indexOf(',', comma4 + 1);
   int comma6=sentence.indexOf(',', comma5 + 1);
  
   String latitude=sentence.substring(comma3 + 1, comma4);
   String longitude=sentence.substring(comma5 + 1, comma6);

   Serial.print("Latitude: ");
   Serial.println(latitude);
   Serial.print("Longitude: ");
   Serial.println(longitude);
}

This code parses the GPS data, only considers the "$GPRMC" clause and extracts the latitude and longitude values from this sentence. The parseGPRMC() function parses the GPRMC sentence and displays the obtained latitude and longitude values on the Serial Monitor.

The parsed latitude and longitude information can be transferred to other components that we will add to our project. For example, it can be sent as information to a mobile phone with the help of a GSM module. Or, if a Wifi module is connected to our microcontroller system, it can be sent to an IoT Cloud over the Internet connection and tracked with the help of Google Maps object.

İlgili Haberler

0.96 Inch OLED Display with NodeMCU ESP8266 Development Board

NodeMCU ESP8266 & 0.96 OLED Display - Ideal development board for IoT projects.

13.10.2023

ESP32 0.96 Inch Blue OLED Digital Display Bluetooth WIFI Kit

ESP32 kit for smart IoT developments: WiFi, Bluetooth, OLED. Arduino compatible. Fast, cost-effective IoT developments

16.10.2023

Comparing Smart Tags

Smart tag products, features and product comparisons

11.04.2023

Overview of Flexible LED matrix Displays

What is flexible led display?

12.04.2023

ESP32-C3 DIY Super Mini Electronic Development Board

Speed up your IoT projects with the ESP32-C3 DIY SuperMini Development Board. Compact, powerful and low power consumption

06.11.2023

ESP32-S2 and ESP32 S2 Mini V1.0.0 Development Board

ESP32-S2 is a powerful microcontroller chip developed by Espressif Systems; low power consumption, ideal for Wi-Fi supported IoT projects. Flexible and compact solutions with ESP32 S2 Mini V1.0.0 board.

16.11.2023

CC308 Wireless Anti-Spy RF Signal Detector Review

CC308 Anti-Spy detector that reveals hidden threats! Detects wireless signals, hidden cameras and spy devices. The ideal solution for your security

18.12.2023

T800 Ultra Watch Smartwatch Ultra Series 8

T800 Ultra Watch Smartwatch Ultra Series 8 , product review

24.04.2023

LAN Ethernet 2 Way Relay Control Module - Delay Switch and TCP/UDP Controller

LAN Ethernet 2-way relay control module, industrial chip, microcontroller, remote control, TCP/UDP controller, WEB server, reliable Ethernet control.

30.01.2024

NORVI ESP32 Based Human Machine Interface: Review

NORVI ESP32, a human machine interface, is an ideal solution for industrial control, powered by LVGL support

10.02.2024

ESP32 Lite V1.0.0 Rev1 Review

A development board specifically designed for use in IoT projects

31.05.2023

Lenovo LP5 Wireless Bluetooth Headset

Lenovo LP5 wireless Bluetooth headset: Active noise cancellation, Hifi sound quality and waterproof design. Easy operation with touch controls. Discover now!

11.02.2024

What is Wifi Smart Plug?

Smart home devices, smart sockets, energy monitoring and savings

01.06.2023

GSM and WiFi Connected Industrial Controller for Industrial Environments

ESP32-WROOM32 based GSM and WiFi connected controller for industrial environments. Ideal for IoT gateways, data transmission and MQTT gateway applications.

16.02.2024

WeMos D1 WiFi Arduino Uno ESP8266 Control Board ESP-12E

WeMos D1 WiFi Arduino Uno ESP8266 Control Board ESP-12E is the perfect control board for IoT projects. Offering features such as Wi-Fi integration, wide pin structure and low power consumption, this board can be programmed with Arduino IDE and provides wireless control of various electronic components. The WeMos D1 is an option that stands out for its flexibility, reliability and cost-effectiveness.

05.06.2023

Arduino Pro Mini Review

Arduino Pro Mini 3.3V - 8 MHz - Atmega328 is a small-sized microcontroller board with low power consumption. It features 14 digital GPIO pins, 8 analog input pins, and operates at a 3.3V logic level. Ideal for projects requiring compactness and low power requirements, the Pro Mini requires an external USB-TTL converter for programming.

06.06.2023

M11-B Series: Programmable IoT Node Based on ESP32-WROOM32

M11-B Series ESP32-WROOM32 based programmable IoT node; Can be used as gateway and standalone sensor node with GSM/LTE, NB-IoT, LoRa, Zigbee communication options

21.02.2024

Arduino GIGA R1 WiFi

Arduino Giga R1 is a powerful microcontroller board designed for ambitious makers. It allows anyone with big ideas on a low budget to step into the world of technology. Equipped with STM32H747XI dual-core Cortex-M7+M4 microcontroller, Giga R1 offers wireless communication with WiFi and Bluetooth.

09.06.2023

76-108MHz FM Stereo Radio DIY Kit

76-108MHz FM Stereo Radio DIY Kit, a great option to make your own FM radio. Drawing attention with its simple structure and ease of use, this DIY kit offers high sound quality thanks to its built-in digital automatic gain control circuit. It supports the 76-108MHz frequency band and is ideal for education, hobby projects and student work. You can buy it from a trusted seller on AliExpress.

12.06.2023

HONEYTEK Inductance Meter A 623

The A 623 Coil Meter is a high quality measuring instrument. It offers a user-friendly interface and wide measuring range to accurately measure the inductance of coils. With its portable design and 9V battery power, it provides the best performance in your electronic projects. It is the ideal choice for coils used in radio frequency circuits, power supplies, electric motors and many other applications.

13.06.2023

Rf-Nano V3.0 micro USB Card Review

RF-Nano V3.0 is a compact microcontroller board with an integrated nRF24L01 RF transceiver module. This review explores its features and applications. Learn about its compatibility with Arduino Nano and the RF24 library. Discover its technical specifications, including the microcontroller, wireless capabilities, voltage, memory, and more. Find out about the nRF24L01 module and its role in wireless communication. Get sample project code for using RF-Nano V3.0 as a receiver and transmitter. Explore the possibilities of wireless sensor networks, remote control systems, and RF-based projects with RF-Nano.

14.06.2023

ESP32-S3-EYE: The Best ESP32-S3 Board for Arduino IDE Users in 2025

ESP32-S3-EYE: 30-second Arduino IDE setup, genuine 2 MP camera, built-in microphone & air quality sensor.

24.11.2025

Best Powerbank 2026 – Comparison of 10 Models Worldwide (Global Guide)

2026’s best powerbanks: Anker Prime 250W, Baseus Blade 120W, Ugreen 145W & more! Global comparison, prices, and specs of the year’s top models.

25.11.2025

Portable Digital Radio Bluetooth 5.0 Stereo

Portable Digital Radio Bluetooth 5.0 Stereo is a multi-functional radio that offers excellent sound experience in your home, office, travel and outdoor areas. Beyond DAB, AM and FM broadcasting, it offers the freedom of wireless connection with CD quality stereo sound, DAB program picture display and Bluetooth compatible 5.0 technology. The 2.4 inch LCD screen displays text and pictures clearly.

04.08.2023

HeiPoe MD-3028 Gold-Metal Detector

Discover the secrets of the past with the HeiPoe MD-3028 Gold-Metal Detector! Detect precious metals with precision. Excellent experience with LCD display, different operating modes and long battery life

18.08.2023

AA Tech ADS-3072B Digital Oscilloscope Review

AA Tech ADS-3072B Digital Oscilloscope: 70 MHz bandwidth, 2 Mpts recording length, fast sampling.

23.08.2023

433 MHz 4-Channel Wireless Transceiver

Discover the affordable and widely used wireless transceiver product. Ideal for home automation, security, industrial control and more.

25.08.2023

Create Your Own FM Radio

Create your own FM radio! FM Radio DIY Kit, featured with simple assembly

30.08.2023

Tuya WiFi Garage Door Opener

Control your home doors intelligently with Tuya WiFi garage door opener.

04.09.2023

FNIRSI DPOX180H Handheld Dual Channel Digital Oscilloscope

FNIRSI DPOX180H is a powerful handheld oscilloscope with 180MHz bandwidth and signal generator.

04.09.2023

DIY FM Radio Kit with Microphone: Improve Your Electronics Skills!

Create your own custom radio station with the DIY FM Radio Kit with Microphone.

06.09.2023

ESP32 WROOM-32 Development Board

ESP32 WROOM-32 development board is a development circuit with wide application potential

14.09.2023

8 Channel WiFi Controlled Relay Card: Ideal for Home Automations

Ideal for managing home automation: 8-channel WiFi controlled relay board. Easy remote control, wide development options.

15.09.2023

Smart Watches Smart Times

Smart watches are everywhere in our daily life.

26.12.2022

ESP32-C3FH4: Ultra-Low Power Consumption WiFi and Bluetooth Microcontroller Chip

Technical information and Arduino code example about ESP32-C3FH4. An ideal chip for your IoT projects with low power consumption, WiFi and Bluetooth

18.09.2023

STM32H573I-DK: Discovery Kit with STM32H573II Microcontroller

STM32H573I-DK is a comprehensive exploration and development kit based on the advanced Arm® Cortex®-M33 core STM32H573IIK3Q microcontroller.

21.09.2023

DIY Experience: AT89C2051 LED Digital 4 Bit Electronic Clock DIY Kit

Step into the world of electronics with the AT89C2051 LED Digital Clock DIY Kit! Suitable for precision watch making.

27.09.2023

Samsung Galaxy Tab S7

About Samsung Galaxy Tab S7

23.01.2023

Air Quality Detector

The Air Quality Detector 9-in-1 is a great option for monitoring indoor air quality. 

06.10.2023