WHADDA WPSH456 NEO-6M Shield for Raspberry PI Instructions
- June 5, 2024
- WHADDA
Table of Contents
- WHADDA WPSH456 NEO-6M Shield for Raspberry PI
- Introduction
- Safety Instructions
- General Guidelines
- What is Arduino®
- Product overview
- Specifications
- Wiring description
- Example program
- Using GPS data in a custom python script
- References
- Read User Manual Online (PDF format)
- Download This Manual (PDF format)
WHADDA WPSH456 NEO-6M Shield for Raspberry PI
Introduction
To all residents of the European Union Important environmental
information about this product
This symbol on the device or the package indicates that disposal of the device
after its lifecycle could harm the environment. Do not dispose of the unit (or
batteries) as unsorted municipal waste; it should be taken to a specialized
company for recycling. This device should be returned to your distributor or
to a local recycling service. Respect the local environmental rules. If in
doubt, contact your local waste disposal authorities. Thank you for choosing
Whadda! Please read the manual thoroughly before bringing this device into
service. If the device was damaged in transit, do not install or use it and
contact your dealer.
Safety Instructions
Read and understand this manual and all safety signs before using this appliance. For indoor use only. This device can be used by children aged from 8 years and above, and persons with reduced physical, sensory or mental capabilities or lack of experience and knowledge if they have been given supervision or instruction concerning the use of the device in a safe way and understand the hazards involved. Children shall not play with the device. Cleaning and user maintenance shall not be made by children without supervision.
General Guidelines
- Refer to the Velleman® Service and Quality Warranty on the last pages of this manual.
- All modifications of the device are forbidden for safety reasons. Damage caused by user modifications to the device is not covered by the warranty.
- Only use the device for its intended purpose. Using the device in an unauthorized way will void the warranty.
- Damage caused by disregard of certain guidelines in this manual is not covered by the warranty and the dealer will not accept responsibility for any ensuing defects or problems.
- Nor Velleman nv nor its dealers can be held responsible for any damage (extraordinary, incidental or indirect) – of any nature (financial, physical…) arising from the possession, use or failure of this product.
- Keep this manual for future reference.
What is Arduino®
Arduino® is an open-source prototyping platform based on easy-to-use hardware and software. Arduino® boards are able to read inputs – light-on sensor, a finger on a button or a Twitter message –and turn it into an output – activating of a motor, turning on an LED, publishing something online. You can tell your board what to do by sending a set of instructions to the microcontroller on the board. To do so, you use the Arduino programming language (based on Wiring) and the Arduino® software IDE (based on Processing). Additional shields/modules/components are required for reading a Twitter message or publishing online. Surf to www.arduino.cc for more information
Product overview
The Whadda NEO-6M GPS shield for Raspberry Pi allows you to easily add GPS
functionality to your Raspberry Pi board. The shield simply plugs in to the
40-pin GPIO connector, no extra connections are required.
The shield is based on a U-Blox NEO-6M GPS module, a highly accurate
50-channel GPS receiver. The shield also comes with a built-in ceramic patch
antenna suitable for the outdoor reception of GPS satellite signals. The
ceramic patch antenna is connected using a detachable u.FL cable, allowing the
user to easily add a different type of antenna. Furthermore, the module also
features a 5-pin header breaking out the power, serial and PPS lines to easily
connect it to other boards.
Specifications
GPS chipset: U-Blox NEO-6M Standard baudrate: 9600 Dimensions (W x L x H): 70 x 56 x 23 mm
Wiring description
Pin | Name |
---|---|
5 V | Supply voltage (5 V DC) |
GND | Ground |
TXD | GPS Serial Transmit (Device) |
RXD | GPS Serial Receive (Device) |
PPS | GPS Pulse Per Second output |
Example program
Configuring the RPi to receive GPS data using gpsd
You can download the example Python program by going to the official Whadda
github page: https://github.com/WhaddaMakers/Neo-6M-GPS-shield-for-RPi
-
If you don’t have a recent version of Raspberry Pi OS installed on your Pi’s microSD card, go to www.raspberrypi.org/software/ and download the latest version of the Raspberry Pi Imager. Use the Raspberry Pi Imager to flash the MicroSD card with the latest version of Raspberry Pi OS.
-
If you want to use WiFi follow this guide to configure the WiFi access details before you proceed. Navigate to the SD Card partition named BOOT and add an empty file called ssh. Make sure that this file doesn’t have a file extension. In Windows you might need to check
-
Insert the MicroSD card into the Pi and connect all of your peripherals (if you’re planning to use a separate monitor). Also plugin a network cable if you’re planning to use a wired ethernet connection. Power up the pi by connecting it to the USB power supply adapter.
-
Wait 2-3 min until the pi is fully booted. If you’re using a separate monitor, run through the initial Raspberry Pi OS setup wizard to configure network connections, etc… If you’re connecting to the pi remotely, go to your network router setup webpage or use an IP-scanner (e.g. Angry IP Scanner) to find the assigned IP-address of your pi and connect to it by opening Powershell/Terminal and type in the following command:
ssh pi@. The default password is raspberry. -
To make sure your pi is fully up-to-date, run the following command:
sudo apt update && sudo apt upgrade -y -
Enable the serial interface (necessary to communicate with the GPS shield) by running sudo raspi-config and selecting 3 Interface Options > P6 Serial Port > No (to have the login shell accessible over serial) > Yes (enabling the serial port hardware). It is advised to reboot the Pi after this step by typing sudo reboot.
-
Open the boot config.txt configuration file by typing in: sudo nano /boot/config.txt Add the following line at the end of the file: dtoverlay=disable-bt
-
Type in the following command to make sure the Bluetooth module is completely disabled: sudo systemctl disable hciuart
-
Perform a reboot by typing in sudo reboot
-
Connect the GPS shield to the Raspberry Pi if you haven’t already done so.
-
Install minicom by typing in: sudo apt install minicom
-
Check if the GPS module can properly communicate with your Raspberry Pi by using the minicom terminal by typing in the following command: minicom -b 9600 -o -D /dev/ttyAMA0 If you see GPS messages coming in starting with a $ sign, everything is working properly:
-
Install gpsd and gpsd-clients by running the following command: sudo apt install gpsd gpsd-clients -y
-
Disable the gpsd service that started running automatically by running the following command: sudo systemctl disable gpsd.socket
-
Start a new gpsd instance that redirects the GPS data to the correct serial port by typing in the following command: sudo gpsd /dev/ttyAMA0 -F /var/run/gpsd.sock
-
The GPS decoding deamon should be up and running now. To check if it is able to receive and parse the GPS data run the following command: sudo gpsmon This will open a monitor program that will print out all of the received GPS parameters such as latitude, longitude, time, speed, course, satellite data, etc…
If the time data is not valid and no latitude and longitude are displayed, the GPS module is probably not able to receive satellite signals at its current position. Move the GPS module close to a window with the ceramic patch antenna pointed towards the sky. It may take several minutes for the GPS module to get its first fix. Press q and then enter to exit gpsmon.
Using GPS data in a custom python script
- Download the example python code from the Whadda GitHub page by entering the following command: git clone https://github.com/WhaddaMakers/Neo-6M-GPS-shield-for-RPi
- Navigate to the folder with the example code using cd Neo-6M-RPi-GPS-shield
- Install the required python libraries by running the following command: pip3 install -r requirements.txt
- Run the example code by using the following command: python3 gps_3.py
If the GPS module has a fix, it prints out the current GPS position (latitude, longitude), time and the number of satellites in sight:
Modifications and typographical errors reserved – © Velleman Group nv. WPSH456 Velleman Group NV, Legen Heirweg 33 – 9890 Gavere.
References
- Whadda - Exciting Electronics
- Raspberry Pi OS – Raspberry Pi
- Angry IP Scanner - Download for Windows, Mac or Linux
- GitHub - WhaddaMakers/Neo-6M-GPS-shield-for-RPi: Example python code for the Whadda Neo-6M GPS shield for Raspberry Pi (WPSH456).
- Raspberry Pi Documentation - Configuration
Read User Manual Online (PDF format)
Read User Manual Online (PDF format) >>