MikroElektronika
6LoWPAN T click
6LoWPAN T click
SKU:MIKROE-2218
Couldn't load pickup availability
Share
6LoWPAN T click carries the CC2520 2.4GHz RF transceiver. The click is designed to run on a 3.3V power supply. It communicates with the target microcontroller over SPI interface, with additional functionality provided by the following pins on the mikroBUS™ line: PWM, INT, RST, AN.
CC2520 features
The CC2520 is TI's second-generation ZigBee®/IEEE 802.15.4 RF transceiver for the 2.4GHz unlicensed ISM band. This chip enables industrial grade applications by offering state-of-the-art selectivity/co-existence, excellent link budget, operation up to 125°C and low voltage operation.
In addition, the CC2520 provides extensive hardware support for frame handling, data buffering, burst transmissions, data encryption, data authentication, clear channel assessment, link quality indication and frame timing information.
Specifications
Type | RF 2.4GHz |
Applications | IEEE 802.15.4 systems, ZigBee® systems, industrial monitoring and control, home and building automation, Automatic Meter Reading, Low-power wireless sensor networks, etc. |
On-board modules | CC2520 |
Interface | SPI,GPIO |
Input Voltage | 3.3V |
Compatibility | mikroBUS |
Click board size | M (42.9 x 25.4 mm) |
Pinout diagram
This table shows how the pinout on 6LowPAN T click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Programming
Code examples for 6LoWPAN T click, written for MikroElektronika hardware and compilers are available on Libstock.
Note: The full 6LoWPAN stack is not currently implemented in our libraries. However, there are functionalities for sending and receiving data packets, as well as for setting the network ID and 16-bit addresses for individual devices.
Code snippet
This code snippet, taken from our 6LoWPAN click example for clicker 2 for MSP432, shows how data is transmitted and received between two MCUs using 6LoWPAN clicks.
The value of _RECEIVER_ determines whether the MCU will behave as a receiver or a transmitter. RF channel, PAN ID, and individual addresses are also defined.
There is an interrupt routine for detecting a button press, which is used in the transmitter code to indicate that a package should be sent.
The other interrupt routine is connected to the GP1 line of the click itself and will trigger when new data is ready to be received. It will check the received package, and turn on the data ready indicator if everything is fine.
In the main routine, after some initialization code, two sections can be found - one for the receiver and the other one for the transmitter.
The receiver will check the package ready indicator and handle the received package. In this example, an LED will be toggled to indicate successful data transfer.
The transmitter will wait for a flag to be set from the button interrupt routine. When the flag is set, a package will be sent to the receiver.
01 #if RECEIVER 02 // Initialize BasicRF 03 config.myAddr = LIGHT_ADDR; 04 if (C6LP_init(&config) == FAILED) 05 LED1 = 1; 06 07 C6LP_receiveOn(); 08 EnableInterrupts(); 09 10 while (1) 11 { 12 while (!C6LP_isPacketReady()); 13 14 if (C6LP_receive(pRxData, APP_PAYLOAD_LENGTH, 0) > 0) 15 { 16 if (pRxData[0] == LIGHT_TOGGLE_CMD) 17 { 18 LED0 = !LED0; 19 } 20 } 21 } 22 #else 23 pTxData[0] = LIGHT_TOGGLE_CMD; 24 25 // Initialize BasicRF 26 config.myAddr = SWITCH_ADDR; 27 if (C6LP_init(&config) == FAILED) 28 LED1 = 1; 29 30 // Keep Receiver off when not needed to save power 31 C6LP_receiveOff(); 32 33 flag = 0; 34 EnableInterrupts(); 35 while (1) 36 { 37 if (flag) 38 { 39 flag = 0; 40 LED0 = !LED0; 41 C6LP_sendPacket(LIGHT_ADDR, pTxData, APP_PAYLOAD_LENGTH); 42 EnableInterrupts(); 43 } 44 } 45 #endif
Downloads
mikroBUS™ Standard specificationCC2520 datasheet
LibStock: 6LoWPAN click library




