BLE2 click – Bluetooth Low Energy click

BLE2 click – Bluetooth Low Energy click

BLE2 click - Bluetooth Low Energy click

BLE2 click – Bluetooth Low Energy click

R758.72

In stock

R758.72

BLE2 click, a low-cost click board to interface a microcontroller project with a Bluetooth Low Energy module.
Note: Specifications, Prices & Availability may change without notice. Images are for illustration purposes only. E&OE

Brand: MikroElektronika

Availability: 2 in stock SKU: STC-00131 Categories: , , , , Tags: ,
View basket

Description

The BLE2, Bluetooth Low Energy click features the Microchip RN4020 module with a complete Bluetooth stack, and can act both as a client or a server. Additionally, the RN4020 module supports 13 public profiles and 17 public services, including the MicroChip Low-energy Data Profile (MLDP).

The click communicates with the target board’s microcontroller through mikroBUS™ RX, TX and AN (here, CMD), PWM (con.), and RST (wake) lines. The board is designed to use a 3.3V power supply only.

Type BLE,Bluetooth
Applications Bluetooth Low Energy is becoming a pervasive standard for IoT applications in any number of domains (home automation, fitness, health and so on). Because of MLDP support, BLE2 click works great in pairs
On-board modules MicroChip RN4020
Key Features N4020 Bluetooth 4.1 module. PCB antenna. Integrated TCP/IP stack
Key Benefits MLDP support makes it easy to connect a pair of BLE2 clicks. Can be setup both as a client or a server
Interface GPIO,UART
Input Voltage 3.3V
Compatibility mikroBUS
Click board size S (28.6 x 25.4 mm)

Pinout diagram
This table shows how the pinout on BLE2 click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).

Notes Pin Mikrobus logo.png Pin Notes
Indicates connection state CONN 1 AN PWM 16 CMD/MLDP Command or MLDP mode
Deep Sleep Wake SWAKE 2 RST INT 15 NC
NC 3 CS TX 14 BT_UART_TX UART Transmit
NC 4 SCK RX 13 BT_UART_RX UART Receive
NC 5 MISO SCL 12 NC
NC 6 MOSI SDA 11 NC
Power supply +3.3V 7 3.3V 5V 10 NC
Ground GND 8 GND GND 9 GND Ground

Programming

The code sets up the BLE2 click board, and sends messages through Bluetooth low energy every 5 seconds. If the BLE2 click board receives messages over Bluetooth low energy, the code displays the message and updates the buffer

01 void main() {
02   Display_Init();
03   MCU_Init();
04   #ifdef INIT_BLE
05   BLE_Init();
06   delay_ms(2000);
07   #else
08   RN_WAKE = 1;
09   wait_response("CMD");
10   #endif
11   DrawFrame();
12   InitTimer2();
13   while(1)
14   {
15     if(data_ready)
16     {
17       //If characteristic is configured as write
18       //received messages come here
19       Display_Message();
20       reset_buff();
21     }
22     else
23     {
24        //Test: every 5sec increase baterry level (0 to 100%)
25        //and send value via Bluetooth Low Energy
26        if (tmr_flg)
27        {
28           batt_level++;
29           if(batt_level > 100)
30           {
31             batt_level = 0;
32           }
33           Display_BatteryLevel();
34           if(RN_CONN)
35           { //send battery level value if BLE connected
36             shorttohex(batt_level, batt_level_txt);
37             ltrim(batt_level_txt);
38             ble2_write_server_characteristic_value_via_UUID("2A19",batt_level_txt);
39           }
40           tmr_flg = 0;
41        }
42     }
43   }
44 }

Downloads

Additional information

Weight 30 g
Brand

MikroElektonika

Reviews

There are no reviews yet.


Be the first to review “BLE2 click – Bluetooth Low Energy click”

has been added to your cart:
Checkout
Select your currency
EUREuro