GPS speedometer and clock
A bike or car speedometer that needs no wheel sensor: satellites do the measuring.
Shop by category
Shop all componentsNavIC (IRNSS) is India's own satellite navigation system, covering India and the region around it. Receivers that support it send standard NMEA sentences over serial, and the satellites in view are listed in GSV sentences, with a two-letter talker ID: GP for GPS and GI for NavIC. The ESP32 reads the sentences, picks out the satellites-in-view count for each system from the GSV lines, and shows them with the position from the GGA line.
Tick anything you already have and the total updates.
Follow the colours: red is power, dark grey is ground, blue is a signal.
5 V USB supply or a power bank.
navic_counter.inoVerify & upload in Electrolark#include <Adafruit_SSD1306.h>
Adafruit_SSD1306 oled(128, 64, &Wire, -1);
const long BAUD = 115200;
int gps = 0, navic = 0, sats = 0; String lat = "-", lon = "-";
String field(const String &s, int n) {
int start = 0;
for (int i = 0; i < n; i++) { start = s.indexOf(',', start) + 1; if (start == 0) return ""; }
int end = s.indexOf(',', start); return s.substring(start, end < 0 ? s.length() : end);
}
void setup() {
Serial.begin(115200);
Serial2.begin(BAUD, SERIAL_8N1, 16, 17);
oled.begin(SSD1306_SWITCHCAPVCC, 0x3C); oled.setTextColor(WHITE);
}
void loop() {
if (!Serial2.available()) return;
String s = Serial2.readStringUntil('\n');
Serial.println(s);
if (s.startsWith("$GPGSV")) gps = field(s, 3).toInt();
if (s.startsWith("$GIGSV")) navic = field(s, 3).toInt();
if (s.substring(3, 6) == "GGA") { sats = field(s, 7).toInt(); lat = field(s, 2); lon = field(s, 4); }
oled.clearDisplay(); oled.setTextSize(1);
oled.setCursor(0, 0); oled.print("GPS in view "); oled.print(gps);
oled.setCursor(0, 14); oled.print("NavIC in view "); oled.print(navic);
oled.setCursor(0, 28); oled.print("Used in fix "); oled.print(sats);
oled.setCursor(0, 44); oled.print(lat); oled.setCursor(0, 54); oled.print(lon);
oled.display();
}
The board may need NavIC enabled in its settings, or the antenna does not cover L5.
Wrong baud rate or TX/RX swapped.
Satellite signals are weak indoors; use a window or go outside.
A small constellation over India; you will usually see a handful at a time.
It adds satellites over India, which helps in cities and valleys.
It marks NavIC sentences in NMEA, like GP for GPS and GN for combined.
6 parts: GNSS Receiver BOB with NavIC & GPS, ESP32-WROOM-32 38-Pin Development Board, 0.96" OLED Display 128x64, Official Raspberry Pi 4 USB-C Power Supply – 15.3W, Solderless Breadboard and Dupont Jumper Wires (40 pcs). On this page you can tick the parts you already have and add only the rest to your cart.
It is a beginner project and takes about 1-2 hours. The build on this page has 6 steps.
No. This page has the complete, tested code (navic_counter.ino).
About ₹3,973 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
How NMEA sentences are built; Talker IDs for each satellite system; What NavIC adds over GPS alone.
A bike or car speedometer that needs no wheel sensor: satellites do the measuring.
Records where you went every five seconds, ready to open on a map.
Two boards, two radios: press the button at the gate and it rings indoors.
Check temperature, humidity and pressure from any phone on your Wi-Fi.
Lessons are free to read. Maker (₹499/month) and Pro add quizzes, worked problems and certificates, paid with your Geekobot account. See plans
Learning project. Check every circuit and the datasheet of each part before you power it up.