LR Click Board
LR Click Board
Key Features:
- Embeds LoRaWAN™ Class A protocol stack. Sub-GHz, 433/868 MHz European R&TTE Directive
- Based on the RN2483 - low-power long-range RF technology-based transceiver module from Microchip Technology
- Can be used for developing highly integrated long-range IoT networks, security systems, alarm networks, building control, M2M interfaces, and similar applications that require simple and reliable networking solutions.
- mikroBUS: UART Interface
The LR Click Board™ is a compact add-on board that contains a low-power, long-range transceiver. This board features the RN2483, RF technology-based SRD transceiver, which operates at a frequency of 433/868MHz from Microchip Technology. This Click Board™ features an embedded LoRaWAN Class A compliant stack, providing a long-range spread spectrum communication with high interference immunity. The RN2483 module is a fully certified 433/868MHz European R&TTE directive assessed radio modem combined with the advanced and straightforward command interface. This Click Board™ offers an easy and reliable solution for developing highly integrated long-range IoT networks, security systems, alarm networks, building control, M2M interfaces, and similar applications that require simple and reliable networking solutions.
The LR Click Board™ is supported by a mikroSDK-compliant library, which includes functions that simplify software development. This Click Board™ comes as a thoroughly tested product, ready to be used on a system equipped with the mikroBUS™ socket.
Software Support
We provide a library for the LR Click Board™ as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
The package can be downloaded/installed directly from compilers IDE(recommended way), or downloaded from our LibStock, or found on the mikroE Github account.
Library Description
This library contains an API for the LR Click driver.
Key Functions
void lr_cfg_setup ( lr_cfg_t *cfg );
- Config Object Initialization function.LR_RETVAL lr_init ( lr_t *ctx, lr_cfg_t *cfg );
- Initialization function.void lr_default_cfg ( lr_t *ctx, bool cb_default, void ( *response_p )( char *response ) );
- Click Default Configuration function.
Example Description
This example reads and processes data from LR Click board™.
The demo application is composed of two sections :
void application_task ( void ) { char *ptr; lr_process( ); #ifdef DEMO_APP_RECEIVER rx_state = lr_rx( &lr, LR_ARG_0, &tmp_txt[ 0 ] ); if ( rx_state == 0 ) { tmp_txt[ 12 ] = 0; ptr = ( char* )&int_data; hex_to_int( &tmp_txt[ 10 ], ptr ); log_printf( &logger, "%c", int_data ); } #endif #ifdef DEMO_APP_TRANSMITTER for ( cnt = 0; cnt < 9; cnt++ ) { send_data = send_message[ cnt ] ; int8_to_hex( send_data, send_hex ); tx_state = lr_tx( &lr, &send_hex[ 0 ] ); if ( tx_state == 0 ) { log_printf( &logger, " Response : %srn", &tmp_txt[ 0 ] ); } Delay_ms( 1000 ); } #endif }
The full application code, and ready to use projects can be installed directly from compilers IDE(recommended) or found on the LibStock page or mikroE Github account.
Other mikroE Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.LR
Additional Notes and Information
Depending on the development board you are using, you may need a USB UART click, USB 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.
MIKROSDK
This Click board™ is supported with mikroSDK - MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
LR Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.