Introduction: Getting Started With MangoCube BLE

This Instructable will show you how to configure and connect;

Option A : MangoCube BLE with BLE App on Android

Option B : Connect two MangoCube BLEs together in Data transfer mode (transmit data wirelessly over bluetooth)

First of all Connect MangoCube BLE with you PC/Mac via USB

Open Arduino IDEand under Tools menu Select COM port also Select Board as Arduino Leonardo.

Now Upload following sketch to your MangoCube BLE.

// the setup routine runs once when you press reset:
void setup() { pinMode(13, OUTPUT);

// initialize serial communication at 115200 bits per second:
while (!Serial) { ; // wait for serial port to connect. Needed for Leonardo only
delay(100); // delay in between reads for stability }

void loop() {

// read from port 1, send to port 0:
if (Serial1.available()) { Serial.write(; }
// read from port 0, send to port 1:
if (Serial.available()) { Serial1.write(; }

Step 1: Set Up ROLE

(first open Serial Monitor if it not opened yet)

As shown in the Video type AT+ROLE0 you should get a response OK+Get:0

Role 0 is Peripheral Role (Slave)
Role 1 is Central Role (Master)

to check what is current Role use this code AT+ROLE?

Great! The device is properly set up and can be used with BLE enabled device /Smart phone.

Option: A;
If you are connecting MangoCube BLE with BLE App then make MangoCube BLE to work in Peripheral Mode

Option: B;
If you are connecting two MangoCube BLE with each other then make one MangoCube BLE to work in Peripheral Mode (AT+ROLE0) and the other in to Central Mode (AT+ROLE1).

Step 2: Use It for Option a or B

Once the device Role is set up. Close Arduino Serial Monitor and Disconnect MangoCube BLE from USB and re connect it (this will reboot the MangoCube BLE with new settings).

If your using MangoCube BLE for Option B then once you reconnect them with USB the two MangoCube BLE would connect with each other and you can use Arduino Serial Monitor to transfer data between each other!!

If your using MangoCube BLE for Option A then simply openMangoCube BLE App and scan for available BLE devices, now select MangoCube and your mobile phone/device will be connected to MangoCube BLE.

Now you can use BLE app to control MangoCube BLE!!