Difference between revisions of "BLE400"

From Waveshare Wiki
Jump to: navigation, search
m (Text replace - "Service00" to "Service02")
m (Text replacement - "http://www.waveshare.com/w/upload/" to "https://files.waveshare.com/upload/")
 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Infobox item|colorscheme=blue
+
<div class="wiki-pages jet-green-color">
 +
{{Infobox item|colorscheme=green
 
|brief=Bluetooth 4.0 Motherboard
 
|brief=Bluetooth 4.0 Motherboard
|img=[[File:BLE400_l.jpg|300px|alt=BLE400|link=http://www.waveshare.com/BLE400.htm | BLE400]]
+
|img=[[File:BLE400_l.jpg|300px|alt=BLE400|{{Amazon_nolink|default={{#ifeq: {{#urlget:amazon|0}}|{{#urlget:Amazon|0}}| default|}}|url=link=http://www.waveshare.com/BLE400.htm}} | BLE400]]
 
|caption=BLE4.0 Bluetooth 2.4G Mother Board, provides I/O expansion connectors and various interfaces
 
|caption=BLE4.0 Bluetooth 2.4G Mother Board, provides I/O expansion connectors and various interfaces
 
|category=[[:Category:Modules|Modules| ]][[:Category:Bluetooth|Bluetooth]]
 
|category=[[:Category:Modules|Modules| ]][[:Category:Bluetooth|Bluetooth]]
 
|brand=Waveshare
 
|brand=Waveshare
|{{#urlget:amazon|default}}=display
+
|{{#ifeq: {{#urlget:amazon|0}}|{{#urlget:Amazon|0}}| default|}}=display
 
|website_cn=[http://www.waveshare.net/shop/BLE400.htm 官网]
 
|website_cn=[http://www.waveshare.net/shop/BLE400.htm 官网]
 
|website_en=[http://www.waveshare.com/product/BLE400.htm Website]
 
|website_en=[http://www.waveshare.com/product/BLE400.htm Website]
Line 20: Line 21:
 
}}
 
}}
 
== Introduction ==
 
== Introduction ==
BLE4.0 Bluetooth 2.4G Mother Board, provides I/O expansion connectors and various interfaces
+
BLE4.0 Bluetooth 2.4G Mother Board, provides I/O expansion connectors and various interfaces.
  
{{Amazon|{{#urlget:amazon|default}}=display
+
{{Amazon|{{#ifeq: {{#urlget:amazon|0}}|{{#urlget:Amazon|0}}| default|}}=display
 
|More = [http://www.waveshare.com/BLE400.htm More]}}
 
|More = [http://www.waveshare.com/BLE400.htm More]}}
 
{{NRF51822 Eval Kit User Manual}}
 
{{NRF51822 Eval Kit User Manual}}
 +
 
== Resources ==
 
== Resources ==
*[[:File:nRF51822-Eval-Kit-UserManual-EN.pdf|User Manual]]
+
*[https://files.waveshare.com/upload/b/b7/NRF51822-Eval-Kit-UserManual-EN.pdf User Manual]
*[http://www.waveshare.com/w/upload/1/1b/BLE400-Schematic.pdf Schematic]<br>
+
*[https://files.waveshare.com/upload/1/1b/BLE400-Schematic.pdf Schematic]<br>
*[[:File: nRF51822-Code.7z|Code]]
+
*[https://files.waveshare.com/upload/5/53/NRF51822-Code.7z Code]
 
{{NRF51822 Software}}
 
{{NRF51822 Software}}
 
{{NRF51822 Design Resources}}
 
{{NRF51822 Design Resources}}
 +
 
==Core Board==
 
==Core Board==
 
*[[Core51822]]
 
*[[Core51822]]
 +
 +
==FAQ==
 +
{{FAQ|What type of battery is used on the base plate?
 +
|CR1220.
 +
||}}
 +
{{FAQ|What is the dimensions of the base plate slots?
 +
|[[File:BLE40009.jpg]]
 +
||}}
 
==Support==
 
==Support==
{{Service02}}
+
{{Servicebox1}}

Latest revision as of 06:42, 4 September 2023

BLE400
Bluetooth 4.0 Motherboard
BLE400

BLE4.0 Bluetooth 2.4G Mother Board, provides I/O expansion connectors and various interfaces
{{{name2}}}

{{{name3}}}

{{{name4}}}

{{{name5}}}

Introduction

BLE4.0 Bluetooth 2.4G Mother Board, provides I/O expansion connectors and various interfaces.

More
  • Core51822 is a wireless module based on nRF51822 - the Multiprotocol Bluetooth® 4.0 low energy/2.4 GHz RF SoC designed for ULP (ultra-low power) wireless applications.
  • Core51822 (B) is a wireless module based on nRF51822 - the Multiprotocol Bluetooth® 4.0 low energy/2.4 GHz RF SoC designed for ULP (ultra-low power) wireless applications.
  • BLE400 is a mother board designed for BLE4.0 Bluetooth 2.4G Wireless Module.

BLE400 Features

  • Onboard battery holder, multi-power supplies are available.
  • All the IOs are accessible for easy expansion.
  • Integrates CP2102 for debugging.
  • LEDs and user keys, compatible with other official boards, easy to use.

Out of box audit

PC development environment deployments

  • WindowsXP or Windows 7
  • nRFgo Studio v1.14 or higher versions
  • Keil MDK-ARM Lite v4.54 or higher versions
  • J-Link Software v4.52b or higher versions

Mobile app download

For iOS: enter App Store and search nRF Utility

For Android (4.3 or later): download nRFToolbox then unzip and install it.

Notice: The development method of Bluetooth 4.0 is different from the traditional one. So your phone can find Bluetooth 4.0 signal only if it supported Bluetooth 4.0 and installed a related App.

How to connect with a mobile phone (Bluetooth to serial demo)

a) Install the CP2102 Driver.

b) Connect the mini USB Port of BLE400 to your PC.

c) Choose and check a corresponding Serial Port which was set as Baud rate -> 38400, Data bit -> 8, Stop bit -> 1.

d) Send a character Y or y and then if the word Start... is received, means that your Bluetooth device is broadcasting. At this time, the LED0 on BLE400 lights up.

Note: The first part of the factory program is for self-test, so the information displayed can be ignored.

e) Open the Bluetooth function on your phone.

f) Open nRFToolbox and enter UART then click the button CONNECT. Select "Nordic_UART" on the list and at this time LED0 off and LED1 on, which means that your phone is successfully connected to the module.

g) Tap the button on the App and some characters will be received by Serial.

Core51822-01.jpg

h) Click Show Log and send a string, e.g. abcdefghijklmnopqrs, by Serial from PC, then the corresponding information will be displayed on the LOG list.

Core51822-02.jpg

Note: the App displays received data only if 19 characters are received.

Program descriptions

SDK

  1. Install Keil MDK-ARM (v4.54 or higher version) and J-Link for Windows.
  2. Save nRF51 SDK and open the nrf51_sdk_v5_2_0_xxxxx.msi file to install. Please ensure the KeilMDK-ARM option is selected.
  3. It is noticed that if there are installation errors of SDK, please download and install Microsoft .NET Framework 3.5.
  4. Install nRFgo Studio (nRFgo Studio win32 for a 32-bit system, and nRFgo Studio win64 for a 64-bit system).

Example application programming explanations

There are a few differences in programming different example applications. In the following two sections, we will take blink_example and ble_app_hrs as two examples to illustrate how to program example applications.

Here are the main differences in programming blink_example and ble_app_hrs applications.

  • The blinky_example is like an application run without OS. So it can be applied directly after Programming Application.
  • The ble_app_hrs is like an application that should be run in an OS. Therefore, both relative firmware and its codes should be downloaded.

How to compile and program blinky_example

  • Before programming, you should apply nRFgo Studio to erase all the programs preinstalled to the development board by the manufactory. The erasure can be easily done by selecting nRF51 Programming and clicking Erase all. Now, it is ready to program the applications.
NRF51822-Eval-Kit-User-Manual-1.jpg
  • Open Blinky Project in Keil μVision under the path of <KEIL path> \ARM\Device\Nordic\nRF51822\Board\PCA10001\blinky_example\arm\blinky.uvproj or ...\code\BLE4.0\nrf51822\Board\pca10001\blinky_example\arm\blinky.uvproj
  • Click the icon Build or press the fast key, F7, to compile Blinkly project.
  • Click the icon Download. Run the Blinky_example after the program download is finished. Then, you can see the LED start to flick.
NRF51822-Eval-Kit-User-Manual-2.jpg

Notice:

Sometimes, Jlink firmware may fail to cooperate with Nordic SDK, causing KEIL cannot download demos.

In this case, please select nRF51 Programming at the bottom left of nRFgo Studio, and click the option Program Application to start programming.

NRF51822-Eval-Kit-User-Manual-3.jpg

How to compile and program ble_app_hrs

  • Program S110 nRF51822 SoftDevice (Bluetooth protocol stack):

Select nRF51 Programming > Program SoftDevice> Browse (choose corresponding Bluetooth protocol stack) > Program (wait for completing Bluetooth protocol stack programming).

Notes: The protocol stack file we used here, s110_nrf51822_6.0.0_softdevice.hex, is decompressed from \Software\s110_nrf51822_6.0.0.zip.

NRF51822-Eval-Kit-User-Manual-4.jpg
  • Enter <KEIL path> \ARM\Device\Nordic\nrf51822\Board\pca10001\s110\ble_app_hrs\arm or <code path>\BLE4.0\nrf51822\Board\pca10001\s110\ble_app_hrs\arm. And then, open Keil project file.
  • Follow the steps mentioned above to compile and download.

Functional descriptions of example programs

  1. All the programs are under the path of <code path>\BLE4.0\nrf51822\Board\pca10001 and all the jumpers are connected.
  2. For the detailed explanations of processes ①, ②, ③, and ④ in the table below, please refer to the remarks at the bottom of the table.
  3. For the operations involving process ②, please refer to the section "How to compile and program ble_app_hrs" to find out the relative program method.
  4. For other demos, please refer to the section “How to compile and program blinky_example” to find out the relative program method.
Program name Operations and phenomenon
blinky_example LED is flickering
uart_example ①, and read back serial output information
at45dbxx_example ①, and connect AT45DBXX DataFlash Board to a SPI

The ID of the module will be shown in the serial debugging assistant.

at24cxx_example ①, and connect AT24CXX EEPROM Board to an I2C interface

Press KEY1 on the development board, and then the data of the assigned address will be shown in the serial debugging assistant.

Press KEY2 on the development board, and then the data of the assigned address will be increased by 1.

button_radio_example\led_radio_example Development board A downloads button_radio_example

Development board B downloads led_radio_example

Press KEY1 on the development board A, and then LED0 starts flickering

Press KEY2 on the development board B, and then LED1 starts flickering

ble_app_beacon ②, ③, ④
ble_app_proximity ②, ③, ④
ble_app_uart ①, ②, ③, ④, and transmit the data in the mobile phone to a serial port

Remarks:

① Connect the development board to a PC via a data cable, and start the serial debugging assistant; Baud rate: 38400, 8-bit data bit, 1-bit stop bit.

② Download the Blue tooth protocol stack from Program SoftDevice.

③ Testing software: LightBlue(iOS).

④ LightBlue displays relative information.

Resources

NRF51822 Software

NRF51822 Design Resources

Core Board

FAQ



Support



Technical Support

If you need technical support or have any feedback/review, please click the Submit Now button to submit a ticket, Our support team will check and reply to you within 1 to 2 working days. Please be patient as we make every effort to help you to resolve the issue.
Working Time: 9 AM - 6 AM GMT+8 (Monday to Friday)