TOP Contributors

  1. MIKROE (2752 codes)
  2. Alcides Ramos (372 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (139071 times)
  2. FAT32 Library (71594 times)
  3. Network Ethernet Library (56989 times)
  4. USB Device Library (47330 times)
  5. Network WiFi Library (43006 times)
  6. FT800 Library (42297 times)
  7. GSM click (29777 times)
  8. mikroSDK (27874 times)
  9. PID Library (26859 times)
  10. microSD click (26129 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
mikroSDK Library

Nano GPS 2 click

Rating:

5

Author: MIKROE

Last Updated: 2020-07-06

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: GPS/GNSS

Downloaded: 2193 times

Not followed.

License: MIT license  

Nano GPS 2 Click features the smallest GPS module with an integrated patch antenna, the ORG1510-MK05 a module from OriginGPS. It’s the world’s smallest multi-constellation antenna module enabling high-performance in a variety of applications.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Nano GPS 2 click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Nano GPS 2 click" changes.

Do you want to report abuse regarding "Nano GPS 2 click".

  • mikroSDK Library 2.0.0.0
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroBasic PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

Nano GPS 2 Click

Nano GPS 2 Click

Native view of the Nano GPS 2 Click board.

View full image
Nano GPS 2 Click

Nano GPS 2 Click

Front and back view of the Nano GPS 2 Click board.

View full image

Library Description

Library provides function for controlling GPIO, sending commands over UART module. There is generic parser that can parse response of specific command that device is sending, buffer for parser is getting data from process function that sends one byte of data to buffer, and there is function for clearing that buffer.

Key functions:

  • uint8_t nanogps2_generic_parser ( char *command, uint8_t element, char *parser_buf ) - Generic parser function
  • void nanogps2_process ( char temp ) - Process function that adds byte data to buffer for parsing
  • void nanogps2_clear_rsp_buf ( void ) - Function for clearing buffer for parsing

Examples description

The application is composed of three sections :

  • System Initialization - Initialization of UART module and additional pins
  • Application Initialization - UART interrupt initialization
  • Application Task - Parsing RX data and logs GPS data if there is some every 2sec and then clears buffer.
void application_task ( )
{
    error_flag = NANOGPS2_DEV_OK;
    error_flag |= nanogps2_generic_parser( NANOGPS2_GNGGA_DATA_CMD,
                                           NANOGPS2_GNGGA_LONGITUDE,
                                           &p_lon[ 0 ] );
    error_flag |= nanogps2_generic_parser( NANOGPS2_GNGGA_DATA_CMD,
                                           NANOGPS2_GNGGA_LATITUDE,
                                           &p_lat[ 0 ] );
    error_flag |= nanogps2_generic_parser( NANOGPS2_GNGGA_DATA_CMD,
                                           NANOGPS2_GNGGA_ALTITUDE,
                                           &p_alt[ 0 ] );

    if ( ( NANOGPS2_DEV_OK == error_flag ) &&
         ( p_lon[0] != 0 ) && ( p_lat[0] != 0 ) && ( p_alt[0] != 0 ) )
    {
        mikrobus_logWrite( " - Latitude: ", _LOG_TEXT );
        mikrobus_logWrite( p_lat, _LOG_LINE );
        mikrobus_logWrite( " - Longitude: ", _LOG_TEXT );
        mikrobus_logWrite( p_lon, _LOG_LINE );
        mikrobus_logWrite( " - Altitude: ", _LOG_TEXT );
        mikrobus_logWrite( p_alt, _LOG_LINE );
        mikrobus_logWrite( "-------------------------------------", _LOG_LINE );
        memset( &p_lat[ 0 ], 0, 50 );
        memset( &p_lon[ 0 ], 0, 50 );
        memset( &p_alt[ 0 ], 0, 50 );
    }
    
    if ( NANOGPS2_DEV_OK == error_flag )
    {
        nanogps2_clear_rsp_buf(  );
    }
}

Other mikroE Libraries used in the example:

  • CString
  • UART

Additional notes and informations

Depending on the development board you are using, you may need USB UART clickUSB UART 2 click or RS232 click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.

ALSO FROM THIS AUTHOR

Ambient 15 Click

0

Ambient 15 Click is a compact add-on board used to measure the amount of the present ambient light. This board features the TSL2584TSV, a very-high sensitivity light-to-digital converter with an I2C interface that transforms light intensity into a digital output signal from AMS-AG. The TSL2584TSV’s near-photopic response produces a highly accurate lux measurement up to 33klx even when mounted behind dark glass. Filtering out unwanted IR light enables the sensor to measure the ambient light more accurately, thus producing a near-photopic response.

[Learn More]

USB MUX Click

0

USB MUX Click is a compact add-on board with a high-bandwidth switch designed for switching and isolating high-speed USB 2.0 signals in systems with limited USB I/Os. This board features the TS3USB30E, a USB 2.0 1:2 multiplexer/demultiplexer switch with a single enable from Texas Instruments.

[Learn More]

Illuminance Click

0

Illuminance Click is a compact add-on board that mimics how humans perceive light. This board features ams AG’s TSL2583, a very-high sensitivity light-to-digital converter that transforms light intensity to a digital signal output capable of the direct I2C interface. It combines one broadband photodiode (visible plus infrared) and one infrared-responding photodiode on a single CMOS integrated circuit capable of providing a near-photopic response over an effective 16-bit dynamic range (16-bit resolution).

[Learn More]