TOP Contributors

  1. MIKROE (2655 codes)
  2. Alcides Ramos (353 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (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 (136782 times)
  2. FAT32 Library (69979 times)
  3. Network Ethernet Library (55950 times)
  4. USB Device Library (46274 times)
  5. Network WiFi Library (41888 times)
  6. FT800 Library (41184 times)
  7. GSM click (28988 times)
  8. PID Library (26419 times)
  9. mikroSDK (26373 times)
  10. microSD click (25382 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

Spirit 2 click

Rating:

5

Author: MIKROE

Last Updated: 2019-06-26

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Sub-1 GHz Transceivers

Downloaded: 3135 times

Not followed.

License: MIT license  

Spirit 2 Click features the SP1ML-915, an ultra-low power, fully integrated RF module, which operates at 915 MHz ISM band.

No Abuse Reported

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

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

Do you want to report abuse regarding "Spirit 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

SPIRIT 2 click

SPIRIT 2 click

Native view of the SPIRIT 2 click board.

View full image
SPIRIT 2 click

SPIRIT 2 click

Front and back view of the SPIRIT 2 click board.

View full image

Library Description

The library contains all the necessary functions for working with SPIRIT modules. Generic parser

Key functions:

  • spirit2_cmdSingle - Sends provided command to the module.
  • spirit2_moduleReset - Reset module.
  • spirit2_modulePower - Turn on module.

Examples description

The application is composed of the three sections :

  • System Initialization - Initializes all necessary GPIO pins, UART used for the communcation with SPIRIT module and UART used for infromation logging .
  • Application Initialization - Initializes driver, power on module .
  • Application Task - running in parallel core state machine. In the RX mode, the unit reads data received from another device and sends a message in TX mode every 2 seconds. .
void applicationTask()
{
    spirit2_process();

    if( _userAppMode == _SPIRIT2_APP_TX_MODE)
    {
        mikrobus_logWrite("** SPIRIT SENDS MESSAGE.....", _LOG_LINE);
        spirit2_cmdSingle(&_txBuffer[0]);
        Delay_ms( 2000 );
    }
}

Additional Functions :

All additional functions such as timer initialization and default handler.

Other mikroE Libraries used in the example:

  • String
  • Conversion
  • UART

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

H-Bridge Driver 2 click

0

H-Bridge Driver 2 Click is a compact add-on board that contains an H-bridge gate driver, also known as a full-bridge pre-driver. This board features the NCV7535, a monolithic H−bridge pre-driver for a DC motor with an enhanced feature set, useful in automotive systems from ON Semiconductor. The gate driver channels are independently controlled by a 24-bit SPI interface, allowing this Click board™ to be optionally configured in a single or dual H-bridge mode. It has a wide operating voltage range from 6V to 18V with built-in protection features against short-circuit, under/over voltage, overcurrent, and overtemperature conditions. This Click board™ is suitable to drive external MOSFETs, thus providing control of a DC-motor.

[Learn More]

HW Monitor click

0

HW Monitor Click is a compact add-on board used to monitor and regulate the performance of various hardware components within an embedded system. This board features the LM96080, an I2C-configurable system hardware monitor from Texas Instruments that contains a 10-bit delta-sigma ADC capable of measuring seven positive voltages and local temperature. The LM96080 also has two programmable fan speed monitoring inputs besides other hardware monitoring functions like chassis intrusion detection, additional external interrupt input, master reset for external purposes, as well as a sequencer that performs watchdog window comparisons of all measured values.

[Learn More]

Buck 3 Click

5

Buck 3 click is a very advanced synchronous step-down (buck) converter, which is designed to deliver noise and ripple-free voltage to highly sensitive applications, such as FPGA and high-performance DSP platforms.

[Learn More]