Installing the Keyestudio Raspberry PI GPS Plate

This Keyestudio KS0216 Raspberry Pi GPS Plate (shield) features high performance and low power consumption. It utilizes the NEO-6M Module developed by U-blox. The GPS Module is connected through the 2*20 expansion pins of Raspberry Pi. It features a large size ceramic antenna, sending locating information to GPS through the serial port. It can track up to 8 satellites on 50 channels at high speed, and it produces very accurate location data.

Plug the GPS Plate into Raspberry Pi 3. Upload your code to Raspberry Pi 3, and you can find your exact location within a few meters. It also provides you with very accurate time! It can be used in car navigation, personal positioning, fleet management, navigation and so on.

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.

Keyestudio GPS Plate & RasPi

Installation:

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 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!
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

thumbthumb

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:

 deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi

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

The Keyestudio KS0216 Raspberry Pi GPS Plate is regularly available on eBay for around $50. Search for: Keyestudio GPS.
Short URL: http://tinyurl.com/y7slwmxt
   Send article as PDF   

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Do NOT follow this link or you will be banned from the site!