TOP Contributors

  1. MIKROE (2649 codes)
  2. Alcides Ramos (350 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 (136494 times)
  2. FAT32 Library (69706 times)
  3. Network Ethernet Library (55813 times)
  4. USB Device Library (46150 times)
  5. Network WiFi Library (41791 times)
  6. FT800 Library (40973 times)
  7. GSM click (28918 times)
  8. PID Library (26379 times)
  9. mikroSDK (26264 times)
  10. microSD click (25290 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

BEE click

Rating:

0

Author: MIKROE

Last Updated: 2019-07-29

Package Version: 1.0.0.1

mikroSDK Library: 1.0.0.0

Category: ZigBee

Downloaded: 11793 times

Followed by: 1 user

License: MIT license  

This project is a simple demonstration of working with the BEE click board.
The on-board MRF24J40MA is a 2.4 GHz IEEE 802.15.4 radio transceiver module and operates in the 2.4GHz frequency band.

No Abuse Reported

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

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

Do you want to report abuse regarding "BEE click".

  • mikroSDK Library 2.0.0.0
  • Comments (7)
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

BEE Click board

BEE Click board

Front and back view of BEE click board designed in mikroBUS form factor. mikroBUS is specially designed pinout standard with SPI, I2C, Analog, UART, Interrupt, PWM, Reset and Power supply pins.

View full image

Library Description

The library covers all the necessary functions to control BEE click board. The library performs the communication with the device via SPI driver by writing to registers and by reading from registers.

Key functions:

  • void bee_writeByteShort( uint8_t regAddress, uint8_t writeData ) - Write the byte of data to the short register address function.
  • uint8_t bee_readByteLong( uint16_t regAddress ) - Read the byte of data from the long register address function.
  • void bee_readRxFIFO( uint8_t *rxData ) - Read RX FIFO function.

Examples description

The application is composed of the three sections :

  • System Initialization - Initializes SPI, LOG structures, set INT pin as input and AN, RST and CS pins as output and start to write log.
  • Application Initialization - Initialization driver enables - SPI, sets initialization BEE Click as a receiver, also write log.
  • Application Task - This is an example which demonstrates the use of BEE Click board. In this example, we use BEE Click to receive data. Results are being sent to the USART Terminal where you can track their changes. All data logs on usb uart for approximately every 1 sec when the data value changes.
void applicationTask()
{
    if( bee_interruptActivity() )
    {
        tmp = bee_readByteShort( _BEE_INTSTAT );
        bee_readRxFIFO( &rxData );
        Delay_100ms();
    
        if ( rxData[ 0 ] != rxDataOld )
        {
            ByteToStr( rxData[ 0 ], logText );
            mikrobus_logWrite( logText, _LOG_LINE );
            rxDataOld = rxData[ 0 ];
        }
    }
}

Other mikroE Libraries used in the example:

  • SPI
  • UART
  • Conversion

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

RA4M1 clicker

1

RA4M1 Clicker is an amazingly compact starter development kit which brings innovative mikroBUS host socket to your favorite microcontroller.

[Learn More]

MCP2542 click

0

This application use for comunication

[Learn More]

Magneto 5 click

0

Magneto 5 click is a very accurate and reliable magnetic sensor device, which features the MEMSIC MMC34160PJ, a 3-axis magnetic sensor IC

[Learn More]