TOP Contributors

  1. MIKROE (2779 codes)
  2. Alcides Ramos (376 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (97 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 (139563 times)
  2. FAT32 Library (72041 times)
  3. Network Ethernet Library (57254 times)
  4. USB Device Library (47615 times)
  5. Network WiFi Library (43219 times)
  6. FT800 Library (42563 times)
  7. GSM click (29930 times)
  8. mikroSDK (28292 times)
  9. PID Library (26930 times)
  10. microSD click (26309 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: 2784 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

Tamper 2 click

5

Tamper 2 click contains a levered D2HW-A221Dswitch by Omron, which outputs signal in both positions - pressed and released. The most common use of the Tamper 2 click is door opening or closing detection, detecting the end of travel of a linear actuator, a Morse code input device, etc.

[Learn More]

Hydro Probe click

5

Hydro Probe Click is a capacitive soil moisture sensor based on capacitive changes that are used to detect the volumetric water content of the soil.

[Learn More]

Turbidity Click

0

Turbidity Click is an adapter Click board™, used to interface a compatible turbidity sensor with the host MCU. This board features one 1x3 2.5mm connector suitable for connecting a TSD-10 Turbidity Sensor via an additional 3-wire cable for Turbidity Click specially made for this purpose. It allows users to upgrade their projects with a sensor that senses the cloudiness or haziness of a fluid caused by large numbers of individual particles invisible to the naked eye. This sensor also measures temperature as well as turbidity.

[Learn More]