KS0216 keyestudio RPI GPS Shield

From Keyestudio Wiki
Revision as of 10:43, 27 April 2021 by Keyestudio (talk | contribs) (→‎Get One Now)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


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