GPS click

From MikroElektonika Documentation
Jump to: navigation, search
GPS click
Gps-click.jpg
GPS click
IC/Module LEA-6S
Interface UART, INT
Power supply 3.3V
Website www.mikroe.com/click/gps
Schematic GPS click schematic

GPS click is a solution for adding GPS functionality to your device, with the U Blox LEA-6S module.

Hardware features

The U Blox LEA-6S has a high-performance positioning engine with the following features:

  • Navigate down to –162 dBm and –148 dBm coldstart
  • Faster acquisition with AssistNow Autonomous
  • Configurable power management
  • Hybrid GPS/SBAS engine (WAAS, EGNOS, MSAS)
  • Anti-jamming technology

Different power modes (Maximum performance, Eco, Power Save) allow you to control the acquisition and tracking engines in order to balance between performance and power consumption. Detailed information about the different power modes and their configuration are available in the data sheet, but here are a few excerpts to give an overview:

Maximum Performance Mode

"During a Cold start, a receiver in Maximum Performance Mode continuously deploys the acquisition engine to search for all satellites. Once the receiver has a position fix (or if pre-positioning information is available), the acquisition engine continues to be used to search for all visible satellites that are not being tracked."

Eco Mode

During a Cold start, a receiver in Eco Mode works exactly as in Maximum Performance Mode. Once a position can be calculated and a sufficient number of satellites are being tracked, the acquisition engine is powered off resulting in significant power savings. The tracking engine continuously tracks acquired satellites and acquires other available or emerging satellites. Note that even if the acquisition engine is powered off, satellites continue to be acquired

Power Save Mode

Power Save Mode (PSM) allows a reduction in system power consumption by selectively switching parts of the receiver on and off. Power Save mode is not available with LEA-6R.

Interface and power supply

The board can be interfaced with a microcontroller through a UART or I2C connection. Data can also be acquired using a PC application through USB connection. GPS click features a connector compatible with active and passive antennas.

GPS click is designed to use a 3.3V power supply only.

Pinout diagram

This table shows how the pinout on GPS click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).

Notes Pin Mikrobus logo.png

mikroBUStm

Pin Notes
NC 1 AN X PWM 16 NC
External Reset RESET_N 2 RST INT 15 TIMEPULSE Timepulse
NC 3 CS TX 14 TxD1 Serial Port 1
NC 4 SCK RX 13 RxD1 Serial Port 1
NC 5 MISO SCL 12 SCL2 DDC Clock
NC 6 MOSI SDA 11 SDA2 DDC Data
3.3v power suppply +3.3V 7 +3.3V +5V 10 NC
Ground GND 8 GND GND 9 GND Ground


Tutorial

Learn.mikroe.com features a detailed guide to using the MikroE GPS click library. The article also has a comparison chart of different available GPS click boards.

Programming

This snippet shows the procedure for parsing a string received by the GPS module. Libary for GPS implements RX buffer which stores characters coming from the GPS device. The parser will detect when a complete sentence has been provided and parse it into its respective elements. This library is usable on various types of GPS devices.
 1 void parse_gps( int *lat, int *lon )
 2 {
 3     char *string = strstr(txt,"$GPGLL");
 4     if( string != 0 ) {
 5         if( string[7] != ',' ) {
 6             *lat = ( string[7] - 48 )*10 + ( string[8] - 48 );
 7             *lon = ( string[19] - 48 )*100 + ( string[20] - 48 )*10 + ( string[21] - 48 );
 8             
 9             if( string[17] == 'S' )
10                 *lat = 0 - latitude;
11             if(string[31] == 'W')
12                 *lon = 0 - longitude;
13         }
14     }
15 }

Code examples for GPS click, written for MikroElektronika hardware and compilers are available on Libstock.

Resources