HOW TO: Easy GPS connection to an Arduino

  Переглядів 262,608

DonovanStudio

DonovanStudio

8 років тому

In this 10 minute video I show how to easily connect a GPS unit to an Arduino Uno. All that is needed are 4 wires, a cheap GPS unit, and an Arduino. I use the TinyGPS++ library to make it all work.
This might be one of the easiest projects to do, short of a blinking LED. The code is short and simple. The particular GPS unit is a GY-GPS6MV2 but the principle is the same with pretty much any unit.
The code is available at:
github.com/LessonStudio/Ardui...

КОМЕНТАРІ: 288
@Eurus721
@Eurus721 6 років тому
Still working great after several months. I’ve noticed that the Tiny GPS library version im using when asked nearing and range to waypoint returns distance in kilometers so to spite using it to guide my boat I do everything in kilometers then convert to nautical for the display. Another simple thing I’m doing is displaying number of satellites on the LCD in hex 0 to F to save space.Great video that got me started. Thanks
@Pelonius
@Pelonius 6 років тому
LOL --- I am trying to use a GPS unit for a speedo on my ATV and came across this video, but I had to laugh when at the end you and I are in the same city. It is amazing how small our world is. Thank you for your video by the way.
@SrikanthBhospet
@SrikanthBhospet 2 роки тому
Simple, straightforward great explanation. Thank you for this Video. Subscribed.
@ssmith53
@ssmith53 4 роки тому
Thanks for posting this video. Very straightforward, to the point, informative and helpful.
@johnr1750
@johnr1750 7 років тому
Hey, nice tutuorial! It works like a charm with my A7 module and im sending the position data that I pick off to a remote location via GPRS/GSM. Thanks for the convienent library reference! John in BC
@tuyaty2816
@tuyaty2816 7 років тому
Hi, May you send me the source code? please.. I'm also working on A7 module.
@br0k3nilluzion
@br0k3nilluzion 7 років тому
I just got an A7 module too. Id love to see it as well
@withhitsh5650
@withhitsh5650 2 роки тому
hello there am from future id like to ask you did you use this code with A7 and it worked?
@jeffhan1239
@jeffhan1239 3 роки тому
Great tutorial! I live in Edmonton too 😂
@joesmith9330
@joesmith9330 7 років тому
I JUST COMPLETED MY GPS HOOKUP WITH MY LAPTOP AND IT WORKS GREAT ! THANK YOU ! U NEED TO DOWN LOAD TINYGPS++ LIBRARY ZIP FILE AND RIGHT CLIK EXTRACT IT TO UR ARDUINO/LIBRARY FILE . MINE IS IN MY DOCUMENTS/ARDUINO/LIBRARY. THEN U UPLOAD THE PROGRAM AND U SEE THE LED LIT ON THE UNO AND I HAVE A BLUE LED BLINKING ON MY GPS CARD THEN I PRESSED CONTROL SHIFT M AT THE SAME TIME AND THE GPS WINDOW OPENS DISPLAYING LAT LONG SPEED AND ALTITUDE LIKE THE VID SHOWS. IF UR GPS CARD NEEDS PINS OR WIRES SOLDERED IN DONT USE MORE THAN A 1/16 OF AN INCH OF SOLDER WIRE CAUSE THE HOLES ARE VERY CLOSE TO EACH OTHER AND U CAN OVER FLOW THE SOLDER AND SHORT THE WIRES VERY EASILY. USE UR MAGNIFIYER GLASSES FOR THE SOLDERING . THANKS AGAIN THIS WORKS SO GREAT . LIKE WOW
@THEBASTvido554
@THEBASTvido554 4 роки тому
Thank you very much your code is the BEST
@yuchoy1
@yuchoy1 5 років тому
Super! Thanks for doing the video!
@drvlog4285
@drvlog4285 6 років тому
Hello, Great video and thank you very much for sharing the knowledge. I followed your steps but I didnt find the module updating the data. It jumps to the loop() but seems like the program doesnt jump in to the first while loop. What can be the causes? Thanks in advance.
@Nickelbag94
@Nickelbag94 5 років тому
Thanks for your tutorial i also used this GPS Board ;-)
@ildarkhakimov3075
@ildarkhakimov3075 7 років тому
thank you, there's a real demand for a tutorial like this but for rtk receivers using ublox or something else, to get real precise location data (down to cm lvl)
@br0k3nilluzion
@br0k3nilluzion 7 років тому
have you played with a GSM module with your GPS module? Id love to see you make a video of those together. My idea was to have the GPS coordinates sent to a server database online or something.
@garybuskirk9521
@garybuskirk9521 7 років тому
very informative and made my decision on how im doing my GPS system on my long range RC GUV Thanks, liked, and subscribed!
@CHUMODAN111
@CHUMODAN111 6 років тому
очень помогли с подключением и тестом спаибо за видео.
@ahmedameen5443
@ahmedameen5443 8 років тому
Thxx buddyy it works well
@MarcelDiane
@MarcelDiane 5 років тому
Nice garage!
@nisaismail9591
@nisaismail9591 Рік тому
Hi thank you for making the video. Does it work with ESP32C3 (i.e. replace Arduino UNO)?
@user-cb7ly2rt7q
@user-cb7ly2rt7q 5 років тому
شكرا جزيلا على هذه المعلومات
@TheDradge
@TheDradge 3 роки тому
They're actually useful as an atomic clock source as well
@user-so4uk6tq1l
@user-so4uk6tq1l 6 років тому
Wow, your code just solved our problem, which bothered us for weeks. Thank you very much
@anandraok960
@anandraok960 6 років тому
二宮望 did u get the output other than gps start If yes can u help me
@gabrielpacatang7164
@gabrielpacatang7164 2 роки тому
@@anandraok960 did you find a solution?
@mee8037
@mee8037 Рік тому
@@gabrielpacatang7164 i could use some help on that :)
@AZZAMNO1
@AZZAMNO1 6 років тому
question, could this be use to by directly connecting the gps to bluetooth via wiring rx tx?
@petrosrz8990
@petrosrz8990 7 років тому
if you are inside it will usally tell you a speed since it hasn`t a good signal :) . Also Thank for the easy tutorial ;)
@ahmedazouz303
@ahmedazouz303 6 років тому
in the code there is a propriety called "Altitude Feet:" .. Is this gives the a Real height position for the GPS chip or the drone for example ?
@davideguerrieri9017
@davideguerrieri9017 6 років тому
hi, do you need a Sim card to make it work or you can simply buy this components without buying a sim? I don't understand if this is able to track a device I lost or not. Is necessary to buy a SIM800L??? thank you
@desertsand8778
@desertsand8778 5 років тому
So you live in Canada. Neat!
@Paraclete333
@Paraclete333 3 роки тому
Western accent, metric country. Pretty obvious.
@irmalovgren6733
@irmalovgren6733 4 роки тому
thank you!!
@geraldusderian3429
@geraldusderian3429 5 років тому
can i use another antenna like tcp ip or another (not ceramic antenna), to my ublox 7m?
@farhanhidayah4545
@farhanhidayah4545 6 років тому
Thankyou this worked a miracle for me. Though it did take a little time to work. :)
@danajaber9590
@danajaber9590 6 років тому
farhan hidayah hello ,, i am trying to make this project work but i really do not know how to install the library , can u please help me !!
@anandraok960
@anandraok960 6 років тому
Go to github in google and search for library files which had been included in ur code and download it there (zip file) In arduino software goto tools and include library file and add zip file there
@anilgrandhi9844
@anilgrandhi9844 5 років тому
Hi, can u mail me the code you used.
@user-qr8xy3bx2y
@user-qr8xy3bx2y 7 років тому
Thank you very much
@mohamedaadil7994
@mohamedaadil7994 6 років тому
Can we use it as a marine gps? What would it require more?
@chameerasubasinghe4059
@chameerasubasinghe4059 7 років тому
can i use SoftwareSerial libray to attach GPS and GSM module to an arduino uno. i don't need to communicate with both modules at the same time.
@vojislavdabic3604
@vojislavdabic3604 5 років тому
I made a ballistic rocket with arduino. I made some sugar rocket fuel (5KG) and made a 3 stage rocket. I made this gps module and a few metal ropes attached to motors from arduino and they are attached to the fins of the rocket. It flew 50 km and landed (safely with parachutes) 200 meters from the target.
@anilgrandhi9844
@anilgrandhi9844 5 років тому
Hi, may I know what is the model of GPS module you used, and code
@liderl.m.9850
@liderl.m.9850 7 років тому
Can you take the satellite time too?, i mean "gps.clock/time.value();" or something like that. This library contains some instruction code about to take satellite time?
@kanuraagkaushik97
@kanuraagkaushik97 6 років тому
Sir is it possible to transmit the coordinates using a GSM module?
@Henry.Kristiansen
@Henry.Kristiansen 5 років тому
Does this library have a heading/Compas feature?
@ryanbareither89
@ryanbareither89 2 роки тому
Can the arduino track, store and display the total distance like an odometer?
@mohammedqassem2311
@mohammedqassem2311 5 років тому
hello Please i need (tinygps++ lib) i don't found this Thank you
@muthurajar8584
@muthurajar8584 7 років тому
good working .....
@Roby0593
@Roby0593 Рік тому
Hello, 1) could be good use also that cheap board that i have find on Aliexpress for 5€ ? 2) what is the name of the second board you use ?
@ivanalonzo1057
@ivanalonzo1057 5 років тому
nicely done sir. if you may do you have the code for raspberry pi along with arduino and gps module where i can get the location whenever i text a message?
@jonathanchew1920
@jonathanchew1920 7 років тому
Does this work for Ublox NEO M8N?
@bannyspear
@bannyspear 7 років тому
hi sir cau is it possible to make a geofence project using that gps and arduino
@joeestes6318
@joeestes6318 7 років тому
do you program the serial # of the unit?
@sumanshetty7584
@sumanshetty7584 5 років тому
How can we use Tiny GPS to guide user to destination like turn left ,turn right ?
@peruvazhuthisrinivasan9835
@peruvazhuthisrinivasan9835 5 років тому
success thanks alot
@obkkidjayre9356
@obkkidjayre9356 3 роки тому
sensor is can change number lat and long to link google map?
@elektron2kim666
@elektron2kim666 2 місяці тому
"The library takes care of the rest" is what killed it for me in the beginning. Switched to MMBasic where I read 1 manual and type everything myself. With Pico's I make small "computers" and it's quite interesting with wires and components now. I might try an Arduino for something, but I don't expect much.
@techidiots3401
@techidiots3401 6 років тому
hello sir ,i used a gps tiny .when connected with usb to usart converter that shows a location on serial monitor but not with arduino ...plz give any solution
@colinchristie6827
@colinchristie6827 6 років тому
i crossed over the GPS rx from tx and now instead of numbers spitting out in the serial monitor I get goggly goo. Does this mean I have bricked my GPS module
@JohnnyWalkerArt
@JohnnyWalkerArt 4 роки тому
Great tutorial. Thank you!!!
@loicbru1002
@loicbru1002 6 років тому
What board are U using? Uno, as video or a Mega with 4 communication ports...?
@AZZAMNO1
@AZZAMNO1 6 років тому
uno with software serial so u could use 2 serial communication
@aarushsharma8715
@aarushsharma8715 5 років тому
hi . i am working on the same project but my readings are not coming. it is showing one GPS start. what is the problem. iam using the code whic you have given i.e github one in ur link
@dakshshukla9315
@dakshshukla9315 5 років тому
brother when i connect my gps neoo6 to arduino and then to power source it gets switched off reply soon
@aldrinjosephubungin9984
@aldrinjosephubungin9984 5 років тому
Thank you for this tutorial.. Can anyone help me how to send the coordinates to server without using GSM module or is there a way to get the coordinates by only using uno and neo 6m?
@4mecaboy
@4mecaboy 3 роки тому
Instead of Arduino, use ESP8266
@bastiti4715
@bastiti4715 3 роки тому
^^^ Or Arduino Uno with Ethernet Shield.
@biancadelos1211
@biancadelos1211 5 років тому
did you buy the pin socket of GPS module? I bought one without having a pin socket
@o0O0oLOLo0O0o
@o0O0oLOLo0O0o 4 роки тому
just solder wires on the module if you don't have the pins
@NaveenAlpha
@NaveenAlpha 5 років тому
if i make it battery operated then how can it send my the data? any help?
@carlosespinosa6446
@carlosespinosa6446 5 років тому
how far the gps can be from the arduino ?
@eveliohernandez6595
@eveliohernandez6595 4 роки тому
Hi, I am getting a trouble, I am using GPS NEO-M8P-2 in my library of the gps it exist an example, but appear that #include //Needed for I2C to GPS, but I am conecting with RX Y TX, and do not read my date. its necesary define the pins or I need a wire cable. thank you, i hope you could help me
@bannyspear
@bannyspear 7 років тому
please sir can you modify it to a tracking device which compose of arduino and gsm/gprs module please
@tukukode
@tukukode 4 роки тому
Thanks
@evergreatest5821
@evergreatest5821 5 років тому
Guys, sometimes you have to switch the RX TX for it to work
@austinma8586
@austinma8586 4 роки тому
God bless, you're an angel! I did that and it f8ckin worked
@chandanjoshi1013
@chandanjoshi1013 3 роки тому
What's the name of the GPS you used ?
@CharizardFan_og
@CharizardFan_og 2 роки тому
So how do you get it to sow your location on google maps while you are moving. In other words without any inputs from the user?
@arletpaz8010
@arletpaz8010 3 роки тому
is there a reason why im getting this msg in terminal ? "GPS Start" i get nothing else and yes the gps module works fine all by itself
@adrianTNT
@adrianTNT 4 роки тому
6:12 Help ! In software when you set the RX pin = 10, that means it is the RX on the Arduino board, and goes to the TX of the GPS, right ?
@hergunebirsiir2004
@hergunebirsiir2004 4 роки тому
since he connected Rx to pin 10 on Arduino , he wrote the code like that.
@user-bi1gf9kg7u
@user-bi1gf9kg7u 4 роки тому
Good night Speed ​​in any unit of measurement?
@omkarmagdum8856
@omkarmagdum8856 7 років тому
Sir,Very very thank you for this video. But, If I want to use it for arduino uno then what library file I should include instead of tinygps filr?
@vannessliu
@vannessliu 4 роки тому
Can you hook up a gsm using this gps??
@PR0bro
@PR0bro 5 років тому
Can you power the Arduino with a 9V battery and still get your computer to receive the GPS information?
@francoisguyot789
@francoisguyot789 4 роки тому
Yes
@florinalexandruro
@florinalexandruro 7 років тому
Hello! Nice tutorial! Do you know whether the Datum can be coded in this module? I mean, if I want to obtain directly the coordinates in other EPSG, can I do that?
@nandhiniravichandran3233
@nandhiniravichandran3233 5 років тому
SIR HOW CAN WE INTERFACE GPS WITH GSM 800L..
@JohnSmith-my4jr
@JohnSmith-my4jr 6 років тому
why it doesn't work with my nodemcu + neo-7m? I can't see anything after: GPS Start
@user-kb7jf2wf6n
@user-kb7jf2wf6n Місяць тому
What is this used for does it track mobiles i found this in my home along with some other equipment can somebody explain what a suspicious person would need this for like for example can it be used to spy on somebodys location sorry if i sound dumb iv no idea about this kind of technology and have found some cameras in my home that i didnt place
@Roby0593
@Roby0593 Рік тому
What is the function of the second board ?
@nelsondarwinpaktech3954
@nelsondarwinpaktech3954 6 років тому
How r u?Bro,,,I used this gps but it is not updating the data,,,,even i move,,,,
@TEKKENEnterMyDragon
@TEKKENEnterMyDragon 6 років тому
Hi sir, is it possible to use the coordinate to send push notifications?
@JR-bc4rn
@JR-bc4rn 6 років тому
What exactly do you mean by an Arduino??
@RamdanManuguri
@RamdanManuguri 7 років тому
thxx broo (y)
@aritrasurroy4794
@aritrasurroy4794 7 років тому
are you using The gy-neo6mv2 gps module?
@o0O0oLOLo0O0o
@o0O0oLOLo0O0o 4 роки тому
read the description
@sunny5418
@sunny5418 6 років тому
How to connect this with compass sensor.. please help me with a code
@ajaykakde2338
@ajaykakde2338 5 років тому
I am using arduino mega 2560 with gps neo 6m.I wrote same code in IDE but it is showing compiling error.. i. e. Error compiling for board ardiino/genuino Mega. .
@neytzhpz3971
@neytzhpz3971 5 років тому
How display those data via bluetooth to an android app made with app inventor ?
@mjriamd
@mjriamd 6 років тому
is it possible to add LCD in this circuit to display the lat lon
@GetFitWithManny
@GetFitWithManny 6 років тому
Yes it is...pretty easy to implent using LCD...U Can disply lat,long on LCD
@patjohn775
@patjohn775 3 роки тому
My father played for the Edmonton drillers
@chewyiching3147
@chewyiching3147 6 років тому
can anyone help me ? how to connect the GPS new n8m module with arduino uno?
@marapiandalas4378
@marapiandalas4378 6 років тому
can not gps track coordinates without gprs ????
@amruthahiremathmallikarjun6922
@amruthahiremathmallikarjun6922 6 років тому
I have an issue getting the location, how can i contact you?
@wmvga
@wmvga 21 день тому
Hello, I tested your code using the GT-U7 module, but instead of the coordinates, it only returns ??????? infinitely, what can it be?
@waaromsteven
@waaromsteven 2 роки тому
Hey man, I am trying this code for a school project, but i cant get the serial monitor to work. I have the correct baud rate and wiring and it does say GPS Start, but there is no data coming after that. The gps does have a lock because it has a blue flashing light. Do you have any idea what there could be wrong?
@CanadaEmperorOf
@CanadaEmperorOf 2 роки тому
Most GPS modules will poop out data even if they are not connected to GPS. Try various baud rates.
@maneeshpk3479
@maneeshpk3479 4 роки тому
I'm having an issue with softwareserial.h. Can you please help me out
@katiejackson3900
@katiejackson3900 7 років тому
happy (1 day late) birthday this video
@iswnsb
@iswnsb 7 років тому
What's a possible reason that the GPS module doesn't work? It's wired correctly, the code uploads well, but I only get "GPS Start" on serial port...
@hammadhussain5512
@hammadhussain5512 6 років тому
same problem here. Solutions anyone?
@ahmadsemrin7295
@ahmadsemrin7295 6 років тому
same here ✋ any solutions?
@amruthahiremathmallikarjun6922
@amruthahiremathmallikarjun6922 6 років тому
Same problem!
@adelashour3253
@adelashour3253 6 років тому
same
@StephanieChavarria
@StephanieChavarria 6 років тому
The same happen to me!
@PR0bro
@PR0bro 5 років тому
Can this GPS transmit data live while being connected to a 9V?
@o0O0oLOLo0O0o
@o0O0oLOLo0O0o 4 роки тому
if you add some sort of microcontroller with wireless capabilities, yes
@boydbros.3659
@boydbros.3659 6 років тому
hack the gps by removing the 1575 saw chip and running a copper wire straight through. You now have a multi-band SATCOMM receiver unit
@user-iz2og1uv6v
@user-iz2og1uv6v 4 роки тому
Help me i can't find the numbers from the com11 in serial plotter
@afhamkamarudin3141
@afhamkamarudin3141 7 років тому
nice
@good_reads898
@good_reads898 5 років тому
HI CAN I ADD EXTRA 10KM DISTANCE IN MY EXACT GPS LOCATION? KINDLY HELP ME
@o0O0oLOLo0O0o
@o0O0oLOLo0O0o 4 роки тому
yes, simply save your latitude and/or longitude in a variable, then use google to search what 10km means in degrees. Finally add this value to your variable.
@tekno_tech3103
@tekno_tech3103 6 років тому
Sir invalid locations getting on serial monitoring
@arletpaz8010
@arletpaz8010 3 роки тому
UPDATE i noticed that when i tried to reset the arduino i did get one line of CSV so then i kept holding down the reset pin and while i kept holding it i kept getting msg's so something is wrong with my arduino or gps module or something is wrong with the libraries
GPS Modules with Arduino and Raspberry Pi
50:00
DroneBot Workshop
Переглядів 241 тис.
Мама и дневник Зомби (часть 1)🧟 #shorts
00:47
How to use NEO 6M GPS Module with Arduino | Ublox NEO6M GPS Module
4:41
GPS distance and altitude meter
9:25
Electronoobs
Переглядів 37 тис.
GPS Module with Arduino- Ublox NEO-6M
14:03
BINARYUPDATES
Переглядів 376 тис.
inventor aw - This Device is very helpful ,, you can make at home
6:47
#22 Comparison of precision between Neo-M8N and Neo-6M Modules
8:52
Andreas Spiess
Переглядів 210 тис.
The AVA Flight Computer
18:22
BPS.space
Переглядів 855 тис.
Extract GPS location in Arduino with NEO-6m module
19:09
Robojax
Переглядів 122 тис.
How to Control a 12V Motor with Arduino: Easy Wiring & Code Examples
44:13
Rachel De Barros
Переглядів 357 тис.
Лучший телефон на андроиде?
0:25
Опросный
Переглядів 125 тис.
I7 2600K тест в играх и сравнение с AMD Ryzen
17:53
How Neuralink Works 🧠
0:28
Zack D. Films
Переглядів 19 млн