KS0216 keyestudio RPI GPS Shield: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
==keyestudio RPI GPS Shield==
<br>[[File:ks0216-1.png|500px|frameless|thumb]]<br>


<br>
==Introduction==
==Introduction==
It is based on NEO-6 u blox 6 GPS module, compatible with Raspberry Pi 3. Plug it into Raspberry Pi 3. Upload correct codes to Raspberry Pi 3, and you can find your exact location within a few meters. It also provides you with a very accurate time! It can be used in car navigation, personal positioning, fleet management, navigation and so on.<br>
It is based on NEO-6 u blox 6 GPS module, compatible with Raspberry Pi 3. Plug it into Raspberry Pi 3. Upload correct codes to Raspberry Pi 3, and you can find your exact location within a few meters. <br>
It also provides you with a very accurate time! It can be used in car navigation, personal positioning, fleet management, navigation and so on.<br>
<br>[[File:ks0216-1.png|500px|frameless|thumb]]<br>


<br>
==Features==
==Features==
*Using active GPS antenna.<br>
*Using active GPS antenna <br>
*With 40 pins, convenient to connect external devices.<br>
*With 40 pins, convenient to connect external devices.<br>
*Comes with screws, nuts, copper pillars, easy to fix in Raspberry Pi.<br>
*Comes with screws, nuts, copper pillars, easy to fix on Raspberry Pi.<br>


<br>
== Connection Method ==
== Connection Method ==
To get started, hook the GPS module up to your Pi as follows, cross-connecting the TX and RX pins (TX on one device goes to RX on the other and vice versa), and supply 5V from the Pi to the VIN pin on the GPS module.
To get started, hook the GPS module up to your Pi as follows, cross-connecting the TX and RX pins (TX on one device goes to RX on the other and vice versa), and supply 5V from the Pi to the VIN pin on the GPS module.<br>
<br>[[File:ks0216-2.png|500px|frameless|thumb]]<br>
<br>[[File:ks0216-2.png|500px|frameless|thumb]]<br>


<br>
==Usage==
==Usage==
a. We use raspberry pi official system (2017-01-11-raspbian-jessie-lite), using SSH to log in, and you need to place a ssh file in the root directory .
'''A.''' We use raspberry pi official system (2017-01-11-raspbian-jessie-lite), using SSH to log in, and you need to place a ssh file in the root directory.<br>
<br>[[File:ks0216-3.png|500px|frameless|thumb]]<br>
<br>[[File:ks0216-3.png|700px|frameless|thumb]]<br>


b. Bluetooth and Debug share the same serial port together and, but you can just use BT or Debug on one time. For the Raspberry Pi 3 you need to explicitly enable the serial port on the GPIO pins. The reason for this is a change with the Pi 3 to use the hardware serial port for Bluetooth and instead use a slightly different software serial port for the GPIO pins. A side effect of this change is that the serial port will actually change speed as the Pi CPU clock throttles up and down--this will unfortunately cause problems for most serial devices like GPS receivers!  <br>
<br>
Step by step as shown below:<br>
'''B.''' Bluetooth and Debug share the same serial port together and, but you can just use BT or Debug on one time. <br>
1. There is now a device tree file called pi3-miniuart-bt which makes the Raspberry Pi 3 disable the Bluetooth and map pl011 UART on pins 14 and 15 as before.<br>
For the Raspberry Pi 3 you need to explicitly enable the serial port on the GPIO pins. The reason for this is a change with the Pi 3 to use the hardware serial port for Bluetooth and instead of a slightly different software's serial port for the GPIO pins. <br>
A side effect of this change is that the serial port will actually change speed as the Pi CPU clock throttles up and down--this will unfortunately cause problems for most serial devices like GPS receivers!  <br>
 
<br>
'''Step by step as shown below:'''<br>
 
1) There is now a device tree file called pi3-miniuart-bt which makes the Raspberry Pi 3 disable the Bluetooth and map pl011 UART on pins 14 and 15 as before.<br>
Add device tree to /boot/config.txt to disable the Raspberry Pi 3 bluetooth:<br>
Add device tree to /boot/config.txt to disable the Raspberry Pi 3 bluetooth:<br>
  sudo vi /boot/config.txt
* '''sudo vi /boot/config.txt'''  <br>
  Add at the end of the file:
Add at the end of the file: <br>
  dtoverlay=pi3-miniuart-bt
* dtoverlay=pi3-miniuart-bt <br>
  enable_uart=1
* enable_uart=1   <br>
Exit and save your changes.<br>
Exit and save your changes.<br>
<br>[[File:ks0216-4.png|500px|frameless|thumb]]<br>
<br>[[File:ks0216-4.png|700px|frameless|thumb]]<br>
<br>[[File:ks0216-5.png|500px|frameless|thumb]]<br>
<br>[[File:ks0216-5.png|700px|frameless|thumb]]<br>


