TOP Contributors

  1. MIKROE (2656 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 (136885 times)
  2. FAT32 Library (70006 times)
  3. Network Ethernet Library (56001 times)
  4. USB Device Library (46305 times)
  5. Network WiFi Library (41933 times)
  6. FT800 Library (41208 times)
  7. GSM click (29017 times)
  8. PID Library (26425 times)
  9. mikroSDK (26398 times)
  10. microSD click (25386 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

ISM RX 2 click

Rating:

5

Author: MIKROE

Last Updated: 2020-09-07

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Sub-1 GHz Transceivers

Downloaded: 1580 times

Not followed.

License: MIT license  

ISM RX 2 Click is a compact add-on board that contains a pin configurable, low current, sub-GHz EZRadio® receiver. This board features the Si4356, a standalone Sub-GHz RF receiver IC, from Silicon Labs, which provides a true plug-and-play receive option.

No Abuse Reported

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

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

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

ISM RX 2 Click

ISM RX 2 Click

Native view of the ISM RX 2 Click board.

View full image
ISM RX 2 Click

ISM RX 2 Click

Front and back view of the ISM RX 2 Click board.

View full image

Library Description

Library provides function for initializing device and control over GPIO pin states.

Key functions:

  • void ismrx2_initialize_device ( void ) - Function for waking up device and reseting it
  • uint8_t ismrx2_get_data_pin_state ( void ) - Function for getting data pin pin state

Examples description

The application is composed of three sections :

  • System Initialization - Initialize GPIO pins and LOG module
  • Application Initialization - Initilize device
  • Application Task - Wait for data pin to go down and starts sampling and waiting for sync word if it's received collect data to buffer till it receive 0 byte
void application_task ( )
{
//---------------------------------------------------------Manchester example
    if ( MANCHESTER_EXAMPLE == example_type )
    {
        if ( ISMRX2_PIN_STATE_LOW == ismrx2_get_data_pin_state() )
        {
            //Collecting data till timeout
            sample_collecter();
            //Filtering data for validation
            filter_sample();
            
            if ( ISMRX2_DEV_OK == valid_data )
            {
                //Extracting manchester data
                man_sort();
                //Extracting bit data
                bit_sort();
                //Extracting decoded data
                data_sort();
                //Logs result if valid data received ( first byte 0xFF )
                if ( ISMRX2_DEV_OK == valid_data )
                {
                    data_tmp =  &data_buf[ 1 ];
                    mikrobus_logWrite( " - RX data: ", _LOG_TEXT );
                    mikrobus_logWrite( data_tmp, _LOG_LINE );
                    mikrobus_logWrite( "*********************", _LOG_LINE );
                }

                Delay_ms( 50 );
            }
            //Resets every counter and flag
            reset_to_default(  );
        }
    }
//-----------------------------------------------------------------------------

//--------------------------------------------------------------- Basic example
    if ( DEFAULT_EXAMPLE == example_type )
    {
        if ( ISMRX2_PIN_STATE_LOW == ismrx2_get_data_pin_state() )
        {
            state = read_rf_data( &data_buf[ 0 ] );
            if ( ISMRX2_DEV_OK == state )
            {
                mikrobus_logWrite( " - RX data: ", _LOG_TEXT );
                mikrobus_logWrite( data_buf, _LOG_LINE );
                mikrobus_logWrite( "*********************", _LOG_LINE );
                Delay_ms( 50 );
            }
        }
    }
//-----------------------------------------------------------------------------
}

Additional Functions :

  • uint8_t read_rf_data ( uint8_t *read_buff ) - Function for reading data from RF antenna till you get 0 byte.
  • void min_max_check ( uint8_t check_b ) - Function for getting max and min sample data values.
  • void bit_sort ( ) - Extracting bit data from manchester buffer.
  • void data_sort ( ) - Extracting data from bit buffer.
  • void man_set_data ( uint16_t smp_cnt, uint8_t man_data ) - Function that sets data to manchester buffer
  • void man_sort ( ) - Function for extracting data from sample buffer.
  • void sample_collecter ( ) - Collecting data from pin.
  • void filter_sample ( ) - Filtering collected data.
  • void reset_to_default ( ) - Resets flags and counters to default values.

Other mikroE Libraries used in the example:

  • 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

Gesture Board

1

The Gesture board, carrying Microchip’s MGSC3130 3D gesture recognition controller, brings a new approach to designing intuitive user interfaces. It’s like a touchpad whose input area extends 15cm upwards into space.

[Learn More]

Proximity 3 click

0

Proximity 3 click is an intelligent proximity and light sensing device, which features the VCNL4200 sensor from Vishay - high sensitivity long distance proximity sensor (PS), ambient light sensor (ALS) and 940 nm IRED, all in one small package.

[Learn More]

Stepper 7 click

0

Stepper 7 click is a bipolar step motor driver. It features an H-bridge bipolar step motor driver, which supports full and half step control modes. Stepper 7 click also carries a port expander so that the communication can be done with a minimal number of pins, through the mikroBUS™ SPI bus.

[Learn More]