Emakefun BLE-Nano Operating Manual
Hide thumbs Also See for BLE-Nano:

Advertisement

Quick Links

BLE-Nano
operating manual
V.1.6
Copy right © 2018 Shenzhen Emakefun Technology co., Ltd.
1

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the BLE-Nano and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Emakefun BLE-Nano

  • Page 1 BLE-Nano operating manual V.1.6 Copy right © 2018 Shenzhen Emakefun Technology co., Ltd.
  • Page 2 Fix Led description Ken.chen V.1.2 2019-5-25 Add AT command note Ken.chen V.1.3 2019-7-29 Add iphone connection method Abbott.chen V.1.4 2019-7-30 introduction Overall document improvement Belle.xu V.1.5 2019-8-9 Modification diagram Abbott.chen V.1.6 2020-1-3 Copy right © 2018 Shenzhen Emakefun Technology co., Ltd.
  • Page 3: Table Of Contents

    Chapter 2 drive installation preparation ......................7 2.1 Ble-Nano driver install ......................... 7 2.2 Ble-Nano downloads programs through the arduion IDE ..............13 Chapter 3 Ble-Nano and electronic device connection ..................16 3.1 Ble-Nano Connect to your android phone ..................16 3.2 Ble-Nano connect to your iphone ......................
  • Page 4: Chapter 1 Overview Of Ble-Nano

    Chapter 1 overview of Ble-Nano 1.1 Introduct Ble - Nano bluetooth 4.0 protocol is based on perfect combination Arduino Nano by emakefun to create customer research and development of a revolutionary product, function and the pin is fully compatible with traditional Arduino Nano motherboard, scope of work frequency of 2.4 GHZ, modulation mode for the...
  • Page 5: Pin Define

     MCU:ATmega328P-MU QFN32  Bootloader:Newest Arduino1.8.8  Pin:Two Lines 2.54mm-15Pin  Size:48mm x 19mm x 12mm  Weight: 18g 1.3 Pin define Figure 1.3.1 pin description Copy right © 2018 Shenzhen Emakefun Technology co., Ltd.
  • Page 6: Indicator Led Description

     The green light flashes when the module communicates with other bluetooth data, or when usb has data, or when ATmega328P sends serial dataWhen the USB data cable is connected successfully, Copy right © 2018 Shenzhen Emakefun Technology co., Ltd.
  • Page 7: Chapter 2 Drive Installation Preparation

    2) The driver has been installed successfully. Then we open the IDE and select the corresponding development board model and port in the toolbar. If it appears as shown in figure 1.2, the computer does not recognize the development board and needs to install the driver. Copy right © 2018 Shenzhen Emakefun Technology co., Ltd.
  • Page 8 Figure 1.2 The driver failed to install the interface 3) Right-click the USB serial port and select the update driver software option, as shown in figure 1.3. Copy right © 2018 Shenzhen Emakefun Technology co., Ltd.
  • Page 9 Figure 1.3 Update successful 4) Click "browse the computer to find driver software" as shown in figure 1.4, and click "browse" as shown in figure 1.5 Copy right © 2018 Shenzhen Emakefun Technology co., Ltd.
  • Page 10 Figure 1.4 图 Figure 1.5 Driver path: "CC2540_Driver \ ccxxxx_usb_cdc.inf" click "next", as shown in figure 1.6 Copy right © 2018 Shenzhen Emakefun Technology co., Ltd.
  • Page 11 Figure 1.6 choose the driver file Copy right © 2018 Shenzhen Emakefun Technology co., Ltd.
  • Page 12 5) Click "always install this driver software" in the popup window as shown in figure 1.7 Figure 1.1.7 Figure 1.1.8 Driver installation successful At this point, we have the driver installed. Next, we will install the Arduino IDE. Copy right © 2018 Shenzhen Emakefun Technology co., Ltd.
  • Page 13: Ble-Nano Downloads Programs Through The Arduion Ide

    2.2 Ble-Nano downloads programs through the arduion IDE BLE-Nano burns the latest version of Bootloader, so you need to use the latest IDE (version 1.8.8 or above) to burn the program :https://www.arduino.cc/en/Main/Software download latest Arduino IDE 1) "tools - \board -Arduino Nano"...
  • Page 14 Figure 2.2.2 3) open the Arduino IDE software and click "tools -- port -- COM17(different computer port Numbers are different)", as shown in figure 2.2.3 Copy right © 2018 Shenzhen Emakefun Technology co., Ltd.
  • Page 15 Figure 2.2.3 4) open the Arduino IDE software, click "serial monitor", and send AT instructions; Copy right © 2018 Shenzhen Emakefun Technology co., Ltd.
  • Page 16: Chapter 3 Ble-Nano And Electronic Device Connection

    2) The test AT instruction is shown in figure 1.11. The USB and bluetooth data transmission mode of BLE-Nano is set as USB serial port data and BLE transmission as shown in figure 1.12 Copy right © 2018 Shenzhen Emakefun Technology co., Ltd.
  • Page 17 Figure 3.1.4 “Ble-Nano\TestApp\BLETestTools.apk” and open Bluetooth, Get location info 3) Install permissions Note: Ble-Nano is bluetooth4.0 not Classic Bluetooth, So we can’t connect in phone’s setting we need use “BLE test tools”. Copy right © 2018 Shenzhen Emakefun Technology co., Ltd.
  • Page 18 LightBlue On apple store) and open the test APP. The interface is shown in figure 1.13. Find the corresponding bluetooth name (Ble-Nano) and click to connect. After connection, as shown in figure 1.14, four options will appear to test different functions, respectively.
  • Page 19 Figure 3.1.6 Figure 3.1.7 Copy right © 2018 Shenzhen Emakefun Technology co., Ltd.
  • Page 20 Figure 3.1.8 Figure 3.1.9 Copy right © 2018 Shenzhen Emakefun Technology co., Ltd.
  • Page 21 4) After clicking "sk-keypressed", as shown in FIG. 1.17, we can see that there is a "write" button. Click to enter the interface as shown in FIG. 1.18 Figure 3.1.10 Copy right © 2018 Shenzhen Emakefun Technology co., Ltd.
  • Page 22 1.19, indicating that the bluetooth module can normally send data. Of course, in order to test the accuracy more accurately, we can test it several times and try to test it in different environments. Copy right © 2018 Shenzhen Emakefun Technology co., Ltd.
  • Page 23 6) As shown in figure 1.20, we can input the content we want to Send on the serial monitor, and then click "Send" to Send the data to the mobile APP via bluetooth, as shown in figure 1.21。 Figure3.1.13 Copy right © 2018 Shenzhen Emakefun Technology co., Ltd.
  • Page 24 Figure 3.1.14 In the above test process, both PC terminal and android terminal can send and receive data normally, indicating that the Ble-Nano communication is normal and achieves the expected effect. Copy right © 2018 Shenzhen Emakefun Technology co., Ltd.
  • Page 25: Ble-Nano Connect To Your Iphone

    3.2 Ble-Nano connect to your iphone 1. Search LightBlue in the APP store to download the software LightBlue○ Explorer。 Figure 3.2.1 2. Install the APP,open APP and scan device name Ble-Nano Copy right © 2018 Shenzhen Emakefun Technology co., Ltd.
  • Page 26 Figure 3.2.2 Figure3.2.3 3,Connected BLE-NANO Copy right © 2018 Shenzhen Emakefun Technology co., Ltd.
  • Page 27 Figure 3.2.4 3. Select the character type and click Write new value,Input characters to give BLE-NANO send data。 Copy right © 2018 Shenzhen Emakefun Technology co., Ltd.
  • Page 28 Figure 3.1.5 Figure 3.1.6 Copy right © 2018 Shenzhen Emakefun Technology co., Ltd.
  • Page 29: Ble-Nano With Windows10 Bluetooth Connect

    Figure 3.1.7 3.3 Ble-Nano with Windows10 Bluetooth connect Note: Ble-Nano is bluetooth4.0 not Classic Bluetooth, So we can’t connect in Win10’s setting we need download “BluetoothLEExplorer” Copy right © 2018 Shenzhen Emakefun Technology co., Ltd.
  • Page 30 Figure 3.3.1 First turn on the usb and bluetooth switches on the board Figure 3.3.2 Click start scan Copy right © 2018 Shenzhen Emakefun Technology co., Ltd.
  • Page 31 Figure 3.3.4 Find our device named Ble Nano and click link Figure 3.3.5 We select character character codesCharacteristic1 Copy right © 2018 Shenzhen Emakefun Technology co., Ltd.
  • Page 32 Figure 3.3.6 Win10 send helloword to Ble-Nano: Figure3.3.7 Copy right © 2018 Shenzhen Emakefun Technology co., Ltd.
  • Page 33: Chapter 4 Introduction Of At Instruction

    AT commands are case sensitive, both ends in return, newline characters: \ r \ Copy right © 2018 Shenzhen Emakefun Technology co., Ltd.
  • Page 34 BLE chip AT+MAX_INTE Set the maximum communication interval RVAL of BLE chip AT+SRVUUID Get the bluetooth signature UUID 0xFFE0 AT+CHARUUID Gets the character signature 0xFFE1 AT+RXGAIN Set the BLE receive gain Copy right © 2018 Shenzhen Emakefun Technology co., Ltd.
  • Page 35: At Instruction Set Specification

    Response Parameter AT+PARITY=<Param> OK+Parity=<Param> 0:NULL +SUCCESS 1: even parity check 2: Odd Parity Check 5、 Configure the stop bit for the serial port Command Response Parameter AT+STOPBIT=<Param> OK+StopBit=<Param> 0:1bit +SUCCESS 1:2bits Copy right © 2018 Shenzhen Emakefun Technology co., Ltd.
  • Page 36 OK+CONN=<Param> Scan slave bluetooth subscript Numbers 12、 Connect the slave to bluetooth by connecting the master to the slave via bluetooth Mac address Command Response Parameter AT+CON=<Param> OK+CON=<Param> Slave bluetooth address Copy right © 2018 Shenzhen Emakefun Technology co., Ltd.
  • Page 37 0: Not need Password connection +SUCCESS required 1: Password connection required 16、 Setting the bluetooth connection is a password Command Response Parameter AT+ PASS=<Param> OK+ PassWord=<Param> +SUCCESS 17、 Set bluetooth working mode Command Response Parameter Copy right © 2018 Shenzhen Emakefun Technology co., Ltd.
  • Page 38 20、Sets the maximum communication interval in milliseconds for the BLE chip Command Response Parameter AT+MAX_INTERVAL=<Param> OK+Max_Interval=<Param> For PC and Android, it is +SUCCESS recommended to set it to 10iOS devices and 40 21、Set the BLE receive gain Command Response Parameter Copy right © 2018 Shenzhen Emakefun Technology co., Ltd.
  • Page 39: Development Instructions

    4.4 Ble-Nano master-slave communication and Processing application Most of the time, we use Ble Nano and Processing to complete our own ideas. The simplest solution is as follows Copy right © 2018 Shenzhen Emakefun Technology co., Ltd.
  • Page 40 Step1. First read the MAC address of the slave (COM57) usb connection to the slave (COM52) as follows Figure 4.4.2 Step2. Connect Usb to host Ble Nano and set it to host (COM52) mode Copy right © 2018 Shenzhen Emakefun Technology co., Ltd.
  • Page 41 Step3. Turn on the automatic connection function of (COM57) to facilitate direct connection next time Figure 4.4.4 Step4. AT+BLEUSB=3 host (COM52) open USB serial port and bluetooth communication function so that bluetooth can communicate directly with USB port Copy right © 2018 Shenzhen Emakefun Technology co., Ltd.
  • Page 42 The host connects to the computer by creating a virtual port. In my computer device manager, I can see the port number The corresponding port number can complete the communication Copy right © 2018 Shenzhen Emakefun Technology co., Ltd.
  • Page 43: Faq

    4.5 FAQ Q1: What is the difference between a Ble-Nano and a regular Nano board, and how do I start using this development board A1: Ble - is the Nano in the original official arduino Nano V3.0 adding CC2540 Mini bluetooth 4.0 interface - Usb upgraded to a more general Micro - Usb interface, pin function is fully compatible with latest Bootload Bootload burning need to use the above 1.8.8 IDE can burn, other methods of use please refer to...

Table of Contents