GPS INTERFACING WITH ARDUINO


Connect GPS pin to arduino as follow:



TX of GPS  -->   Digital Pin 1

RX of GPS  -->   Digital Pin 0
VCC of GPS  -->   +5V
GND of GPS  -->   GND


---------------------------------------------------------------------------------
Program:[usefull with arduino uno,nano,mini]
---------------------------------------------------------------------------------

#include <Roshan.h>

roshan gps(9600);
void setup()

  gps.begingps();
  Serial.println("roshan is included");
}
void loop()

  String rawgps= "";
  rawgps= gps.getgps();
  Serial.println(gps.getgps());
 Serial.println("lattitude="+gps.getlattitude(a));
 Serial.println("longitude="+gps.getlongitude(a));
 delay(1000);
}
---------------------------------------------------------------------------------
NOTE:-YOU WILL NEED HERE LIBRARY FOR GPS
  Here I have developed my own library,you can download it from the below given link...
Download Roshan.h library here.
---------------------------------------------------------------------------------
good luck!!!!
if you have any questions you may ask in comment box..We will try to assist you 

Comments

Popular posts from this blog

Analog input Analog output of arduino