2. To enable the serial console, you need to edit the /boot/cmdline.txt file:<br>
<br>
2) To enable the serial console, you need to edit the '''/boot/cmdline.txt''' file: <br>
Change the file to the following: <br>
Change the file to the following: <br>
console=ttyAMA0,115200<br>
* '''console=ttyAMA0,115200''' <br>
<br>[[File:ks0216-6.png|500px|frameless|thumb]]<br>
<br>[[File:ks0216-6.png|700px|frameless|thumb]]<br>
<br>[[File:ks0216-7.png|500px|frameless|thumb]]<br>
<br>[[File:ks0216-7.png|700px|frameless|thumb]]<br>


3.Edit /lib/systemd/system/hciuart.server<br>
<br>
Change the file to the following:<br>
3) Edit '''/lib/systemd/system/hciuart.server''' <br>  
ExecStart=/usr/bin/hciattach /dev/ttyAMA0 bcm43xx 115200 noflow -<br>
Change the file to the following: <br>
<br>[[File:ks0216-8.png|500px|frameless|thumb]]<br>
'''ExecStart=/usr/bin/hciattach /dev/ttyAMA0 bcm43xx 115200 noflow -'''  <br>
<br>[[File:ks0216-9.png|500px|frameless|thumb]]<br>
<br>[[File:ks0216-8.png|700px|frameless|thumb]]<br>
<br>[[File:ks0216-9.png|700px|frameless|thumb]]<br>


4. Reboot the RPi<br>
<br>
sudo reboot<br>
4) Reboot the RPi <br>
c. Write sudo raspi-config in the terminal,select Advanced Options ---> Serial ---> disable  to close serial port debugging.<br>
* '''sudo reboot''' <br>
<br>[[File:ks0216-10.png|500px|frameless|thumb]]<br>
<br>[[File:ks0216-11.png|500px|frameless|thumb]]<br>
<br>[[File:ks0216-12.png|500px|frameless|thumb]]<br>
<br>[[File:ks0216-13.png|500px|frameless|thumb]]<br>
<br>[[File:ks0216-14.png|500px|frameless|thumb]]<br>
d. Reboot the Pi<br>
sudo reboot<br>


e. A great way to test out the serial port is to use the minicom program. When installing it, you may sometimes can’t find download path of source code. So you can write cd /etc/apt in the terminal, and then edit sudo vi sources.list to modify address.<br>
<br>
<br>[[File:ks0216-15.png|500px|frameless|thumb]]<br>
'''C.''' Write '''sudo raspi-config''' in the terminal,select '''Advanced Options ---> Serial ---> disable'''  to close serial port debugging.<br>
<br>[[File:ks0216-10.png|700px|frameless|thumb]]<br>
<br>[[File:ks0216-11.png|700px|frameless|thumb]]<br>
<br>[[File:ks0216-12.png|700px|frameless|thumb]]<br>
<br>[[File:ks0216-13.png|700px|frameless|thumb]]<br>
<br>[[File:ks0216-14.png|700px|frameless|thumb]]<br>


<br>
'''D.''' Reboot the Pi <br>
* '''sudo reboot'''  <br>
<br>
'''E.''' A great way to test out the serial port is to use the minicom program. When installing it, you may sometimes can’t find download path of source code. So you can write '''cd /etc/apt''' in the terminal, and then edit '''sudo vi sources.list''' to modify address. <br>
<br>[[File:ks0216-15.png|700px|frameless|thumb]]<br>
<br>
Change the path shown in the red box into:<br>
Change the path shown in the red box into:<br>
  deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi<br>
* '''deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi''' <br>
<br>[[File:ks0216-16.png|500px|frameless|thumb]]<br>
<br>[[File:ks0216-16.png|700px|frameless|thumb]]<br>
<br>[[File:ks0216-17.png|500px|frameless|thumb]]<br>
<br>[[File:ks0216-17.png|700px|frameless|thumb]]<br>
 
<br>
Save your change and exit. Write sudo apt-get update in the terminal to update.<br>
Save your change and exit. Write sudo apt-get update in the terminal to update.<br>
<br>[[File:ks0216-18.png|500px|frameless|thumb]]<br>
<br>[[File:ks0216-18.png|700px|frameless|thumb]]<br>
<br>[[File:ks0216-19.png|500px|frameless|thumb]]<br>
<br>[[File:ks0216-19.png|700px|frameless|thumb]]<br>


f. You can install Minicom using the following command :<br>
<br>
sudo apt-get install minicom<br>
'''F.''' You can install Minicom using the following command: <br>
<br>[[File:ks0216-20.png|500px|frameless|thumb]]<br>
* '''sudo apt-get install minicom'''  <br>
<br>[[File:ks0216-21.png|500px|frameless|thumb]]<br>
<br>[[File:ks0216-20.png|700px|frameless|thumb]]<br>
<br>[[File:ks0216-21.png|700px|frameless|thumb]]<br>


g. You can then use Minicom to send and receive data over the serial port :<br>
<br>
minicom -b 9600 -o -D /dev/ttyAMA0<br>
'''G.''' You can then use Minicom to send and receive data over the serial port:<br>
-b to set baud rate, the same as that of module;-o dis-initialized Mode and an unlock file;-D define interface.<br>
*'''minicom -b 9600 -o -D /dev/ttyAMA0'''  <br>
<br>[[File:ks0216-22.png|500px|frameless|thumb]]<br>
'''-b''' to set baud rate, the same as that of module; <br>
<br>[[File:ks0216-23.png|500px|frameless|thumb]]<br>
'''-o''' dis-initialized Mode and an unlock file;<br>
'''-D''' define interface. <br>
<br>[[File:ks0216-22.png|700px|frameless|thumb]]<br>
<br>[[File:ks0216-23.png|700px|frameless|thumb]]<br>


