Lesson 2.1: Connect USB- GPS/GNSS to Raspberry Pi

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
in this video we'll connect the gps that has usb capabilities to the raspberry pi we'll find the name of the connection and we'll display the messages the raspberry pi is getting from the gps through the console using a raspberry pi a power source in this case a usb charger an external gps module with usb connection powering up the raspberry pi and open vnc viewer on my computer since i'm at home i'm going to use any of the connections i created i'll open the console i will type in lsusb hit enter and i will take a screenshot of the results back to the console i will type g dmesg this symbol is called the pipe space grip space tty press enter and i will take a screenshot of the results on the console i'm gonna type cd space slash dev slash press enter ls press enter i'll take a third screenshot these screenshots show the status of the usb connections before i plug in the gps module it brings a gps module that has a usb plug i will plug that in to the raspberry pi i will put this on the patio or a balcony or even near the window on the raspberry pi's console press the upper key to repeat and hold the command in this case run ls usb press enter looking at the results i see a new device has been detected device that didn't exist before when i ran this command before i just now need to know the device name or the port name that corresponds to device number 4. back to the console i'll rerun dmesg if you look at the results and compare this as old results you're going to find everything is identical with the exception of this last line here is called tty usb0 and this is a new device you connected to the raspberry pi now run the ls command you're still standing on the dev folder and these are the results looking at the results you now find tty usb 0 showing up previously we didn't have that before we plug in the gps module now we have this new device and this is the name of the device and that was another way to finding the name of the connected device your case might be different you might find a different name for your connected gps module you can go back to the previous directory by typing cd space dot dot press enter i'm gonna close this dialog anyways open the console again and type cat space slash dev slash tty usb 0 or the name of the device that you found then press enter now everything the gps is detecting is being displayed on the screen to stop or interrupt this process hold the ctrl key and press c one of the most important messages is the one that has the letters gga to understand this message search for nmea go to any of the links either wikipedia or gps world and read more about gga i'm going to search this website for gga keyword so the message contained the time stamp it contains latitude in a specific format north or south the longitude in a similar format west or east quality indicator number of satellites that are used issued up altitude of the antenna units and joint separation units again for the joint separation and few other things notice some devices write this message as gpga does it differently it is gnga but the message is the same in another video we're going to be looking into decoding that or breaking it down into its base elements and we will be calculating latitude longitude ellipsoidal height orthometric height and we're going to be doing this through simple python programming
Info
Channel: Michel Morgan's Class
Views: 3,385
Rating: undefined out of 5
Keywords:
Id: GEk-X1cvflI
Channel Id: undefined
Length: 6min 4sec (364 seconds)
Published: Tue Nov 16 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.