TOP Contributors

  1. MIKROE (2762 codes)
  2. Alcides Ramos (374 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 (139254 times)
  2. FAT32 Library (71751 times)
  3. Network Ethernet Library (57122 times)
  4. USB Device Library (47430 times)
  5. Network WiFi Library (43082 times)
  6. FT800 Library (42404 times)
  7. GSM click (29835 times)
  8. mikroSDK (28078 times)
  9. PID Library (26885 times)
  10. microSD click (26198 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

UWB click

Rating:

5

Author: MIKROE

Last Updated: 2020-08-06

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Wireless connectivity

Downloaded: 2712 times

Not followed.

License: MIT license  

UWB Click is an Ultra-Wideband transceiver Click board that can be used in 2-way ranging or TDOA location systems to locate assets to a precision of 10 cm and supports data rates of up to 6.8 Mbps. This board features the DWM1000 module based on Decawave's DW1000 Ultra-Wideband (UWB) transceiver from Decawave Limited.

No Abuse Reported

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

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

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

UWB Click

UWB Click

Native view of the UWB Click board.

View full image
UWB Click

UWB Click

Front and back view of the UWB Click board.

View full image

Library Description

Library provides complete control of device. You have communication functions for controlling device, writing, reading functions, controlling pins state. There are functions for configurating every aspect of communication, after you set every mode, channel, frequency... With function uwb_tune_config library will set some additional setting relative to previous set configuration. You can set and check communication stage with eather interrupt mask or status register. For communication you have few function like uwb_get_transmit( gets received data ), uwb_get_transmit_len( gets received data length ), uwb_set_transmit( set data to trasnimt ), and uwb_start_transceiver( starts receiving or transmiting data relative to mode set by configuration ).

Key functions:

  • void uwb_generic_write ( uint8_t reg_adr, uint16_t offset, uint8_t *tx_buf, uint16_t buf_len ) - Writing data to device
  • void uwb_generic_read ( uint8_t reg_adr, uint16_t offset, uint8_t *rx_buf, uint16_t buf_len ) - Reading data from device
  • void uwb_set_mode ( uint8_t mode ) - Setting device in one working mode
  • void uwb_get_transmit ( uint8_t *rx_buf, uint16_t len_buf ) - Get received data
  • void uwb_set_transmit ( uint8_t *tx_buf, uint16_t len_buf ) - Set data to transmit
  • void uwb_start_transceiver ( void ) - Start receiving or transmitig data

Examples description

The application is composed of three sections :

  • System Initialization - Initialization of SPI module and additional pins
  • Application Initialization - Mapping GPIO and SPI module, setting device working mode setting device ID and default configuration for selected mode.
  • Application Task - Checks if interrupt occured for previous set mode. * TX mode: Transmit data and then set delay for 2 seconds. * RX mode: Receive data and logs it.
void application_task ( )
{
    dev_status = uwb_get_qint_pin_status(  );

    if ( UWB_MODE_RX == dev_mode )
    {
        if ( dev_status )
        {
            //Reading transtimed data logs it and reseting to receive mode
            uwb_set_mode( UWB_MODE_IDLE );
            uwb_clear_status(  );
            temp_len = uwb_get_transmit_len(  );
            uwb_get_transmit( &transmit_data[ 0 ], temp_len );
            mikrobus_logWrite( "Received data:", _LOG_TEXT );
            mikrobus_logWrite( transmit_data, _LOG_LINE );
            mikrobus_logWrite( " - Receive done - ", _LOG_LINE );
            uwb_set_mode( UWB_MODE_RX );
            uwb_start_transceiver(  );
        }
    }
    else if ( UWB_MODE_TX == dev_mode )
    {
        if ( dev_status )
        {
            //Transmits data reseting to transmit mode and setts 2sec delay
            mikrobus_logWrite( " - Transmit done - ", _LOG_LINE );
            uwb_set_mode( UWB_MODE_IDLE );
            uwb_clear_status(  );
            uwb_set_transmit( &data_tx[ 0 ], 6 );
            uwb_set_mode( UWB_MODE_TX );
            uwb_start_transceiver(  );
            Delay_ms( 2000 );
        }
    }
}

Other mikroE Libraries used in the example:

  • SPI
  • UART
  • Conversions

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

M-BUS Master click

5

The M-Bus Master is a Click board is complete solution for a master node in M-Bus networks. The M-Bus (&amp;quot;Meter-Bus&amp;quot;) is a new European standard for remote reading of heat meters and it is also usable for all other types of consumption meters as well as for various sensors and actuators.

[Learn More]

G2C 3G Click

0

Go to Cloud (G2C) 3G Click is a gateway Click board™ which provides a simple and reliable connection to the Click Cloud platform, a cloud-based rapid prototyping environment, hosted by Mikroe. G2C 3G offers an unprecedented simplicity for adding Click Cloud connectivity over UMTS/HSPA to any embedded application, by utilizing the simple UART interface: it can be configured and managed using a minimal set of well-documented AT commands.

[Learn More]

Angle 3 Click

0

Angle 3 Click carries the AK7451, a magnetic rotational angle sensor. The Click is designed to run on a 5V power supply.

[Learn More]