MikroElektronika
RN4871 click
RN4871 click
SKU:MIKROE-2544
Out of stock
Couldn't load pickup availability
Share
RN4871 click carries the RN4871 Bluetooth® 4.2 low energy module from Microchip. The click is designed to run on a 3.3V power supply. It uses ASCII Command Interface over UART for communication with target microcontroller, with additional functionality provided by the following pins on the mikroBUS™ line: RST, CS, and INT.
RN4871 module features
The RN4871 Bluetooth Low Energy module integrate Bluetooth 4.2 baseband controller, on-board Bluetooth stack, digital and analog I/O, and RF power amplifier into one solution.
The module contains an integral ceramic chip antenna.
All products in the RN series can be dynamically configured by the host microcontroller with a few simple ASCII commands.
The RN4871 supports both peripheral and central Generic Access Profile (GAP) roles, actively scanning for other connectable devices instead of waiting for incoming connection requests. The peripherals are usually small, low power devices like sensors and monitors, that broadcast information to the central device. The central device can communicate with multiple peripherals.
RN4871 click features
Specifications
Type | Bluetooth,BLE |
Applications | Health/Medical Devices, Sports Activity/Fitness Meters, Beacon Applications, Internet of Things (IoT) Sensor Tag, Remote Control, Wearable Smart Devices and Accessories, Smart Energy/Smart Home, Industrial Control |
On-board modules | RN4871 Bluetooth module from Microchip |
Key Features | Low energy module |
Interface | UART,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 RN4871 click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Maximum ratings
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | 1.9 | 3.6 | V | |
Frequency Band | 2.402 | 2.480 | GHz | |
Operating Temperature Range | -20°C | +70°C | ||
Sensitivity | 90dBm |
Programming
Code examples for RN4871 click, written for MikroElektronika hardware and compilers are available on Libstock.
Code snippet
The following code snippet shows send function for RN4xxx clicks. If the message type is correct, it will estabilish connection with the device specified by the address in the parameter and then send the properly formated data.
01 #define BTCMD( TXT ) UART2_Write_Text( TXT ) 02 void RN4xxx_send(char *pAddr, T_RN4xxx_message msgData ) 03 { 04 static char msgTxt [255]; 05 06 if (msgData.msgType == 'Q') 07 { 08 /*Connects to a device with specified adress*/ 09 BTCMD("C,1,"); 10 BTCMD (pAddr); 11 BTCMD("r"); 12 Delay_ms(3000); 13 /*Secures the connection, entering data stream mode*/ 14 BTCMD("Br"); 15 Delay_ms(3000); 16 } 17 /*Sentence construction */ 18 msgTxt[0] = '#'; 19 msgTxt[1] = msgData.msgType; 20 msgTxt[2] = ','; 21 msgTxt[3] = msgData.dataType/0x100; 22 msgTxt[4] = msgData.dataType%0x100; 23 msgTxt[5] = ','; 24 msgTxt[6] = msgData.id; 25 msgTxt[7] = ','; 26 msgTxt[8] = ''; 27 strcat (msgTxt, msgData.payload); 28 strcat (msgTxt, "*rn"); 29 30 BTCMD ( msgTxt ); 31 32 if (msgData.msgType == 'Q') 33 { 34 Delay_ms(3000); 35 /*Enters CMD mode*/ 36 BTCMD("$"); 37 Delay_ms(100); 38 BTCMD("$$$"); 39 Delay_ms(1000); 40 /*Kills connection*/ 41 BTCMD("K,1r"); 42 Delay_ms(500); 43 } 44 }




New Products
-
Infinite flight bundle - Crazyflie 2.1 Brushless
Vendor:BitcrazeRegular price Rs. 130,999.00Regular priceUnit price / per -
Intel RealSense Depth Camera D435if
Vendor:Intel® RealSense™Regular price Rs. 51,299.00Regular priceUnit price / per -
Sold out
Probe Pipe Fittings 1/2"
Vendor:Atlas ScientificRegular price Rs. 2,419.00Regular priceUnit price / perSold out -
UBEC 12A (3-14S)
Vendor:HolybroRegular price Rs. 4,199.00Regular priceUnit price / per -
Analog Discovery Studio Max: Multi-Instrument Lab for Engineering Experimentation
Vendor:DigilentRegular price Rs. 217,999.00Regular priceUnit price / perSold out -
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 / perSold out -
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 -
1-Port VINT Hub Phidget
Vendor:PhidgetsRegular price Rs. 2,699.00Regular priceUnit price / per -
Holybro X500 V2 Motor 2216-920KV-CCW
Vendor:HolybroRegular price Rs. 2,199.00Regular priceUnit price / per