Project showcase
GPS + Bluetooth + Android

GPS + Bluetooth + Android © CC BY

I took an HC-05 and added it to my handheld GPS device to get coordinates on my Android tablet.

  • 3,549 views
  • 0 comments
  • 5 respects

Components and supplies

A000066 iso both
Arduino UNO & Genuino UNO
×1
GPS Module (Generic)
×1

About this project

I want to make an handheld GPS device in order to understand its working and how can I implement this in other projects so I created this setup.

watch the video on my channel

Code

CodeC/C++
#include <TinyGPS++.h>
#include <SoftwareSerial.h>

static const int RXPin = 4, TXPin = 3;
static const uint32_t GPSBaud = 9600;

// The TinyGPS++ object
TinyGPSPlus gps;

// The serial connection to the GPS device
SoftwareSerial ss(RXPin, TXPin);

void setup(){
  Serial.begin(9600);
  ss.begin(GPSBaud);
}

void loop(){
  // This sketch displays information every time a new sentence is correctly encoded.
  while (ss.available() > 0){
    gps.encode(ss.read());
    if (gps.location.isUpdated()){
      Serial.print("Latitude= "); 
      Serial.print(gps.location.lat(), 6);
      Serial.print(" Longitude= "); 
      Serial.println(gps.location.lng(), 6);
    }
  }
}

Schematics

Schematics
Neo 6m arduino xidynofyf1

Comments

Similar projects you might like

GPS Location Display With GPS And TFT Display Shields

Project tutorial by Boian Mitov

  • 8,808 views
  • 5 comments
  • 23 respects

Arduino Bluetooth Robot for Android Device

Project showcase by aip06

  • 2,213 views
  • 1 comment
  • 10 respects

Connecting "stuff" via Bluetooth / Android / Arduino

Project tutorial by MJRoBot

  • 12,067 views
  • 20 comments
  • 30 respects

Arduino and Android Based Bluetooth Password Lock

Project tutorial by Md. Khairul Alam

  • 16,766 views
  • 7 comments
  • 29 respects

Motorcycle + Arduino IMU + Android GPS = RideData App

Project in progress by Joshua Willuhn

  • 3,944 views
  • 4 comments
  • 10 respects
Add projectSign up / Login