Site icon Circuit Ideas for You

Arduino GPS Based Speedometer Circuit

Anyone want to check speed of bike, car or any moving vehicle?

With Arduino and GPS module we can make small but cheap DIY speedometer.

This project for Arduino GPS Based Speedometer Circuit is easy and fun.

It shows real-time speed on LCD using GPS satellite data.

No need of big or complex sensors only Arduino, GPS and LCD are needed.

We can see speed anywhere and anytime if GPS gets clear signal from sky.

Circuit Coding:

#include <SoftwareSerial.h>
#include <TinyGPS++.h>
#include <Wire.h>
#include <LiquidCrystal_I2C.h>

TinyGPSPlus gps;
SoftwareSerial gpsSerial(4, 3); // RX, TX
LiquidCrystal_I2C lcd(0x27, 16, 2); // I2C address 0x27, 16x2 LCD

void setup() {
  Serial.begin(9600);
  gpsSerial.begin(9600);
  lcd.init();
  lcd.backlight();
  lcd.print("Speedometer");
}

void loop() {
  while (gpsSerial.available() > 0) {
    gps.encode(gpsSerial.read());
    if (gps.speed.isUpdated()) {
      float speed = gps.speed.kmph();
      lcd.setCursor(0,1);
      lcd.print("Speed: ");
      lcd.print(speed);
      lcd.print(" km/h ");
    }
  }
}

Code Explanation:

Circuit Working:

Parts List:

ComponentQuantity
Arduino Nano1
NEO6M GPS Module1
1.3 inch I2C OLED display1
Adapter power supply1

The circuit is very simple.

Arduino is the main brain in this circuit.

GPS module gets satellite signals and sends location data to Arduino.

Arduino calculates speed from the change in GPS coordinates using TinyGPS++ library.

The I2C LCD shows speed in km/h.

No extra sensors needed because GPS gives both location and speed.

Arduino reads GPS data and calculates speed and then sends speed to LCD to display.

GPS module receives latitude and longitude from satellites.

Arduino reads this data continuously.

Arduino calculates speed in km/h using TinyGPS++.

I2C LCD shows real-time speed updating every second or faster depending on GPS signal.

Project works anywhere outside with clear sky, because GPS needs direct satellite signals.

We can also add LED or buzzer to alert if speed is high.

How to Build:

To build a Arduino GPS Based Speedometer Circuit follow the below steps for connections:

Conclusion:

This is a simple Arduino GPS Based Speedometer Circuit

It shows real-time speed on LCD using GPS satellite data.

Circuit is small, cheap and easy to build.

Perfect project for learning electronics and Arduino.

Ride safe and check your speed anytime!

References:

Using Arduino and GPS module to show speed

Exit mobile version