h. Ctrl+A , press Q to exit.<br>
<br>
<br>[[File:ks0216-24.png|500px|frameless|thumb]]<br>
'''H.''' '''Ctrl+A''' , press '''Q''' to exit.<br>
<br>[[File:ks0216-25.png|500px|frameless|thumb]]<br>
<br>[[File:ks0216-24.png|700px|frameless|thumb]]<br>
<br>[[File:ks0216-25.png|700px|frameless|thumb]]<br>


== Documents==
'''PDF File:'''


https://drive.google.com/open?id=1uxf3U7ERvRNOyrey_tGYdyeTpCjTqRyh
<br>


== Get One Now ==
== Get One Now ==
http://www.keyestudio.com/keyestudio-rpi-gps-shield.html
*[https://www.keyestudio.com/keyestudio-neo-6m-gps-shield-expansion-board-with-antenna-for-raspberry-pi-3-ce-certification-p0054-p0054.html    '''Official website''' ]
 
*[https://www.aliexpress.com/store/product/2017-NEW-Keyestudio-RPI-GPS-Shield-for-Raspberry-Pi/1452162_32782759458.html?spm=2114.12010612.8148356.25.6e9660ffsewRl7      '''Shop on aliexpress''' ]
 
https://fs.keyestudio.com/KS0216
 




[[category:Raspberry Pi]]
[[category:Raspberry Pi]]

Latest revision as of 10:43, 27 April 2021


Introduction

It is based on NEO-6 u blox 6 GPS module, compatible with Raspberry Pi 3. Plug it into Raspberry Pi 3. Upload correct codes to Raspberry Pi 3, and you can find your exact location within a few meters.
It also provides you with a very accurate time! It can be used in car navigation, personal positioning, fleet management, navigation and so on.

thumb


Features

  • Using active GPS antenna
  • With 40 pins, convenient to connect external devices.
  • Comes with screws, nuts, copper pillars, easy to fix on Raspberry Pi.


Connection Method

To get started, hook the GPS module up to your Pi as follows, cross-connecting the TX and RX pins (TX on one device goes to RX on the other and vice versa), and supply 5V from the Pi to the VIN pin on the GPS module.

thumb


Usage

A. We use raspberry pi official system (2017-01-11-raspbian-jessie-lite), using SSH to log in, and you need to place a ssh file in the root directory.

thumb


B. Bluetooth and Debug share the same serial port together and, but you can just use BT or Debug on one time.
For the Raspberry Pi 3 you need to explicitly enable the serial port on the GPIO pins. The reason for this is a change with the Pi 3 to use the hardware serial port for Bluetooth and instead of a slightly different software's serial port for the GPIO pins.
A side effect of this change is that the serial port will actually change speed as the Pi CPU clock throttles up and down--this will unfortunately cause problems for most serial devices like GPS receivers!


Step by step as shown below:

1) There is now a device tree file called pi3-miniuart-bt which makes the Raspberry Pi 3 disable the Bluetooth and map pl011 UART on pins 14 and 15 as before.
Add device tree to /boot/config.txt to disable the Raspberry Pi 3 bluetooth:

  • sudo vi /boot/config.txt

Add at the end of the file:

  • dtoverlay=pi3-miniuart-bt
  • enable_uart=1

Exit and save your changes.

thumb

thumb


2) To enable the serial console, you need to edit the /boot/cmdline.txt file:
Change the file to the following:

  • console=ttyAMA0,115200


thumb

thumb


3) Edit /lib/systemd/system/hciuart.server
Change the file to the following:
ExecStart=/usr/bin/hciattach /dev/ttyAMA0 bcm43xx 115200 noflow -

thumb

thumb


4) Reboot the RPi

  • sudo reboot


C. Write sudo raspi-config in the terminal,select Advanced Options ---> Serial ---> disable to close serial port debugging.

thumb

thumb

thumb

thumb

thumb


D. Reboot the Pi

  • sudo reboot


E. A great way to test out the serial port is to use the minicom program. When installing it, you may sometimes can’t find download path of source code. So you can write cd /etc/apt in the terminal, and then edit sudo vi sources.list to modify address.

thumb

Change the path shown in the red box into:


thumb

thumb

Save your change and exit. Write sudo apt-get update in the terminal to update.

thumb

thumb


F. You can install Minicom using the following command:

  • sudo apt-get install minicom


thumb

thumb


G. You can then use Minicom to send and receive data over the serial port:

  • minicom -b 9600 -o -D /dev/ttyAMA0

-b to set baud rate, the same as that of module;
-o dis-initialized Mode and an unlock file;
-D define interface.

thumb

thumb


H. Ctrl+A , press Q to exit.

thumb

thumb



Get One Now

https://fs.keyestudio.com/KS0216