New Products
-
Sold out
OAK 4 D Pro Wide
Vendor:LuxonisRegular price Rs. 117,969.00Regular priceUnit price / perSold out -
Sold out
OAK 4 D Pro Fixed Focus
Vendor:LuxonisRegular price Rs. 106,719.00Regular priceUnit price / perSold out -
Sold out
OAK 4 D Pro Auto Focus
Vendor:LuxonisRegular price Rs. 106,719.00Regular priceUnit price / perSold out -
Sold out
OAK 4 D Auto Focus
Vendor:LuxonisRegular price Rs. 95,479.00Regular priceUnit price / perSold out -
Sold out
OAK 4 D Fixed Focus
Vendor:LuxonisRegular price Rs. 95,479.00Regular priceUnit price / perSold out -
Sold out
OAK 4 D Wide
Vendor:LuxonisRegular price Rs. 106,719.00Regular priceUnit price / perSold out -
Sold out
OAK-FFC IMX577 M12
Vendor:POLOLURegular price Rs. 8,499.00Regular priceUnit price / perSold out -
Pololu Ideal Diode Reverse Voltage Protector, 4-60V, 20A
Vendor:POLOLURegular price Rs. 329.00Regular priceUnit price / perSold out -
Pololu Ideal Diode Reverse Voltage Protector, 4-60V, 25A
Vendor:POLOLURegular price Rs. 439.00Regular priceUnit price / perSold out -
Pololu I²C Isolator, ISO1640
Vendor:POLOLURegular price Rs. 449.00Regular priceUnit price / per -
3pi+ 32U4 OLED Robot Kit with 30:1 MP Motors (Standard Edition Kit)
Vendor:POLOLURegular price Rs. 15,549.00Regular priceUnit price / per -
Conductivity Calibration K 1.0 Set (4 pouches)
Vendor:Atlas ScientificRegular price Rs. 1,599.00Regular priceUnit price / perSold out -
Analog Discovery 3 Pro Bundle
Vendor:DigilentRegular price Rs. 42,569.00Regular priceUnit price / per -
Lighthouse swarm bundle - Crazyflie 2.1+ (250mAh batteries)
Vendor:BitcrazeRegular price Rs. 474,999.00Regular priceUnit price / perSold out -
Loco Swarm bundle - Crazyflie 2.1+ (250mAh batteries)
Vendor:BitcrazeRegular price Rs. 544,999.00Regular priceUnit price / per -
Kopis X8 Cinelifter 5" Kit - Caged (Frame Kit)
Vendor:HolybroRegular price Rs. 28,199.00Regular priceUnit price / per -
Atlas Scientific i3 InterLink
Vendor:Atlas ScientificRegular price Rs. 6,349.00Regular priceUnit price / per -
PoE Injector
Vendor:LuxonisRegular price Rs. 2,099.00Regular priceUnit price / per -
Sold out
1-Port VINT Hub Phidget
Vendor:PhidgetsRegular price Rs. 2,699.00Regular priceUnit price / perSold out -
Power Distribution Board (PDB) Board (With XT30 Pre-soldered)
Vendor:HolybroRegular price Rs. 1,099.00Regular priceUnit price / per -
Holybro 1045 Propeller 2 Pair CW+CCW-Black
Vendor:HolybroRegular price Rs. 1,549.00Regular priceUnit price / per -
ACS37220LEZATR-100B3 Current Sensor Large Carrier -100A to +100A, 3.3V
Vendor:POLOLURegular price Rs. 829.00Regular priceUnit price / per -
CT433-HSWF50MR TMR Current Sensor Compact Carrier -50A to +50A, 3.3V
Vendor:POLOLURegular price Rs. 1,039.00Regular priceUnit price / per -
A5984 Stepper Motor Driver Carrier, Adjustable Current, Blue Edition
Vendor:POLOLURegular price Rs. 409.00Regular priceUnit price / per -
A5984 Stepper Motor Driver Carrier, Fixed 1A@5V / 660mA@3.3V, Blue Edition (Soldered Header Pins)
Vendor:POLOLURegular price Rs. 489.00Regular priceUnit price / per