LR 5 Click-Platine
LR 5 Click-Platine
Das LR 5 Click Board™ ist eine kompakte Zusatzplatine, die einen Transceiver mit großer Reichweite enthält. Diese Platine verfügt über den 32001409, einen auf HF-Technologie basierenden SRD-Transceiver, der mit einer Frequenz von 915 MHz von Mipot betrieben wird. Dank der Spread-Spectrum-Modulationsfunktion sowie des geringen Stromverbrauchs ist eine störungsunempfindliche Kommunikation mit großer Reichweite möglich. Es verfügt über einen vollständigen Stapel mit großer Reichweite auf der Platine; es implementiert physische, Netzwerk- und MAC-Schichten und ermöglicht so eine einfache Bedienung über die UART-Schnittstelle. Dieses Click Board™ bietet eine einfache und zuverlässige Lösung für die Entwicklung hochintegrierter IoT-Netzwerke mit großer Reichweite, Sicherheitssysteme, Alarmnetzwerke und ähnliche Anwendungen, die einfache und zuverlässige Netzwerklösungen erfordern.
Das LR 5 Click wird von einer mikroSDK-kompatiblen Bibliothek unterstützt, die Funktionen enthält, die die Softwareentwicklung vereinfachen. Dieses Click Board™ wird als vollständig getestetes Produkt geliefert und ist bereit für den Einsatz auf einem System, das mit der mikroBUS™-Buchse ausgestattet ist.
Hinweis: Dieses Click Board ist für den Einsatz in der nordamerikanischen Region zertifiziert.
How Does The LR 5 Click Board™ Work?
The LR 5 Click Board™ as its foundation uses the 32001409, a low-power long-range RF technology-based transceiver module from Mipot. It offers a long-range spread spectrum communication with high interference immunity. The network is implemented as a star topology, where endpoints work in duty cycle mode, significantly reducing the overall power consumption. This Click board™ features an embedded LoRaWAN Class A and Class C compliant stack offering an easy and reliable solution for developing low-power, highly integrated IoT networks, security systems, alarm networks, and similar applications that require simple and reliable networking solutions.
The LR 5 Click Board™ can be configured to work as either END or MASTER NODE, by using simple AT commands. While working as the MASTER NODE, the Click board™ can use a set of master-specific commands, such as the pairing command. This command will add the end node which requested pairing, to the master network table. While working as the END NODE, LR 5 Click can issue slave specific commands/requests, such as the pairing request command, which will allow that end node to be paired with the master.
The LR 5 Click Board™ communicates with MCU using the UART interface with commonly used UART RX and TX pins at data rates up to 115200bps for the data transfer. In addition to these features, the 32001409 also uses several GPIO pins connected to the mikroBUS™ socket. The WK pin routed on the CS pin of the mikroBUS™ represents the Wake-up function used for waking up the device, while the RST pin on the mikroBUS™ socket can perform Hardware Reset function by putting this pin in a logic low state. This Click board™ also has an indicator routed on the INT pin of the mikroBUS ™ socket, which will provide the user with feedback after a successfully received package and verified checksum.
The LR 5 Click Board™ features the SMA antenna connector with an impedance of 50Ω, so it can be equipped with the appropriate antenna that MikroE has in its offer.
The LR 5 Click Board™ can operate with both 3.3V and 5V logic voltage levels selected via the VCC SEL jumper. A proper logic voltage level conversion is performed by the TXB0106 voltage level shifter, while the LDO ensures that recommended values power the module. This allows for both 3.3V and 5V capable MCUs to use the UART communication lines properly. However, the Click board™ comes equipped with a library containing easy-to-use functions and an example code that can be used, as a reference, for further development.
SPECIFICATIONS
Type | LoRa |
Applications | The LR 5 Click Board™ can be used for developing highly integrated long-range IoT networks, security systems, alarm networks, and similar applications that require simple and reliable networking solutions. |
On-board modules | 32001409 - low-power long-range RF technology-based transceiver module from Mipot |
Radio Region | America |
Key Features | Low power consumption, RF technology based wireless networking, full network stack, easy to use UART interface, and more. |
Interface | UART |
Compatibility | mikroBUS |
Click board size | L (57.15 x 25.4 mm) |
Input Voltage | 3.3V or 5V |
PINOUT DIAGRAM
This table shows how the pinout of the LR 5 Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Notes | Pin | Pin | Notes | ||||
---|---|---|---|---|---|---|---|
NC | 1 | AN | PWM | 16 | NC | ||
Reset | RST | 2 | RST | INT | 15 | INT | Data TX Indication |
Wake-Up | WKP | 3 | CS | RX | 14 | TX | UART TX |
NC | 4 | SCK | TX | 13 | RX | UART RX | |
NC | 5 | MISO | SCL | 12 | NC | ||
NC | 6 | MOSI | SDA | 11 | NC | ||
Power Supply | 3.3V | 7 | 3.3V | 5V | 10 | 5V | Power Supply |
Ground | GND | 8 | GND | GND | 9 | GND | Ground |
ONBOARD SETTINGS AND INDICATORS
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | - | Power LED Indicator |
JP1 | VCC SEL | Left | Logic Level Voltage Selection 3V3/5V: Left position 3V3, Right position 5V |
LR 5 CLICK ELECTRICAL SPECIFICATIONS
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | 3.3 | - | 5 | V |
Operating Frequency Range | 902 | 915 | 928 | MHz |
Operating Temperature Range | -40 | +25 | +85 | °C |
Software Support
We provide a library for the LR 5 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 form compilers IDE(recommended way), or downloaded from our LibStock, or found on mikroE Github account.
Library Description
This library contains API for the LR 5 Click Board™ driver.
Key Functions
void lr5_cfg_setup ( lr5_cfg_t *cfg );
- Config Object Initialization function.LR5_RETVAL lr5_init ( lr5_t *ctx, lr5_cfg_t *cfg );
- Initialization function.
Example Description
This example reads and processes data from the LR 5 Click Board™.
The application is composed of three sections :
void application_task ( void ) { lr5_process( ); log_printf( &logger, "** FW version reading...rn" ); lr5_get_fw_version_cmd( &lr5 ); wait_response( ); log_printf( &logger, "** Serial number reading...rn" ); lr5_get_serial_no_cmd( &lr5 ); wait_response( ); log_printf( &logger, "** DevEUI reading...rn" ); lr5_get_dev_eui_cmd( &lr5 ); wait_response( ); log_printf( &logger, "** Session status reading...rn" ); lr5_get_session_status_cmd( &lr5 ); wait_response( ); switch ( response.cmd_data[ 0 ] ) { case 0x00 : { log_printf( &logger, "Idle.rn" ); break; } case 0x01 : { log_printf( &logger, "Busy (LR session running).rn" ); break; } case 0x02 : { log_printf( &logger, "Device not activated.rn" ); break; } case 0x03 : { log_printf( &logger, "Delayed.rn" ); break; } default : { break; } } log_printf( &logger, "***********************************************rn" ); Delay_ms( 1000 ); log_printf( &logger, "** Activation status reading...rn" ); lr5_get_activation_status_cmd( &lr5 ); wait_response( ); switch ( response.cmd_data[ 0 ] ) { case 0x00 : { log_printf( &logger, "Not activated.rn" ); break; } case 0x01 : { log_printf( &logger, "Joining...rn" ); break; } case 0x02 : { log_printf( &logger, "Joined.rn" ); break; } case 0x03 : { log_printf( &logger, "MAC ERROR.rn" ); break; } default : { break; } } log_printf( &logger, "***********************************************rn" ); Delay_ms( 1000 ); log_printf( &logger, "** Next TX Data Rate setting...rn" ); lr5_set_next_dr_cmd( &lr5, LR5_SF10_125KHZ ); wait_response( ); if ( response.cmd_data[ 0 ] == 0x00 ) { log_printf( &logger, "Success!rn" ); } else { log_printf( &logger, "Error!rn" ); } log_printf( &logger, "***********************************************rn" ); Delay_ms( 1000 ); log_printf( &logger, "** Channel parameters reading...rn" ); lr5_get_ch_param_cmd( &lr5, LR5_CH_IDX_15 ); wait_response( ); Delay_ms( 10000 ); }
The full application code, and ready to use projects can be installed directly form compilers IDE(recommended) or found on LibStock page or mikroE GitHub account.
Other mikroE Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.LR5
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
The LR 5 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.
Software Support
We provide a library for the LR 5 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 form compilers IDE(recommended way), or downloaded from our LibStock, or found on mikroE Github account.
Library Description
This library contains API for the LR 5 Click Board™ driver.
Key Functions
void lr5_cfg_setup ( lr5_cfg_t *cfg );
- Config Object Initialization function.LR5_RETVAL lr5_init ( lr5_t *ctx, lr5_cfg_t *cfg );
- Initialization function.
Example Description
This example reads and processes data from the LR 5 Click Board™.
The application is composed of three sections :
void application_task ( void ) { lr5_process( ); log_printf( &logger, "** FW version reading...rn" ); lr5_get_fw_version_cmd( &lr5 ); wait_response( ); log_printf( &logger, "** Serial number reading...rn" ); lr5_get_serial_no_cmd( &lr5 ); wait_response( ); log_printf( &logger, "** DevEUI reading...rn" ); lr5_get_dev_eui_cmd( &lr5 ); wait_response( ); log_printf( &logger, "** Session status reading...rn" ); lr5_get_session_status_cmd( &lr5 ); wait_response( ); switch ( response.cmd_data[ 0 ] ) { case 0x00 : { log_printf( &logger, "Idle.rn" ); break; } case 0x01 : { log_printf( &logger, "Busy (LR session running).rn" ); break; } case 0x02 : { log_printf( &logger, "Device not activated.rn" ); break; } case 0x03 : { log_printf( &logger, "Delayed.rn" ); break; } default : { break; } } log_printf( &logger, "***********************************************rn" ); Delay_ms( 1000 ); log_printf( &logger, "** Activation status reading...rn" ); lr5_get_activation_status_cmd( &lr5 ); wait_response( ); switch ( response.cmd_data[ 0 ] ) { case 0x00 : { log_printf( &logger, "Not activated.rn" ); break; } case 0x01 : { log_printf( &logger, "Joining...rn" ); break; } case 0x02 : { log_printf( &logger, "Joined.rn" ); break; } case 0x03 : { log_printf( &logger, "MAC ERROR.rn" ); break; } default : { break; } } log_printf( &logger, "***********************************************rn" ); Delay_ms( 1000 ); log_printf( &logger, "** Next TX Data Rate setting...rn" ); lr5_set_next_dr_cmd( &lr5, LR5_SF10_125KHZ ); wait_response( ); if ( response.cmd_data[ 0 ] == 0x00 ) { log_printf( &logger, "Success!rn" ); } else { log_printf( &logger, "Error!rn" ); } log_printf( &logger, "***********************************************rn" ); Delay_ms( 1000 ); log_printf( &logger, "** Channel parameters reading...rn" ); lr5_get_ch_param_cmd( &lr5, LR5_CH_IDX_15 ); wait_response( ); Delay_ms( 10000 ); }
The full application code, and ready to use projects can be installed directly form compilers IDE(recommended) or found on LibStock page or mikroE GitHub account.
Other mikroE Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.LR5
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
The LR 5 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 5 Click-Platine
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.